<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    
    
    
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"    
    xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
    xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
	xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"
    xmlns:telerikTransitonControl="clr-namespace:Telerik.Windows.Controls.TransitionControl;assembly=Telerik.Windows.Controls"
    xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"
	xmlns:filteringEditors="clr-namespace:Telerik.Windows.Controls.Filtering.Editors;assembly=Telerik.Windows.Controls"
    
>

    <SolidColorBrush x:Key="CheckBoxOuterBackground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="CheckBoxOuterBorder_Normal" Color="#FF777792" />
<SolidColorBrush x:Key="CheckBoxOuterBorder_Focused" Color="#FF777792" />
<SolidColorBrush x:Key="CheckBoxOuterBackground_Focused" Color="Transparent" />
<LinearGradientBrush x:Key="CheckBoxInnerBorder_Normal" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
		<GradientStop Color="#FF525272"/>
		<GradientStop Color="#FFC2C2D4" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckBoxInnerBackground_Normal" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
		<GradientStop Color="#FFD5D5E2"/>
		<GradientStop Color="White" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="CheckBoxTickStroke_Normal" Color="#FF525272" />
<SolidColorBrush x:Key="CheckBoxOuterBorder_MouseOver" Color="#FF777792" />
<LinearGradientBrush x:Key="CheckBoxInnerBorder_MouseOver" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
		<GradientStop Color="#FFFFC314" Offset="0"/>
		<GradientStop Color="#FFF2D9A6" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckBoxInnerBackground_MouseOver" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
		<GradientStop Color="#FFFFE89B"/>
		<GradientStop Color="#FFFFFFFF" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="CheckBoxTickStroke_MouseOver" Color="#FF525272" />
<SolidColorBrush x:Key="CheckBoxIntermediateBorder_Pressed" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="CheckBoxOuterBorder_Pressed" Color="#FF777792" />
<LinearGradientBrush x:Key="CheckBoxInnerBorder_Pressed" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
		<GradientStop Color="#FF626262" Offset="0"/>
		<GradientStop Color="#FFF4C198" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckBoxInnerBackground_Pressed" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
		<GradientStop Color="#FFFAAB02" Offset="0"/>
		<GradientStop Color="#FFFDF5D7" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="CheckBoxTickStroke_Pressed" Color="#FF525272" />
<SolidColorBrush x:Key="CheckBoxIntermediateBorder_Disabled" Color="#FFEEEEEE" />
<SolidColorBrush x:Key="CheckBoxOuterBorder_Disabled" Color="#FF777792" />
<SolidColorBrush x:Key="CheckBoxOuterBackground_Disabled" Color="#FFEEEEEE" />
<SolidColorBrush x:Key="CheckBoxInnerBorder_Disabled" Color="#FFB9B9B9" />
<SolidColorBrush x:Key="CheckBoxInnerBackground_Disabled" Color="#FFE0E0E0" />
<SolidColorBrush x:Key="CheckBoxTickStroke_Disabled" Color="#FF8D8D8D" />

    
    <!--  style for CheckBox -->
    <Style x:Key="CheckBoxStyle" TargetType="CheckBox">
        <Setter Property="Background" Value="{StaticResource CheckBoxOuterBackground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource CheckBoxOuterBorder_Normal}" />
        <Setter Property="BorderThickness" Value="1" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Top" />
		
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <Grid Background="Transparent">
                        

						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
                        
						<Grid Width="15" Height="15" HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Border x:Name="FocusBorder" Width="13" Height="13" Visibility="Collapsed" 
                                    BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource CheckBoxOuterBorder_Focused}" 
                                    Background="{StaticResource CheckBoxOuterBackground_Focused}"/>
                            
                            <Border x:Name="OuterBorder" Width="13" Height="13" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" />
                            <Border x:Name="IntermediateBorder" Width="11" Height="11" VerticalAlignment="Center" HorizontalAlignment="Center" 
                                    BorderThickness="1" BorderBrush="{TemplateBinding Background}">
                                    <Border x:Name="InnerBorder" BorderThickness="1" BorderBrush="{StaticResource CheckBoxInnerBorder_Normal}" Background="{StaticResource CheckBoxInnerBackground_Normal}" />
                            </Border>							
							<Path x:Name="CheckIcon" Visibility="Collapsed" Width="9" Height="9" Stretch="None" StrokeThickness="1.5" Stroke="{StaticResource CheckBoxTickStroke_Normal}" Data="M1.5,6 L3.5,7.5 L7,2" />
							<Path x:Name="IndeterminateIcon" Visibility="Collapsed" Width="9" Height="9" Stretch="None" StrokeThickness="1.5" Stroke="{StaticResource CheckBoxTickStroke_Normal}" Data="M2,4 L 7,4" />

							
						</Grid>

						<ContentPresenter x:Name="ContentItem"
								Grid.Column="1"
								Margin="{TemplateBinding Padding}"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								
								RecognizesAccessKey="True"
								 />
                    </Grid>

                    
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource CheckBoxOuterBorder_MouseOver}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource CheckBoxInnerBorder_MouseOver}" />
							<Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource CheckBoxInnerBackground_MouseOver}" />
							<Setter TargetName="CheckIcon" Property="Stroke" Value="{StaticResource CheckBoxTickStroke_MouseOver}" />
							<Setter TargetName="IndeterminateIcon" Property="Stroke" Value="{StaticResource CheckBoxTickStroke_MouseOver}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="IntermediateBorder" Property="BorderBrush" Value="{StaticResource CheckBoxIntermediateBorder_Pressed}" />
                            <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource CheckBoxOuterBorder_Pressed}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource CheckBoxInnerBorder_Pressed}" />
                            <Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource CheckBoxInnerBackground_Pressed}" />
							<Setter TargetName="CheckIcon" Property="Stroke" Value="{StaticResource CheckBoxTickStroke_Pressed}" />
							<Setter TargetName="IndeterminateIcon" Property="Stroke" Value="{StaticResource CheckBoxTickStroke_Pressed}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="IntermediateBorder" Property="BorderBrush" Value="{StaticResource CheckBoxIntermediateBorder_Disabled}" />
                            <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource CheckBoxOuterBorder_Disabled}" />
                            <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource CheckBoxOuterBackground_Disabled}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource CheckBoxInnerBorder_Disabled}" />
                            <Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource CheckBoxInnerBackground_Disabled}" />
							<Setter TargetName="ContentItem" Property="Opacity" Value="0.5" />
							<Setter TargetName="CheckIcon" Property="Stroke" Value="{StaticResource CheckBoxTickStroke_Disabled}" />
							<Setter TargetName="IndeterminateIcon" Property="Stroke" Value="{StaticResource CheckBoxTickStroke_Disabled}" />
						</Trigger>
						<Trigger Property="IsChecked" Value="True">
							<Setter TargetName="CheckIcon" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="IsChecked" Value="{x:Null}">
							<Setter TargetName="IndeterminateIcon" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="HasContent" Value="true">
							<Setter Property="Padding" Value="4,0,0,0"/>
						</Trigger>
						<Trigger Property="IsFocused" Value="True">
							<Setter TargetName="FocusBorder" Property="Visibility" Value="Visible" />
                            <Setter TargetName="OuterBorder" Property="Visibility" Value="Hidden" />
						</Trigger>
					</ControlTemplate.Triggers>
                    

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

    <Style x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:Office_SilverTheme , ElementType=CheckBox}"
         BasedOn="{StaticResource CheckBoxStyle}" TargetType="CheckBox" />
        
        
</ResourceDictionary>