<UserControl x:Class="GroupColumnHeaders_WPF.SecondaryHeader"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:telerik="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
             mc:Ignorable="d">
	<UserControl.Resources>
		<LinearGradientBrush x:Key="GridViewHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF5B5B5B" Offset="1"/>
			<GradientStop Color="#FF868686"/>
			<GradientStop Color="#FF4F4F4F" Offset="0.42"/>
			<GradientStop Color="#FF0E0E0E" Offset="0.43"/>
		</LinearGradientBrush>
		<DataTemplate x:Key="GridViewHeaderIndentCellDataTemplate">
			<telerik:GridViewHeaderIndentCell />
		</DataTemplate>
	</UserControl.Resources>
	<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition/>
		</Grid.ColumnDefinitions>

		<ScrollViewer Grid.Column="1" BorderThickness="0" x:Name="ScrollViewer"  
					  VerticalScrollBarVisibility="Hidden" 
					  HorizontalScrollBarVisibility="Hidden">
			<Grid x:Name="SecondaryHeadersGrid"  />
		</ScrollViewer>
		<StackPanel Orientation="Horizontal">
			<Border BorderBrush="Gray" BorderThickness="0,0,1,1" Background="{StaticResource GridViewHeaderBackground}" Width="25" >
				<Border BorderBrush="#FF4B4B4B" BorderThickness="0,1,1,1"/>
			</Border>
			<telerik:IndentPresenter x:Name="PART_SpecialIndentPresenter" Grid.Column="1"
									  IndentLevel="1"
									  ItemTemplate="{StaticResource GridViewHeaderIndentCellDataTemplate}" 
									  telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="Collapsed" />
		</StackPanel>
		
	</Grid>
</UserControl>
