<Window x:Class="TelerikFooterStyle.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
        xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
        Title="MainWindow" Height="450" Width="516" ResizeMode="NoResize">
	<Window.Resources>
		<Style x:Key="FooterStyle" TargetType="{x:Type telerik:GridViewFooterCell}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type telerik:GridViewFooterCell}">
						<Border x:Name="PART_FooterCellBorder" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Margin="0,0,1,0">
							<ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="BorderBrush" Value="#FF848484"/>
			<Setter Property="BorderThickness" Value="0,0,1,0"/>
			<Setter Property="Padding" Value="5,0,3,0"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="SnapsToDevicePixels" Value="True"/>
		</Style>
	</Window.Resources>
    <Grid Height="423" VerticalAlignment="Top">
        <telerikGrid:RadGridView x:Name="radGridView" AutoGenerateColumns="False" ShowColumnFooters="True" Margin="0,0,0,8">
            <telerikGrid:RadGridView.Columns>
                <telerikGrid:GridViewDataColumn FooterCellStyle="{StaticResource FooterStyle}" Header="Id" DataMemberBinding="{Binding ID}"/>
                <telerikGrid:GridViewDataColumn FooterCellStyle="{StaticResource FooterStyle}" Header="Name" DataMemberBinding="{Binding Name}"/>
                <telerikGrid:GridViewDataColumn  Header="Email" DataMemberBinding="{Binding Email}"/>
                <telerikGrid:GridViewDataColumn Header="BAmount" DataMemberBinding="{Binding BAmount}">
                    <telerikGrid:GridViewDataColumn.AggregateFunctions>
                        <telerikData:SumFunction Caption="Sum:"/>
                    </telerikGrid:GridViewDataColumn.AggregateFunctions>
                </telerikGrid:GridViewDataColumn>
                <telerikGrid:GridViewDataColumn Header="Amount" DataMemberBinding="{Binding Amount}">
                    <telerikGrid:GridViewDataColumn.AggregateFunctions>
                        <telerikData:SumFunction Caption="Sum:"/>
                    </telerikGrid:GridViewDataColumn.AggregateFunctions>
                </telerikGrid:GridViewDataColumn>
            </telerikGrid:RadGridView.Columns>
        </telerikGrid:RadGridView>
    </Grid>
</Window>
