<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_GroupPanelInnerBorder" Color="#FFEFF7FC" />
<SolidColorBrush x:Key="GridView_GroupPanelBackground" Color="#FFEFF7FC" />
<SolidColorBrush x:Key="GridView_GroupPanelOuterBorder" Color="#FF3C7FB1" />

	

    <ControlTemplate x:Key="GridViewGroupPanelTemplate" TargetType="grid:GridViewGroupPanel">
        <Border  BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
			
			<Border Background="{TemplateBinding Background}" 
					BorderBrush="{StaticResource GridView_GroupPanelInnerBorder}" 
					BorderThickness="1">
				<StackPanel Orientation="Horizontal">
					<TextBlock x:Name="panelText" 
							   HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
							   VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							   Margin="{TemplateBinding Padding}"
							   FontSize="9.5"
							   telerik:LocalizationManager.ResourceKey="GridViewGroupPanelText"
							   IsHitTestVisible="False" />					
					<TextBlock x:Name="panelTextGrouped" Margin="{TemplateBinding Padding}" Visibility="Collapsed"
							   HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							   VerticalAlignment="{TemplateBinding VerticalContentAlignment}"  
							   telerik:LocalizationManager.ResourceKey="GridViewGroupPanelTopTextGrouped"
							   IsHitTestVisible="False" />
					<ItemsPresenter VerticalAlignment="Center"/>
				</StackPanel>
			</Border>
		</Border> 
        
        <ControlTemplate.Triggers>
            <!--Grouping HasGroups State-->
            <Trigger Property="HasItems" Value="True">
                <Setter Property="Visibility" TargetName="panelText" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="panelTextGrouped" Value="Visible" />
            </Trigger>			
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <ItemsPanelTemplate x:Key="GridViewGroupPanelItemsPanelTemplate">
        <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" />
    </ItemsPanelTemplate>

    <Style 
        
        x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType=grid:GridViewGroupPanel}"
        

        TargetType="grid:GridViewGroupPanel">
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelTemplate}" />
        <Setter Property="ItemsPanel" Value="{StaticResource GridViewGroupPanelItemsPanelTemplate}" />

		<Setter Property="MinHeight" Value="32" />
		<Setter Property="Margin" Value="0" />
		<Setter Property="Padding" Value="10,0,3,0" />
		<Setter Property="Background" Value="{StaticResource GridView_GroupPanelBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource GridView_GroupPanelOuterBorder}" />
		<Setter Property="BorderThickness" Value="0,0,0,1" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		
	</Style>
    
	
</ResourceDictionary>