| <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" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
| xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| mc:Ignorable="d"> |
| mc:Ignorable="d"> |
| |
| |
| <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource BaseStyle}"> |
| <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource BaseStyle}"> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" /> |
| <Setter Property="BorderThickness" Value="{DynamicResource ControlBorderThickness}" /> |
| <Setter Property="BorderThickness" Value="{DynamicResource ControlBorderThickness}" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type CheckBox}"> |
| <ControlTemplate TargetType="{x:Type CheckBox}"> |
| <Border Background="{TemplateBinding Background}" |
| <Border Background="{TemplateBinding Background}" |
| Padding="{TemplateBinding Padding}"> |
| Padding="{TemplateBinding Padding}"> |
| <StackPanel Orientation="Horizontal"> |
| <StackPanel Orientation="Horizontal"> |
| <Border x:Name="BulletBorder" CornerRadius="{DynamicResource ControlCornerRadius}" |
| <Border x:Name="BulletBorder" CornerRadius="{DynamicResource ControlCornerRadius}" |
| BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" |
| BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" |
| Style="{DynamicResource HighlightBorder}" > |
| Style="{DynamicResource HighlightBorder}" > |
. | <Grid Width="18" Height="18" Background="{DynamicResource NormalBrushDark}"> |
| <Grid Width="18" Height="18" Background="{DynamicResource CheckBoxCheckMarkBkBrush}"> |
| <Viewbox x:Name="CheckIcon" Visibility="Collapsed"> |
| <Viewbox x:Name="CheckIcon" Visibility="Collapsed"> |
| <TextBlock Text="b" FontFamily="Marlett" Foreground="{DynamicResource GlyphBrush}" |
| <TextBlock Text="b" FontFamily="Marlett" Foreground="{DynamicResource GlyphBrush}" |
| HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| </Viewbox> |
| </Viewbox> |
| <Viewbox x:Name="IndeterminateIcon" Visibility="Collapsed" Margin="2"> |
| <Viewbox x:Name="IndeterminateIcon" Visibility="Collapsed" Margin="2"> |
| <TextBlock Text="g" FontFamily="Marlett" Foreground="{DynamicResource GlyphBrush}" |
| <TextBlock Text="g" FontFamily="Marlett" Foreground="{DynamicResource GlyphBrush}" |
| HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| </Viewbox> |
| </Viewbox> |
| </Grid> |
| </Grid> |
| </Border> |
| </Border> |
| <ContentPresenter RecognizesAccessKey="True" Margin="5,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" /> |
| <ContentPresenter RecognizesAccessKey="True" Margin="5,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" /> |
| </StackPanel> |
| </StackPanel> |
| </Border> |
| </Border> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <MultiTrigger> |
| <MultiTrigger> |
| <MultiTrigger.Conditions> |
| <MultiTrigger.Conditions> |
| <Condition Property="IsChecked" Value="{x:Null}" /> |
| <Condition Property="IsChecked" Value="{x:Null}" /> |
| <Condition Property="IsThreeState" Value="True" /> |
| <Condition Property="IsThreeState" Value="True" /> |
| </MultiTrigger.Conditions> |
| </MultiTrigger.Conditions> |
| <Setter Property="Visibility" Value="Visible" TargetName="IndeterminateIcon"/> |
| <Setter Property="Visibility" Value="Visible" TargetName="IndeterminateIcon"/> |
| </MultiTrigger> |
| </MultiTrigger> |
| <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="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" TargetName="BulletBorder" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" TargetName="BulletBorder" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" TargetName="BulletBorder" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" TargetName="BulletBorder" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |