<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:vistaCopy="clr-namespace:VistaThemeCopy"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					
				
					xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"     
					xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
					xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
					xmlns:dataPager="clr-namespace:Telerik.Windows.Controls.DataPager;assembly=Telerik.Windows.Controls.GridView"
				
				
			
					>
    
	<SolidColorBrush x:Key="GridView_CellBackground_Edited" Color="#7FFFFFFF" />
<SolidColorBrush x:Key="GridView_CellBackground_Disabled" Color="#FFE4E4E4" />
<SolidColorBrush x:Key="ControlForeground_Disabled" Color="#FF8A8A8A" />
<SolidColorBrush x:Key="GridView_GridLinesItemBorder" Color="#FFB0B0B0" />

	
	<grid:GridLineWidthToThicknessConverter x:Key="GridLineWidthToThicknessConverter" />
	
	<Style x:Key="FocusVisualStyle">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle StrokeThickness="1" Stroke="Black" StrokeDashArray="2" SnapsToDevicePixels="True"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	

	<ControlTemplate x:Key="GridViewCellTemplate" TargetType="grid:GridViewCell">
        <Border x:Name="PART_CellBorder" 
				Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
	            BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
				BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}">

			
			
            
			<ContentPresenter x:Name="PART_ContentPresenter" 
											Margin="{TemplateBinding Padding}"
                                            Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"
											VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
											HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>

        </Border>

        
        <ControlTemplate.Triggers>
            <Trigger Property="IsInEditMode" Value="True">
				<Setter Property="Padding" Value="0" />
				<Setter Property="VerticalContentAlignment" Value="Stretch" />
				<Setter TargetName="PART_CellBorder" Property="Background" Value="{StaticResource GridView_CellBackground_Edited}" />
            </Trigger>
			
			<!--DISABLED STATE-->
			<Trigger Property="IsEnabled" Value="False">
				<Setter TargetName="PART_CellBorder" Property="Background" Value="{StaticResource GridView_CellBackground_Disabled}" />
				<Setter Property="Foreground" Value="{StaticResource ControlForeground_Disabled}" />
			</Trigger>
        </ControlTemplate.Triggers>
        

    </ControlTemplate>

    <Style 
        
        x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType=grid:GridViewCell}"
        
        TargetType="grid:GridViewCell">
        <Setter Property="Template" Value="{StaticResource GridViewCellTemplate}"/>

        <Setter Property="Padding" Value="5,0,3,0"/>
        <Setter Property="BorderBrush" Value="{StaticResource GridView_GridLinesItemBorder}"/>
		<Setter Property="BorderThickness" Value="0,0,1,0" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="Background" Value="Transparent" />
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisualStyle}" />
		
    </Style>

    
	
</ResourceDictionary>