<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style x:Key="CheckBoxStyle" 
           
           TargetType="{x:Type CheckBox}">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Padding" Value="5,0,0,0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type CheckBox}">
                    <Grid Height="{TemplateBinding Height}" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid Height="{Binding Width, RelativeSource={RelativeSource Mode=Self}}" 
                  				Width="{Binding Height, RelativeSource={RelativeSource AncestorType={x:Type Grid}, Mode=FindAncestor}}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="4*"/>
                                <RowDefinition Height="16*"/>
                            </Grid.RowDefinitions>
                            <Rectangle x:Name="rect_back" Fill="#FFE4E4E4" Grid.RowSpan="2" Stretch="Fill" />
                            <Rectangle x:Name="rect_title" Fill="#FF12543A" Stretch="Fill" />
                            <Path x:Name="path_ischecked" Visibility="Hidden" Grid.Row="1" Data="M284.9849,347.96L288.5189,351.493L294.3099,344.455" StrokeStartLineCap="Square" Stretch="Fill" StrokeEndLineCap="Square" Stroke="White" StrokeThickness="3" StrokeLineJoin="Bevel" />
                        </Grid>
                        <ContentPresenter Grid.Column="1"
								VerticalAlignment="Center"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
								Margin="{TemplateBinding Padding}" 
								RecognizesAccessKey="True" 
								SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="true">
                            <Setter TargetName="path_ischecked" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="rect_back" Property="Fill" Value="#FF2D8D6E" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter TargetName="rect_back" Property="Fill" Value="#FF929292" />
                            <Setter TargetName="rect_title" Property="Fill" Value="#FF010000" />
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>