<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="c"
        xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
        xmlns:input="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:treeList="clr-namespace:Telerik.Windows.Controls.TreeListView;assembly=Telerik.Windows.Controls.GridView"
        xmlns:searchPanel="clr-namespace:Telerik.Windows.Controls.GridView.SearchPanel;assembly=Telerik.Windows.Controls.GridView">
    <ResourceDictionary.MergedDictionaries>
        <telerik:Office2016ResourceDictionary/>
    </ResourceDictionary.MergedDictionaries>
    <telerik1:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <Geometry x:Key="ArrowTopRight8x8">M0,0 L8,0 8,8 z</Geometry>
    <Geometry x:Key="ErrorIndicatorIcon">M4,15 L12,15 12,16 4,16 z M12,14 L13,14 13,15 12,15 z M3,14 L4,14 4,15 3,15 z M13,13 L14,13 14,14 13,14 z M2,13 L3,13 3,14 2,14 z M14,12 L15,12 15,13 14,13 z M1,12 L2,12 2,13 1,13 z M7,11 L7,13 9,13 9,11 z M15,4 L16,4 16,12 15,12 z M0,4 L1,4 1,12 0,12 z M14,3 L15,3 15,4 14,4 z M7,3 L7,10 9,10 9,3 z M1,3 L2,3 2,4 1,4 z M13,2 L14,2 14,3 13,3 z M4,2 L12,2 12,3 13,3 13,4 14,4 14,12 13,12 13,13 12,13 12,14 4,14 4,13 3,13 3,12 2,12 2,4 3,4 3,3 4,3 z M2,2 L3,2 3,3 2,3 z M12,1 L13,1 13,2 12,2 z M3,1 L4,1 4,2 3,2 z M4,0 L12,0 12,1 4,1 z</Geometry>
    <Geometry x:Key="ExclamationMarkIcon">M0,8 L2,8 2,10 0,10 z M0,0 L2,0 2,7 0,7 z</Geometry>
    <FontFamily x:Key="TelerikWebUI">/Telerik.Windows.Controls;component/Themes/Fonts/TelerikWebUI.ttf#TelerikWebUI</FontFamily>
    <sys:String x:Key="GlyphArrow45DownRight"></sys:String>
    <sys:String x:Key="GlyphArrow60Up"></sys:String>
    <sys:String x:Key="GlyphArrow60Right"></sys:String>
    <sys:String x:Key="GlyphArrow60Down"></sys:String>
    <sys:String x:Key="GlyphArrowChevronRight"></sys:String>
    <sys:String x:Key="GlyphCheck"></sys:String>
    <sys:String x:Key="GlyphClose"></sys:String>
    <sys:String x:Key="GlyphPlus"></sys:String>
    <sys:String x:Key="GlyphMinus"></sys:String>
    <sys:String x:Key="GlyphFilterSmall"></sys:String>
    <sys:String x:Key="GlyphWarning"></sys:String>
    <sys:String x:Key="GlyphComment"></sys:String>
    <sys:String x:Key="GlyphTableLightDialog"></sys:String>
    <telerik:BooleanToOpacityConverter x:Key="BooleanToOpacityConverter"/>
    <telerik:UppercaseConverter x:Key="UppercaseConverter"/>
    <grid:GridLineWidthToThicknessConverter x:Key="GridLineWidthToThicknessConverter"/>
    <grid:FilterOperatorConverter x:Key="FilterOperatorConverter"/>
    <grid:FilterCompositionLogicalOperatorConverter x:Key="FilterCompositionLogicalOperatorConverter"/>
    <grid:DistinctValueConverter x:Key="DistinctValueConverter"/>
    <grid:FilterOperatorToFilterEditorIsEnabledConverter x:Key="FilterOperatorToFilterEditorIsEnabledConverter"/>
    <grid:SortingIndexConverter x:Key="SortingIndexConverter"/>
    <grid:SortingIndexToVisibilityConverter x:Key="SortingIndexToVisibilityConverter"/>
    <grid:ControlPanelItemButtonTooltipToVisibilityConverter x:Key="ControlPanelItemButtonTooltipToVisibilityConverter"/>
    <grid:ColumnHeaderConverter x:Key="ColumnHeaderConverter"/>
    <ControlTemplate x:Key="GridViewValidationToolTipTemplate" TargetType="ToolTip">
        <Grid x:Name="Root" Opacity="0" Margin="2 0 0 0" Background="Transparent" RenderTransformOrigin="0,0">
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Border Padding="4" Grid.Column="1" MinHeight="20" Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}">
                <ItemsControl ItemsSource="{TemplateBinding Content}">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <TextBlock
                                    MaxWidth="250"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                    FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                                    FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"
                                    VerticalAlignment="Center"
                                    Text="{Binding}"
                                    TextWrapping="Wrap"/>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel/>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsOpen" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard x:Name="OpenAnimation">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.2"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard x:Name="CloseAnimation">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="-25" Duration="0:0:0.2"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
                <Setter Property="Opacity" Value="1" TargetName="Root"/>
            </Trigger>
            <Trigger Property="IsOpen" Value="False">
                <Setter Property="Opacity" Value="0" TargetName="Root"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="AggregateResultsListStyle" TargetType="grid:AggregateResultsList">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <ItemsPresenter/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                        <TextBlock
                                VerticalAlignment="Center"
                                HorizontalAlignment="Left"
                                Text="{Binding Caption}"
                                FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                                FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
                        <TextBlock
                                VerticalAlignment="Center"
                                HorizontalAlignment="Left"
                                Text="{Binding FormattedValue}"
                                FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                                FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Vertical"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="grid:AggregateResultsList" BasedOn="{StaticResource AggregateResultsListStyle}"/>
    <ControlTemplate x:Key="AutoCompleteStringFilterEditorTemplate" TargetType="grid:AutoCompleteStringFilterEditor">
        <Grid MinWidth="100">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <input:RadAutoCompleteBox x:Name="PART_RadAutoCompleteBox" AutoCompleteMode="Suggest" SelectionMode="Single" ItemsSource="{Binding RawDistinctValues}" VerticalAlignment="Stretch"/>
            <telerik:RadToggleButton
                    Grid.Column="1"
                    MinWidth="20"
                    Content="aA"
                    Margin="5 0 0 0"
                    IsChecked="{Binding IsCaseSensitive, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                    Visibility="{TemplateBinding MatchCaseVisibility}"
                    FontSize="{TemplateBinding FontSize}"
                    FontFamily="{TemplateBinding FontFamily}">
                <ToolTipService.ToolTip>
                    <ToolTip telerik:LocalizationManager.ResourceKey="GridViewFilterMatchCase"/>
                </ToolTipService.ToolTip>
            </telerik:RadToggleButton>
        </Grid>
    </ControlTemplate>
    <Style x:Key="AutoCompleteStringFilterEditorStyle" TargetType="grid:AutoCompleteStringFilterEditor">
        <Setter Property="Template" Value="{StaticResource AutoCompleteStringFilterEditorTemplate}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="IsTabStop" Value="False"/>
    </Style>
    <Style TargetType="grid:AutoCompleteStringFilterEditor" BasedOn="{StaticResource AutoCompleteStringFilterEditorStyle}"/>
    <ControlTemplate x:Key="ControlPanelItem_DropDownButtonTemplate" TargetType="telerik:RadDropDownButton">
        <Grid>
            <Border x:Name="OuterBorder"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{TemplateBinding CornerRadius}"
                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
            <Border x:Name="OuterMouseOverBorder"
                    Background="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                    Visibility="Collapsed"/>
            <Border x:Name="CheckedVisual"
                    Background="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                    Opacity="0.5"
                    Visibility="Collapsed"/>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <ContentPresenter x:Name="Content"
                        Grid.Row="1"
                        Grid.Column="1"
                        TextBlock.Foreground="{TemplateBinding Foreground}"
                        TextBlock.FontSize="{TemplateBinding FontSize}"
                        TextBlock.FontFamily="{TemplateBinding FontFamily}"
                        Margin="{TemplateBinding Padding}"
                        Content="{TemplateBinding Content}"
                        ContentTemplate="{TemplateBinding ContentTemplate}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
                        RecognizesAccessKey="True">
                    <ContentPresenter.RenderTransform>
                        <TranslateTransform/>
                    </ContentPresenter.RenderTransform>
                </ContentPresenter>
            </Grid>
            <Popup x:Name="DropDownPopup">
                <Grid>
                    <Border x:Name="DropDownPopupBorder"
                            MinWidth="3"
                            MinHeight="3"
                            Width="{TemplateBinding DropDownWidth}"
                            Height="{TemplateBinding DropDownHeight}"
                            MaxWidth="{TemplateBinding DropDownMaxWidth}"
                            MaxHeight="{TemplateBinding DropDownMaxHeight}"
                            BorderThickness="1"
                            BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}"
                            Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                            Visibility="{Binding DropDownContent, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource ControlPanelItemButtonTooltipToVisibilityConverter}}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <ContentControl x:Name="DropDownPopupContent"
                                Foreground="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                HorizontalContentAlignment="Stretch"
                                VerticalContentAlignment="Stretch"
                                Content="{TemplateBinding DropDownContent}"
                                ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsOpen" Value="True">
                <Setter TargetName="CheckedVisual" Property="Visibility" Value="Visible"/>
                <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="OuterMouseOverBorder" Property="Visibility" Value="Visible"/>
                <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="ControlPanelItem_DropDownButtonStyle" TargetType="telerik:RadDropDownButton">
        <Setter Property="Template" Value="{StaticResource ControlPanelItem_DropDownButtonTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AccentBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Margin" Value="0 0 10 0"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <ControlTemplate x:Key="ControlPanelItemControlTemplate" TargetType="grid:ControlPanelItemControl">
        <telerik:RadDropDownButton x:Name="PART_ControlPanelItemControlDropDownButton"
                DropDownContent="{Binding Content}"
                Style="{StaticResource ControlPanelItem_DropDownButtonStyle}"
                MinWidth="26"
                MinHeight="26"
                VerticalAlignment="Center"
                HorizontalAlignment="Center">
            <ToolTipService.ToolTip>
                <ToolTip Placement="Right" Content="{Binding ButtonTooltip}" Visibility="{Binding ButtonTooltip, Converter={StaticResource ControlPanelItemButtonTooltipToVisibilityConverter}}"/>
            </ToolTipService.ToolTip>
            <Grid Margin="0 3">
                <Border
                        Background="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Height="2"
                        Width="16"
                        VerticalAlignment="Top"
                        HorizontalAlignment="Left"
                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                <Border
                        Background="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Height="2"
                        Width="16"
                        VerticalAlignment="Top"
                        HorizontalAlignment="Left"
                        Margin="0 4 0 0"
                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                <Border
                        Background="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Height="2"
                        Width="16"
                        VerticalAlignment="Top"
                        HorizontalAlignment="Left"
                        Margin="0 8 0 0"
                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
            </Grid>
        </telerik:RadDropDownButton>
    </ControlTemplate>
    <Style x:Key="ControlPanelItemControlStyle" TargetType="grid:ControlPanelItemControl">
        <Setter Property="Template" Value="{StaticResource ControlPanelItemControlTemplate}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:ControlPanelItemControl" BasedOn="{StaticResource ControlPanelItemControlStyle}"/>
    <ControlTemplate x:Key="ChildDataControlsPresenterTemplate" TargetType="grid:ChildDataControlsPresenter">
        <ItemsControl x:Name="PART_ChildDataItemsControl" ItemsSource="{Binding}" IsTabStop="{TemplateBinding IsTabStop}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Border Background="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}" BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}" BorderThickness="0 1">
                        <controls:RadGridView MaxHeight="300" Margin="11" IsTabStop="{Binding IsTabStop, ElementName=PART_ChildDataItemsControl}"/>
                    </Border>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </ControlTemplate>
    <Style x:Key="ChildDataControlsPresenterStyle" TargetType="grid:ChildDataControlsPresenter">
        <Setter Property="Template" Value="{StaticResource ChildDataControlsPresenterTemplate}"/>
    </Style>
    <Style TargetType="grid:ChildDataControlsPresenter" BasedOn="{StaticResource ChildDataControlsPresenterStyle}"/>
    <ControlTemplate x:Key="CommonColumnHeaderTemplate" TargetType="grid:CommonColumnHeader">
        <Grid x:Name="PART_HeaderCellGrid">
            <Border x:Name="GridViewHeaderCell"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"/>
            <ContentPresenter x:Name="ContentPresenter"
                    TextBlock.Foreground="{TemplateBinding Foreground}"
                    TextBlock.FontSize="{TemplateBinding FontSize}"
                    TextBlock.FontFamily="{TemplateBinding FontFamily}"
                    Content="{Binding Content, Converter={StaticResource UppercaseConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Margin="{TemplateBinding Padding}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="CommonColumnHeaderStyle" TargetType="grid:CommonColumnHeader">
        <Setter Property="Template" Value="{StaticResource CommonColumnHeaderTemplate}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 1"/>
        <Setter Property="Padding" Value="4 0"/>
        <Setter Property="MinHeight" Value="33"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:CommonColumnHeader" BasedOn="{StaticResource CommonColumnHeaderStyle}"/>
    <ControlTemplate x:Key="CommonHeaderPresenterTemplate" TargetType="grid:CommonHeaderPresenter">
        <Border
                Background="{TemplateBinding Background}"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}"
                Visibility="{TemplateBinding Visibility}"
                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                HorizontalAlignment="Stretch">
            <Grid x:Name="PART_CommonHeadersContainer" HorizontalAlignment="Left"/>
        </Border>
    </ControlTemplate>
    <Style x:Key="CommonHeaderPresenterStyle" TargetType="grid:CommonHeaderPresenter">
        <Setter Property="Template" Value="{StaticResource CommonHeaderPresenterTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:CommonHeaderPresenter" BasedOn="{StaticResource CommonHeaderPresenterStyle}"/>
    <ControlTemplate x:Key="DataCellsPresenterTemplate" TargetType="grid:DataCellsPresenter">
        <Grid>
            <ItemsPresenter/>
            <grid:FrozenColumnsSplitter x:Name="PART_FrozenColumnsSplitter" HorizontalAlignment="Left"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="DataCellsPresenterStyle" TargetType="grid:DataCellsPresenter">
        <Setter Property="Template" Value="{StaticResource DataCellsPresenterTemplate}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <grid:GridViewCellsPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:DataCellsPresenter" BasedOn="{StaticResource DataCellsPresenterStyle}"/>
    <ControlTemplate x:Key="DetailsPresenterTemplate" TargetType="grid:DetailsPresenter">
        <Border x:Name="DetailsBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <ContentPresenter x:Name="PART_ContentPresenter"
                    Margin="{TemplateBinding Padding}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="Visibility" Value="Visible">
                <Setter TargetName="DetailsBorder" Property="Visibility" Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="DetailsPresenterStyle" TargetType="grid:DetailsPresenter">
        <Setter Property="Template" Value="{StaticResource DetailsPresenterTemplate}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:DetailsPresenter" BasedOn="{StaticResource DetailsPresenterStyle}"/>
    <ControlTemplate TargetType="grid:FilteringDropDown" x:Key="DistinctFilterControlTemplate">
        <Grid>
            <Button x:Name="PART_DropDownButton">
                <Button.Template>
                    <ControlTemplate TargetType="Button">
                        <ContentPresenter/>
                    </ControlTemplate>
                </Button.Template>
                <Grid Cursor="Hand" Background="Transparent" Margin="2">
                    <TextBlock
                            Text="{StaticResource GlyphFilterSmall}"
                            FontFamily="{StaticResource TelerikWebUI}"
                            FontSize="16"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Foreground="{TemplateBinding Foreground}"/>
                    <TextBlock
                            Text="{StaticResource GlyphFilterSmall}"
                            FontFamily="{StaticResource TelerikWebUI}"
                            FontSize="16"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Foreground="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                            Visibility="{TemplateBinding FunnelFillVisibility}"/>
                </Grid>
            </Button>
            <Popup x:Name="PART_DropDownPopup" StaysOpen="True" AllowsTransparency="True" PopupAnimation="Slide"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="FilteringDropDownStyle" TargetType="grid:FilteringDropDown">
        <Setter Property="Template" Value="{StaticResource DistinctFilterControlTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
    </Style>
    <Style TargetType="grid:FilteringDropDown" BasedOn="{StaticResource FilteringDropDownStyle}"/>
    <Style x:Key="DistinctValueListBoxItemStyle" TargetType="ListBoxItem">
        <Setter Property="Padding" Value="4"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <ContentPresenter x:Name="contentPresenter"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="ActionTemplate">
        <TextBlock Text="{Binding Converter={StaticResource FilterOperatorConverter}}"/>
    </DataTemplate>
    <DataTemplate x:Key="LogicalOperatorTemplate">
        <TextBlock Text="{Binding Converter={StaticResource FilterCompositionLogicalOperatorConverter}}"/>
    </DataTemplate>
    <ControlTemplate x:Key="FilteringControlTemplate" TargetType="grid:FilteringControl">
        <Grid Background="Transparent" SnapsToDevicePixels="True">
            <Border
                    Background="{TemplateBinding Background}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Margin="{TemplateBinding Padding}"
                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                <Grid>
                    <StackPanel Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                        <StackPanel x:Name="PART_DistinctFilter" Visibility="{TemplateBinding DistinctFiltersVisibility}">
                            <CheckBox x:Name="PART_SelectAllCheckBox" IsChecked="{Binding SelectAll, Mode=TwoWay}" Margin="0 0 0 4" telerik:LocalizationManager.ResourceKey="GridViewFilterSelectAll"/>
                            <ListBox x:Name="PART_DistinctValuesList"
                                    ItemsSource="{Binding DistinctValues}"
                                    Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                                    Padding="4"
                                    ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                    ItemContainerStyle="{StaticResource DistinctValueListBoxItemStyle}"
                                    SelectionMode="Multiple">
                                <ListBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <VirtualizingStackPanel MaxHeight="242"/>
                                    </ItemsPanelTemplate>
                                </ListBox.ItemsPanel>
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox IsChecked="{Binding IsActive, Mode=TwoWay}" Content="{Binding ConvertedValue, Converter={StaticResource DistinctValueConverter}}" VerticalAlignment="Center"/>
                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>
                        </StackPanel>
                        <StackPanel Visibility="{TemplateBinding FieldFiltersVisibility}">
                            <TextBlock Foreground="{telerik1:Office2016Resource ResourceKey=MarkerBrush}" Margin="0 6" telerik:LocalizationManager.ResourceKey="GridViewFilterShowRowsWithValueThat"/>
                            <input:RadComboBox x:Name="PART_Filter1ComboBox"
                                    MinHeight="26"
                                    ItemTemplate="{StaticResource ActionTemplate}"
                                    ItemsSource="{Binding AvailableActions}"
                                    SelectedItem="{Binding Filter1.Operator, Mode=TwoWay}"/>
                            <ContentControl x:Name="PART_Filter1ContentControl"
                                    DataContext="{Binding Filter1}"
                                    Margin="0 4 0 0"
                                    IsEnabled="{Binding Operator, Converter={StaticResource FilterOperatorToFilterEditorIsEnabledConverter}}"
                                    HorizontalContentAlignment="Stretch"
                                    VerticalContentAlignment="Stretch"/>
                            <input:RadComboBox x:Name="PART_LogicalOperatorsComboBox"
                                    MinHeight="26"
                                    ItemTemplate="{StaticResource LogicalOperatorTemplate}"
                                    ItemsSource="{Binding LogicalOperators}"
                                    Margin="0 4 0 0"
                                    SelectedItem="{Binding FieldFilterLogicalOperator, Mode=TwoWay}"/>
                            <input:RadComboBox x:Name="PART_Filter2ComboBox"
                                    Margin="0 4 0 0"
                                    MinHeight="26"
                                    ItemTemplate="{StaticResource ActionTemplate}"
                                    ItemsSource="{Binding AvailableActions}"
                                    SelectedItem="{Binding Filter2.Operator, Mode=TwoWay}"/>
                            <ContentControl x:Name="PART_Filter2ContentControl"
                                    Margin="0 4 0 0"
                                    DataContext="{Binding Filter2}"
                                    IsEnabled="{Binding Operator, Converter={StaticResource FilterOperatorToFilterEditorIsEnabledConverter}}"
                                    HorizontalContentAlignment="Stretch"
                                    VerticalContentAlignment="Stretch"/>
                        </StackPanel>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <Button x:Name="PART_ApplyFilterButton"
                                    MinWidth="89"
                                    Visibility="{TemplateBinding FilterButtonVisibility}"
                                    Margin="0 4 0 0"
                                    telerik:LocalizationManager.ResourceKey="GridViewFilter"/>
                            <Button x:Name="PART_ClearFilterButton" Grid.Column="1" MinWidth="89" Margin="4 4 0 0" telerik:LocalizationManager.ResourceKey="GridViewClearFilter"/>
                        </Grid>
                    </StackPanel>
                    <telerik:RadButton x:Name="PART_FilterCloseButton"
                            Margin="0 4 4 4"
                            MinHeight="0"
                            Padding="0"
                            Background="Transparent"
                            BorderBrush="Transparent"
                            BorderThickness="0"
                            Grid.Column="1"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Width="16"
                            Height="16">
                        <Grid UseLayoutRounding="True">
                            <TextBlock
                                    Text="{StaticResource GlyphClose}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
                            <TextBlock
                                    Text="{StaticResource GlyphClose}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                    Visibility="{Binding IsMouseOver,ElementName=PART_FilterCloseButton, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                            <TextBlock
                                    Text="{StaticResource GlyphClose}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                    Visibility="{Binding IsPressed,ElementName=PART_FilterCloseButton, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                        </Grid>
                    </telerik:RadButton>
                </Grid>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="FilteringControlStyle" TargetType="grid:FilteringControl">
        <Setter Property="Template" Value="{StaticResource FilteringControlTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="MinWidth" Value="210"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>
    <Style TargetType="grid:FilteringControl" BasedOn="{StaticResource FilteringControlStyle}"/>
    <DataTemplate x:Key="FilterOperatorItemTemplate">
        <TextBlock Text="{Binding Converter={StaticResource FilterOperatorConverter}}"/>
    </DataTemplate>
    <Style x:Key="FieldFilterDropDownButtonStyle" TargetType="telerik:RadDropDownButton">
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid>
                        <ContentPresenter x:Name="Content"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                Content="{TemplateBinding Content}"
                                Margin="{TemplateBinding Padding}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        <Popup x:Name="DropDownPopup">
                            <ContentPresenter x:Name="DropDownPopupContent"
                                    ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                    Content="{TemplateBinding DropDownContent}"
                                    DataContext="{TemplateBinding DataContext}"
                                    HorizontalAlignment="Stretch"
                                    VerticalAlignment="Stretch"/>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="FieldFilterControlTemplate" TargetType="grid:FieldFilterControl">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0 2 0 1">
            <Grid x:Name="PART_MainGrid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <ContentControl x:Name="PART_FilterEditorContentControl"
                        Margin="3 0 3 1"
                        IsEnabled="{Binding EditorIsEnabled}"
                        HorizontalContentAlignment="Stretch"
                        VerticalContentAlignment="Stretch"/>
                <telerik:RadDropDownButton x:Name="PART_DropDownButton" Grid.Column="1" Style="{StaticResource FieldFilterDropDownButtonStyle}" KeepOpen="False" DropDownIndicatorVisibility="Collapsed">
                    <Border Cursor="Hand" Background="Transparent" Padding="2 0 5 0">
                        <Grid Width="12" Height="11" Margin="2">
                            <TextBlock
                                    Text="{StaticResource GlyphFilterSmall}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Foreground="{TemplateBinding Foreground}"/>
                            <TextBlock
                                    Text="{StaticResource GlyphFilterSmall}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                                    Visibility="{Binding FunnelFillVisibility}"/>
                        </Grid>
                    </Border>
                    <telerik:RadDropDownButton.DropDownContent>
                        <ListBox x:Name="PART_FilterOperatorsListBox" ItemsSource="{Binding AvailableOperatorViewModels}" SelectedItem="{Binding SelectedOperatorViewModel, Mode=TwoWay}"/>
                    </telerik:RadDropDownButton.DropDownContent>
                </telerik:RadDropDownButton>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="FieldFilterControlStyle" TargetType="grid:FieldFilterControl">
        <Setter Property="Template" Value="{StaticResource FieldFilterControlTemplate}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 1"/>
        <Setter Property="MinHeight" Value="29"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="telerik:TouchManager.TouchMode" Value="None"/>
    </Style>
    <Style TargetType="grid:FieldFilterControl" BasedOn="{StaticResource FieldFilterControlStyle}"/>
    <ControlTemplate x:Key="FrozenColumnsSplitterTemplate" TargetType="grid:FrozenColumnsSplitter">
        <Grid Background="Transparent">
            <Border Background="{TemplateBinding Background}" Width="5" HorizontalAlignment="Left"/>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="Left"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="FrozenColumnsSplitterStyle" TargetType="grid:FrozenColumnsSplitter">
        <Setter Property="Template" Value="{StaticResource FrozenColumnsSplitterTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
        <Setter Property="BorderThickness" Value="3 0 0 0"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:FrozenColumnsSplitter" BasedOn="{StaticResource FrozenColumnsSplitterStyle}"/>
    <ControlTemplate x:Key="GridViewAggregateResultCellTemplate" TargetType="grid:GridViewAggregateResultCell">
        <StackPanel
                Orientation="Horizontal"
                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                Margin="{TemplateBinding Padding}"
                Background="{TemplateBinding Background}">
            <TextBlock Margin="4 0 0 0" TextAlignment="Right" VerticalAlignment="Center" Text="{Binding Caption}"/>
            <TextBlock Margin="4 0 0 0" TextAlignment="Right" VerticalAlignment="Center" Text="{Binding FormattedValue}"/>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="GridViewAggregateResultCellStyle" TargetType="grid:GridViewAggregateResultCell">
        <Setter Property="Template" Value="{StaticResource GridViewAggregateResultCellTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
    </Style>
    <Style TargetType="grid:GridViewAggregateResultCell" BasedOn="{StaticResource GridViewAggregateResultCellStyle}"/>
    <Style x:Key="FocusVisualStyle">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle StrokeThickness="1" Stroke="{telerik1:Office2016Resource ResourceKey=AccentBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="GridViewCellTemplate" TargetType="grid:GridViewCell">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="HighlightStates">
                    <VisualState x:Name="NotHighlighted"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="PART_CellBorder" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <SolidColorBrush Color="#2BFFE00B"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="PART_CellBorder"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
                    BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}"
                    Margin="0 0 0 1"/>
            <Border x:Name="Background_Over"
                    Background="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}"
                    BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
                    BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}"
                    Visibility="Collapsed"/>
            <Border x:Name="Background_Invalid_Unfocused" Visibility="Collapsed" BorderThickness="1" BorderBrush="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"/>
            <Border x:Name="Background_Selected"
                    Background="{telerik1:Office2016Resource ResourceKey=SelectedBrush}"
                    BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
                    BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}"
                    Margin="0 0 0 1"
                    Visibility="Collapsed"/>
            <Border x:Name="Background_Current"
                    BorderThickness="1"
                    Background="{x:Null}"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentBrush}"
                    Margin="0 0 1 1"
                    Visibility="Collapsed"/>
            <Border x:Name="Background_Invalid"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                    Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                    BorderThickness="1"
                    Margin="-1 0 0 0"
                    Visibility="Collapsed">
                <ToolTipService.ToolTip>
                    <ToolTip x:Name="validationTooltip" Placement="Right" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                </ToolTipService.ToolTip>
            </Border>
            <ContentControl x:Name="PART_ContentPresenter"
                    Margin="{TemplateBinding Padding}"
                    Foreground="{Binding Foreground,RelativeSource={RelativeSource AncestorType=grid:DataCellsPresenter}}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalContentAlignment="Stretch"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalContentAlignment="Stretch"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    TextBlock.FontSize="{TemplateBinding FontSize}"
                    TextBlock.FontFamily="{TemplateBinding FontFamily}"
                    IsTabStop="{TemplateBinding IsTabStop}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="PART_ContentPresenter" Property="Opacity" Value="{telerik1:Office2016Resource ResourceKey=DisabledOpacity}"/>
                <Setter TargetName="Background_Current" Property="Opacity" Value="{telerik1:Office2016Resource ResourceKey=DisabledOpacity}"/>
            </Trigger>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter Property="Padding" Value="0"/>
                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="ParentRowValid" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid_Unfocused" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Selected" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Current" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <Trigger Property="IsValid" Value="False">
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewCellStyle" TargetType="grid:GridViewCell">
        <Setter Property="Template" Value="{StaticResource GridViewCellTemplate}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 0 3 0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisualStyle}"/>
    </Style>
    <Style TargetType="grid:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}"/>
    <Style x:Key="GridViewMergedCell_FocusVisualStyle">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border BorderThickness="2" BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="GridViewMergedCellTemplate" TargetType="grid:GridViewMergedCell">
        <Grid>
            <Border x:Name="PART_MergedCellBorder"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Margin="0 0 1 1"/>
            <Border x:Name="Background_Over"
                    Background="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    Visibility="Collapsed"
                    Margin="0 0 1 1"/>
            <Border x:Name="Background_Selected"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    Background="{telerik1:Office2016Resource ResourceKey=SelectedBrush}"
                    Visibility="Collapsed"
                    Margin="0 0 1 1"/>
            <Border x:Name="Background_Edited"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    BorderThickness="1"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                    Background="Transparent"
                    IsHitTestVisible="False"
                    Visibility="Collapsed"/>
            <Border x:Name="Background_Current"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    BorderThickness="1"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentBrush}"
                    IsHitTestVisible="False"
                    Visibility="Collapsed"/>
            <ContentPresenter x:Name="PART_ContentPresenter"
                    TextBlock.Foreground="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"
                    Margin="{TemplateBinding Padding}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Selected" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter TargetName="PART_MergedCellBorder" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="PART_ContentPresenter" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="Background_Selected" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="Background_Edited" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="PART_ContentPresenter" Property="Opacity" Value="{telerik1:Office2016Resource ResourceKey=DisabledOpacity}"/>
            </Trigger>
            <Trigger Property="IsCurrent" Value="True">
                <Setter TargetName="Background_Current" Property="Visibility" Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewMergedCellStyle" TargetType="grid:GridViewMergedCell">
        <Setter Property="Template" Value="{StaticResource GridViewMergedCellTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Padding" Value="5 0"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{StaticResource GridViewMergedCell_FocusVisualStyle}"/>
    </Style>
    <Style TargetType="grid:GridViewMergedCell" BasedOn="{StaticResource GridViewMergedCellStyle}"/>
    <ControlTemplate x:Key="GridViewColumnGroupRowTemplate" TargetType="grid:GridViewColumnGroupRow">
        <Border Background="{TemplateBinding Background}">
            <grid:SelectiveScrollingGrid>
                <grid:DataCellsPresenter x:Name="PART_ColumnGroupsDataCellsPresenter">
                    <grid:DataCellsPresenter.Template>
                        <ControlTemplate TargetType="grid:DataCellsPresenter">
                            <ItemsPresenter/>
                        </ControlTemplate>
                    </grid:DataCellsPresenter.Template>
                    <grid:DataCellsPresenter.ItemsPanel>
                        <ItemsPanelTemplate>
                            <grid:CommonColumnHeadersPanel/>
                        </ItemsPanelTemplate>
                    </grid:DataCellsPresenter.ItemsPanel>
                </grid:DataCellsPresenter>
            </grid:SelectiveScrollingGrid>
        </Border>
    </ControlTemplate>
    <Style x:Key="GridViewColumnGroupRowStyle" TargetType="grid:GridViewColumnGroupRow">
        <Setter Property="Template" Value="{StaticResource GridViewColumnGroupRowTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="MinHeight" Value="34"/>
    </Style>
    <Style TargetType="grid:GridViewColumnGroupRow" BasedOn="{StaticResource GridViewColumnGroupRowStyle}"/>
    <Style x:Key="ColumnHeaderGripperStyle" TargetType="Thumb">
        <Setter Property="Width" Value="6"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Border
                            Padding="{TemplateBinding Padding}"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="GridViewHeaderCellTemplate" TargetType="grid:GridViewHeaderCell">
        <Grid x:Name="PART_OuterGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="2*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid x:Name="PART_HeaderCellGrid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="4"/>
                </Grid.ColumnDefinitions>
                <Border x:Name="GridViewHeaderCell"
                        Grid.ColumnSpan="5"
                        MinHeight="{TemplateBinding MinHeight}"
                        Background="{TemplateBinding Background}"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                    <Grid>
                        <Border x:Name="GridViewHeaderCell_Over" Background="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}" Visibility="Collapsed"/>
                        <Border x:Name="GridViewHeaderCell_Selected" Background="{telerik1:Office2016Resource ResourceKey=AccentPressedBrush}" Visibility="Collapsed"/>
                    </Grid>
                </Border>
                <ContentControl x:Name="ContentPresenter"
                        Grid.Column="0"
                        Foreground="{TemplateBinding Foreground}"
                        Margin="{TemplateBinding Padding}"
                        IsTabStop="{TemplateBinding IsTabStop}"
                        Content="{TemplateBinding Content}"
                        ContentTemplate="{TemplateBinding ContentTemplate}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                <ContentControl
                        Grid.Column="1"
                        Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                        VerticalAlignment="Center"
                        Margin="0 0 2 4"
                        Content="{Binding SortingIndex, Converter={StaticResource SortingIndexConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                        Visibility="{Binding SortingIndex, Converter={StaticResource SortingIndexToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                        IsTabStop="{TemplateBinding IsTabStop}"/>
                <TextBlock x:Name="PART_SortIndicator"
                        Grid.Column="2"
                        Text="{StaticResource GlyphArrow60Up}"
                        FontFamily="{StaticResource TelerikWebUI}"
                        Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                        FontSize="16"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Center"
                        Visibility="Collapsed"/>
                <grid:FilteringDropDown Name="PART_DistinctFilterControl" Grid.Column="3" VerticalAlignment="Center" Visibility="{TemplateBinding FilteringUIVisibility}"/>
                <Thumb x:Name="PART_LeftHeaderGripper"
                        Grid.ColumnSpan="5"
                        HorizontalAlignment="Left"
                        IsTabStop="{TemplateBinding IsTabStop}"
                        Style="{StaticResource ColumnHeaderGripperStyle}"/>
                <Thumb x:Name="PART_RightHeaderGripper"
                        Grid.ColumnSpan="5"
                        HorizontalAlignment="Right"
                        IsTabStop="{TemplateBinding IsTabStop}"
                        Style="{StaticResource ColumnHeaderGripperStyle}"/>
            </Grid>
            <grid:FieldFilterControl x:Name="PART_FieldFilterControl" MinHeight="31" Visibility="{TemplateBinding FieldFilterControlVisibility}" Grid.Row="1"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="SortingState" Value="None">
                <Setter TargetName="PART_SortIndicator" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="PART_DistinctFilterControl" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="GridViewHeaderCell_Over" Property="Visibility" Value="Visible"/>
                <Setter TargetName="ContentPresenter" Property="TextBlock.Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                <Setter TargetName="PART_SortIndicator" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                <Setter TargetName="PART_DistinctFilterControl" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
            <Trigger Property="SortingState" Value="Ascending">
                <Setter TargetName="GridViewHeaderCell_Selected" Property="Visibility" Value="Visible"/>
                <Setter TargetName="PART_SortIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="PART_SortIndicator" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                <Setter TargetName="ContentPresenter" Property="TextBlock.Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                <Setter TargetName="PART_DistinctFilterControl" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
            <Trigger Property="SortingState" Value="Descending">
                <Setter TargetName="PART_SortIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="PART_SortIndicator" Property="Text" Value="{StaticResource GlyphArrow60Down}"/>
                <Setter TargetName="PART_SortIndicator" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                <Setter TargetName="PART_DistinctFilterControl" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                <Setter TargetName="GridViewHeaderCell_Selected" Property="Visibility" Value="Visible"/>
                <Setter TargetName="ContentPresenter" Property="TextBlock.Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewHeaderCellStyle" TargetType="grid:GridViewHeaderCell">
        <Setter Property="Template" Value="{StaticResource GridViewHeaderCellTemplate}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 1"/>
        <Setter Property="MinHeight" Value="29"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="DropIndicatorBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="DropIndicatorThickness" Value="4"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewHeaderCell" BasedOn="{StaticResource GridViewHeaderCellStyle}"/>
    <ControlTemplate x:Key="GridViewFooterCellTemplate" TargetType="grid:GridViewFooterCell">
        <Border x:Name="PART_FooterCellBorder"
                Background="{TemplateBinding Background}"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}">
            <ContentPresenter
                    Margin="{TemplateBinding Padding}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Border>
    </ControlTemplate>
    <Style x:Key="GridViewFooterCellStyle" TargetType="grid:GridViewFooterCell">
        <Setter Property="Template" Value="{StaticResource GridViewFooterCellTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 0"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewFooterCell" BasedOn="{StaticResource GridViewFooterCellStyle}"/>
    <ControlTemplate x:Key="GridViewGroupFooterCellTemplate" TargetType="grid:GridViewGroupFooterCell">
        <Border x:Name="PART_FooterCellBorder"
                Background="{TemplateBinding Background}"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}">
            <ContentPresenter
                    Margin="{TemplateBinding Padding}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Border>
    </ControlTemplate>
    <Style x:Key="GridViewGroupFooterCellStyle" TargetType="grid:GridViewGroupFooterCell">
        <Setter Property="Template" Value="{StaticResource GridViewGroupFooterCellTemplate}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 0"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewGroupFooterCell" BasedOn="{StaticResource GridViewGroupFooterCellStyle}"/>
    <Style x:Key="GridViewIndentCellStyle" TargetType="grid:GridViewIndentCell">
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 0"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="grid:GridViewIndentCell">
                    <Border
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Width="29"
                            Background="{TemplateBinding Background}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            Padding="{TemplateBinding Padding}"
                            BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="grid:GridViewIndentCell" BasedOn="{StaticResource GridViewIndentCellStyle}"/>
    <Style x:Key="GridViewFooterIndentCellStyle" TargetType="grid:GridViewFooterIndentCell">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="grid:GridViewFooterIndentCell">
                    <Border
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Width" Value="29"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 1 1 1"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="grid:GridViewFooterIndentCell" BasedOn="{StaticResource GridViewFooterIndentCellStyle}"/>
    <Style x:Key="GridViewGroupFooterIndentCellStyle" TargetType="grid:GridViewGroupFooterIndentCell">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="grid:GridViewGroupFooterIndentCell">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Padding="{TemplateBinding Padding}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Width" Value="29"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 1"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="grid:GridViewGroupFooterIndentCell" BasedOn="{StaticResource GridViewGroupFooterIndentCellStyle}"/>
    <Style x:Key="GridViewHeaderIndentCellStyle" TargetType="grid:GridViewHeaderIndentCell">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="grid:GridViewHeaderIndentCell">
                    <Border x:Name="OuterBorder"
                            Width="29"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            Padding="{TemplateBinding Padding}"
                            Background="{TemplateBinding Background}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness" Value="0 0 1 1"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewHeaderIndentCell" BasedOn="{StaticResource GridViewHeaderIndentCellStyle}"/>
    <ControlTemplate x:Key="GridViewRowTemplate" TargetType="grid:GridViewRow">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup>
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="SelectedUnfocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected_Unfocused" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <grid:SelectiveScrollingGrid x:Name="grid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Border x:Name="Background_Main"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Background="{TemplateBinding Background}"
                        Margin="{TemplateBinding Margin}"
                        Padding="{TemplateBinding Padding}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                        BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"
                        BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
                <grid:DetailsPresenter x:Name="PART_DetailsPresenter"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Grid.Row="1"
                        Margin="0 -1 0 0"
                        BorderThickness="0"
                        DetailsProvider="{TemplateBinding DetailsProvider}"/>
                <ContentPresenter x:Name="PART_HierarchyChildPresenter"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Grid.Row="2"
                        grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                        Margin="0 -1 0 0"
                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                <Border x:Name="Background_Invalid"
                        Grid.Column="1"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                        Opacity="0.3"
                        Visibility="Collapsed"/>
                <Border
                        Grid.RowSpan="3"
                        Width="29"
                        Background="{TemplateBinding Background}"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
                <Border x:Name="PART_RowBorder"
                        Grid.ColumnSpan="4"
                        Grid.RowSpan="3"
                        BorderBrush="{TemplateBinding HorizontalGridLinesBrush}"
                        BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"/>
                <Border x:Name="Background_Over" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected_Unfocused"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ComplementaryBrush}"
                        Visibility="Collapsed"
                        Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=SelectedBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <Border x:Name="PART_IndicatorPresenter"
                        Grid.RowSpan="3"
                        Width="29"
                        VerticalAlignment="Stretch"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="0 0 1 1"
                        Background="Transparent"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                    <Grid>
                        <Grid x:Name="GridIndicatorPresenter">
                            <Grid x:Name="NavigatorIndicator" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                                <TextBlock
                                        Text="{StaticResource GlyphArrowChevronRight}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                            </Grid>
                            <Grid x:Name="EditIndicator" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                                <TextBlock
                                        Text="{StaticResource GlyphComment}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                            </Grid>
                            <Grid x:Name="InvalidEditableIndicator" Visibility="Collapsed" Background="Transparent">
                                <TextBlock
                                        Text="{StaticResource GlyphComment}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                                <ToolTipService.ToolTip>
                                    <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                                </ToolTipService.ToolTip>
                            </Grid>
                            <Grid x:Name="ErrorIndicator" HorizontalAlignment="Center" Width="16" Height="16" VerticalAlignment="Center" Visibility="Collapsed">
                                <TextBlock
                                        Text="{StaticResource GlyphWarning}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                                <ToolTipService.ToolTip>
                                    <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                                </ToolTipService.ToolTip>
                            </Grid>
                            <Border x:Name="PART_RowResizer" Background="Transparent" Height="4" VerticalAlignment="Bottom" Cursor="SizeNS"/>
                        </Grid>
                        <grid:GridViewPinButton x:Name="PinnedRowPresenter" Visibility="Collapsed"/>
                    </Grid>
                </Border>
                <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="3"/>
                <controls:GridViewToggleButton x:Name="PART_HierarchyExpandButton"
                        Grid.Column="2"
                        Width="29"
                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                        Opacity="{Binding IsExpandable, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToOpacityConverter}}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                        IsHitTestVisible="{TemplateBinding IsExpandable}"
                        Visibility="{Binding HasHierarchy, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                        IsTabStop="{TemplateBinding IsTabStop}"/>
                <grid:IndentPresenter x:Name="PART_IndentPresenter"
                        Grid.Column="1"
                        Grid.RowSpan="4"
                        IndentLevel="{TemplateBinding IndentLevel}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            </grid:SelectiveScrollingGrid>
        </Border>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="IsValid" Value="True"/>
                    <Condition Property="IsSelected" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="ErrorIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Selected" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="InvalidEditableIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Selected" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter TargetName="EditIndicator" Property="Visibility" Value="Visible"/>
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsEnabled, ElementName=PinnedRowPresenter}" Value="True"/>
                    <Condition Binding="{Binding IsMouseOver, ElementName=PART_IndicatorPresenter}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="GridIndicatorPresenter" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="PinnedRowPresenter" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsPinned, RelativeSource={RelativeSource Self}}" Value="True"/>
                    <Condition Binding="{Binding IsEnabled, ElementName=PinnedRowPresenter}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="GridIndicatorPresenter" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="PinnedRowPresenter" Property="Visibility" Value="Visible"/>
            </MultiDataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewRowStyle" TargetType="grid:GridViewRow">
        <Setter Property="Template" Value="{StaticResource GridViewRowTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="AllowDrop" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewRow" BasedOn="{StaticResource GridViewRowStyle}"/>
    <ControlTemplate x:Key="GridViewNewRow_ValidationToolTipTemplate" TargetType="ToolTip">
        <Grid x:Name="Root" Margin="2 0" Opacity="0" Background="Transparent" RenderTransformOrigin="0,0">
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border MinHeight="20" Grid.Column="1" Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}">
                <ItemsControl ItemsSource="{TemplateBinding Content}">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <TextBlock
                                    MinHeight="20"
                                    Margin="4"
                                    MaxWidth="250"
                                    FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                                    FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                    VerticalAlignment="Center"
                                    Text="{Binding}"
                                    TextWrapping="Wrap"/>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel/>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
            </Border>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="GridViewNewRowTemplate" TargetType="grid:GridViewNewRow">
        <grid:SelectiveScrollingGrid x:Name="grid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Border x:Name="SelectionBackground"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
            <Border
                    Grid.Column="2"
                    Width="29"
                    BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
                    BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                    Opacity="{Binding IsExpandable, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToOpacityConverter}}"
                    IsHitTestVisible="{Binding IsExpandable, RelativeSource={RelativeSource TemplatedParent}}"
                    Visibility="{Binding HasHierarchy, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            <Border x:Name="PART_AlwaysVisibleNewRow"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    Margin="0"
                    Background="{TemplateBinding Background}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True">
                <TextBlock
                        Foreground="{TemplateBinding Foreground}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        FontSize="{TemplateBinding FontSize}"
                        FontFamily="{TemplateBinding FontFamily}"
                        Margin="{TemplateBinding Padding}"
                        telerik:LocalizationManager.ResourceKey="GridViewAlwaysVisibleNewRow"/>
            </Border>
            <Border
                    Grid.RowSpan="3"
                    Width="29"
                    Background="{TemplateBinding Background}"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="PART_RowBorder"
                    Grid.Column="1"
                    Grid.RowSpan="4"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="0 0 0 1"
                    Grid.ColumnSpan="4"
                    VerticalAlignment="Bottom"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"/>
            <grid:DetailsPresenter x:Name="PART_DetailsPresenter" Grid.Column="3" Grid.Row="1" DetailsProvider="{TemplateBinding DetailsProvider}"/>
            <Border x:Name="ValidationLayer" Grid.ColumnSpan="4" Background="{TemplateBinding Background}" Visibility="Collapsed"/>
            <Border x:Name="PART_IndicatorPresenter"
                    Grid.RowSpan="2"
                    Width="29"
                    Background="Transparent"
                    BorderThickness="0 0 1 1"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    VerticalAlignment="Stretch"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                <Grid>
                    <Grid x:Name="NewRowIndicator" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16">
                        <TextBlock
                                Text="{StaticResource GlyphTableLightDialog}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{TemplateBinding Foreground}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>
                    </Grid>
                    <Grid x:Name="EditIndicator" HorizontalAlignment="Center" Width="16" VerticalAlignment="Center" Visibility="Collapsed">
                        <TextBlock
                                Text="{StaticResource GlyphComment}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>
                    </Grid>
                    <Grid x:Name="InvalidEditableIndicator" Visibility="Collapsed" Background="Transparent">
                        <Grid HorizontalAlignment="Center" Width="16" Height="16" VerticalAlignment="Center">
                            <TextBlock
                                    Text="{StaticResource GlyphComment}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <ToolTipService.ToolTip>
                            <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewNewRow_ValidationToolTipTemplate}"/>
                        </ToolTipService.ToolTip>
                    </Grid>
                    <Grid x:Name="ErrorIndicator" HorizontalAlignment="Center" Width="16" Height="16" VerticalAlignment="Center" Visibility="Collapsed">
                        <TextBlock
                                Text="{StaticResource GlyphWarning}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>
                        <ToolTipService.ToolTip>
                            <ToolTip x:Name="validationTooltip" Template="{StaticResource GridViewNewRow_ValidationToolTipTemplate}" Placement="Bottom" Content="{TemplateBinding Errors}"/>
                        </ToolTipService.ToolTip>
                    </Grid>
                </Grid>
            </Border>
            <Rectangle x:Name="Background_Invalid"
                    Grid.ColumnSpan="4"
                    Stroke="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                    StrokeThickness="1"
                    Visibility="Collapsed"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"/>
            <grid:DataCellsPresenter Grid.Column="3" Visibility="Collapsed" x:Name="PART_DataCellsPresenter"/>
            <grid:IndentPresenter x:Name="PART_IndentPresenter"
                    Grid.Column="1"
                    Grid.RowSpan="2"
                    IndentLevel="{TemplateBinding IndentLevel}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
        </grid:SelectiveScrollingGrid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsValid" Value="False">
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="NewRowIndicator" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="EditIndicator" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="ErrorIndicator" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter TargetName="NewRowIndicator" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="EditIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="PART_DataCellsPresenter" Property="Visibility" Value="Visible"/>
                <Setter TargetName="PART_AlwaysVisibleNewRow" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="PART_RowBorder" Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
            </Trigger>
            <Trigger Property="IsInEditMode" Value="False">
                <Setter TargetName="PART_AlwaysVisibleNewRow" Property="Visibility" Value="Visible"/>
                <Setter TargetName="PART_DataCellsPresenter" Property="Visibility" Value="Collapsed"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewNewRowStyle" TargetType="grid:GridViewNewRow">
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Template" Value="{StaticResource GridViewNewRowTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 1 0 0"/>
        <Setter Property="MinHeight" Value="29"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewNewRow" BasedOn="{StaticResource GridViewNewRowStyle}"/>
    <DataTemplate x:Key="GroupHeaderTemplate">
        <ContentControl Content="{Binding Header}" Foreground="{telerik1:Office2016Resource ResourceKey=MarkerBrush}" FontWeight="Bold"/>
    </DataTemplate>
    <ControlTemplate x:Key="GridViewGroupToggleButtonTemplate" TargetType="ToggleButton">
        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <ContentPresenter/>
        </Border>
    </ControlTemplate>
    <Style x:Key="GridViewGroupToggleButtonStyle" TargetType="ToggleButton">
        <Setter Property="Template" Value="{StaticResource GridViewGroupToggleButtonTemplate}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="8 0 0 0"/>
    </Style>
    <ControlTemplate x:Key="GridViewGroupRowTemplate" TargetType="grid:GridViewGroupRow">
        <Grid x:Name="PART_GroupExpanderGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition MinHeight="{TemplateBinding MinHeight}"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Border x:Name="ToggleButtonBorder"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    MinHeight="{TemplateBinding MinHeight}"
                    Background="{TemplateBinding Background}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="29"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Border
                            Grid.Column="2"
                            grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                            Visibility="{Binding ShowHeaderAggregates, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <grid:AggregateResultsList ItemsSource="{TemplateBinding AggregateResults}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                            <grid:AggregateResultsList.ItemTemplate>
                                <DataTemplate>
                                    <grid:GridViewAggregateResultCell AggregateResult="{Binding}"/>
                                </DataTemplate>
                            </grid:AggregateResultsList.ItemTemplate>
                            <grid:AggregateResultsList.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal"/>
                                </ItemsPanelTemplate>
                            </grid:AggregateResultsList.ItemsPanel>
                        </grid:AggregateResultsList>
                    </Border>
                    <Border x:Name="IconOuterBorder"
                            BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}"
                            BorderThickness="0 0 0 1"
                            Background="Transparent"
                            HorizontalAlignment="Stretch"
                            grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                        <TextBlock x:Name="ExpanderButton"
                                Text="{StaticResource GlyphArrow60Up}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{TemplateBinding Foreground}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                RenderTransformOrigin="0.5,0.5">
                            <TextBlock.RenderTransform>
                                <RotateTransform Angle="180"/>
                            </TextBlock.RenderTransform>
                        </TextBlock>
                    </Border>
                    <ToggleButton x:Name="HeaderButton"
                            Grid.Column="0"
                            Grid.ColumnSpan="3"
                            Background="{TemplateBinding Background}"
                            grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                            IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                            Opacity="0"
                            IsTabStop="{TemplateBinding IsTabStop}"/>
                    <ToggleButton
                            Grid.Column="1"
                            Padding="0 0 10 0"
                            grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                            Background="Transparent"
                            Style="{StaticResource GridViewGroupToggleButtonStyle}"
                            BorderBrush="{x:Null}"
                            Foreground="{TemplateBinding Foreground}"
                            IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                            IsTabStop="{TemplateBinding IsTabStop}">
                        <ContentPresenter
                                Grid.Column="1"
                                Margin="0 0 10 0"
                                Content="{TemplateBinding GroupViewModel}"
                                VerticalAlignment="Center"
                                ContentTemplate="{TemplateBinding GroupHeaderTemplate}"
                                TextBlock.FontSize="{TemplateBinding FontSize}"
                                TextBlock.FontFamily="{TemplateBinding FontFamily}"/>
                    </ToggleButton>
                    <Border
                            grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                            Grid.Column="1"
                            Grid.ColumnSpan="2"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Margin="-1 0 0 0"
                            BorderThickness="0 0 0 1"/>
                </Grid>
            </Border>
            <Border x:Name="PART_IndicatorPresenter"
                    Width="29"
                    Background="Transparent"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="0 0 1 1"
                    VerticalAlignment="Stretch"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:IndentPresenter
                    Grid.Column="1"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                    IndentLevel="{TemplateBinding Level}"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="0 0 0 1"/>
            <Border Grid.Column="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0 1 0 0" Margin="0 -1 0 0" VerticalAlignment="Top"/>
            <Border x:Name="Content" Grid.Row="1" Grid.ColumnSpan="3" Visibility="Collapsed">
                <StackPanel>
                    <grid:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
                    <grid:GridViewGroupFooterRow x:Name="Footer"/>
                </StackPanel>
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsExpanded" Value="True">
                <Setter Property="Visibility" TargetName="Content" Value="Visible"/>
                <Setter TargetName="IconOuterBorder" Property="BorderThickness" Value="0"/>
                <Trigger.EnterActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)">
                                <EasingDoubleKeyFrame KeyTime="0" Value="180"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewGroupRowStyle" TargetType="grid:GridViewGroupRow">
        <Setter Property="Template" Value="{StaticResource GridViewGroupRowTemplate}"/>
        <Setter Property="GroupHeaderTemplate" Value="{StaticResource GroupHeaderTemplate}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="MinHeight" Value="33"/>
        <Setter Property="Padding" Value="9 0 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="ClipToBounds" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewGroupRow" BasedOn="{StaticResource GridViewGroupRowStyle}"/>
    <DataTemplate x:Key="GroupHeaderRowHeaderTemplate">
        <ContentControl Content="{Binding Header}" Foreground="{telerik1:Office2016Resource ResourceKey=MarkerBrush}" FontWeight="Bold"/>
    </DataTemplate>
    <ControlTemplate x:Key="GroupHeaderRowToggleButtonTemplate" TargetType="ToggleButton">
        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <ContentPresenter/>
        </Border>
    </ControlTemplate>
    <Style x:Key="GroupHeaderRowToggleButtonStyle" TargetType="ToggleButton">
        <Setter Property="Template" Value="{StaticResource GroupHeaderRowToggleButtonTemplate}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="8 0 0 0"/>
    </Style>
    <ControlTemplate x:Key="GroupHeaderRowTemplate" TargetType="grid:GroupHeaderRow">
        <Grid x:Name="PART_GroupExpanderGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition MinHeight="{TemplateBinding MinHeight}"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Border x:Name="ToggleButtonBorder"
                    Grid.Column="2"
                    Grid.ColumnSpan="2"
                    MinHeight="{TemplateBinding MinHeight}"
                    Background="{TemplateBinding Background}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="29"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Border
                            Grid.Column="2"
                            grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                            Visibility="{Binding ShowHeaderAggregates, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <grid:AggregateResultsList ItemsSource="{TemplateBinding AggregateResults}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                            <grid:AggregateResultsList.ItemTemplate>
                                <DataTemplate>
                                    <grid:GridViewAggregateResultCell AggregateResult="{Binding}"/>
                                </DataTemplate>
                            </grid:AggregateResultsList.ItemTemplate>
                            <grid:AggregateResultsList.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal"/>
                                </ItemsPanelTemplate>
                            </grid:AggregateResultsList.ItemsPanel>
                        </grid:AggregateResultsList>
                    </Border>
                    <Border x:Name="IconOuterBorder"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="0 0 0 1"
                            Background="Transparent"
                            HorizontalAlignment="Stretch"
                            grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                        <TextBlock x:Name="ExpanderButton"
                                Text="{StaticResource GlyphArrow60Up}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{TemplateBinding Foreground}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                RenderTransformOrigin="0.5,0.5">
                            <TextBlock.RenderTransform>
                                <RotateTransform Angle="180"/>
                            </TextBlock.RenderTransform>
                        </TextBlock>
                    </Border>
                    <ToggleButton x:Name="HeaderButton"
                            Grid.Column="0"
                            Grid.ColumnSpan="3"
                            Background="{TemplateBinding Background}"
                            grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                            IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                            Opacity="0"
                            IsTabStop="{TemplateBinding IsTabStop}"/>
                    <ToggleButton
                            Grid.Column="1"
                            Padding="0 0 10 0"
                            grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                            Background="Transparent"
                            Style="{StaticResource GroupHeaderRowToggleButtonStyle}"
                            BorderBrush="{x:Null}"
                            Foreground="{TemplateBinding Foreground}"
                            IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                            IsTabStop="{TemplateBinding IsTabStop}">
                        <ContentPresenter
                                Grid.Column="1"
                                Margin="0 0 10 0"
                                Content="{TemplateBinding GroupViewModel}"
                                VerticalAlignment="Center"
                                ContentTemplate="{TemplateBinding GroupHeaderTemplate}"
                                TextBlock.FontSize="{TemplateBinding FontSize}"
                                TextBlock.FontFamily="{TemplateBinding FontFamily}"/>
                    </ToggleButton>
                    <Border
                            grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"
                            Grid.Column="1"
                            Grid.ColumnSpan="2"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Margin="-1 0 0 0"
                            BorderThickness="0 0 0 1"/>
                </Grid>
            </Border>
            <Border x:Name="PART_IndicatorPresenter"
                    Width="29"
                    Background="Transparent"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="0 0 1 1"
                    VerticalAlignment="Stretch"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:IndentPresenter
                    Grid.Column="1"
                    Background="{TemplateBinding Background}"
                    IndentLevel="{TemplateBinding Level}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border Grid.Column="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0 1 0 0" Margin="0 -1 0 0" VerticalAlignment="Top"/>
            <grid:GridViewGroupFooterRow x:Name="FooterRowForHeaderAggregates"
                    Grid.Row="1"
                    Grid.ColumnSpan="3"
                    Visibility="{Binding ShowGroupHeaderColumnAggregates, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsExpanded" Value="True">
                <Setter TargetName="IconOuterBorder" Property="BorderThickness" Value="0"/>
                <Trigger.EnterActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)">
                                <EasingDoubleKeyFrame KeyTime="0" Value="180"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GroupHeaderRowStyle" TargetType="grid:GroupHeaderRow">
        <Setter Property="Template" Value="{StaticResource GroupHeaderRowTemplate}"/>
        <Setter Property="GroupHeaderTemplate" Value="{StaticResource GroupHeaderRowHeaderTemplate}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="9 0 0 0"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="MinHeight" Value="29"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="ClipToBounds" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GroupHeaderRow" BasedOn="{StaticResource GroupHeaderRowStyle}"/>
    <DataTemplate x:Key="GridViewHeaderIndentCellDataTemplate">
        <grid:GridViewHeaderIndentCell/>
    </DataTemplate>
    <ControlTemplate x:Key="GridViewHeaderRowTemplate" TargetType="grid:GridViewHeaderRow">
        <grid:SelectiveScrollingGrid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Border x:Name="PART_GridViewHeaderRowBorder"
                    Grid.ColumnSpan="4"
                    Grid.RowSpan="2"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Padding="{TemplateBinding Padding}"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"/>
            <Border x:Name="CommonHeaderIndent"
                    Grid.ColumnSpan="2"
                    BorderThickness="0 0 1 0"
                    Margin="-1 0 0 0"
                    Visibility="{Binding Visibility, ElementName=PART_CommonHeaderPresenter}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"/>
            <grid:CommonHeaderPresenter x:Name="PART_CommonHeaderPresenter" Grid.Column="3"/>
            <Border x:Name="PART_IndicatorPresenter"
                    Grid.RowSpan="2"
                    Width="29"
                    BorderThickness="0 0 1 1"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:IndentPresenter x:Name="PART_IndentPresenter"
                    Grid.RowSpan="2"
                    Grid.Column="1"
                    IndentLevel="{TemplateBinding IndentLevel}"
                    ItemTemplate="{StaticResource GridViewHeaderIndentCellDataTemplate}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="PART_HierarchyIndentPresenter"
                    Grid.RowSpan="2"
                    Grid.Column="2"
                    Width="29"
                    BorderThickness="0 0 1 1"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Visibility="{Binding HasHierarchy, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Row="1" Grid.Column="3" MinHeight="{TemplateBinding MinHeight}"/>
        </grid:SelectiveScrollingGrid>
    </ControlTemplate>
    <Style x:Key="GridViewHeaderRowStyle" TargetType="grid:GridViewHeaderRow">
        <Setter Property="Template" Value="{StaticResource GridViewHeaderRowTemplate}"/>
        <Setter Property="MinHeight" Value="33"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1 0 0 1"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="grid:GridViewHeaderRow" BasedOn="{StaticResource GridViewHeaderRowStyle}"/>
    <DataTemplate x:Key="GridViewFooterIndentCellDataTemplate">
        <grid:GridViewFooterIndentCell/>
    </DataTemplate>
    <ControlTemplate x:Key="GridViewFooterRowTemplate" TargetType="grid:GridViewFooterRow">
        <grid:SelectiveScrollingGrid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="PART_FooterRowBorder"
                    Grid.Column="3"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"
                    Padding="{TemplateBinding Padding}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
            <Border x:Name="PART_HierarchyIndent"
                    Grid.Column="2"
                    Width="29"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    BorderThickness="0 1"
                    Visibility="{Binding HasHierarchy, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="PART_IndicatorPresenter"
                    Width="29"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    BorderThickness="0 1 1 1"
                    VerticalAlignment="Stretch"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:IndentPresenter x:Name="PART_IndentPresenter"
                    IndentLevel="{TemplateBinding IndentLevel}"
                    ItemTemplate="{StaticResource GridViewFooterIndentCellDataTemplate}"
                    Grid.Column="1"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="3"/>
        </grid:SelectiveScrollingGrid>
    </ControlTemplate>
    <Style x:Key="GridViewFooterRowStyle" TargetType="grid:GridViewFooterRow">
        <Setter Property="Template" Value="{StaticResource GridViewFooterRowTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 1 1 1"/>
        <Setter Property="MinHeight" Value="33"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewFooterRow" BasedOn="{StaticResource GridViewFooterRowStyle}"/>
    <DataTemplate x:Key="GridViewGroupFooterIndentCellDataTemplate">
        <grid:GridViewGroupFooterIndentCell/>
    </DataTemplate>
    <ControlTemplate x:Key="GridViewGroupFooterRowTemplate" TargetType="grid:GridViewGroupFooterRow">
        <grid:SelectiveScrollingGrid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="PART_FooterRowBorder"
                    Grid.Column="3"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"
                    Padding="{TemplateBinding Padding}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
            <Border x:Name="PART_HierarchyIndent"
                    Grid.Column="2"
                    Width="29"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    BorderThickness="0 1 0 0"
                    Visibility="{Binding HasHierarchy, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="PART_IndicatorPresenter"
                    Width="29"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    BorderThickness="0 0 1 1"
                    VerticalAlignment="Stretch"
                    Visibility="{TemplateBinding RowIndicatorVisibility}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:IndentPresenter x:Name="PART_IndentPresenter"
                    IndentLevel="{TemplateBinding IndentLevel}"
                    ItemTemplate="{StaticResource GridViewGroupFooterIndentCellDataTemplate}"
                    Grid.Column="1"
                    grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="3"/>
        </grid:SelectiveScrollingGrid>
    </ControlTemplate>
    <Style x:Key="GridViewGroupFooterRowStyle" TargetType="grid:GridViewGroupFooterRow">
        <Setter Property="Template" Value="{StaticResource GridViewGroupFooterRowTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 1"/>
        <Setter Property="MinHeight" Value="33"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewGroupFooterRow" BasedOn="{StaticResource GridViewGroupFooterRowStyle}"/>
    <ControlTemplate x:Key="GridViewCheckBoxTemplate" TargetType="grid:GridViewCheckBox">
        <Grid Width="13" Height="13" HorizontalAlignment="Left" VerticalAlignment="Center">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CheckStates">
                    <VisualState x:Name="Indeterminate">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="IndeterminatePath" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid Background="Transparent">
                <Border
                        BorderBrush="{TemplateBinding BorderBrush}"
                        Background="{TemplateBinding Background}"
                        BorderThickness="{TemplateBinding BorderThickness}"
                        CornerRadius="{telerik1:Office2016Resource ResourceKey=CornerRadius}"/>
                <Border x:Name="IndeterminatePath"
                        Width="9"
                        Height="9"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        Background="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                        Visibility="Collapsed"/>
                <TextBlock x:Name="CheckedPath"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        FontSize="13"
                        Foreground="{TemplateBinding Foreground}"
                        FontFamily="{StaticResource TelerikWebUI}"
                        Text="{StaticResource GlyphCheck}"
                        Opacity="0"
                        Margin="-1 0 0 0"
                        Visibility="Collapsed"/>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsChecked" Value="True">
                <Setter TargetName="CheckedPath" Property="Visibility" Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewCheckBoxStyle" TargetType="grid:GridViewCheckBox">
        <Setter Property="Template" Value="{StaticResource GridViewCheckBoxTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>
    <Style TargetType="grid:GridViewCheckBox" BasedOn="{StaticResource GridViewCheckBoxStyle}"/>
    <ControlTemplate x:Key="GridViewEditorPresenterValidationToolTipTemplate" TargetType="ToolTip">
        <Grid x:Name="Root" Opacity="0" Margin="2 0 0 0" Background="Transparent" RenderTransformOrigin="0,0">
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Border Padding="4 3" Grid.Column="1" MinHeight="20" Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}">
                <TextBlock
                        MaxWidth="250"
                        FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                        FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"
                        Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                        VerticalAlignment="Center"
                        Text="{TemplateBinding Content}"
                        TextWrapping="Wrap"/>
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsOpen" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard x:Name="OpenAnimation">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.2"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard x:Name="CloseAnimation">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="-25" Duration="0:0:0.2"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
                <Setter TargetName="Root" Property="Opacity" Value="1"/>
            </Trigger>
            <Trigger Property="IsOpen" Value="False">
                <Setter TargetName="Root" Property="Opacity" Value="0"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <ControlTemplate x:Key="GridViewEditorPresenterTemplate" TargetType="grid:GridViewEditorPresenter">
        <Grid Background="Transparent">
            <ContentPresenter x:Name="ContentPresenter" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            <Border x:Name="ValidationErrorElement" Visibility="Collapsed" Margin="-2" BorderThickness="1" BorderBrush="{telerik1:Office2016Resource ResourceKey=ValidationBrush}">
                <ToolTipService.ToolTip>
                    <ToolTip x:Name="validationTooltip"
                            VerticalContentAlignment="Center"
                            Placement="Right"
                            Content="{TemplateBinding ErrorMessage}"
                            Template="{StaticResource GridViewEditorPresenterValidationToolTipTemplate}"/>
                </ToolTipService.ToolTip>
                <Grid Background="Transparent" Width="32" HorizontalAlignment="Right" VerticalAlignment="Top">
                    <Path
                            Data="{StaticResource ArrowTopRight8x8}"
                            Fill="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                            Stretch="None"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"/>
                </Grid>
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsContentValid" Value="False">
                <Setter TargetName="ValidationErrorElement" Property="Visibility" Value="Visible"/>
                <Setter Property="Margin" Value="1 0 0 0"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewEditorPresenterStyle" TargetType="grid:GridViewEditorPresenter">
        <Setter Property="Template" Value="{StaticResource GridViewEditorPresenterTemplate}"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="1 1 2 2"/>
    </Style>
    <Style TargetType="grid:GridViewEditorPresenter" BasedOn="{StaticResource GridViewEditorPresenterStyle}"/>
    <ControlTemplate x:Key="GridViewToggleButtonTemplate" TargetType="controls:GridViewToggleButton">
        <Border Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Border
                    Width="18"
                    Height="18"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                <Grid>
                    <TextBlock x:Name="plus"
                            Text="{StaticResource GlyphPlus}"
                            FontFamily="{StaticResource TelerikWebUI}"
                            Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                            FontSize="16"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"/>
                    <TextBlock x:Name="minus"
                            Text="{StaticResource GlyphMinus}"
                            FontFamily="{StaticResource TelerikWebUI}"
                            Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                            FontSize="16"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Opacity="0"/>
                </Grid>
            </Border>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsChecked" Value="True">
                <Setter TargetName="plus" Property="Opacity" Value="0"/>
                <Setter TargetName="minus" Property="Opacity" Value="1"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <ControlTemplate x:Key="GridViewToggleButtonArrowTemplate" TargetType="controls:GridViewToggleButton">
        <Border
                Background="Transparent"
                VerticalAlignment="Stretch"
                HorizontalAlignment="Stretch"
                UseLayoutRounding="True"
                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
            <Grid Background="Transparent" Width="18" Height="18">
                <TextBlock x:Name="plus"
                        Text="{StaticResource GlyphArrow60Right}"
                        FontFamily="{StaticResource TelerikWebUI}"
                        Foreground="{TemplateBinding Foreground}"
                        FontSize="16"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"/>
                <TextBlock x:Name="minus"
                        Text="{StaticResource GlyphArrow45DownRight}"
                        FontFamily="{StaticResource TelerikWebUI}"
                        Foreground="{TemplateBinding Foreground}"
                        FontSize="16"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Opacity="0"/>
            </Grid>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsChecked" Value="True">
                <Setter TargetName="plus" Property="Opacity" Value="0"/>
                <Setter TargetName="minus" Property="Opacity" Value="1"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewToggleButtonStyle" TargetType="controls:GridViewToggleButton">
        <Setter Property="Template" Value="{StaticResource GridViewToggleButtonTemplate}"/>
        <Setter Property="PlusMinusTemplate" Value="{StaticResource GridViewToggleButtonTemplate}"/>
        <Setter Property="ArrowTemplate" Value="{StaticResource GridViewToggleButtonArrowTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="telerik:TouchManager.TouchMode" Value="None"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="controls:GridViewToggleButton" BasedOn="{StaticResource GridViewToggleButtonStyle}"/>
    <ControlTemplate x:Key="GridViewGroupPanelTemplate" TargetType="grid:GridViewGroupPanel">
        <Grid>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock x:Name="panelText"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                        Margin="{TemplateBinding Padding}"
                        FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                        FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"
                        telerik:LocalizationManager.ResourceKey="GridViewGroupPanelText"
                        IsHitTestVisible="False"/>
                <TextBlock x:Name="panelTextGrouped"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                        Margin="{TemplateBinding Padding}"
                        Visibility="Collapsed"
                        FontSize="{telerik1:Office2016Resource ResourceKey=FontSize}"
                        FontFamily="{telerik1:Office2016Resource ResourceKey=FontFamily}"
                        telerik:LocalizationManager.ResourceKey="GridViewGroupPanelTopTextGrouped"
                        IsHitTestVisible="False"/>
                <ItemsPresenter VerticalAlignment="Center"/>
            </StackPanel>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="HasItems" Value="True">
                <Setter TargetName="panelText" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="panelTextGrouped" Property="Visibility" Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <ItemsPanelTemplate x:Key="GridViewGroupPanelItemsPanelTemplate">
        <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch"/>
    </ItemsPanelTemplate>
    <Style x:Key="GridViewGroupPanelStyle" TargetType="grid:GridViewGroupPanel">
        <Setter Property="MinHeight" Value="34"/>
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelTemplate}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="5 0 0 0"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="ItemsPanel" Value="{StaticResource GridViewGroupPanelItemsPanelTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewGroupPanel" BasedOn="{StaticResource GridViewGroupPanelStyle}"/>
    <ControlTemplate x:Key="CloseButtonTemplate" TargetType="Button">
        <Border x:Name="CloseButton" Background="{TemplateBinding Background}" UseLayoutRounding="True">
            <TextBlock
                    Text="{StaticResource GlyphClose}"
                    FontSize="16"
                    FontFamily="{StaticResource TelerikWebUI}"
                    Foreground="{TemplateBinding Foreground}"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"/>
        </Border>
    </ControlTemplate>
    <Style x:Key="ButtonCloseStyle" TargetType="Button">
        <Setter Property="Template" Value="{StaticResource CloseButtonTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <ControlTemplate x:Key="GridViewGroupPanelCellTemplate" TargetType="grid:GridViewGroupPanelCell">
        <Grid UseLayoutRounding="True">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0:0:0.2" To="MouseOver"/>
                        <VisualTransition GeneratedDuration="0:0:0.2" To="Normal"/>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder_Over" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                    BeginTime="0"
                                    Duration="0"
                                    Storyboard.TargetName="ContentElement"
                                    Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <EasingDoubleKeyFrame KeyTime="0" Value="-7"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="0:001" Storyboard.TargetName="PART_CloseButton" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="OuterBorder"
                    Grid.ColumnSpan="3"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"
                    CornerRadius="{telerik1:Office2016Resource ResourceKey=CornerRadius}"
                    UseLayoutRounding="True"/>
            <Border x:Name="OuterBorder_Over"
                    Grid.ColumnSpan="3"
                    Background="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}"
                    CornerRadius="{telerik1:Office2016Resource ResourceKey=CornerRadius}"
                    UseLayoutRounding="True"
                    Visibility="Collapsed"/>
            <TextBlock x:Name="PART_SortIndicator"
                    Visibility="Collapsed"
                    Grid.Column="1"
                    Text="{StaticResource GlyphArrow60Down}"
                    FontSize="16"
                    FontFamily="{StaticResource TelerikWebUI}"
                    Foreground="{TemplateBinding Foreground}"
                    VerticalAlignment="Center"/>
            <ContentControl x:Name="ContentElement"
                    Content="{TemplateBinding Content}"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Margin="{TemplateBinding Padding}"
                    Foreground="{TemplateBinding Foreground}"
                    IsTabStop="{TemplateBinding IsTabStop}">
                <ContentControl.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </ContentControl.RenderTransform>
            </ContentControl>
            <Button x:Name="PART_CloseButton" Grid.Column="2" Style="{StaticResource ButtonCloseStyle}" VerticalAlignment="Center" Margin="4 0" Opacity="0"/>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding Path=SortDirection}" Value="Ascending">
                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Visible"/>
                <Setter TargetName="PART_SortIndicator" Property="Text" Value="{StaticResource GlyphArrow60Up}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=SortDirection}" Value="Descending">
                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Visible"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=SortDirection}" Value="{x:Null}">
                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Collapsed"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewGroupPanelCellStyle" TargetType="grid:GridViewGroupPanelCell">
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelCellTemplate}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="10 2"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="MinHeight" Value="26"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewGroupPanelCell" BasedOn="{StaticResource GridViewGroupPanelCellStyle}"/>
    <telerik:InvertedBooleanToOpacityConverter x:Key="InvertedBooleanToOpacityConverter"/>
    <ControlTemplate x:Key="GridViewGroupPanelItemTemplate" TargetType="grid:GridViewGroupPanelItem">
        <StackPanel x:Name="PART_GroupPanelItemStackPanel"
                Orientation="Horizontal"
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                Background="{TemplateBinding Background}">
            <Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <TextBlock x:Name="PART_InsertionPoint"
                        Text="{StaticResource GlyphArrow60Down}"
                        FontFamily="{StaticResource TelerikWebUI}"
                        FontSize="16"
                        Foreground="{TemplateBinding Foreground}"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Visibility="{TemplateBinding InsertionPointVisibility}"/>
                <Grid x:Name="PART_ConnectingLine" Opacity="{Binding IsFirst, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToOpacityConverter}}" Grid.Row="1">
                    <TextBlock
                            Text="{StaticResource GlyphArrow60Right}"
                            FontFamily="{StaticResource TelerikWebUI}"
                            FontSize="16"
                            Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Margin="3 0"/>
                </Grid>
            </Grid>
            <grid:GridViewGroupPanelCell x:Name="PART_Cell" Content="{TemplateBinding Content}" Margin="0 0 0 1" SortDirection="{Binding Path=SortDirection}"/>
            <TextBlock x:Name="PART_RightInsertionPoint"
                    Text="{StaticResource GlyphArrow60Down}"
                    FontFamily="{StaticResource TelerikWebUI}"
                    Foreground="{TemplateBinding Foreground}"
                    FontSize="16"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Margin="3 0"
                    Visibility="{TemplateBinding RightInsertionPointVisibility}"/>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="GridViewGroupPanelItemStyle" TargetType="grid:GridViewGroupPanelItem">
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelItemTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewGroupPanelItem" BasedOn="{StaticResource GridViewGroupPanelItemStyle}"/>
    <ControlTemplate x:Key="GridViewLoadingIndicatorTemplate" TargetType="grid:GridViewLoadingIndicator">
        <telerik1:RadBusyIndicator IsBusy="{TemplateBinding IsBusy}" BusyContent="{x:Null}"/>
    </ControlTemplate>
    <Style x:Key="GridViewLoadingIndicatorStyle" TargetType="grid:GridViewLoadingIndicator">
        <Setter Property="Template" Value="{StaticResource GridViewLoadingIndicatorTemplate}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
    </Style>
    <Style TargetType="grid:GridViewLoadingIndicator" BasedOn="{StaticResource GridViewLoadingIndicatorStyle}"/>
    <ControlTemplate x:Key="GridViewScrollViewerTemplate" TargetType="grid:GridViewScrollViewer">
        <Grid x:Name="PART_RootPanel" Background="{TemplateBinding Background}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.Row="2" CanContentScroll="{TemplateBinding CanContentScroll}"/>
            <Border Grid.Column="1" Grid.Row="4" Background="{telerik1:Office2016Resource ResourceKey=AlternativeBrush}"/>
            <ScrollBar x:Name="PART_VerticalScrollBar"
                    Grid.RowSpan="4"
                    Grid.Column="1"
                    Orientation="Vertical"
                    IsTabStop="False"
                    Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                    ViewportSize="{TemplateBinding ViewportHeight}"
                    Maximum="{TemplateBinding ScrollableHeight}"
                    Value="{TemplateBinding VerticalOffset}"
                    Margin="1 -1 -1 -1"/>
            <ScrollBar x:Name="PART_HorizontalScrollBar"
                    Grid.Row="4"
                    Orientation="Horizontal"
                    IsTabStop="False"
                    Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
                    ViewportSize="{TemplateBinding ViewportWidth}"
                    Maximum="{TemplateBinding ScrollableWidth}"
                    Value="{TemplateBinding HorizontalOffset}"
                    Margin="-1 1 -1 -1"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="GridViewScrollViewerStyle" TargetType="grid:GridViewScrollViewer">
        <Setter Property="Template" Value="{StaticResource GridViewScrollViewerTemplate}"/>
        <Setter Property="Margin" Value="1"/>
    </Style>
    <Style TargetType="grid:GridViewScrollViewer" BasedOn="{StaticResource GridViewScrollViewerStyle}"/>
    <ControlTemplate x:Key="IndentPresenterTemplate" TargetType="grid:IndentPresenter">
        <Grid>
            <ItemsPresenter/>
        </Grid>
    </ControlTemplate>
    <DataTemplate x:Key="IndentPresenterItemTemplate">
        <grid:GridViewIndentCell/>
    </DataTemplate>
    <ItemsPanelTemplate x:Key="IndentPresenterItemsPanelTemplate">
        <StackPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
    <Style x:Key="IndentPresenterStyle" TargetType="grid:IndentPresenter">
        <Setter Property="Template" Value="{StaticResource IndentPresenterTemplate}"/>
        <Setter Property="ItemTemplate" Value="{StaticResource IndentPresenterItemTemplate}"/>
        <Setter Property="ItemsPanel" Value="{StaticResource IndentPresenterItemsPanelTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:IndentPresenter" BasedOn="{StaticResource IndentPresenterStyle}"/>
    <ControlTemplate x:Key="RadGridViewTemplate" TargetType="controls:RadGridView">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <grid:GridViewSearchPanel x:Name="PART_SearchPanel"
                    Grid.ColumnSpan="4"
                    Visibility="{Binding ShowSearchPanel, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                    Background="{TemplateBinding SearchPanelBackground}"
                    Foreground="{TemplateBinding SearchPanelForeground}"/>
            <grid:GridViewGroupPanel x:Name="PART_GroupPanel" Grid.Row="1" Grid.ColumnSpan="4" Background="{TemplateBinding GroupPanelBackground}" Foreground="{TemplateBinding GroupPanelForeground}"/>
            <telerik:RadDropDownButton x:Name="PART_GridViewColumnsSelectionButton"
                    Grid.Column="4"
                    Grid.Row="1"
                    MinWidth="26"
                    MinHeight="26"
                    VerticalAlignment="Center"
                    DropDownIndicatorVisibility="Collapsed"
                    BorderThickness="0"
                    Padding="0"
                    IsTabStop="False"
                    Style="{StaticResource ControlPanelItem_DropDownButtonStyle}"
                    Visibility="{Binding ColumnsSelectionButtonVisibility, RelativeSource={RelativeSource TemplatedParent}}">
                <ToolTipService.ToolTip>
                    <ToolTip Placement="Right" telerik:LocalizationManager.ResourceKey="GridViewColumnsSelectionButtonTooltip"/>
                </ToolTipService.ToolTip>
                <telerik:RadDropDownButton.Content>
                    <Path
                            Data="M14.7,9 L16,10.2 L10.1,17 L6,13 L7.2,11.8 L10.1,14.6 z M12,4 L16,4 L16,8 L12,8 z M6,4 L10,4 L10,11 L6,11 z M0,4 L4,4 L4,16 L0,16 z M12,0 L16,0 L16,2 L12,2 z M6,0 L10,0 L10,2 L6,2 z M0,0 L4,0 L4,2 L0,2 z"
                            Height="17"
                            Width="16"
                            Fill="{Binding RelativeSource={RelativeSource AncestorType={x:Type telerik:RadDropDownButton}}, Path=Foreground}"
                            Stretch="Fill"
                            UseLayoutRounding="True"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"/>
                </telerik:RadDropDownButton.Content>
                <telerik:RadDropDownButton.DropDownContent>
                    <telerik:RadListBox ItemsSource="{Binding Columns}" BorderThickness="0" Padding="4 1" MaxWidth="200" MaxHeight="250">
                        <telerik:RadListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel/>
                            </ItemsPanelTemplate>
                        </telerik:RadListBox.ItemsPanel>
                        <telerik:RadListBox.ItemContainerStyle>
                            <Style TargetType="telerik:RadListBoxItem">
                                <Setter Property="Padding" Value="5 3 3 3"/>
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="telerik:RadListBoxItem">
                                            <CheckBox Padding="{TemplateBinding Padding}" Content="{Binding Converter={StaticResource ColumnHeaderConverter}}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </telerik:RadListBox.ItemContainerStyle>
                    </telerik:RadListBox>
                </telerik:RadDropDownButton.DropDownContent>
            </telerik:RadDropDownButton>
            <Border x:Name="PART_MasterGridContainer"
                    Grid.Row="2"
                    Grid.ColumnSpan="4"
                    Margin="0 -1 0 0"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Padding="{TemplateBinding Padding}"/>
            <ItemsControl Name="PART_ControlPanelItemsControl" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" ItemsSource="{TemplateBinding ControlPanelItems}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal"/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <grid:ControlPanelItemControl/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <grid:GridViewScrollViewer x:Name="PART_ItemsScrollViewer" Grid.Row="2" Grid.RowSpan="2" Grid.ColumnSpan="4" Margin="1 0 1 1" CanContentScroll="True">
                <grid:GridViewScrollViewer.HeaderRow>
                    <grid:GridViewHeaderRow x:Name="PART_HeaderRow" IndentLevel="{TemplateBinding GroupCount}"/>
                </grid:GridViewScrollViewer.HeaderRow>
                <grid:GridViewScrollViewer.NewRow>
                    <grid:GridViewNewRow Name="PART_AddNewRow" IndentLevel="{TemplateBinding GroupCount}"/>
                </grid:GridViewScrollViewer.NewRow>
                <grid:GridViewScrollViewer.FooterRow>
                    <grid:GridViewFooterRow x:Name="PART_FooterRow" IndentLevel="{TemplateBinding GroupCount}"/>
                </grid:GridViewScrollViewer.FooterRow>
                <grid:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
            </grid:GridViewScrollViewer>
            <grid:ScrollPositionIndicator x:Name="PART_ScrollPositionIndicator"
                    IsHitTestVisible="False"
                    HorizontalAlignment="Right"
                    Grid.Row="2"
                    Grid.ColumnSpan="4"
                    Margin="0 0 28 0"
                    Visibility="{Binding IsScrolling, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                    ContentTemplate="{TemplateBinding ScrollPositionIndicatorTemplate}"/>
            <Border x:Name="PART_FrozenColumnsPreview"
                    Grid.Row="2"
                    Grid.RowSpan="3"
                    Width="6"
                    Background="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                    Opacity="0.1"
                    Visibility="Collapsed"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Stretch">
                <Border BorderThickness="1 0 0 0" BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}" HorizontalAlignment="Right" Width="5"/>
            </Border>
            <grid:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Grid.RowSpan="3" Grid.ColumnSpan="3" Visibility="Collapsed" IsBusy="{TemplateBinding IsBusy}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsBusy" Value="True">
                <Setter TargetName="PART_GridViewLoadingIndicator" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="ShowColumnFooters" Value="false">
                <Setter TargetName="PART_FooterRow" Property="Visibility" Value="Collapsed"/>
            </Trigger>
            <Trigger Property="ShowColumnHeaders" Value="false">
                <Setter TargetName="PART_HeaderRow" Property="Visibility" Value="Collapsed"/>
            </Trigger>
            <Trigger Property="ShowGroupPanel" Value="false">
                <Setter TargetName="PART_GroupPanel" Property="Visibility" Value="Collapsed"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="RadGridViewStyle" TargetType="controls:RadGridView">
        <Setter Property="Template" Value="{StaticResource RadGridViewTemplate}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="GroupPanelBackground" Value="{telerik1:Office2016Resource ResourceKey=AccentBrush}"/>
        <Setter Property="GroupPanelForeground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
        <Setter Property="SearchPanelBackground" Value="{telerik1:Office2016Resource ResourceKey=AccentBrush}"/>
        <Setter Property="SearchPanelForeground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="VerticalGridLinesBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="HorizontalGridLinesBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="AlternateRowBackground" Value="{telerik1:Office2016Resource ResourceKey=PressedBrush}"/>
        <Setter Property="RowHeight" Value="29"/>
        <Setter Property="Tag" Value="Office2016"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    </Style>
    <Style TargetType="controls:RadGridView" BasedOn="{StaticResource RadGridViewStyle}"/>
    <Style x:Key="TreeListViewDragCueStyle" TargetType="controls:TreeListViewDragCue">
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
        <Setter Property="Opacity" Value="0.75"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:TreeListViewDragCue">
                    <StackPanel>
                        <Grid HorizontalAlignment="Left" Visibility="{TemplateBinding DragPreviewVisibility}" MinHeight="26">
                            <Grid.Resources>
                                <Style TargetType="TextBlock">
                                    <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
                                </Style>
                            </Grid.Resources>
                            <Border BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentBrush}" Background="{telerik1:Office2016Resource ResourceKey=AccentBrush}" BorderThickness="1">
                                <ItemsPresenter Margin="{TemplateBinding Padding}"/>
                            </Border>
                        </Grid>
                        <Border
                                BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}"
                                Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                                MinHeight="22"
                                BorderThickness="1"
                                Opacity="0.9"
                                Visibility="{TemplateBinding DragTooltipVisibility}">
                            <StackPanel Orientation="Horizontal" Margin="4 0 0 0">
                                <ContentPresenter x:Name="DropImpossibleIconElement"
                                        Content="{TemplateBinding DropImpossibleIcon}"
                                        ContentTemplate="{TemplateBinding DropImpossibleIconTemplate}"
                                        Visibility="Collapsed"/>
                                <ContentPresenter x:Name="DropPossibleIconElement" Content="{TemplateBinding DropPossibleIcon}" ContentTemplate="{TemplateBinding DropPossibleIconTemplate}"/>
                                <ContentControl
                                        Margin="4 0 0 0"
                                        Content="{TemplateBinding DragActionContent}"
                                        ContentTemplate="{TemplateBinding DragActionContentTemplate}"
                                        FontSize="{TemplateBinding FontSize}"
                                        FontFamily="{TemplateBinding FontFamily}"
                                        VerticalAlignment="Center"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
                                <ContentControl
                                        Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                        Content="{TemplateBinding DragTooltipContent}"
                                        ContentTemplate="{TemplateBinding DragTooltipContentTemplate}"
                                        FontSize="{TemplateBinding FontSize}"
                                        FontFamily="{TemplateBinding FontFamily}"
                                        VerticalAlignment="Center"/>
                            </StackPanel>
                        </Border>
                    </StackPanel>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsDropPossible" Value="False">
                            <Setter Property="Visibility" Value="Visible" TargetName="DropImpossibleIconElement"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DropImpossibleIconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid UseLayoutRounding="True">
                        <TextBlock
                                Text="{StaticResource GlyphClose}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DropPossibleIconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid UseLayoutRounding="True">
                        <TextBlock
                                Text="{StaticResource GlyphCheck}"
                                FontFamily="{StaticResource TelerikWebUI}"
                                Foreground="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                                FontSize="16"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="controls:TreeListViewDragCue" BasedOn="{StaticResource TreeListViewDragCueStyle}"/>
    <ControlTemplate x:Key="RadTreeListViewTemplate" TargetType="controls:RadTreeListView">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="0"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <grid:GridViewSearchPanel x:Name="PART_SearchPanel" Grid.ColumnSpan="3" Background="{TemplateBinding SearchPanelBackground}" Foreground="{TemplateBinding SearchPanelForeground}"/>
            <Border x:Name="PART_MasterGridContainer"
                    Grid.Row="2"
                    Grid.RowSpan="2"
                    Grid.ColumnSpan="3"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Padding="{TemplateBinding Padding}"/>
            <ItemsControl Name="PART_ControlPanelItemsControl" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" ItemsSource="{TemplateBinding ControlPanelItems}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal"/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <grid:ControlPanelItemControl/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <grid:GridViewScrollViewer x:Name="PART_ItemsScrollViewer" Grid.Row="2" Grid.RowSpan="2" Grid.ColumnSpan="3" CanContentScroll="True">
                <grid:GridViewScrollViewer.HeaderRow>
                    <grid:GridViewHeaderRow x:Name="PART_HeaderRow" IndentLevel="{TemplateBinding GroupCount}"/>
                </grid:GridViewScrollViewer.HeaderRow>
                <grid:GridViewScrollViewer.NewRow>
                    <grid:GridViewNewRow Name="PART_AddNewRow" IndentLevel="{TemplateBinding GroupCount}"/>
                </grid:GridViewScrollViewer.NewRow>
                <grid:GridViewScrollViewer.FooterRow>
                    <grid:GridViewFooterRow x:Name="PART_FooterRow" IndentLevel="{TemplateBinding GroupCount}"/>
                </grid:GridViewScrollViewer.FooterRow>
                <grid:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
            </grid:GridViewScrollViewer>
            <grid:ScrollPositionIndicator x:Name="PART_ScrollPositionIndicator"
                    IsHitTestVisible="False"
                    HorizontalAlignment="Right"
                    Grid.Row="2"
                    Grid.ColumnSpan="3"
                    Margin="0 0 28 0"
                    Visibility="{Binding IsScrolling, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                    ContentTemplate="{TemplateBinding ScrollPositionIndicatorTemplate}"/>
            <Border x:Name="PART_FrozenColumnsPreview"
                    Grid.Row="2"
                    Grid.RowSpan="3"
                    Width="6"
                    Background="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}"
                    Opacity="0.1"
                    Visibility="Collapsed"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Stretch">
                <Border BorderThickness="1 0 0 0" BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentFocusedBrush}" HorizontalAlignment="Right" Width="5"/>
            </Border>
            <grid:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Grid.RowSpan="3" Grid.ColumnSpan="3" Visibility="Collapsed" IsBusy="{TemplateBinding IsBusy}"/>
            <Grid x:Name="DragBetweenItemsFeedback"
                    Grid.Row="2"
                    Grid.ColumnSpan="3"
                    Height="8"
                    Visibility="Collapsed"
                    HorizontalAlignment="Left"
                    IsHitTestVisible="False"
                    VerticalAlignment="Top"
                    Margin="{TemplateBinding Padding}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="8"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Ellipse Stroke="{telerik1:Office2016Resource ResourceKey=AccentBrush}" Width="8" Height="8" StrokeThickness="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                <Rectangle Grid.Column="1" Height="2" Fill="{telerik1:Office2016Resource ResourceKey=AccentBrush}" RadiusX="2" RadiusY="2" Margin="-2 3 0 0" VerticalAlignment="Top"/>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsBusy" Value="True">
                <Setter TargetName="PART_GridViewLoadingIndicator" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="ShowColumnFooters" Value="false">
                <Setter Property="Visibility" Value="Collapsed" TargetName="PART_FooterRow"/>
            </Trigger>
            <Trigger Property="ShowColumnHeaders" Value="false">
                <Setter Property="Visibility" Value="Collapsed" TargetName="PART_HeaderRow"/>
            </Trigger>
            <Trigger Property="ShowSearchPanel" Value="false">
                <Setter Property="Visibility" Value="Collapsed" TargetName="PART_SearchPanel"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="RadTreeListViewStyle" TargetType="controls:RadTreeListView">
        <Setter Property="Template" Value="{StaticResource RadTreeListViewTemplate}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="VerticalGridLinesBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="HorizontalGridLinesBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="AlternateRowBackground" Value="{telerik1:Office2016Resource ResourceKey=PressedBrush}"/>
        <Setter Property="RowHeight" Value="29"/>
        <Setter Property="Tag" Value="Office2016"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="TreeLinesBrush" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="TreeLinesStrokeThickness" Value="0.2"/>
    </Style>
    <Style TargetType="controls:RadTreeListView" BasedOn="{StaticResource RadTreeListViewStyle}"/>
    <ControlTemplate x:Key="TreeListViewRowTemplate" TargetType="treeList:TreeListViewRow">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup>
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="SelectedUnfocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected_Unfocused" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <grid:SelectiveScrollingGrid x:Name="grid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Border x:Name="Background_Main"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Background="{TemplateBinding Background}"
                        Margin="{TemplateBinding Margin}"
                        Padding="{TemplateBinding Padding}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                <grid:DetailsPresenter x:Name="PART_DetailsPresenter"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Grid.Row="1"
                        Margin="0 -1 0 0"
                        BorderThickness="0"
                        DetailsProvider="{TemplateBinding DetailsProvider}"/>
                <Border x:Name="Background_Invalid"
                        Grid.Column="1"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                        Opacity="0.3"
                        Visibility="Collapsed"/>
                <Border
                        Grid.RowSpan="3"
                        Width="29"
                        Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
                <Border x:Name="PART_RowBorder"
                        Grid.ColumnSpan="4"
                        Grid.RowSpan="3"
                        BorderBrush="{TemplateBinding HorizontalGridLinesBrush}"
                        BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"/>
                <Border x:Name="Background_Over" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected_Unfocused"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ComplementaryBrush}"
                        Visibility="Collapsed"
                        Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=SelectedBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <controls:GridViewToggleButton x:Name="PART_ExpandButton"
                        Width="23"
                        Grid.Column="1"
                        Grid.ColumnSpan="2"
                        HorizontalAlignment="Left"
                        HorizontalContentAlignment="Center"
                        IsTabStop="False"
                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                    <controls:GridViewToggleButton.Style>
                        <Style TargetType="controls:GridViewToggleButton" BasedOn="{StaticResource GridViewToggleButtonStyle}">
                            <Setter Property="PresentationMode" Value="Arrow"/>
                        </Style>
                    </controls:GridViewToggleButton.Style>
                </controls:GridViewToggleButton>
                <Border x:Name="PART_IndicatorPresenter"
                        Grid.RowSpan="3"
                        Width="29"
                        VerticalAlignment="Stretch"
                        BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}"
                        BorderThickness="0 0 1 0"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                    <Grid>
                        <Grid x:Name="NavigatorIndicator" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphArrowChevronRight }"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="SelectedNavigatorIndicator" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphArrowChevronRight }"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="EditIndicator" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphComment}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="InvalidEditableIndicator" Visibility="Collapsed" Background="Transparent">
                            <Grid HorizontalAlignment="Center" Width="16" Height="10" VerticalAlignment="Center">
                                <TextBlock
                                        Text="{StaticResource GlyphComment}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                            </Grid>
                            <ToolTipService.ToolTip>
                                <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                            </ToolTipService.ToolTip>
                        </Grid>
                        <Grid x:Name="ErrorIndicator" HorizontalAlignment="Center" Width="16" Height="16" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphWarning}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                            <ToolTipService.ToolTip>
                                <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                            </ToolTipService.ToolTip>
                        </Grid>
                        <Border x:Name="PART_RowResizer" Background="Transparent" Height="4" VerticalAlignment="Bottom" Cursor="SizeNS"/>
                    </Grid>
                </Border>
                <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.ColumnSpan="2" Grid.Column="1">
                    <grid:DataCellsPresenter.ItemsPanel>
                        <ItemsPanelTemplate>
                            <treeList:TreeListCellsPanel/>
                        </ItemsPanelTemplate>
                    </grid:DataCellsPresenter.ItemsPanel>
                </grid:DataCellsPresenter>
            </grid:SelectiveScrollingGrid>
        </Border>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="IsValid" Value="True"/>
                    <Condition Property="IsSelected" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="ErrorIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="InvalidEditableIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter TargetName="EditIndicator" Property="Visibility" Value="Visible"/>
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsSelected" Value="False"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="TreeListViewRowStyle" TargetType="treeList:TreeListViewRow">
        <Setter Property="Template" Value="{StaticResource TreeListViewRowTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="AllowDrop" Value="True"/>
    </Style>
    <Style TargetType="treeList:TreeListViewRow" BasedOn="{StaticResource TreeListViewRowStyle}"/>
    <ControlTemplate x:Key="NonEditableComboBox" TargetType="input:RadComboBox">
        <Grid x:Name="VisualRoot">
            <ContentPresenter x:Name="Content"
                    Grid.Column="0"
                    Margin="{TemplateBinding Padding}"
                    IsHitTestVisible="False"
                    Content="{TemplateBinding SelectionBoxItem}"
                    ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="LookupElementTemplate" TargetType="grid:LookupElement">
        <input:RadComboBox x:Name="PART_RadComboBox"
                Foreground="{TemplateBinding Foreground}"
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                IsEditable="False"
                NonEditableTemplate="{StaticResource NonEditableComboBox}"
                ItemTemplate="{TemplateBinding ItemTemplate}"
                SelectedValuePath="{TemplateBinding SelectedValuePath}"
                DisplayMemberPath="{TemplateBinding DisplayMemberPath}"
                SelectedValue="{TemplateBinding SelectedValue}"
                ItemsSource="{TemplateBinding ItemsSource}"
                Margin="{TemplateBinding Padding}"
                IsTabStop="{TemplateBinding IsTabStop}"
                IsSynchronizedWithCurrentItem="False"/>
    </ControlTemplate>
    <Style x:Key="LookupElementStyle" TargetType="grid:LookupElement">
        <Setter Property="Template" Value="{StaticResource LookupElementTemplate}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:LookupElement" BasedOn="{StaticResource LookupElementStyle}"/>
    <ControlTemplate x:Key="ScrollPositionIndicatorTemplate" TargetType="grid:ScrollPositionIndicator">
        <Border
                Background="{TemplateBinding Background}"
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                BorderThickness="{TemplateBinding BorderThickness}"
                BorderBrush="{TemplateBinding BorderBrush}">
            <ContentPresenter
                    Margin="{TemplateBinding Padding}"
                    TextBlock.Foreground="{TemplateBinding Foreground}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"/>
        </Border>
    </ControlTemplate>
    <Style x:Key="ScrollPositionIndicatorStyle" TargetType="grid:ScrollPositionIndicator">
        <Setter Property="Template" Value="{StaticResource ScrollPositionIndicatorTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="10 5"/>
    </Style>
    <Style TargetType="grid:ScrollPositionIndicator" BasedOn="{StaticResource ScrollPositionIndicatorStyle}"/>
    <ControlTemplate x:Key="GridViewCellCoreTemplate" TargetType="grid:GridViewCell">
        <Grid>
            <Border x:Name="PART_CellBorder"
                    Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
                    BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
                    BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}"
                    Margin="0 0 0 1"/>
            <Border x:Name="Background_Current"
                    Background="{x:Null}"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"
                    BorderThickness="1"
                    Margin="0 0 1 1"
                    Visibility="Collapsed"/>
            <ContentControl x:Name="PART_ContentPresenter"
                    IsTabStop="{TemplateBinding IsTabStop}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Margin="{TemplateBinding Padding}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    VerticalContentAlignment="Stretch"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter Property="Padding" Value="0"/>
                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                <Setter TargetName="PART_CellBorder" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="PART_CellBorder" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="PART_CellBorder" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=SelectedBrush}"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Current" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="PART_ContentPresenter" Property="Opacity" Value="{telerik1:Office2016Resource ResourceKey=DisabledOpacity}"/>
                <Setter TargetName="Background_Current" Property="Opacity" Value="{telerik1:Office2016Resource ResourceKey=DisabledOpacity}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewCellCoreStyle" TargetType="grid:GridViewCell">
        <Setter Property="Template" Value="{StaticResource GridViewCellCoreTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 0"/>
        <Setter Property="Padding" Value="4 0 3 0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisualStyle}"/>
    </Style>
    <ControlTemplate x:Key="GridViewCellCoreValidationTemplate" TargetType="grid:GridViewCell">
        <Grid>
            <Border x:Name="PART_CellBorder"
                    Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
                    BorderBrush="{TemplateBinding VerticalGridLinesBrush}"
                    BorderThickness="{Binding VerticalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Right}"
                    Margin="0 0 0 1"/>
            <Border x:Name="Background_Invalid"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                    Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                    BorderThickness="1"
                    Margin="-1 0 0 0"
                    Visibility="Collapsed">
                <ToolTipService.ToolTip>
                    <ToolTip x:Name="validationTooltip" Placement="Right" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                </ToolTipService.ToolTip>
            </Border>
            <Border x:Name="Background_Current"
                    Background="{x:Null}"
                    BorderBrush="{telerik1:Office2016Resource ResourceKey=AccentBrush}"
                    BorderThickness="1"
                    Margin="0 0 1 1"
                    Visibility="Collapsed"/>
            <ContentControl x:Name="PART_ContentPresenter"
                    IsTabStop="{TemplateBinding IsTabStop}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Margin="{TemplateBinding Padding}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    VerticalContentAlignment="Stretch"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter Property="Padding" Value="0"/>
                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                <Setter TargetName="PART_CellBorder" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="PART_CellBorder" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="PART_CellBorder" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=SelectedBrush}"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="ParentRowValid" Value="false"/>
                    <Condition Property="IsValid" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="PART_CellBorder" Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"/>
                <Setter TargetName="PART_CellBorder" Property="BorderThickness" Value="1"/>
                <Setter TargetName="PART_CellBorder" Property="Margin" Value="-1 0 0 0"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Current" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="PART_ContentPresenter" Property="Opacity" Value="0.4"/>
                <Setter TargetName="Background_Current" Property="Opacity" Value="0.4"/>
            </Trigger>
            <Trigger Property="IsValid" Value="False">
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Invalid" Property="Margin" Value="-1 0 0 0"/>
                <Setter TargetName="PART_ContentPresenter" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewCellCoreValidationStyle" TargetType="grid:GridViewCell">
        <Setter Property="Template" Value="{StaticResource GridViewCellCoreValidationTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 1 0"/>
        <Setter Property="Padding" Value="4 0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisualStyle}"/>
    </Style>
    <ControlTemplate x:Key="GridViewRowCoreTemplate" TargetType="grid:GridViewRow">
        <grid:SelectiveScrollingGrid x:Name="grid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="SelectionBackground"
                    Grid.Column="1"
                    Grid.ColumnSpan="2"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding HorizontalGridLinesBrush}"
                    BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"/>
            <grid:DataCellsPresenter Grid.Column="2" x:Name="PART_DataCellsPresenter"/>
            <grid:IndentPresenter x:Name="PART_IndentPresenter" IndentLevel="{TemplateBinding IndentLevel}" grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
        </grid:SelectiveScrollingGrid>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="IsMouseOver" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="SelectionBackground" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="SelectionBackground" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=SelectedBrush}"/>
            </MultiTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewRowCoreStyle" TargetType="grid:GridViewRow">
        <Setter Property="Template" Value="{StaticResource GridViewRowCoreTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <ControlTemplate x:Key="GridViewRowCoreValidationTemplate" TargetType="grid:GridViewRow">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup>
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="SelectedUnfocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected_Unfocused" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <grid:SelectiveScrollingGrid x:Name="grid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Border x:Name="Background_Main"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Background="{TemplateBinding Background}"
                        Margin="{TemplateBinding Margin}"
                        Padding="{TemplateBinding Padding}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                <Border x:Name="Background_Invalid"
                        Grid.Column="1"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                        Opacity="0.3"
                        Visibility="Collapsed"/>
                <Border
                        Width="29"
                        Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
                <Border x:Name="PART_RowBorder"
                        Grid.ColumnSpan="4"
                        BorderBrush="{TemplateBinding HorizontalGridLinesBrush}"
                        BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"/>
                <Border x:Name="Background_Over" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=MouseOverBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected_Unfocused"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ComplementaryBrush}"
                        Visibility="Collapsed"
                        Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=SelectedBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <Border x:Name="PART_IndicatorPresenter"
                        Width="29"
                        VerticalAlignment="Stretch"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="0 0 1 0"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                    <Grid>
                        <Grid x:Name="NavigatorIndicator" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphArrowChevronRight}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="EditIndicator" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphComment}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="InvalidEditableIndicator" Visibility="Collapsed" Background="Transparent">
                            <Grid HorizontalAlignment="Center" Width="16" Height="10" VerticalAlignment="Center">
                                <TextBlock
                                        Text="{StaticResource GlyphComment}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                            </Grid>
                            <ToolTipService.ToolTip>
                                <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                            </ToolTipService.ToolTip>
                        </Grid>
                        <Grid x:Name="ErrorIndicator" HorizontalAlignment="Center" Width="16" Height="16" VerticalAlignment="Center" Visibility="Collapsed">
                            <Path Stretch="Fill" Data="{StaticResource ErrorIndicatorIcon}" Fill="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"/>
                            <Path Fill="White" Stretch="Fill" Margin="7 3" Data="{StaticResource ExclamationMarkIcon}"/>
                            <ToolTipService.ToolTip>
                                <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                            </ToolTipService.ToolTip>
                        </Grid>
                        <Border x:Name="PART_RowResizer" Background="Transparent" Height="4" VerticalAlignment="Bottom" Cursor="SizeNS"/>
                    </Grid>
                </Border>
                <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="3"/>
                <controls:GridViewToggleButton x:Name="PART_HierarchyExpandButton"
                        Grid.Column="2"
                        Width="29"
                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                        Opacity="{Binding IsExpandable, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToOpacityConverter}}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                        IsHitTestVisible="{TemplateBinding IsExpandable}"
                        Visibility="{Binding HasHierarchy, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                        IsTabStop="{TemplateBinding IsTabStop}"/>
                <grid:IndentPresenter x:Name="PART_IndentPresenter" Grid.Column="1" IndentLevel="{TemplateBinding IndentLevel}" grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            </grid:SelectiveScrollingGrid>
        </Border>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="IsValid" Value="True"/>
                    <Condition Property="IsSelected" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="ErrorIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="InvalidEditableIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <Trigger Property="IsInEditMode" Value="True">
                <Setter TargetName="EditIndicator" Property="Visibility" Value="Visible"/>
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsSelected" Value="False"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="GridViewRowCoreValidationStyle" TargetType="grid:GridViewRow">
        <Setter Property="Template" Value="{StaticResource GridViewRowCoreValidationTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="AllowDrop" Value="True"/>
    </Style>
    <ControlTemplate x:Key="TreeListViewRowCoreTemplate" TargetType="treeList:TreeListViewRow">
        <grid:SelectiveScrollingGrid x:Name="grid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="SelectionBackground"
                    Grid.Column="1"
                    Grid.ColumnSpan="2"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding HorizontalGridLinesBrush}"
                    BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"
                    grid:SelectiveScrollingGrid.SelectiveScrollingClip="True"/>
            <controls:GridViewToggleButton x:Name="PART_ExpandButton"
                    Grid.Column="1"
                    Grid.ColumnSpan="2"
                    Width="29"
                    HorizontalAlignment="Left"
                    HorizontalContentAlignment="Center"
                    PresentationMode="Arrow"
                    IsTabStop="False"
                    IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
            <grid:DataCellsPresenter Grid.Column="2" x:Name="PART_DataCellsPresenter">
                <grid:DataCellsPresenter.ItemsPanel>
                    <ItemsPanelTemplate>
                        <treeList:TreeListCellsPanel/>
                    </ItemsPanelTemplate>
                </grid:DataCellsPresenter.ItemsPanel>
            </grid:DataCellsPresenter>
        </grid:SelectiveScrollingGrid>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="IsMouseOver" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="SelectionBackground" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="SelectionBackground" Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AccentBrush}"/>
                <Setter TargetName="PART_DataCellsPresenter" Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </MultiTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="TreeListViewRowCoreStyle" TargetType="treeList:TreeListViewRow">
        <Setter Property="Template" Value="{StaticResource TreeListViewRowCoreTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <ControlTemplate x:Key="TreeListViewRowCoreValidationTemplate" TargetType="treeList:TreeListViewRow">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup>
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="SelectedUnfocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected_Unfocused" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Background_Selected" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <grid:SelectiveScrollingGrid x:Name="grid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Border x:Name="Background_Main"
                        Grid.Column="2"
                        Grid.ColumnSpan="2"
                        Background="{TemplateBinding Background}"
                        Margin="{TemplateBinding Margin}"
                        Padding="{TemplateBinding Padding}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                <Border x:Name="Background_Invalid"
                        Grid.Column="1"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                        Opacity="0.3"
                        Visibility="Collapsed"/>
                <Border
                        Width="29"
                        Background="{telerik1:Office2016Resource ResourceKey=MainBrush}"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
                <Border x:Name="PART_RowBorder"
                        Grid.ColumnSpan="4"
                        BorderBrush="{TemplateBinding HorizontalGridLinesBrush}"
                        BorderThickness="{Binding HorizontalGridLinesWidth, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource GridLineWidthToThicknessConverter}, ConverterParameter=Bottom}"/>
                <Border x:Name="Background_Over" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected_Unfocused"
                        Grid.ColumnSpan="4"
                        Background="{telerik1:Office2016Resource ResourceKey=ComplementaryBrush}"
                        Visibility="Collapsed"
                        Margin="0 0 0 1"/>
                <Border x:Name="Background_Selected" Grid.ColumnSpan="4" Background="{telerik1:Office2016Resource ResourceKey=AccentBrush}" Visibility="Collapsed" Margin="0 0 0 1"/>
                <controls:GridViewToggleButton x:Name="PART_ExpandButton"
                        Width="23"
                        Grid.Column="1"
                        Grid.ColumnSpan="2"
                        HorizontalAlignment="Left"
                        HorizontalContentAlignment="Center"
                        IsTabStop="False"
                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                    <controls:GridViewToggleButton.Style>
                        <Style TargetType="controls:GridViewToggleButton" BasedOn="{StaticResource GridViewToggleButtonStyle}">
                            <Setter Property="PresentationMode" Value="Arrow"/>
                            <Setter Property="Width" Value="22"/>
                        </Style>
                    </controls:GridViewToggleButton.Style>
                </controls:GridViewToggleButton>
                <Border x:Name="PART_IndicatorPresenter"
                        Width="29"
                        VerticalAlignment="Stretch"
                        BorderBrush="{telerik1:Office2016Resource ResourceKey=BasicBrush}"
                        BorderThickness="0 0 1 0"
                        Visibility="{TemplateBinding RowIndicatorVisibility}"
                        grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                    <Grid>
                        <Grid x:Name="NavigatorIndicator" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphArrowChevronRight}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="EditIndicator" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphComment}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=IconBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="SelectedEditIndicator" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphComment}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="InvalidEditableIndicator" Visibility="Collapsed" Background="Transparent">
                            <Grid HorizontalAlignment="Center" Width="16" Height="10" VerticalAlignment="Center">
                                <TextBlock
                                        Text="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                        FontFamily="{StaticResource TelerikWebUI}"
                                        Foreground="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"
                                        FontSize="16"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                            </Grid>
                            <ToolTipService.ToolTip>
                                <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                            </ToolTipService.ToolTip>
                        </Grid>
                        <Grid x:Name="ErrorIndicator" HorizontalAlignment="Center" Width="16" Height="16" VerticalAlignment="Center" Visibility="Collapsed">
                            <TextBlock
                                    Text="{StaticResource GlyphWarning}"
                                    FontFamily="{StaticResource TelerikWebUI}"
                                    Foreground="{telerik1:Office2016Resource ResourceKey=ValidationBrush}"
                                    FontSize="16"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                            <ToolTipService.ToolTip>
                                <ToolTip Placement="Bottom" Content="{TemplateBinding Errors}" Template="{StaticResource GridViewValidationToolTipTemplate}"/>
                            </ToolTipService.ToolTip>
                        </Grid>
                        <Border x:Name="PART_RowResizer" Background="Transparent" Height="4" VerticalAlignment="Bottom" Cursor="SizeNS"/>
                    </Grid>
                </Border>
                <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.ColumnSpan="2" Grid.Column="1">
                    <grid:DataCellsPresenter.ItemsPanel>
                        <ItemsPanelTemplate>
                            <treeList:TreeListCellsPanel/>
                        </ItemsPanelTemplate>
                    </grid:DataCellsPresenter.ItemsPanel>
                </grid:DataCellsPresenter>
            </grid:SelectiveScrollingGrid>
        </Border>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                    <Condition Property="IsValid" Value="True"/>
                    <Condition Property="IsSelected" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Over" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="ErrorIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsValid" Value="False"/>
                    <Condition Property="IsInEditMode" Value="True"/>
                    <Condition Property="DisplayVisualCues" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="Background_Invalid" Property="Visibility" Value="Visible"/>
                <Setter TargetName="InvalidEditableIndicator" Property="Visibility" Value="Visible"/>
                <Setter TargetName="Background_Selected_Unfocused" Property="Background" Value="{x:Null}"/>
                <Setter TargetName="Background_Main" Property="Visibility" Value="Collapsed"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="True"/>
                    <Condition Property="IsInEditMode" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="SelectedEditIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="False"/>
                    <Condition Property="IsInEditMode" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="EditIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsCurrent" Value="True"/>
                    <Condition Property="IsInEditMode" Value="False"/>
                </MultiTrigger.Conditions>
                <Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible"/>
            </MultiTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="TreeListViewRowCoreValidationStyle" TargetType="treeList:TreeListViewRow">
        <Setter Property="Template" Value="{StaticResource TreeListViewRowCoreValidationTemplate}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="AllowDrop" Value="True"/>
    </Style>
    <ControlTemplate x:Key="ClearSearchValueButtonTemplate" TargetType="telerik:RadButton">
        <Border x:Name="ButtonBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <TextBlock
                    Text="{StaticResource GlyphClose}"
                    FontFamily="{StaticResource TelerikWebUI}"
                    Foreground="{TemplateBinding Foreground}"
                    FontSize="16"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"/>
        </Border>
    </ControlTemplate>
    <Style x:Key="ClearSearchValueButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Template" Value="{StaticResource ClearSearchValueButtonTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Width" Value="24"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=AccentPressedBrush}"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="CloseSearchValueButtonStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource ClearSearchValueButtonStyle}">
        <Setter Property="Margin" Value="0 0 4 0"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AccentMouseOverBrush}"/>
                <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=AccentPressedBrush}"/>
                <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <ControlTemplate x:Key="GridViewSearchPanelTemplate" TargetType="grid:GridViewSearchPanel">
        <Border BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" Grid.ColumnSpan="2">
            <Grid UseLayoutRounding="True">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock
                            telerik:LocalizationManager.ResourceKey="GridViewSearchPanelTopText"
                            TextWrapping="Wrap"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            IsHitTestVisible="False"/>
                    <Grid Grid.Column="1" Margin="10 0 10 0" VerticalAlignment="Center">
                        <TextBox x:Name="PART_SearchAsYouTypeTextBox"
                                Text="{Binding SearchText, Mode=TwoWay}"
                                MinWidth="160"
                                MaxWidth="200"
                                MinHeight="20"
                                Padding="3 3 15 3"
                                telerik:TextBoxBehavior.UpdateTextOnEnter="True"
                                IsTabStop="{TemplateBinding IsTabStop}"
                                FontSize="{TemplateBinding FontSize}"
                                FontFamily="{TemplateBinding FontFamily}"/>
                        <telerik:RadButton x:Name="ClearButton"
                                IsTabStop="False"
                                Visibility="Collapsed"
                                Style="{StaticResource ClearSearchValueButtonStyle}"
                                Command="searchPanel:GridViewSearchPanelCommands.ClearSearchValue"/>
                        <Grid.Triggers>
                            <EventTrigger RoutedEvent="MouseEnter">
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ClearButton" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                            <EventTrigger RoutedEvent="MouseLeave">
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ClearButton" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </Grid.Triggers>
                    </Grid>
                </Grid>
                <telerik:RadButton x:Name="CloseButton"
                        Style="{StaticResource CloseSearchValueButtonStyle}"
                        Grid.Column="1"
                        Width="22"
                        Height="22"
                        Padding="6"
                        Margin="0 5 5 5"
                        IsBackgroundVisible="False"
                        IsTabStop="False"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Center"
                        Command="controls:RadGridViewCommands.CloseSearchPanel"/>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="GridViewSearchPanelStyle" TargetType="grid:GridViewSearchPanel">
        <Setter Property="Template" Value="{StaticResource GridViewSearchPanelTemplate}"/>
        <Setter Property="FontFamily" Value="{telerik1:Office2016Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:Office2016Resource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:Office2016Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:Office2016Resource ResourceKey=AccentBrush}"/>
        <Setter Property="BorderThickness" Value="1 1 1 0"/>
        <Setter Property="Padding" Value="5"/>
        <Setter Property="MinHeight" Value="28"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="grid:GridViewSearchPanel" BasedOn="{StaticResource GridViewSearchPanelStyle}"/>
    <Style x:Key="HighlightTextBlockStyle" TargetType="grid:HighlightTextBlock">
        <Setter Property="HighlightBrush" Value="#FFAE0202"/>
    </Style>
    <Style TargetType="grid:HighlightTextBlock" BasedOn="{StaticResource HighlightTextBlockStyle}"/>
    <Style x:Key="PinnedButtonStyle" TargetType="Path">
        <Setter Property="Width" Value="7"/>
        <Setter Property="Height" Value="9"/>
        <Setter Property="Fill" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
        <Setter Property="Stretch" Value="Fill"/>
    </Style>
    <Style x:Key="UnpinnedButtonStyle" TargetType="Path">
        <Setter Property="Width" Value="9"/>
        <Setter Property="Height" Value="7"/>
        <Setter Property="Fill" Value="{telerik1:Office2016Resource ResourceKey=IconBrush}"/>
        <Setter Property="Stretch" Value="Fill"/>
    </Style>
    <Style x:Key="GridViewPinButtonStyle" TargetType="grid:GridViewPinButton">
        <Setter Property="PathStyle" Value="{StaticResource UnpinnedButtonStyle}"/>
        <Setter Property="PathGeometry" Value="M4,2 L4,3 L8,3 L8,2 z M3,0 L4,0 L4,1 L8,1 L9,1 L9,2 L9,3 L9,6 L8,6 L4,6 L4,7 L3,7 L3,6 L3,4 L0,4 L0,3 L3,3 L3,2 L3,1 z"/>
        <Setter Property="MinHeight" Value="26"/>
        <Setter Property="MinWidth" Value="26"/>
        <Setter Property="IsBackgroundVisible" Value="False"/>
        <Setter Property="Command" Value="{x:Static telerik:RadGridViewCommands.TogglePinnedRowState}"/>
        <Setter Property="CommandParameter" Value="{Binding}"/>
        <Setter Property="IsPinned" Value="{Binding IsPinned, RelativeSource={RelativeSource AncestorType={x:Type grid:GridViewRow}}}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadPathButton">
                    <Grid Background="Transparent">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}"/>
                        <Path x:Name="Path"
                                Style="{TemplateBinding PathStyle}"
                                Data="{TemplateBinding PathGeometry}"
                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                Margin="{TemplateBinding Padding}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsPinned" Value="True">
                <Setter Property="PathGeometry" Value="M2,1L2,5L3,5L3,1zM3,0L6,0L6,1L6,5L7,5L7,6L4,6L4,9L3,9L3,6L2,6L1,6L0,6L0,5L1,5L1,1L1,1e-006L2,1e-006z"/>
                <Setter Property="PathStyle" Value="{StaticResource PinnedButtonStyle}"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="grid:GridViewPinButton" BasedOn="{StaticResource GridViewPinButtonStyle}"/>
</ResourceDictionary>
