| <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="CheckBox"> |
| <Style TargetType="CheckBox"> |
| <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="5,5,12,5" /> |
| <Setter Property="Padding" Value="5,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="CheckBox"> |
| <ControlTemplate TargetType="CheckBox"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Margin="{TemplateBinding Padding}"> |
| <Grid Margin="{TemplateBinding Padding}"> |
| <Grid.ColumnDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="Auto" /> |
| <ColumnDefinition Width="Auto" /> |
| <ColumnDefinition Width="*" /> |
| <ColumnDefinition Width="*" /> |
| </Grid.ColumnDefinitions> |
| </Grid.ColumnDefinitions> |
| |
| |
. | <Border Background="{DynamicResource ControlBackgroundDarkBrush}" |
| <Border Background="{DynamicResource CheckBoxCheckMarkBkBrush}" |
| VerticalAlignment="Center" |
| VerticalAlignment="Center" |
| BorderThickness="2" BorderBrush="{DynamicResource ControlBackgroundBrush}" |
| BorderThickness="2" BorderBrush="{DynamicResource ControlBackgroundBrush}" |
| Grid.Column="0" Margin="0,0,10,0" Width="24" Height="24"> |
| Grid.Column="0" Margin="0,0,10,0" Width="24" Height="24"> |
| <Viewbox x:Name="CheckIcon" Visibility="Collapsed"> |
| <Viewbox x:Name="CheckIcon" Visibility="Collapsed"> |
| <TextBlock Text="b" FontFamily="Marlett" Foreground="White" |
| <TextBlock Text="b" FontFamily="Marlett" Foreground="White" |
| HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| </Viewbox> |
| </Viewbox> |
| </Border> |
| </Border> |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| FontFamily="{DynamicResource FontTitilliumWeb}" |
| FontFamily="{DynamicResource FontTitilliumWeb}" |
| Foreground="{TemplateBinding Foreground}" |
| Foreground="{TemplateBinding Foreground}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| Grid.Column="1" TextTrimming="WordEllipsis"> |
| Grid.Column="1" TextTrimming="WordEllipsis"> |
| <ContentPresenter RecognizesAccessKey="True" /> |
| <ContentPresenter RecognizesAccessKey="True" /> |
| </TextBlock> |
| </TextBlock> |
| </Grid> |
| </Grid> |
| <Border x:Name="BorderFocus" Margin="-3" |
| <Border x:Name="BorderFocus" Margin="-3" |
| 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="IsEnabled" Value="False"> |
| |
| <Setter Property="Opacity" Value="0.5" /> |
| |
| </Trigger> |
| <Trigger Property="IsChecked" Value="True"> |
| <Trigger Property="IsChecked" Value="True"> |
| <Setter Property="Visibility" Value="Visible" TargetName="CheckIcon" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="CheckIcon" /> |
| </Trigger> |
| </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="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 ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <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="CheckBoxEx" BasedOn="{StaticResource {x:Type CheckBox}}"> |
| <Style TargetType="CheckBoxEx" BasedOn="{StaticResource {x:Type CheckBox}}"> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |