| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| |
| |
| <Style TargetType="ComboBox"> |
| <Style TargetType="ComboBox"> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="ComboBox"> |
| <ControlTemplate TargetType="ComboBox"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <ToggleButton x:Name="ToggleButton" Focusable="False" ClickMode="Press" |
| <ToggleButton x:Name="ToggleButton" Focusable="False" ClickMode="Press" |
| VerticalAlignment="Center" Margin="0,0,12,0" |
| VerticalAlignment="Center" Margin="0,0,12,0" |
| IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"> |
| IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"> |
| <ToggleButton.Template> |
| <ToggleButton.Template> |
| <ControlTemplate TargetType="{x:Type ToggleButton}"> |
| <ControlTemplate TargetType="{x:Type ToggleButton}"> |
| <DockPanel LastChildFill="False" Background="Transparent"> |
| <DockPanel LastChildFill="False" Background="Transparent"> |
| <Viewbox DockPanel.Dock="Right" Height="20"> |
| <Viewbox DockPanel.Dock="Right" Height="20"> |
| <TextBlock Text="" FontFamily="{StaticResource FontIcoFont}" |
| <TextBlock Text="" FontFamily="{StaticResource FontIcoFont}" |
| Foreground="{DynamicResource TextBrush}" |
| Foreground="{DynamicResource TextBrush}" |
| FontSize="{DynamicResource FontSize}" |
| FontSize="{DynamicResource FontSize}" |
| VerticalAlignment="Center"/> |
| VerticalAlignment="Center"/> |
| </Viewbox> |
| </Viewbox> |
| </DockPanel> |
| </DockPanel> |
| </ControlTemplate> |
| </ControlTemplate> |
| </ToggleButton.Template> |
| </ToggleButton.Template> |
| </ToggleButton> |
| </ToggleButton> |
| |
| |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
. | |
| IsHitTestVisible="False" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| x:Name="TextContent" Margin="{TemplateBinding Padding}"> |
| x:Name="TextContent" Margin="{TemplateBinding Padding}"> |
| <ContentPresenter IsHitTestVisible="False" |
| <ContentPresenter IsHitTestVisible="False" |
| Content="{TemplateBinding SelectionBoxItem}" |
| Content="{TemplateBinding SelectionBoxItem}" |
| ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" |
| ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" |
| ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"/> |
| ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"/> |
| </TextBlock> |
| </TextBlock> |
| |
| |
| <Popup x:Name="Popup" IsOpen="{TemplateBinding IsDropDownOpen}" |
| <Popup x:Name="Popup" IsOpen="{TemplateBinding IsDropDownOpen}" |
| Placement="Bottom" Focusable="False" AllowsTransparency="True"> |
| Placement="Bottom" Focusable="False" AllowsTransparency="True"> |
| <Grid MaxHeight="{TemplateBinding MaxDropDownHeight}" |
| <Grid MaxHeight="{TemplateBinding MaxDropDownHeight}" |
| MinWidth="{TemplateBinding ActualWidth}" |
| MinWidth="{TemplateBinding ActualWidth}" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
| <Border BorderBrush="{DynamicResource SelectionLightBrush}" |
| <Border BorderBrush="{DynamicResource SelectionLightBrush}" |
| Background="{DynamicResource ControlBackgroundDarkBrush}" |
| Background="{DynamicResource ControlBackgroundDarkBrush}" |
| BorderThickness="2"> |
| BorderThickness="2"> |
| <ScrollViewer HorizontalScrollBarVisibility="Disabled" |
| <ScrollViewer HorizontalScrollBarVisibility="Disabled" |
| VerticalScrollBarVisibility="Auto"> |
| VerticalScrollBarVisibility="Auto"> |
| <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained"/> |
| <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained"/> |
| </ScrollViewer> |
| </ScrollViewer> |
| </Border> |
| </Border> |
| </Grid> |
| </Grid> |
| </Popup> |
| </Popup> |
| |
| |
| <Border x:Name="BorderStandard" |
| <Border x:Name="BorderStandard" |
| BorderBrush="{DynamicResource SelectionLightBrush}" |
| BorderBrush="{DynamicResource SelectionLightBrush}" |
| BorderThickness="2" Margin="-2" /> |
| BorderThickness="2" Margin="-2" /> |
| |
| |
| <Border x:Name="BorderFocus" Margin="-3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| <Border x:Name="BorderFocus" Margin="-3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderThickness="3" Visibility="Hidden" /> |
| BorderThickness="3" Visibility="Hidden" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
. | |
| <Trigger Property="IsEnabled" Value="False"> |
| |
| <Setter Property="Opacity" Value="0.5" /> |
| |
| </Trigger> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="{x:Type ComboBoxItem}"> |
| <Style TargetType="{x:Type ComboBoxItem}"> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type ComboBoxItem}"> |
| <ControlTemplate TargetType="{x:Type ComboBoxItem}"> |
| <Grid Background="{TemplateBinding Background}" > |
| <Grid Background="{TemplateBinding Background}" > |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| x:Name="TextContent" Margin="{TemplateBinding Padding}"> |
| x:Name="TextContent" Margin="{TemplateBinding Padding}"> |
| <ContentPresenter /> |
| <ContentPresenter /> |
| </TextBlock> |
| </TextBlock> |
| |
| |
| <Border x:Name="BorderFocus" |
| <Border x:Name="BorderFocus" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderThickness="3" Visibility="Hidden" /> |
| BorderThickness="3" Visibility="Hidden" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Foreground" Value="Black" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="ComboBoxEx" BasedOn="{StaticResource {x:Type ComboBox}}"> |
| <Style TargetType="ComboBoxEx" BasedOn="{StaticResource {x:Type ComboBox}}"> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |