<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:vistaCopy="clr-namespace:VistaThemeCopy"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <SolidColorBrush Color="#FFFFFFFF" x:Key="CheckBox_Background" />
<SolidColorBrush Color="#FF000000" x:Key="CheckBox_Foreground" />
<SolidColorBrush Color="#FF979898" x:Key="CheckBox_Border" />
<LinearGradientBrush x:Key="CheckBox_MiddleStroke" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
			<GradientStop Color="#FF9B9B9B" Offset="0" />
			<GradientStop Color="#FFE6E6E8" Offset="1" />
		</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckBox_MiddleFill" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
			<GradientStop Color="#FFBABFC6" Offset="0" />
			<GradientStop Color="#FFFFFFFF" Offset="1" />
		</LinearGradientBrush>
<SolidColorBrush x:Key="CheckBox_Path" Color="#FF1C5578" />
<SolidColorBrush x:Key="CheckBox_MiddleInnerStrokeOver" Color="#FF5585A2" />
<SolidColorBrush x:Key="CheckBox_MiddleInnerFillOver" Color="#FFDAF7FA" />
<LinearGradientBrush x:Key="CheckBox_MiddleFillOver" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
			<GradientStop Color="#FFE5F6FD" Offset="0" />
			<GradientStop Color="#FF94CFF5" Offset="1" />
		</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckBox_MiddleStrokeOver" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
			<GradientStop Color="#FF5DBBF9" Offset="0" />
			<GradientStop Color="#FFD0EDFC" Offset="1" />
		</LinearGradientBrush>
<SolidColorBrush x:Key="CheckBox_MiddleInnerStrokePressed" Color="#FF1C5578" />
<SolidColorBrush x:Key="CheckBox_MiddleInnerFillPressed" Color="#FFA7E9F0" />
<LinearGradientBrush x:Key="CheckBox_MiddleFillPressed" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
			<GradientStop Color="#FF68B7EA" Offset="0" />
			<GradientStop Color="#FFBEE8F7" Offset="1" />
		</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckBox_MiddleStrokePressed" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
			<GradientStop Color="#FF2A8ED0" Offset="0" />
			<GradientStop Color="#FFA6DBF5" Offset="1" />
		</LinearGradientBrush>

    
	<!--  style for CheckBox -->
	<Style x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=CheckBox}"
		 TargetType="CheckBox">
		<Setter Property="Background" Value="{StaticResource CheckBox_Background}" />
		<Setter Property="Foreground" Value="{StaticResource CheckBox_Foreground}" />
		
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource CheckBox_Border}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="CheckBox">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="16" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						
						<Grid HorizontalAlignment="Left" VerticalAlignment="Top">
							<Rectangle x:Name="Background" Width="14" Height="14" RadiusX="0"
									RadiusY="0" Stroke="{TemplateBinding BorderBrush}"
									StrokeThickness="{TemplateBinding BorderThickness}"
									Fill="{TemplateBinding Background}" Margin="1" />
							<Rectangle x:Name="BoxMiddle" Width="10" Height="10" StrokeThickness="1" 
									Stroke="{StaticResource CheckBox_MiddleStroke}"
									Fill="{StaticResource CheckBox_MiddleFill}" />

							<Rectangle x:Name="BoxMiddleLine" Width="10" Height="10" RadiusX="0"
									RadiusY="0" Stroke="{TemplateBinding BorderBrush}"
									StrokeThickness="1" Opacity=".2" />

							<Path x:Name="CheckIcon" Margin="0,1,0,1.5" Stretch="Fill" Opacity="0"
									Width="9" Height="8" Stroke="{StaticResource CheckBox_Path}" StrokeThickness="2"
									Data="M32.192282,77.371554 L34.688632,80.304322 38.863374,72.720928" />
							<Rectangle x:Name="IndeterminateIcon" Height="2" Fill="{StaticResource CheckBox_Path}"
									Opacity="0" Width="6" />

							<Rectangle x:Name="DisabledVisualElement" RadiusX="0" RadiusY="0"
									Width="14" Height="14" Opacity="0" Fill="#FFFFFFFF" />
							<Rectangle x:Name="ContentFocusVisualElement" RadiusX="0" RadiusY="0"
									Stroke="#FF6DBDD1" StrokeThickness="0" Opacity="0"
									IsHitTestVisible="false" Width="16" Height="16" />
									
							
						</Grid>
						<ContentPresenter Grid.Column="1" x:Name="contentPresenter"
								Content="{TemplateBinding Content}"
								
								RecognizesAccessKey="True"
								
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Margin="{TemplateBinding Padding}" />

						
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter TargetName="Background" Property="Stroke" Value="{StaticResource CheckBox_MiddleInnerStrokeOver}" />
							<Setter TargetName="Background" Property="Fill" Value="{StaticResource CheckBox_MiddleInnerFillOver}" />
							<Setter TargetName="BoxMiddle" Property="Fill" Value="{StaticResource CheckBox_MiddleFillOver}" />
							<Setter TargetName="BoxMiddle" Property="Stroke" Value="{StaticResource CheckBox_MiddleStrokeOver}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="Background" Property="Stroke" Value="{StaticResource CheckBox_MiddleInnerStrokePressed}" />
							<Setter TargetName="Background" Property="Fill" Value="{StaticResource CheckBox_MiddleInnerFillPressed}" />
							<Setter TargetName="BoxMiddle" Property="Fill" Value="{StaticResource CheckBox_MiddleFillPressed}" />
							<Setter TargetName="BoxMiddle" Property="Stroke" Value="{StaticResource CheckBox_MiddleStrokePressed}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="contentPresenter" Property="Opacity" Value=".55" />
							<Setter TargetName="DisabledVisualElement" Property="Opacity" Value=".55" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="True">
							<Setter TargetName="contentPresenter" Property="Opacity" Value="1" />
							<Setter TargetName="DisabledVisualElement" Property="Opacity" Value="0" />
						</Trigger>
						<Trigger Property="IsChecked" Value="True">
							<Setter TargetName="CheckIcon" Property="Opacity" Value="1" />
						</Trigger>
						<Trigger Property="IsChecked" Value="False">
							<Setter TargetName="CheckIcon" Property="Opacity" Value="0" />
						</Trigger>
						<Trigger Property="IsChecked" Value="{x:Null}">
							<Setter TargetName="IndeterminateIcon" Property="Opacity" Value="1" />
						</Trigger>
						<Trigger Property="HasContent" Value="true">
							<Setter Property="Padding" Value="4,0,0,0"/>
						</Trigger>
						<Trigger Property="IsFocused" Value="True">
							<Setter TargetName="ContentFocusVisualElement" Property="Opacity" Value="1" />
						</Trigger>
					</ControlTemplate.Triggers>
					

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