123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630 |
- <Application x:Class="Практическая__5.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Практическая__5"
- StartupUri="windowsFolder/MainWindow.xaml">
- <Application.Resources>
- <Style x:Key="BTUsually" TargetType="Button">
- <Style.Setters>
- <Setter Property="Padding" Value="10 5"/>
- <Setter Property="Margin" Value="2.5 10 2.5 5"/>
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="Background" Value="#226F54"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="7.5" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Margin="{TemplateBinding Margin}">
- <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#559972"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="BTnoBack" TargetType="Button">
- <Style.Setters>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="#b6ad90"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Margin="{TemplateBinding Margin}">
- <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#559972"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="BTnoBackNavigate" TargetType="Button">
- <Style.Setters>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="Margin" Value="10 5 0 5"/>
- <Setter Property="FontSize" Value="13"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="#b6ad90"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="HorizontalAlignment" Value="Left"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Margin="{TemplateBinding Margin}">
- <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#559972"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="TBxRegUser" TargetType="TextBox">
- <Style.Setters>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#226F54"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter Property="Foreground" Value="#226F54"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="TBkOtherTextClick" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="Foreground" Value="#b6ad90"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style.Setters>
- </Style>
- <Style x:Key="TBkHeader" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="25"/>
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="Foreground" Value="#226F54"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style.Setters>
- </Style>
- <Style x:Key="GBRegUser" TargetType="GroupBox">
- <Style.Setters>
- <Setter Property="Width" Value="350"/>
- <Setter Property="Padding" Value="-1"/>
- <Setter Property="Margin" Value="2"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="BorderBrush" Value="#43291f"/>
- <Setter Property="BorderThickness" Value="1"/>
- </Style.Setters>
- </Style>
- <Style x:Key="DPRegUser" TargetType="DatePicker">
- <Style.Setters>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#226F54"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter Property="Foreground" Value="#226F54"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="PBRegUser" TargetType="PasswordBox">
- <Style.Setters>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#226F54"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter Property="Foreground" Value="#226F54"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="30"/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" SnapsToDevicePixels="true">
- </Border>
- <Border Grid.Column="1">
- <Path x:Name="Arrow"
- Data="F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z"
- Fill="#43291f"
- Stretch="Fill"
- Height="7"
- Width="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"/>
- </Border>
- </Grid>
- </ControlTemplate>
- <Style x:Key="CBRegUser" TargetType="ComboBox">
- <Style.Setters>
- <Setter Property="Height" Value="30"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Margin" Value="1.5"/>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Margin" Value="0 0 0 0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ComboBox}">
- <Border CornerRadius="5" BorderThickness="0" Padding="5"
- Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
- <Grid>
- <ToggleButton x:Name="ToggleButton"
- Template="{StaticResource ComboBoxToggleButton}"
- Grid.Column="2"
- Focusable="False"
- ClickMode="Press"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
- <ContentPresenter x:Name="ContentSite"
- IsHitTestVisible="False"
- Content="{TemplateBinding SelectedItem}"
- ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
- ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
- Margin="0 0 25 0"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- IsEnabled="True"/>
- <Label x:Name="Watermark"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Foreground="#b6ad90"
- Visibility="Collapsed"
- Padding="0 0 0 0"
- Content="{TemplateBinding Tag}"
- FontSize="{TemplateBinding FontSize}"/>
- <Popup x:Name="Popup" Placement="Bottom"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- AllowsTransparency="True"
- Focusable="False"
- PopupAnimation="Scroll"
- Margin="0 10 0 0">
- <Grid x:Name="DropDown"
- SnapsToDevicePixels="False"
- MinWidth="{TemplateBinding ActualWidth}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}">
- <Border x:Name="DropDownBorder"
- BorderThickness="1"
- BorderBrush="#43291f"
- Background="White"
- Margin="0 10 0 0">
- <ScrollViewer Margin="0"
- SnapsToDevicePixels="True"
- OverridesDefaultStyle="True"
- Foreground="#43291f"
- FontSize="{TemplateBinding FontSize}">
- <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Continue" Margin="0">
- </StackPanel>
- </ScrollViewer>
- </Border>
- </Grid>
- </Popup>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </MultiTrigger>
- <Trigger Property="HasItems" Value="False">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/>
- </Trigger>
- <Trigger Property="IsGrouping" Value="True">
- <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <Style x:Key="SPHorizCent" TargetType="StackPanel">
- <Style.Setters>
- <Setter Property="Margin" Value="5"/>
- <Setter Property="Orientation" Value="Horizontal"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style.Setters>
- </Style>
- <Style x:Key="TBkName" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="FontSize" Value="18"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="Height" Value="60"/>
- </Style.Setters>
- </Style>
- <Style x:Key="TBkPrice" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="Foreground" Value="#da2c38"/>
- <Setter Property="Margin" Value="0 0 15 0"/>
- <Setter Property="HorizontalAlignment" Value="Right"/>
- </Style.Setters>
- </Style>
- <Style x:Key="TBkOtherText" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="#43291f"/>
- </Style.Setters>
- </Style>
- <Style x:Key="TBkAvailability" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="Margin" Value="5"/>
- <Setter Property="Height" Value="Auto"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="TextAlignment" Value="Center"/>
- <Setter Property="HorizontalAlignment" Value="Right"/>
- <Setter Property="VerticalAlignment" Value="Bottom"/>
- </Style.Setters>
- </Style>
- <Style x:Key="TBxParamJewelry" TargetType="TextBox">
- <Style.Setters>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="Width" Value="340"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="Background" Value="Transparent"/>
- </Style.Setters>
- </Style>
- <Style x:Key="CBJewelryAdd" TargetType="ComboBox">
- <Setter Property="Height" Value="35"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Margin" Value="0 0 0 0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ComboBox}">
- <Border CornerRadius="5" BorderBrush="#43291f" BorderThickness="1" Padding="5"
- Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
- <Grid>
- <ToggleButton x:Name="ToggleButton"
- Template="{StaticResource ComboBoxToggleButton}"
- Grid.Column="2"
- Focusable="False"
- ClickMode="Press"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
- <ContentPresenter x:Name="ContentSite"
- IsHitTestVisible="False"
- Content="{TemplateBinding SelectedItem}"
- ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
- ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
- Margin="11 0 25 0"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- IsEnabled="True"/>
- <Label x:Name="Watermark"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Foreground="#b6ad90"
- Visibility="Collapsed"
- Padding="10 0 0 0"
- Content="{TemplateBinding Tag}"
- FontSize="{TemplateBinding FontSize}"/>
- <Popup x:Name="Popup" Placement="Bottom"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- AllowsTransparency="True"
- Focusable="False"
- PopupAnimation="Scroll"
- Margin="5 10 0 0">
- <Grid x:Name="DropDown"
- SnapsToDevicePixels="False"
- MinWidth="{TemplateBinding ActualWidth}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}">
- <Border x:Name="DropDownBorder"
- BorderThickness="1"
- BorderBrush="#43291f"
- Background="White"
- Margin="5 10 0 0">
- <ScrollViewer Margin="0"
- SnapsToDevicePixels="True"
- OverridesDefaultStyle="True"
- Foreground="#43291f"
- FontSize="{TemplateBinding FontSize}">
- <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Continue" Margin="0">
- </StackPanel>
- </ScrollViewer>
- </Border>
- </Grid>
- </Popup>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </MultiTrigger>
- <Trigger Property="HasItems" Value="False">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/>
- </Trigger>
- <Trigger Property="IsGrouping" Value="True">
- <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ImageBrush x:Key="ib_bin_brown" ImageSource="/Resources/ic_bin_brown.png"/>
- <ImageBrush x:Key="ib_bin_red" ImageSource="/Resources/ic_bin_red.png"/>
- <Style x:Key="BtnDeleteJewelry" TargetType="Button">
- <Style.Setters>
- <Setter Property="Width" Value="25"/>
- <Setter Property="Height" Value="25"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Padding="5"
- Background="{StaticResource ib_bin_brown}"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_bin_red}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_bin_red}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <ImageBrush x:Key="ib_edit_brown" ImageSource="/Resources/ic_editing_brown.png"/>
- <ImageBrush x:Key="ib_edit_green" ImageSource="/Resources/ic_editing_green.png"/>
- <Style x:Key="BtnEditJewelry" TargetType="Button">
- <Style.Setters>
- <Setter Property="Width" Value="25"/>
- <Setter Property="Height" Value="25"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Padding="5"
- Background="{StaticResource ib_edit_brown}"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_edit_green}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_edit_green}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <ImageBrush x:Key="ib_filter_no_active" ImageSource="/Resources/ic_filter_noactive.png"/>
- <ImageBrush x:Key="ib_filter_active" ImageSource="/Resources/ic_filter_active.png"/>
- <Style x:Key="BtnFilter" TargetType="Button">
- <Style.Setters>
- <Setter Property="Width" Value="25"/>
- <Setter Property="Height" Value="25"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Padding="5"
- Background="{StaticResource ib_filter_no_active}"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_filter_active}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_filter_active}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <ImageBrush x:Key="ib_search_brown" ImageSource="/Resources/ic_search_brown.png"/>
- <ImageBrush x:Key="ib_search_green" ImageSource="/Resources/ic_search_green.png"/>
-
- <Style x:Key="tbox_Search" TargetType="{x:Type TextBox}">
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="Height" Value="Auto"/>
- <Setter Property="Width" Value="Auto"/>
- <Setter Property="Background" Value="white"/>
- <Setter Property="Foreground" Value="#43291f"/>
- <Setter Property="Padding" Value="0 5 5 4"/>
- <Setter Property="Margin" Value="0 10 0 0"/>
- <Setter Property="Grid.Column" Value="1"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="TxtBorder"
- BorderBrush="#43291f"
- BorderThickness="1"
- CornerRadius="5"
- SnapsToDevicePixels="True">
- <Grid Margin="{TemplateBinding Padding}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="30"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- Grid.Column="1"
- Margin="5 0 0 0"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- <Border x:Name="ic"
- Background="{StaticResource ib_search_brown}"
- BorderThickness="0"
- Height="25"
- Width="25"
- Margin="5 0 0 3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- ToolTip="Name"
- Cursor="Arrow"
- Grid.Column="0"/>
- <Label x:Name="Watermark"
- FontSize="15"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Foreground="#43291f"
- Visibility="Collapsed"
- Padding="5 0 20 0"
- Content="{TemplateBinding Tag}"
- Grid.Column="1"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="BorderBrush" Value="#226f54" TargetName="TxtBorder"/>
- <Setter Property="Control.Foreground" Value="#226f54"/>
- <Setter Property="Foreground" TargetName="Watermark" Value="#226f54"/>
- <Setter Property="Background" TargetName="ic" Value="{StaticResource ib_search_green}"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter Property="Control.Foreground" Value="#226f54"/>
- <Setter Property="BorderBrush" Value="#226f54" TargetName="TxtBorder"/>
- <Setter Property="BorderThickness" Value="1 1 1 3" TargetName="TxtBorder"/>
- <Setter Property="Foreground" TargetName="Watermark" Value="#226f54"/>
- <Setter Property="Background" TargetName="ic" Value="{StaticResource ib_search_green}"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ImageBrush x:Key="ib_arrow_grey_right" ImageSource="/Resources/ic_arrow_grey_right.png"/>
- <ImageBrush x:Key="ib_arrow_green_right" ImageSource="/Resources/ic_arrow_green_right.png"/>
-
- <ImageBrush x:Key="ib_arrow_grey_left" ImageSource="/Resources/ic_arrow_grey_left.png"/>
- <ImageBrush x:Key="ib_arrow_green_left" ImageSource="/Resources/ic_arrow_green_left.png"/>
-
- <Style x:Key="BtnArrowRight" TargetType="Button">
- <Style.Setters>
- <Setter Property="Width" Value="25"/>
- <Setter Property="Height" Value="25"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Padding="5"
- Background="{StaticResource ib_arrow_grey_right}"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_arrow_green_right}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_arrow_green_right}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <Style x:Key="BtnArrowLeft" TargetType="Button">
- <Style.Setters>
- <Setter Property="Width" Value="25"/>
- <Setter Property="Height" Value="25"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Padding="5"
- Background="{StaticResource ib_arrow_grey_left}"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_arrow_green_left}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" TargetName="border" Value="{StaticResource ib_arrow_green_left}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- </Application.Resources>
- </Application>
|