<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:local="clr-namespace:CustomTheme;assembly=CustomTheme"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		
    xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
    
    
    >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    
    <ControlTemplate x:Key="GridViewGroupPanelItemTemplate" TargetType="grid:GridViewGroupPanelItem">
        <StackPanel x:Name="PART_GroupPanelItemStackPanel" Orientation="Horizontal" VerticalAlignment="Stretch" Background="Transparent">
            <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition MinHeight="4" Height="Auto" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Path Name="PART_InsertionPoint" Grid.Row="0" Visibility="Collapsed" 
					  Fill="{StaticResource GridViewGroupPanelItemInsertionPointFill}" 
					  Stretch="Fill" VerticalAlignment="Top" HorizontalAlignment="Center" Width="6.414" Height="4.677" Data="M206.66812,170.31108 L212.08199,170.31108 209.36058,173.98834 z" />
                <Path x:Name="PART_ConnectingLine" Grid.Row="1" Margin="1,-7,1,3"  SnapsToDevicePixels="True" Stretch="Fill" Height="7" Data="F1 M-10,-4 L-7,-4 -7,-3 -4,-3 -3,-3 -3,-1.9999999 -3,0.99999988 -1.4901161E-08,0.99999988 -1.4901161E-08,-2.9802322E-08 3,-2.9802322E-08 3,3 -1.4901161E-08,3 -1.4901161E-08,2 -4,2 -4,0.99999988 -4,-1.9999999 -7,-1.9999999 -7,-1 -10,-1 -10,-4 z" 
					  Fill="{StaticResource GridViewGroupPanelItemConnectingLineFill}" />
            </Grid>
            <Border  BorderThickness="0" >

                <grid:GridViewGroupPanelCell Content="{Binding DisplayContent}"
                
                SortDirection="{Binding Path=SortDirection}"/>
            </Border>
        </StackPanel>
    </ControlTemplate>

    <Style 
        
        x:Key="{telerik:ThemeResourceKey ThemeType=local:MyCustomTheme, ElementType=grid:GridViewGroupPanelItem}"
        
        TargetType="grid:GridViewGroupPanelItem">
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelItemTemplate}" />
    </Style>
    
</ResourceDictionary>