<UserControl x:Class="CustomFilterRow_WPF.FilteringRow"
             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="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
	<UserControl.Resources>
		<telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
		<DataTemplate x:Key="GridView_FilterIcon">
			<Border Background="Transparent" Cursor="Hand" Padding="3,0,0,0">
				<Grid Cursor="Hand" Height="13" Width="12">
					<Path Data="M5,9L6,9 6,10 5,10z M4,4L5,4 5,5 5,6 5,7 5,8 5,9 4,9 4,8 4,7 4,6 4,5z M7.9850001,3L8.985,3 8.985,4 8,4 8,5 8,6 8,7 8,8 8,9 8,10 8,11 7.9999997,12 6.9999998,12 6.9999998,11 6,11 6,10 6.9999999,10 6.9999999,9 6.9999999,8 6.9999999,7 6.9999999,6 6.9999999,5 6.9999999,4 7.9850001,4z M3,3L4,3 4,4 3,4z M9,2L10,2 10,3 9,3z M2,2L3,2 3,3 2,3z M7.9999999,0L9,0 10,0 11,0 12,0 12,1 11,1 11,2 10,2 10,1 9,1 7.9999999,1z M0,0L1,0 2,0 3,0 4,0 5,0 6,0 6.9999998,0 7.9999997,0 7.9999997,1 6.9999998,1 6,1 5,1 4,1 3,1 2,1 2,2 1,2 1,1 0,1z" Fill="Black" Margin="0,1,0,0" Stretch="Fill"/>
					<Path Data="M0,0L1,0 2,0 3.0000002,0 4.0000002,0 5.0000001,0 5.9850001,0 6.0000001,0 6.9850001,0 7.9850001,0 7.9850001,1 6.9850001,1 6.0000001,1 5.9850001,1 5.0000001,1 4.0000002,1 3.0000002,1 2,1 1,1 0,1z" Fill="White" Height="1" Margin="2,1,2,0" Stretch="Fill" VerticalAlignment="Top"/>
					<Path Data="M0,0L1,0 2,0 3,0 4,0 5,0 6,0 6,1 5,1 4.985,1 4.985,2 4,2 4,3 4,4 4,5 4,6 4,7 4,8 3,8 3,7 2,7 2,6 2,5 2,4 2,3 2,2 1,2 1,1 0,1z" Margin="3,2,3,3" Stretch="Fill">
						<Path.Fill>
							<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
								<GradientStop Color="#FF353535" Offset="0"/>
								<GradientStop Color="White" Offset="0.8"/>
							</LinearGradientBrush>
						</Path.Fill>
					</Path>
					<Path Data="M0,0L1,0 2,0 3,0 4,0 5,0 6,0 6,1 5,1 4.985,1 4.985,2 4,2 4,3 4,4 4,5 4,6 4,7 4,8 3,8 3,7 2,7 2,6 2,5 2,4 2,3 2,2 1,2 1,1 0,1z" Margin="3,2,3,3" Stretch="Fill" Visibility="{Binding}">
						<Path.Fill>
							<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
								<GradientStop Color="#FFFF7300" Offset="0"/>
								<GradientStop Color="#FFFFF400" Offset="0.8"/>
							</LinearGradientBrush>
						</Path.Fill>
					</Path>
					<Path Data="M5,9L6,9 6,10 5,10z M4,4L5,4 5,5 5,6 5,7 5,8 5,9 4,9 4,8 4,7 4,6 4,5z M7.9850001,3L8.985,3 8.985,4 8,4 8,5 8,6 8,7 8,8 8,9 8,10 8,11 7.9999997,12 6.9999998,12 6.9999998,11 6,11 6,10 6.9999999,10 6.9999999,9 6.9999999,8 6.9999999,7 6.9999999,6 6.9999999,5 6.9999999,4 7.9850001,4z M3,3L4,3 4,4 3,4z M9,2L10,2 10,3 9,3z M2,2L3,2 3,3 2,3z M7.9999999,0L9,0 10,0 11,0 12,0 12,1 11,1 11,2 10,2 10,1 9,1 7.9999999,1z M0,0L1,0 2,0 3,0 4,0 5,0 6,0 6.9999998,0 7.9999997,0 7.9999997,1 6.9999998,1 6,1 5,1 4,1 3,1 2,1 2,2 1,2 1,1 0,1z" Fill="#FF5B5B5B" Margin="0,0,0,1" Stretch="Fill"/>
				</Grid>
			</Border>
		</DataTemplate>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="CustomFilterRow_Background">
			<GradientStop Color="#FFF8F8F9" Offset="0"/>
			<GradientStop Color="#FFDBDEE1" Offset="1"/>
			<GradientStop Color="#FFDFE2E5" Offset="0.4"/>
			<GradientStop Color="#FFC7CBD1" Offset="0.4"/>
		</LinearGradientBrush>
		<Style TargetType="Border">
			<Setter Property="BorderBrush" Value="Gray"/>
			<Setter Property="BorderThickness" Value="0,0,1,1"/>
			<Setter Property="Padding" Value="5,2"/>
		</Style>
		<Style TargetType="ContentControl">
			<Setter Property="ContentTemplate" Value="{StaticResource GridView_FilterIcon}"/>
		</Style>
	</UserControl.Resources>
	<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="CustomFilterRowRoot" Background="{StaticResource CustomFilterRow_Background}">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0"/>
			<ColumnDefinition Width="0"/>
			<ColumnDefinition/>
		</Grid.ColumnDefinitions>

		<ScrollViewer Grid.Column="2" Padding="0" BorderThickness="0" x:Name="ScrollViewer" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden">
			<Grid x:Name="CustomFilterRowGrid"/>
		</ScrollViewer>

	</Grid>
</UserControl>
