<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="GridViewAggregateResultCellTemplate" TargetType="grid:GridViewAggregateResultCell">
        <Border MaxWidth="200" Height="Auto">
            <Border MinWidth="100" Height="Auto">
                <StackPanel Orientation="Horizontal">
                    <Rectangle Stretch="Fill" Stroke="{StaticResource GridViewAggregateResultCellForeground}" Width="1" Height="13" Margin="10,0,0,0" />
                    <TextBlock Margin="5,0,2,0" Foreground="{StaticResource GridViewAggregateResultCellForeground}" Text="{Binding Caption}"/>
                    <TextBlock Margin="5,0,2,0" Foreground="{StaticResource GridViewAggregateResultCellForeground}" Text="{Binding FormattedValue}"/>
                </StackPanel>
            </Border>
        </Border>
    </ControlTemplate>

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