source: trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/Search.xaml @ 2388

Last change on this file since 2388 was 1728, checked in by matkovic, 11 years ago

-added Animations
-added loupe image

File size: 2.6 KB
Line 
1<UserControl x:Class="WorkspaceManager.View.VisualComponents.Search"
2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6             mc:Ignorable="d"
7             Width="310">
8    <Grid>
9        <Border CornerRadius="5" HorizontalAlignment="Left">
10            <Border.Background>
11                <LinearGradientBrush Opacity="1" StartPoint="0,0" EndPoint="0,1">
12                    <GradientBrush.GradientStops>
13                        <GradientStopCollection>
14                            <GradientStop Color="#eeeeee" Offset="0.0"/>
15                            <GradientStop Color="#cccccc" Offset="1"/>
16                        </GradientStopCollection>
17                    </GradientBrush.GradientStops>
18                </LinearGradientBrush>
19            </Border.Background>
20            <Grid Margin="2">
21                <TextBox x:Name="SearchBox" BorderBrush="Transparent" Background="Transparent" Width="200" Height="30"></TextBox>
22                <Border CornerRadius="5" BorderBrush="#EEEEEE" BorderThickness="2" Width="{Binding ElementName=SearchBox, Path=ActualWidth}" Height="{Binding ElementName=SearchBox, Path=ActualHeight}">
23                    <Border.Background>
24                        <LinearGradientBrush Opacity="1" StartPoint="0,0" EndPoint="0,1">
25                            <GradientBrush.GradientStops>
26                                <GradientStopCollection>
27                                    <GradientStop Color="#EEEEEE" Offset="0.0"/>
28                                    <GradientStop Color="#dddddd" Offset="1"/>
29                                </GradientStopCollection>
30                            </GradientBrush.GradientStops>
31                        </LinearGradientBrush>
32                    </Border.Background>
33                </Border>
34                <Border CornerRadius="5" Width="198" Height="28">
35                    <Border.Effect>
36                        <DropShadowEffect BlurRadius="3" Color="Black" Direction="0" ShadowDepth="0"  Opacity="1"></DropShadowEffect>
37                    </Border.Effect>
38                        <Image Source="/WorkspaceManager;component/View/Image/search.png" SnapsToDevicePixels="True" Margin="1,1,1,1" Opacity="0.3" HorizontalAlignment="Right"/>
39         
40                </Border>
41            </Grid>
42        </Border>
43    </Grid>
44</UserControl>
Note: See TracBrowser for help on using the repository browser.