<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"
    xmlns:controls="clr-namespace:Telerik.Windows.Controls"
    
     >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
    </ResourceDictionary.MergedDictionaries>



    <!-- scrollBar-->


    <Style x:Key="DownScrollBarButton" TargetType="RepeatButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid x:Name="Root">
                        <Rectangle x:Name="Background" RadiusX="1" RadiusY="1" Opacity="0" Fill="{StaticResource ScrollViewerRepeatButtonRootBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootBackgroundStroke}" />
                        <Rectangle x:Name="BackgroundMouseOver" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundPressed" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundGradient" Opacity="0" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1"  Fill="{StaticResource GridViewScrollViewerVerticalThumbNormalBrush}"/>
                        <Rectangle x:Name="Highlight" Opacity="0" RadiusX="1" RadiusY="1" IsHitTestVisible="false" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}" StrokeThickness="1" Margin="0" />
                        <Path Stretch="Uniform" Height="4"  Fill="{StaticResource GridViewScrollViewerRepeatButtonBrush}" Width="8" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z ">

                        </Path>
                        <Rectangle x:Name="DisabledElement" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonDisabledFill}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbMouseOverBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundMouseOver" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbDraggingBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundPressed" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True" />
                                <Condition Property="IsMouseOver" Value="False" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbNormalBrush}"/>

                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="Highlight" Value="1" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="UpScrollBarButton" TargetType="RepeatButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid x:Name="Root">
                        <Rectangle x:Name="Background" RadiusX="1" RadiusY="1" Opacity="0" Fill="{StaticResource ScrollViewerRepeatButtonRootBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootBackgroundStroke}" />
                        <Rectangle x:Name="BackgroundMouseOver" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundPressed" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundGradient" Opacity="0" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1"  Fill="{StaticResource GridViewScrollViewerVerticalThumbNormalBrush}"/>
                        <Rectangle x:Name="Highlight" Opacity="0" RadiusX="1" RadiusY="1" IsHitTestVisible="false" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}" StrokeThickness="1" Margin="0" />
                        <Path Stretch="Uniform"  Fill="{StaticResource GridViewScrollViewerRepeatButtonBrush}" Height="4" Width="8" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z ">

                        </Path>
                        <Rectangle x:Name="DisabledElement" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonDisabledFill}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbMouseOverBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundMouseOver" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbDraggingBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundPressed" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True" />
                                <Condition Property="IsMouseOver" Value="False" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Fill" TargetName="BackgroundGradient">
                                <Setter.Value >
                                    <LinearGradientBrush StartPoint="0,.7" EndPoint="1,.7">
                                        <GradientStop Color="#FFf8f4f3" Offset="0" />
                                        <GradientStop Color="#FFeaeaec" Offset="0.49" />
                                        <GradientStop Color="#FFdcdcde" Offset="0.5" />
                                        <GradientStop Color="#FFc1c0c5" Offset="1" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="Highlight" Value="1" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="VerticalScrollBarPageButton" TargetType="RepeatButton">
        <Setter Property="OverridesDefaultStyle" Value="true" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Focusable" Value="false" />
        <Setter Property="IsTabStop" Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Rectangle Fill="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style x:Key="VerticalThumb" TargetType="Thumb">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid x:Name="ThumbVisual" Margin="1,0,1,0">
                        <Rectangle x:Name="Background" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerThumbBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerThumbBackgroundStroke}" />
                        <Rectangle x:Name="BackgroundMouseOver" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerThumbMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerThumbMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundPressed" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerThumbMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerThumbMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundGradient" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1" Stroke="{StaticResource ScrollViewerThumbGradientBackgroundStroke}" Fill="{StaticResource GridViewScrollViewerVerticalThumbNormalBrush}"/>
                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Height="5">
                            <Border x:Name="Line1"  Width="7" BorderBrush="{StaticResource ScrollViewerThumbLinesBorderBrush}" BorderThickness="0,1,0,0" Margin="0,0,0,2">
                                <Border x:Name="Line2"  Width="7" BorderBrush="{StaticResource ScrollViewerThumbLinesBorderBrush}" BorderThickness="0,1,0,0" Margin="0,1,0,2">
                                    <Border x:Name="Line3"  Width="7" BorderBrush="{StaticResource ScrollViewerThumbLinesBorderBrush}" BorderThickness="0,1,0,0" Margin="0,1,0,2" />
                                </Border>
                            </Border>
                        </StackPanel>

                        <Rectangle x:Name="Highlight" RadiusX="1" RadiusY="1" Opacity="0" IsHitTestVisible="false" Stroke="{StaticResource ScrollViewerThumbMouseOverBackgroundStroke}" StrokeThickness="1" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbMouseOverBrush}" />
                        </Trigger>
                        <Trigger Property="IsDragging" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbDraggingBrush}" />
                            <Setter Property="Opacity" TargetName="Highlight" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundPressed" Value="1" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalScrollBarStyle" TargetType="{x:Type ScrollBar}">
        <Setter Property="Background" Value="#efefef" />
        <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false" />
        <Setter Property="Stylus.IsFlicksEnabled" Value="false" />
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
        <Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
        <Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ScrollBar}">
                    <Grid x:Name="Bg" SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
                        <Grid.RowDefinitions>
                            <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
                            <RowDefinition Height="*" />
                            <RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}" />
                        </Grid.RowDefinitions>
                        <RepeatButton Style="{StaticResource UpScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Command="{x:Static ScrollBar.LineUpCommand}" />
                        <Track x:Name="PART_Track" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="1" IsDirectionReversed="true">
                            <Track.DecreaseRepeatButton>
                                <RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageUpCommand}" />
                            </Track.DecreaseRepeatButton>
                            <Track.IncreaseRepeatButton>
                                <RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageDownCommand}" />
                            </Track.IncreaseRepeatButton>
                            <Track.Thumb>
                                <Thumb Style="{StaticResource VerticalThumb}" />
                            </Track.Thumb>
                        </Track>
                        <RepeatButton Style="{StaticResource DownScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="2" Command="{x:Static ScrollBar.LineDownCommand}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style x:Key="LeftScrollBarButton" TargetType="RepeatButton">

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid x:Name="Root">
                        <Rectangle x:Name="Background" RadiusX="1" Opacity="0" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootBackgroundStroke}" />
                        <Rectangle x:Name="BackgroundMouseOver" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundPressed" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundGradient" Opacity="0" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootGradientBackgroundStroke}" Fill="{StaticResource GridViewScrollViewerHorizontalThumbNormalBrush}"/>
                        <Rectangle x:Name="Highlight" Opacity="0" RadiusX="1" RadiusY="1" IsHitTestVisible="false" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}" StrokeThickness="1" />
                        <Path Stretch="Uniform"  Fill="{StaticResource GridViewScrollViewerRepeatButtonBrush}" Height="8" Width="4" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z ">

                        </Path>
                        <Rectangle x:Name="DisabledElement" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonDisabledFill}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerHorizontalThumbMouseOverBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundMouseOver" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerHorizontalThumbDraggingBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundPressed" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True" />
                                <Condition Property="IsMouseOver" Value="False" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerVerticalThumbNormalBrush}"/>

                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="Highlight" Value="1" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="RightScrollBarButton" TargetType="RepeatButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid x:Name="Root">
                        <Rectangle x:Name="Background" RadiusX="1" Opacity="0" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootBackgroundStroke}" />
                        <Rectangle x:Name="BackgroundMouseOver" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundPressed" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonRootMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundGradient" Opacity="0" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1" Stroke="{StaticResource ScrollViewerRepeatButtonRootGradientBackgroundStroke}" Fill="{StaticResource GridViewScrollViewerHorizontalThumbNormalBrush}"/>
                        <Rectangle x:Name="Highlight" Opacity="0" RadiusX="1" RadiusY="1" IsHitTestVisible="false" Stroke="{StaticResource ScrollViewerRepeatButtonRootMouseOverBackgroundStroke}" StrokeThickness="1" />
                        <Path Stretch="Uniform"  Fill="{StaticResource GridViewScrollViewerRepeatButtonBrush}" Height="8" Width="4" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z ">

                        </Path>
                        <Rectangle x:Name="DisabledElement" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerRepeatButtonDisabledFill}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerHorizontalThumbMouseOverBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundMouseOver" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerHorizontalThumbDraggingBrush}" />
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundPressed" Value="1" />
                            <Setter Property="Opacity" TargetName="Background" Value="1" />
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True" />
                                <Condition Property="IsMouseOver" Value="False" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Fill" TargetName="BackgroundGradient"  Value="{StaticResource GridViewScrollViewerVerticalThumbNormalBrush}"/>
                            <Setter Property="Opacity" TargetName="BackgroundGradient" Value="1" />
                            <Setter Property="Opacity" TargetName="Highlight" Value="1" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HorizontalThumb" TargetType="{x:Type Thumb}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Grid x:Name="ThumbVisual" Margin="0,1,0,1">
                        <Rectangle x:Name="Background" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerThumbBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerThumbBackgroundStroke}" />
                        <Rectangle x:Name="BackgroundMouseOver" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerThumbMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerThumbMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundPressed" Opacity="0" RadiusX="1" RadiusY="1" Fill="{StaticResource ScrollViewerThumbMouseOverPressedBackgroundFill}" StrokeThickness="1" Stroke="{StaticResource ScrollViewerThumbMouseOverBackgroundStroke}"/>
                        <Rectangle x:Name="BackgroundGradient" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1" Stroke="{StaticResource ScrollViewerThumbGradientBackgroundStroke}" Fill="{StaticResource GridViewScrollViewerHorizontalThumbNormalBrush}"/>


                        <Border x:Name="Line1" Height="7"  HorizontalAlignment="Center" VerticalAlignment="Center"  BorderBrush="{StaticResource ScrollViewerThumbLinesBorderBrush}" BorderThickness="1,0,0,0" Margin="1,0,0,0">
                            <Border x:Name="Line2"  Height="7"  HorizontalAlignment="Center" VerticalAlignment="Center"  BorderBrush="{StaticResource ScrollViewerThumbLinesBorderBrush}" BorderThickness="1,0,0,0" Margin="1,0,0,0">
                                <Border x:Name="Line3"  Height="7"  HorizontalAlignment="Center" VerticalAlignment="Center"  BorderBrush="{StaticResource ScrollViewerThumbLinesBorderBrush}" BorderThickness="1,0,0,0" Margin="1,0,0,0" />
                            </Border>
                        </Border>

                        <Rectangle x:Name="Highlight" RadiusX="1" RadiusY="1" Opacity="0" IsHitTestVisible="false" Stroke="{StaticResource ScrollViewerThumbMouseOverBackgroundStroke}" StrokeThickness="1" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerHorizontalThumbMouseOverBrush}" />
                        </Trigger>
                        <Trigger Property="IsDragging" Value="True">
                            <Setter Property="Fill" TargetName="BackgroundGradient" Value="{StaticResource GridViewScrollViewerHorizontalThumbDraggingBrush}" />
                            <Setter Property="Opacity" TargetName="Highlight" Value="1" />
                            <Setter Property="Opacity" TargetName="BackgroundPressed" Value="1" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Focusable" Value="false" />
        <Setter Property="IsTabStop" Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Rectangle Fill="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="HorizontalScrollBarStyle" TargetType="{x:Type ScrollBar}">
        <Setter Property="Width" Value="Auto" />
        <Setter Property="MinWidth" Value="0" />
        <Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
        <Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}" />
        <Setter Property="Background" Value="#efefef" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ScrollBar}">
                    <Grid x:Name="Bg" SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
                        </Grid.ColumnDefinitions>
                        <RepeatButton Style="{StaticResource LeftScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Command="{x:Static ScrollBar.LineLeftCommand}" />
                        <Track x:Name="PART_Track" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Column="1">
                            <Track.DecreaseRepeatButton>
                                <RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageLeftCommand}" />
                            </Track.DecreaseRepeatButton>
                            <Track.IncreaseRepeatButton>
                                <RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageRightCommand}" />
                            </Track.IncreaseRepeatButton>
                            <Track.Thumb>
                                <Thumb Style="{StaticResource HorizontalThumb}" />
                            </Track.Thumb>
                        </Track>
                        <RepeatButton Style="{StaticResource RightScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Column="2" Command="{x:Static ScrollBar.LineRightCommand}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <ControlTemplate x:Key="GridViewScrollViewerTemplate" TargetType="grid:GridViewScrollViewer">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <ContentPresenter Grid.Column="0" Grid.Row="0" />

            <ScrollBar x:Name="PART_VerticalScrollBar" Orientation="Vertical" Margin="{TemplateBinding VerticalScrollBarMargin}" Grid.Column="1" Grid.Row="0"  Style="{StaticResource VerticalScrollBarStyle}"/>
            <ScrollBar x:Name="PART_HorizontalScrollBar" Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Style="{StaticResource HorizontalScrollBarStyle}"/>




        </Grid>
    </ControlTemplate>

    <Style 
        
        x:Key="{telerik:ThemeResourceKey ThemeType=local:MyCustomTheme, ElementType=grid:GridViewScrollViewer}"
        
        TargetType="grid:GridViewScrollViewer">

        <Setter Property="Template" Value="{StaticResource GridViewScrollViewerTemplate}" />
    </Style>
 

   
</ResourceDictionary>