<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="c"
        xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
        xmlns:dock="clr-namespace:Telerik.Windows.Controls.Docking;assembly=Telerik.Windows.Controls.Docking"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:local="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
        xmlns:telerikAnimation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
        xmlns:telerikNavigationPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.DragDrop;assembly=Telerik.Windows.Controls"
        xmlns:telerikTabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation">
    <sys:TimeSpan x:Key="AutoHideInAnimationDuration">0:0:0.360</sys:TimeSpan>
    <sys:TimeSpan x:Key="AutoHideOutAnimationDuration">0:0:0.400</sys:TimeSpan>
    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
    <telerik:InvertedBooleanConverter x:Key="invertedBooleanConverter"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF666666"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FFC5C2C2"/>
    <SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF262626"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FFC5C2C2"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Disabled" Color="#FF202020"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="#FF202020"/>
    <SolidColorBrush x:Key="ButtonIconBackground_MouseOver" Color="#FFDDDEDF"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Pressed" Color="#FF202020"/>
    <SolidColorBrush x:Key="PaneContentForeground" Color="#FFDDDDDD"/>
    <SolidColorBrush x:Key="Docking_Background" Color="#FF1D1D1D"/>
    <SolidColorBrush x:Key="Docking_BorderBrush" Color="#FF1D1D1D"/>
    <SolidColorBrush x:Key="Compass_VisualCue_Background" Color="#66789FC3"/>
    <SolidColorBrush x:Key="Compass_VisualCue_BorderBrush" Color="#FF789FC3"/>
    <Thickness x:Key="Compass_VisualCue_BorderThickness">2</Thickness>
    <LinearGradientBrush x:Key="CenterIndicatorStroke" EndPoint="0.507000029087067,0.421000003814697" StartPoint="0.488999992609024,0.061999998986721">
        <GradientStop Color="#FFA1A1A1" Offset="0.158"/>
        <GradientStop Color="White" Offset="0.572"/>
        <GradientStop Color="#7D161616" Offset="0.961"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CenterIndicatorFill_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#E5A3A3A3" Offset="0"/>
        <GradientStop Color="#E5575859" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CenterIndicatorFill_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#E4C2C2C2" Offset="0"/>
        <GradientStop Color="#FF878787" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="IndicatorFill_Normal" Color="#FF575859"/>
    <LinearGradientBrush x:Key="IndicatorStroke_LeftRight_Normal" EndPoint="0.092,0.5" StartPoint="0.908,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FF707070" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="IndicatorStroke_TopBottom_Normal" EndPoint="0.5,0.029" StartPoint="0.5,0.971">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FF707070" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="IndicatorFill_MouseOver" Color="#FF878787"/>
    <LinearGradientBrush x:Key="IndicatorStroke_TopBottom_MouseOver" EndPoint="0.5,0.029" StartPoint="0.5,0.971">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="IndicatorStroke_LeftRight_MouseOver" EndPoint="0.092,0.5" StartPoint="0.908,0.5">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="IndicatorContent_Fill_Normal" Color="#FF404041"/>
    <SolidColorBrush x:Key="IndicatorContent_Stroke_Normal" Color="#FFD6D6D6"/>
    <SolidColorBrush x:Key="IndicatorContent_Glow_Fill" Color="#FF636364"/>
    <SolidColorBrush x:Key="IndicatorContent_FocusArea_Stroke_Normal" Color="#FF8DB8E0"/>
    <SolidColorBrush x:Key="IndicatorContent_FocusArea_Stroke_MouseOver" Color="#FF77A7D4"/>
    <SolidColorBrush x:Key="IndicatorContent_FocusArea_Fill_Normal" Color="#FF789FC3"/>
    <SolidColorBrush x:Key="IndicatorContent_FocusArea_Fill_MouseOver" Color="#FF418CC1"/>
    <CornerRadius x:Key="PaneTabUnpinnedCornerRadius">2</CornerRadius>
    <CornerRadius x:Key="PaneTabPinnedCornerRadius">0 0 2 2</CornerRadius>
    <CornerRadius x:Key="PaneTabBottomUnpinnedCornerRadius">2</CornerRadius>
    <CornerRadius x:Key="PaneTabBottomPinnedCornerRadius">0 0 2 2</CornerRadius>
    <CornerRadius x:Key="PaneDocumentHostCornerRadius">2 2 0 0</CornerRadius>
    <SolidColorBrush x:Key="PaneTabForeground" Color="#FFDDDDDD"/>
    <SolidColorBrush x:Key="PaneTabForeground_Highlighted" Color="#FF262626"/>
    <SolidColorBrush x:Key="PaneTabForeground_Selected" Color="#FF262626"/>
    <SolidColorBrush x:Key="PaneTabForeground_Disabled" Color="#FF868686"/>
    <SolidColorBrush x:Key="PaneTabOuterBorder_Disabled" Color="#FF5D5C5C"/>
    <SolidColorBrush x:Key="PaneTabBackground_Disabled" Color="#FF666666"/>
    <SolidColorBrush x:Key="PaneTabBackground_Normal" Color="#FF575859"/>
    <LinearGradientBrush x:Key="PaneTabOuterBorder_Normal" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
        <GradientStop Color="#FF707070" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabBackground_Highlighted" Color="#FF878787"/>
    <LinearGradientBrush x:Key="PaneTabOuterBorder_Highlighted" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616060" Offset="0"/>
        <GradientStop Color="#FFCDCDCD" Offset="1"/>
        <GradientStop Color="#FFCDCDCD" Offset="0.14"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabOuterBorder_Selected" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FF595959" Offset="0"/>
        <GradientStop Color="#FF595959" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabBackground_SelectedHighlighted" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616060" Offset="0"/>
        <GradientStop Color="#FFAAAAAA" Offset="1"/>
        <GradientStop Color="#FFAAAAAA" Offset="0.14"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabOuterBorder_SelectedHighlighted" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FF767679" Offset="0"/>
        <GradientStop Color="#FF767679" Offset="1"/>
        <GradientStop Color="#FFB2B3B4" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabPinnedOuterBorder_Disabled" Color="#7F000000"/>
    <SolidColorBrush x:Key="PaneTabPinnedBackground_Disabled" Color="#33929292"/>
    <LinearGradientBrush x:Key="PaneTabPinnedOuterBorder_Normal" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
        <GradientStop Color="#FF707070" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabPinnedBackground_Normal" Color="#FF575859"/>
    <LinearGradientBrush x:Key="PaneTabPinnedOuterBorder_Highlighted" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabPinnedBackground_Highlighted" Color="#FF878787"/>
    <LinearGradientBrush x:Key="PaneTabPinnedOuterBorder_Selected" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FF595959" Offset="0"/>
        <GradientStop Color="#FF595959" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabPinnedBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616060" Offset="1"/>
        <GradientStop Color="#FFCDCDCD" Offset="0"/>
        <GradientStop Color="#FFCDCDCD" Offset="0.86"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabPinnedBackground_SelectedHighlighted" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616060" Offset="1"/>
        <GradientStop Color="#FFAAAAAA" Offset="0"/>
        <GradientStop Color="#FFAAAAAA" Offset="0.86"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabPinnedOuterBorder_SelectedHighlighted" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FF767679" Offset="0"/>
        <GradientStop Color="#FF767679" Offset="1"/>
        <GradientStop Color="#FFB2B3B4" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabBackgroundVertical_Normal" Color="#FF575859"/>
    <LinearGradientBrush x:Key="PaneTabOuterBorderVertical_Normal" EndPoint="0.381,0.125" StartPoint="0.384,0.878">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FF707070" Offset="0.987"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabBackgroundVertical_Highlighted" Color="#FF878787"/>
    <LinearGradientBrush x:Key="PaneTabOuterBorderVertical_Highlighted" EndPoint="0.381,0.125" StartPoint="0.384,0.878">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabBackgroundVertical_Selected" EndPoint="0.225,0.495" StartPoint="1.049,0.498">
        <GradientStop Color="#FF616060"/>
        <GradientStop Color="#FFCDCDCD" Offset="1"/>
        <GradientStop Color="#FFCDCDCD" Offset="0.333"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PaneTabOuterBorderVertical_Selected" EndPoint="0.381,0.125" StartPoint="0.384,0.878">
        <GradientStop Color="#FF595959" Offset="0"/>
        <GradientStop Color="#FF595959" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneTabBackground_SelectedHighlightedVertical" Color="#FF878787"/>
    <LinearGradientBrush x:Key="PaneTabOuterBorder_SelectedHighlightedVertical" EndPoint="0.971,0.5" StartPoint="0.039,0.5">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
    <Thickness x:Key="PaneGroup_BorderThickness">1</Thickness>
    <SolidColorBrush x:Key="PaneGroup_PaneFrame_Brush" Color="#FF707070"/>
    <SolidColorBrush x:Key="PaneGroup_BorderBrush" Color="#FF595959"/>
    <SolidColorBrush x:Key="PaneGroup_Background" Color="#FF333333"/>
    <CornerRadius x:Key="PaneGroup_PaneFrame_CornerRadius">2 2 2 0</CornerRadius>
    <CornerRadius x:Key="PaneGroup_DocumentFrameL4_CornerRadius">0 3 3 3</CornerRadius>
    <CornerRadius x:Key="PaneGroup_DocumentFrameL3_CornerRadius">0 2 2 2</CornerRadius>
    <Thickness x:Key="PaneGroup_DocumentFrameL3_Thickness">1</Thickness>
    <SolidColorBrush x:Key="PaneGroup_DocumentFrameL3_Brush" Color="#FF333333"/>
    <Thickness x:Key="HeaderButtonMargin">0 2 2 1</Thickness>
    <Thickness x:Key="PaneHeader_BorderThickness">0 0 0 1</Thickness>
    <SolidColorBrush x:Key="PaneHeader_BorderBrush" Color="#FF707070"/>
    <SolidColorBrush x:Key="PaneHeader_Background" Color="#FF575859"/>
    <CornerRadius x:Key="PaneHeader_CornerRadius">1 1 0 0</CornerRadius>
    <SolidColorBrush x:Key="PaneHeader_Background_Focused" Color="#FF777778"/>
    <SolidColorBrush x:Key="ToolWindow_OuterBorderBrush" Color="#FF595959"/>
    <SolidColorBrush x:Key="ToolWindow_Background" Color="#FF494A4D"/>
    <SolidColorBrush x:Key="GridResizer_Background_Preview" Color="#66789FC3"/>
    <SolidColorBrush x:Key="GridResizer_FocusFrame" Color="#FF789FC3"/>
    <SolidColorBrush x:Key="DragVisualBorder" Color="#FF595959"/>
    <SolidColorBrush x:Key="DragVisualBackground" Color="#FF333333"/>
    <ControlTemplate x:Key="CenterIndicatorContentTemplate" TargetType="telerikChromes:ButtonChrome">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="Common">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource CenterIndicatorFill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Fill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Stroke_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Path x:Name="Root"
                    Stretch="Fill"
                    Margin="0"
                    Data="M67.5,0 C75.072342,1.9073486E-06 82.353455,1.2469044 89.149216,3.5465889 L90.125404,3.8904171 L90.515846,6.0767555 C94.512115,25.60603 109.894,40.987915 129.42328,44.984184 L131.26396,45.312901 L131.45341,45.850784 C133.7531,52.646545 135,59.927658 135,67.5 C135,75.072342 133.7531,82.353455 131.45341,89.149216 L131.26396,89.687096 L129.42326,90.015816 C109.89398,94.012085 94.5121,109.39397 90.515831,128.92325 L90.125389,131.10959 L89.149216,131.45341 C82.353455,133.7531 75.072342,135 67.5,135 C59.927658,135 52.646545,133.7531 45.850784,131.45341 L44.874626,131.1096 L44.484188,128.92326 C40.487915,109.39398 25.106028,94.0121 5.5767536,90.015831 L3.7360401,89.687111 L3.5465851,89.149216 C1.2469025,82.353455 0,75.072342 0,67.5 C0,59.927658 1.2469025,52.646545 3.5465851,45.850784 L3.7360344,45.312904 L5.5767536,44.984184 C25.106028,40.987915 40.487915,25.60603 44.484188,6.0767555 L44.874626,3.8904037 L45.850784,3.5465889 C52.646545,1.2469044 59.927658,1.9073486E-06 67.5,0 z"
                    Opacity="0.795"
                    Fill="{StaticResource CenterIndicatorFill_Normal}"
                    Stroke="{StaticResource CenterIndicatorStroke}"
                    SnapsToDevicePixels="True"/>
            <Grid Height="19" HorizontalAlignment="Center" VerticalAlignment="Center" Width="17">
                <Rectangle Stroke="{StaticResource IndicatorContent_Stroke_Normal}" RadiusX="1" RadiusY="1" Fill="{StaticResource IndicatorContent_Fill_Normal}"/>
                <Rectangle x:Name="IndicatorFocusArea"
                        Margin="1 2 1 1"
                        Stroke="{StaticResource IndicatorContent_FocusArea_Stroke_Normal}"
                        Fill="{StaticResource IndicatorContent_FocusArea_Fill_Normal}"/>
                <Rectangle RadiusX="1" Height="3" VerticalAlignment="Top" Fill="{StaticResource IndicatorContent_Glow_Fill}" RadiusY="1" Margin="1 1 1 0"/>
            </Grid>
        </Grid>
    </ControlTemplate>
    <Style x:Key="CenterIndicatorStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <telerikChromes:ButtonChrome RenderHighlighted="{TemplateBinding RenderHighlighted}" Template="{StaticResource CenterIndicatorContentTemplate}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="LeftIndicatorContentTemplate" TargetType="telerikChromes:ButtonChrome">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="Common">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorFill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorStroke_LeftRight_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Fill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Stroke_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Path x:Name="Root"
                    Stretch="Fill"
                    Data="M41,48.625 C41,48.625 35.125,59.875 41,74.625 L15.87396,74.625 C15.87396,74.625 9.8737116,70.75 9.8737116,61.25 C9.8737116,51.75 15.998964,48.625 15.998964,48.625 z"
                    Fill="{StaticResource IndicatorFill_Normal}"
                    Width="32"
                    Stroke="{StaticResource IndicatorStroke_LeftRight_Normal}"
                    SnapsToDevicePixels="True"/>
            <Grid Height="19" HorizontalAlignment="Center" VerticalAlignment="Center" Width="17" Margin="0">
                <Rectangle x:Name="IndicatorContent"
                        RadiusX="1"
                        RadiusY="1"
                        Height="19"
                        VerticalAlignment="Top"
                        Stroke="{StaticResource IndicatorContent_Stroke_Normal}"
                        Fill="{StaticResource IndicatorContent_Fill_Normal}"/>
                <Rectangle x:Name="IndicatorGlow" RadiusX="1" Height="3" VerticalAlignment="Top" Fill="{StaticResource IndicatorContent_Glow_Fill}" RadiusY="1" Margin="1 1 1 0"/>
                <Rectangle x:Name="IndicatorFocusArea"
                        Margin="1 1 8 1"
                        Width="8"
                        Stroke="{StaticResource IndicatorContent_FocusArea_Stroke_Normal}"
                        Fill="{StaticResource IndicatorContent_FocusArea_Fill_Normal}"/>
            </Grid>
        </Grid>
    </ControlTemplate>
    <Style x:Key="LeftIndicatorStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Grid>
                        <telerikChromes:ButtonChrome RenderHighlighted="{TemplateBinding RenderHighlighted}" Template="{StaticResource LeftIndicatorContentTemplate}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="RightIndicatorContentTemplate" TargetType="telerikChromes:ButtonChrome">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="Common">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorFill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorStroke_LeftRight_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Fill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Stroke_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Path x:Name="Root"
                    Stretch="Fill"
                    Fill="{StaticResource IndicatorFill_Normal}"
                    Stroke="{StaticResource IndicatorStroke_LeftRight_Normal}"
                    Data="M10.354299,0 C10.354299,0 36.831249,6.1663559E-07 36.982265,7.0035469E-07 C38.91526,6.1663559E-07 42.322475,6.268014 42.322475,14 C42.322475,21.731987 38.91526,28 36.982265,28 C36.831249,28 10.354299,28 10.354299,28 C10.354299,28 12.715693,21.007113 12.715693,14 C12.715693,6.9928875 10.354299,0 10.354299,0 z"
                    SnapsToDevicePixels="True"/>
            <Grid Height="19" HorizontalAlignment="Center" VerticalAlignment="Center" Width="17" Margin="0">
                <Rectangle RadiusX="1" RadiusY="1" Stroke="{StaticResource IndicatorContent_Stroke_Normal}" Fill="{StaticResource IndicatorContent_Fill_Normal}"/>
                <Rectangle RadiusX="1" Height="3" VerticalAlignment="Top" RadiusY="1" Margin="1 1 1 0" Fill="{StaticResource IndicatorContent_Glow_Fill}"/>
                <Rectangle x:Name="IndicatorFocusArea"
                        Margin="8 1 1 1"
                        Width="8"
                        Stroke="{StaticResource IndicatorContent_FocusArea_Stroke_Normal}"
                        Fill="{StaticResource IndicatorContent_FocusArea_Fill_Normal}"/>
            </Grid>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RightIndicatorStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Grid>
                        <telerikChromes:ButtonChrome RenderHighlighted="{TemplateBinding RenderHighlighted}" Template="{StaticResource RightIndicatorContentTemplate}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="TopIndicatorContentTemplate" TargetType="telerikChromes:ButtonChrome">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="Common">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorFill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorStroke_TopBottom_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Fill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Stroke_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Path x:Name="Root"
                    Stretch="Fill"
                    Data="M83.125,132.375 C83.125,132.375 95,126.5 109.625,132.375 L109.75,107.87388 C109.75,107.87388 106.375,101.12357 96.5,101.12357 C86.375,101.12357 83.125,107.62387 83.125,107.62387 z"
                    Height="32"
                    Width="27"
                    VerticalAlignment="Center"
                    Fill="{StaticResource IndicatorFill_Normal}"
                    Stroke="{StaticResource IndicatorStroke_TopBottom_Normal}"
                    SnapsToDevicePixels="True"/>
            <Grid Height="19" HorizontalAlignment="Center" Margin="0 0 2 0" VerticalAlignment="Center" Width="17">
                <Rectangle RadiusX="1" RadiusY="1" Stroke="{StaticResource IndicatorContent_Stroke_Normal}" Fill="{StaticResource IndicatorContent_Fill_Normal}"/>
                <Rectangle x:Name="IndicatorFocusArea"
                        Margin="1 1 1 9"
                        Stroke="{StaticResource IndicatorContent_FocusArea_Stroke_Normal}"
                        Fill="{StaticResource IndicatorContent_FocusArea_Fill_Normal}"/>
            </Grid>
        </Grid>
    </ControlTemplate>
    <Style x:Key="TopIndicatorStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Grid>
                        <telerikChromes:ButtonChrome RenderHighlighted="{TemplateBinding RenderHighlighted}" Template="{StaticResource TopIndicatorContentTemplate}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="BottomIndicatorContentTemplate" TargetType="telerikChromes:ButtonChrome">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="Common">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorFill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorStroke_TopBottom_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Fill_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IndicatorFocusArea" Storyboard.TargetProperty="Stroke">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource IndicatorContent_FocusArea_Stroke_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Path x:Name="Root"
                    Stretch="Fill"
                    Height="32"
                    Width="28"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Fill="{StaticResource IndicatorFill_Normal}"
                    Stroke="{StaticResource IndicatorStroke_TopBottom_Normal}"
                    Data="M88,234.91667 C88,234.91667 101.00033,240.66612 114.75,234.91667 L114.91667,259.58264 C114.91667,259.58264 111.3336,265.99875 101,265.99875 C90.666412,265.99875 88.166672,259.83203 88.166672,259.83203 z"
                    SnapsToDevicePixels="True"/>
            <Grid Height="19" Width="17" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 0 2 0">
                <Rectangle RadiusX="1" RadiusY="1" Stroke="{StaticResource IndicatorContent_Stroke_Normal}" Fill="{StaticResource IndicatorContent_Fill_Normal}"/>
                <Rectangle x:Name="IndicatorFocusArea"
                        Margin="1 0 1 1"
                        Height="8"
                        VerticalAlignment="Bottom"
                        Stroke="{StaticResource IndicatorContent_FocusArea_Stroke_Normal}"
                        Fill="{StaticResource IndicatorContent_FocusArea_Fill_Normal}"/>
                <Rectangle RadiusX="1" Height="3" VerticalAlignment="Top" RadiusY="1" Margin="1 1 1 0" Fill="{StaticResource IndicatorContent_Glow_Fill}"/>
            </Grid>
        </Grid>
    </ControlTemplate>
    <Style x:Key="BottomIndicatorStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Grid>
                        <telerikChromes:ButtonChrome RenderHighlighted="{TemplateBinding RenderHighlighted}" Template="{StaticResource BottomIndicatorContentTemplate}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="CompassStyle" TargetType="dock:Compass">
        <Setter Property="Width" Value="140"/>
        <Setter Property="Height" Value="150"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dock:Compass">
                    <Border x:Name="VisualRoot" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="HighlightLeftIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_LeftIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightTopIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TopIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightRightIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_RightIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightBottomIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_BottomIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightCenterIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_CenterIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="LeftIndicatorVisibilityStates">
                                <VisualState x:Name="LeftIndicatorVisibile"/>
                                <VisualState x:Name="LeftIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_LeftIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="TopIndicatorVisibilityStates">
                                <VisualState x:Name="TopIndicatorVisibile"/>
                                <VisualState x:Name="TopIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TopIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="RightIndicatorVisibilityStates">
                                <VisualState x:Name="RightIndicatorVisibile"/>
                                <VisualState x:Name="RightIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_RightIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BottomIndicatorVisibilityStates">
                                <VisualState x:Name="BottomIndicatorVisibile"/>
                                <VisualState x:Name="BottomIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_BottomIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CenterIndicatorVisibilityStates">
                                <VisualState x:Name="CenterIndicatorVisibile"/>
                                <VisualState x:Name="CenterIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_CenterIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="Visual" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <telerikChromes:ButtonChrome x:Name="PART_LeftIndicator" Style="{StaticResource LeftIndicatorStyle}" Width="32" Height="27" Margin="2 5 91 5" HorizontalAlignment="Center"/>
                            <telerikChromes:ButtonChrome x:Name="PART_TopIndicator" Style="{StaticResource TopIndicatorStyle}" Width="28" Height="32" Margin="0 0 0 88" HorizontalAlignment="Center"/>
                            <telerikChromes:ButtonChrome x:Name="PART_RightIndicator" Style="{StaticResource RightIndicatorStyle}" Width="32" Height="27" Margin="93 5 5 5" HorizontalAlignment="Center"/>
                            <telerikChromes:ButtonChrome x:Name="PART_BottomIndicator" Style="{StaticResource BottomIndicatorStyle}" Width="28" Height="32" Margin="0 85 0 0" HorizontalAlignment="Center"/>
                            <telerikChromes:ButtonChrome x:Name="PART_CenterIndicator" Style="{StaticResource CenterIndicatorStyle}" Width="50" Height="50"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RootCompassStyle" TargetType="dock:RootCompass">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dock:RootCompass">
                    <Border x:Name="VisualRoot" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="HighlightLeftIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_LeftIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightTopIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TopIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightRightIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_RightIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightBottomIndicator">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_BottomIndicator" Storyboard.TargetProperty="RenderHighlighted">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="LeftIndicatorVisibilityStates">
                                <VisualState x:Name="LeftIndicatorVisibile"/>
                                <VisualState x:Name="LeftIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_LeftIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="TopIndicatorVisibilityStates">
                                <VisualState x:Name="TopIndicatorVisibile"/>
                                <VisualState x:Name="TopIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TopIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="RightIndicatorVisibilityStates">
                                <VisualState x:Name="RightIndicatorVisibile"/>
                                <VisualState x:Name="RightIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_RightIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BottomIndicatorVisibilityStates">
                                <VisualState x:Name="BottomIndicatorVisibile"/>
                                <VisualState x:Name="BottomIndicatorHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_BottomIndicator" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="Visual">
                            <telerikChromes:ButtonChrome x:Name="PART_LeftIndicator" Style="{StaticResource LeftIndicatorStyle}" Margin="3" Width="32" Height="27" HorizontalAlignment="Left"/>
                            <telerikChromes:ButtonChrome x:Name="PART_TopIndicator" Style="{StaticResource TopIndicatorStyle}" Margin="3" Width="28" Height="32" VerticalAlignment="Top"/>
                            <telerikChromes:ButtonChrome x:Name="PART_RightIndicator" Style="{StaticResource RightIndicatorStyle}" Margin="3" Width="32" Height="27" HorizontalAlignment="Right"/>
                            <telerikChromes:ButtonChrome x:Name="PART_BottomIndicator" Style="{StaticResource BottomIndicatorStyle}" Margin="3" Width="28" Height="32" VerticalAlignment="Bottom"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VisualCueStyle" TargetType="dock:VisualCue">
        <Setter Property="Background" Value="{StaticResource Compass_VisualCue_Background}"/>
        <Setter Property="BorderBrush" Value="{StaticResource Compass_VisualCue_BorderBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource Compass_VisualCue_BorderThickness}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dock:VisualCue">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadDockingStyle" TargetType="local:RadDocking">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="CompassStyle" Value="{StaticResource CompassStyle}"/>
        <Setter Property="RootCompassStyle" Value="{StaticResource RootCompassStyle}"/>
        <Setter Property="VisualCueStyle" Value="{StaticResource VisualCueStyle}"/>
        <Setter Property="Background" Value="{StaticResource Docking_Background}"/>
        <Setter Property="BorderBrush" Value="{StaticResource Docking_BorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:RadDocking">
                    <Grid x:Name="Root">
                        <Border x:Name="Border"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}">
                            <DockPanel x:Name="RootDockPanel">
                                <dock:AutoHideArea x:Name="LeftAutoHide" DockPanel.Dock="Left" BackgroundVisibility="Collapsed" TabStripPlacement="Left" TabOrientation="Vertical"/>
                                <dock:AutoHideArea x:Name="RightAutoHide" DockPanel.Dock="Right" BackgroundVisibility="Collapsed" TabStripPlacement="Right" TabOrientation="Vertical"/>
                                <dock:AutoHideArea x:Name="TopAutoHide" DockPanel.Dock="Top" BackgroundVisibility="Collapsed" TabStripPlacement="Top"/>
                                <dock:AutoHideArea x:Name="BottomAutoHide" DockPanel.Dock="Bottom" BackgroundVisibility="Collapsed" TabStripPlacement="Bottom"/>
                                <local:DockingPanel x:Name="ContentDockPanel" Background="{TemplateBinding Background}">
                                    <dock:DocumentHost x:Name="DocumentHost" IsTabStop="{TemplateBinding IsTabStop}"/>
                                </local:DockingPanel>
                            </DockPanel>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="telerikAnimation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <telerikAnimation:AnimationSelector>
                    <telerikAnimation:AnimationGroup AnimationName="Move">
                        <telerikAnimation:MoveAnimation/>
                        <telerikAnimation:ResizeAnimation/>
                        <telerikAnimation:FadeAnimation Direction="In"/>
                        <telerikAnimation:ScaleAnimation Direction="In" MinScale="0.7" MaxScale="1.0" TargetElementName="VisualRoot"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="Show">
                        <telerikAnimation:FadeAnimation Direction="In"/>
                        <telerikAnimation:ScaleAnimation Direction="In" MinScale="0.95" MaxScale="1.0" TargetElementName="VisualRoot"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="Hide" SpeedRatio="0.7">
                        <telerikAnimation:FadeAnimation Direction="Out"/>
                        <telerikAnimation:ScaleAnimation Direction="Out" MinScale="0.7" MaxScale="1.0" TargetElementName="VisualRoot"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="LeftIn">
                        <telerikAnimation:SlideAnimation SlideMode="Top" Duration="{StaticResource AutoHideInAnimationDuration}" TargetElementName="PopupChild" Orientation="Horizontal" Direction="In"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="LeftOut">
                        <telerikAnimation:SlideAnimation TargetElementName="PopupChild" SlideMode="Top" Duration="{StaticResource AutoHideOutAnimationDuration}" Orientation="Horizontal" Direction="Out"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="TopIn">
                        <telerikAnimation:SlideAnimation Orientation="Vertical" Duration="{StaticResource AutoHideInAnimationDuration}" TargetElementName="PopupChild" Direction="In"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="TopOut">
                        <telerikAnimation:SlideAnimation TargetElementName="PopupChild" Duration="{StaticResource AutoHideOutAnimationDuration}" Orientation="Vertical" Direction="Out"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="RightIn">
                        <telerikAnimation:SlideAnimation SlideMode="Bottom" TargetElementName="PopupChild" Duration="{StaticResource AutoHideInAnimationDuration}" Orientation="Horizontal" Direction="In"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="RightOut">
                        <telerikAnimation:SlideAnimation TargetElementName="PopupChild" SlideMode="Bottom" Duration="{StaticResource AutoHideOutAnimationDuration}" Orientation="Horizontal" Direction="Out"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="BottomIn">
                        <telerikAnimation:SlideAnimation SlideMode="Bottom" Duration="{StaticResource AutoHideInAnimationDuration}" Orientation="Vertical" TargetElementName="PopupChild" Direction="In"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="BottomOut">
                        <telerikAnimation:SlideAnimation Duration="{StaticResource AutoHideOutAnimationDuration}" TargetElementName="PopupChild" Direction="Out" Orientation="Vertical" SlideMode="Bottom"/>
                    </telerikAnimation:AnimationGroup>
                </telerikAnimation:AnimationSelector>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DocumentHostStyle" TargetType="dock:DocumentHost">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="MinWidth" Value="25"/>
        <Setter Property="MinHeight" Value="25"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dock:DocumentHost">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Padding="{TemplateBinding Padding}">
                        <ContentPresenter
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                Content="{TemplateBinding Content}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GridResizerPreviewStyle" TargetType="Control">
        <Setter Property="MinWidth" Value="4"/>
        <Setter Property="Background" Value="{StaticResource GridResizer_Background_Preview}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid x:Name="Root" Opacity=".5">
                        <Rectangle Fill="{TemplateBinding Background}"/>
                        <Grid x:Name="HorizontalTemplate" Height="6"/>
                        <Grid x:Name="VerticalTemplate" Visibility="Collapsed" Width="6"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadGridResizerStyle" TargetType="dock:RadGridResizer">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="PreviewStyle" Value="{StaticResource GridResizerPreviewStyle}"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dock:RadGridResizer">
                    <Grid x:Name="Root" IsHitTestVisible="{TemplateBinding IsEnabled}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="{TemplateBinding Background}" StrokeThickness="0"/>
                        <Grid x:Name="HorizontalTemplate" Height="10">
                            <StackPanel Height="6" VerticalAlignment="Center"/>
                        </Grid>
                        <Grid x:Name="VerticalTemplate" Visibility="Collapsed" Width="4">
                            <StackPanel Width="4" VerticalAlignment="Center" Orientation="Horizontal"/>
                        </Grid>
                        <Rectangle x:Name="FocusVisual" Stroke="{StaticResource GridResizer_FocusFrame}" StrokeThickness="1" Opacity="0" IsHitTestVisible="false"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadSplitContainerStyle" TargetType="local:RadSplitContainer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:RadSplitContainer">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="ResizerStates">
                                <VisualState x:Name="ResizerLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation BeginTime="00:00:00" To="4" Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="MinWidth"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>4 0 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ResizerTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="VerticalAlignment" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <VerticalAlignment>Top</VerticalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="HorizontalAlignment" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Placement" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Dock>Top</Dock>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation BeginTime="00:00:00" To="4" Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="MinHeight"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 4 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ResizerRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation BeginTime="00:00:00" To="4" Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="MinWidth"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 4 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="HorizontalAlignment" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Right</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Placement" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Dock>Right</Dock>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ResizerBottom">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="VerticalAlignment" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <VerticalAlignment>Bottom</VerticalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="HorizontalAlignment" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Stretch</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Placement" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Dock>Bottom</Dock>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation BeginTime="00:00:00" To="4" Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="MinHeight"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 0 4</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HideResizer"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="border"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Padding="{TemplateBinding Padding}">
                            <ItemsPresenter/>
                        </Border>
                        <dock:RadGridResizer x:Name="DockResizer" Placement="Left" ShowsPreview="True" Visibility="Collapsed" VerticalAlignment="Stretch" HorizontalAlignment="Left"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MinWidth" Value="15"/>
        <Setter Property="MinHeight" Value="15"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <local:ProportionalStackPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DocumentTabChromeStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Background" Value="{StaticResource PaneTabBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PaneTabOuterBorder_Normal}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Border x:Name="OuterBorder"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            CornerRadius="{TemplateBinding CornerRadius}"
                            Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Highlighted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorder_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorder_Selected}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackground_Selected}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedHighlighted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorder_SelectedHighlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackground_SelectedHighlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="NormalVertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorderVertical_Normal}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackgroundVertical_Normal}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HighlightedVertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorderVertical_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackgroundVertical_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedVertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorderVertical_Selected}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackgroundVertical_Selected}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedHighlightedVertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabOuterBorder_SelectedHighlightedVertical}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabBackground_SelectedHighlightedVertical}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DocumentPinnedTabChromeStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Background" Value="{StaticResource PaneTabPinnedBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PaneTabPinnedOuterBorder_Normal}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Border x:Name="OuterBorder"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            CornerRadius="{TemplateBinding CornerRadius}"
                            Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedOuterBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Highlighted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedOuterBorder_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedOuterBorder_Selected}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedBackground_Selected}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedHighlighted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedOuterBorder_SelectedHighlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabPinnedBackground_SelectedHighlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="PaneBottomTemplate" TargetType="local:RadPane">
        <Grid x:Name="wrapper" Margin="0 4 -1 0">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Highlighted}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromePinned" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PinnedStates">
                    <VisualState x:Name="Unpinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromeUnpinned" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromePinned" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBorder" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 0 0 2</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikChromes:ButtonChrome x:Name="ChromeUnpinned"
                    Visibility="Collapsed"
                    Style="{StaticResource DocumentTabChromeStyle}"
                    BorderThickness="1"
                    CornerRadius="{StaticResource PaneTabBottomUnpinnedCornerRadius}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"/>
            <telerikChromes:ButtonChrome x:Name="ChromePinned"
                    Visibility="Collapsed"
                    Style="{StaticResource DocumentPinnedTabChromeStyle}"
                    Margin="0 1 0 2"
                    BorderThickness="1 0 1 1"
                    CornerRadius="{StaticResource PaneTabBottomPinnedCornerRadius}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"/>
            <Border x:Name="ContentBorder">
                <telerikNavigationPrimitives:TabItemContentPresenter x:Name="HeaderElement"
                        Margin="6 3"
                        Foreground="{StaticResource PaneTabForeground}"
                        Content="{TemplateBinding Header}"
                        ContentTemplate="{TemplateBinding HeaderTemplate}"
                        Padding="{TemplateBinding Padding}"
                        HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                        IsTabStop="False"/>
            </Border>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="PaneTopTemplate" TargetType="local:RadPane">
        <Grid x:Name="wrapper" Margin="0 0 -1 0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation BeginTime="00:00:00" To="0.33" Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Highlighted}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Chrome" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 -2 0 -1</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PinnedStates">
                    <VisualState x:Name="Unpinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromeUnpinned" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="wrapper" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 0 -1 4</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Chrome" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikChromes:ButtonChrome x:Name="ChromeUnpinned"
                    Visibility="Collapsed"
                    Style="{StaticResource DocumentTabChromeStyle}"
                    BorderThickness="1"
                    CornerRadius="{StaticResource PaneTabBottomUnpinnedCornerRadius}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"/>
            <telerikChromes:ButtonChrome x:Name="Chrome"
                    Visibility="Collapsed"
                    Grid.ColumnSpan="2"
                    Margin="0 0 0 0"
                    BorderThickness="1 1 1 0"
                    CornerRadius="{StaticResource PaneDocumentHostCornerRadius}"
                    Style="{StaticResource DocumentTabChromeStyle}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"
                    RenderEnabled="{TemplateBinding IsEnabled}"/>
            <telerikNavigationPrimitives:TabItemContentPresenter x:Name="HeaderElement"
                    Margin="6 3 6 2"
                    Content="{TemplateBinding Header}"
                    ContentTemplate="{TemplateBinding HeaderTemplate}"
                    Padding="{TemplateBinding Padding}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    Foreground="{StaticResource PaneTabForeground}"
                    IsTabStop="False"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="PaneTemplate" TargetType="local:RadPane">
        <Grid x:Name="wrapper">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Highlighted}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromePinned" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PinnedStates">
                    <VisualState x:Name="Unpinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromeUnpinned" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromePinned" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PlacementStates">
                    <VisualState x:Name="HorizontalLeft"/>
                    <VisualState x:Name="HorizontalRight"/>
                    <VisualState x:Name="HorizontalTop">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="wrapper" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 0 -1 4</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>6 3</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="HorizontalBottom">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="wrapper" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 4 -1 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>6 3</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalLeft">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="wrapper" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 0 4 -1</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>3 6</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromeUnpinned" Storyboard.TargetProperty="Orientation">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Orientation>Vertical</Orientation>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromePinned" Storyboard.TargetProperty="Orientation">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Orientation>Vertical</Orientation>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalRight">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="wrapper" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>4 0 0 -1</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>3 6</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromeUnpinned" Storyboard.TargetProperty="Orientation">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Orientation>Vertical</Orientation>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChromePinned" Storyboard.TargetProperty="Orientation">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Orientation>Vertical</Orientation>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalTop"/>
                    <VisualState x:Name="VerticalBottom"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikChromes:ButtonChrome x:Name="ChromeUnpinned"
                    Visibility="Collapsed"
                    Style="{StaticResource DocumentTabChromeStyle}"
                    BorderThickness="1"
                    CornerRadius="{StaticResource PaneTabUnpinnedCornerRadius}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"/>
            <telerikChromes:ButtonChrome x:Name="ChromePinned"
                    Visibility="Collapsed"
                    Style="{StaticResource DocumentPinnedTabChromeStyle}"
                    Margin="0 1 0 0"
                    BorderThickness="1 0 1 1"
                    CornerRadius="{StaticResource PaneTabPinnedCornerRadius}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"/>
            <telerikNavigationPrimitives:TabItemContentPresenter x:Name="HeaderElement"
                    Foreground="{StaticResource PaneTabForeground}"
                    Content="{TemplateBinding Header}"
                    ContentTemplate="{TemplateBinding HeaderTemplate}"
                    Padding="{TemplateBinding Padding}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    IsTabStop="False"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="PaneDocumentHostTemplate" TargetType="local:RadPane">
        <Grid x:Name="wrapper" Margin="0 0 -1 0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Highlighted}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Chrome" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 -2 0 -1</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneTabForeground_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikChromes:ButtonChrome x:Name="Chrome"
                    Margin="0 0 0 0"
                    BorderThickness="1 1 1 0"
                    CornerRadius="{StaticResource PaneDocumentHostCornerRadius}"
                    Style="{StaticResource DocumentTabChromeStyle}"
                    RenderSelected="{TemplateBinding IsSelected}"
                    Grid.ColumnSpan="2"
                    RenderHighlighted="{TemplateBinding IsMouseOver}"
                    RenderEnabled="{TemplateBinding IsEnabled}"/>
            <telerik:RadButton x:Name="HeaderCloseButton"
                    Grid.Column="1"
                    IsBackgroundVisible="False"
                    Width="16"
                    Height="16"
                    VerticalAlignment="Center"
                    Command="local:RadDockingCommands.Close"
                    Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                <Path x:Name="BackgroundIcon"
                        Fill="#FF000000"
                        Width="8"
                        Height="7"
                        Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
            </telerik:RadButton>
            <telerikNavigationPrimitives:TabItemContentPresenter x:Name="HeaderElement"
                    Margin="6 3 6 2"
                    Padding="{TemplateBinding Padding}"
                    Foreground="{StaticResource PaneTabForeground}"
                    Content="{TemplateBinding Header}"
                    ContentTemplate="{TemplateBinding HeaderTemplate}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    IsTabStop="False"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadPaneStyle" TargetType="local:RadPane">
        <Setter Property="Template" Value="{StaticResource PaneTemplate}"/>
        <Setter Property="LeftTemplate" Value="{StaticResource PaneTemplate}"/>
        <Setter Property="TopTemplate" Value="{StaticResource PaneTopTemplate}"/>
        <Setter Property="RightTemplate" Value="{StaticResource PaneTemplate}"/>
        <Setter Property="BottomTemplate" Value="{StaticResource PaneBottomTemplate}"/>
        <Setter Property="DocumentHostTemplate" Value="{StaticResource PaneDocumentHostTemplate}"/>
        <Setter Property="BorderThickness" Value="1 1 1 1"/>
        <Setter Property="BorderBrush" Value="{StaticResource PaneTabOuterBorder_Normal}"/>
        <Setter Property="Background" Value="{StaticResource PaneTabBackground_Normal}"/>
        <Setter Property="Foreground" Value="{StaticResource PaneTabForeground}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ContextMenuTemplate">
            <Setter.Value>
                <DataTemplate>
                    <telerikNavigation:RadContextMenu InheritDataContext="False">
                        <telerikNavigation:RadMenuItem IsChecked="{Binding IsFloatingOnly}" Command="local:RadDockingCommands.Floating" CommandParameter="{Binding}" CommandTarget="{Binding}"/>
                        <telerikNavigation:RadMenuItem IsChecked="{Binding IsDockableOptionChecked}" Command="local:RadDockingCommands.Dockable" CommandParameter="{Binding}" CommandTarget="{Binding}"/>
                        <telerikNavigation:RadMenuItem IsChecked="{Binding IsInDocumentHost}" Command="local:RadDockingCommands.TabbedDocument" CommandParameter="{Binding}" CommandTarget="{Binding}"/>
                        <telerikNavigation:RadMenuItem
                                IsChecked="{Binding IsPinned, Converter={StaticResource invertedBooleanConverter}}"
                                Command="local:RadDockingCommands.Pin"
                                CommandParameter="{Binding}"
                                CommandTarget="{Binding}"/>
                        <telerikNavigation:RadMenuItem IsChecked="{Binding IsHidden}" Command="local:RadDockingCommands.Close" CommandParameter="{Binding}" CommandTarget="{Binding}"/>
                    </telerikNavigation:RadContextMenu>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="DraggedElementVisualCueTemplate">
        <Grid>
            <Border
                    Margin="0 0 4 4"
                    CornerRadius="2"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"/>
            <Border Margin="0 0 4 4" Padding="{TemplateBinding BorderThickness}">
                <TextBlock
                        Text="{Binding Title}"
                        Margin="{TemplateBinding Padding}"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style TargetType="dock:DraggedElementVisualCue">
        <Setter Property="Foreground" Value="{StaticResource PaneTabForeground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DragVisualBorder}"/>
        <Setter Property="Background" Value="{StaticResource DragVisualBackground}"/>
        <Setter Property="Margin" Value="10 0 0 0"/>
        <Setter Property="Padding" Value="6 2"/>
        <Setter Property="Template" Value="{StaticResource DraggedElementVisualCueTemplate}"/>
    </Style>
    <ControlTemplate x:Key="PaneGroup_PaneFrameTemplate" TargetType="ContentControl">
        <Border x:Name="Root"
                BorderBrush="{StaticResource PaneGroup_PaneFrame_Brush}"
                Background="{TemplateBinding Background}"
                BorderThickness="{TemplateBinding BorderThickness}"
                CornerRadius="{StaticResource PaneGroup_PaneFrame_CornerRadius}">
            <ContentPresenter/>
        </Border>
    </ControlTemplate>
    <ControlTemplate x:Key="PaneGroup_DocumentFrameTemplate" TargetType="ContentControl">
        <Border x:Name="Root"
                BorderBrush="{TemplateBinding BorderBrush}"
                Background="{TemplateBinding Background}"
                BorderThickness="{TemplateBinding BorderThickness}"
                CornerRadius="{StaticResource PaneGroup_DocumentFrameL4_CornerRadius}">
            <Border x:Name="BorderLayer3"
                    BorderThickness="{StaticResource PaneGroup_DocumentFrameL3_Thickness}"
                    BorderBrush="{StaticResource PaneGroup_DocumentFrameL3_Brush}"
                    CornerRadius="{StaticResource PaneGroup_DocumentFrameL3_CornerRadius}">
                <ContentPresenter/>
            </Border>
        </Border>
    </ControlTemplate>
    <Style x:Key="PaneGroup_DocumentFrameStyle" TargetType="ContentControl">
        <Setter Property="Template" Value="{StaticResource PaneGroup_DocumentFrameTemplate}"/>
        <Setter Property="IsTabStop" Value="False"/>
    </Style>
    <Style x:Key="PaneGroup_PaneFrameStyle" TargetType="ContentControl">
        <Setter Property="Template" Value="{StaticResource PaneGroup_PaneFrameTemplate}"/>
        <Setter Property="IsTabStop" Value="False"/>
    </Style>
    <Style x:Key="PaneHeader_MenuButtonStyle" TargetType="telerik:RadDropDownButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="{StaticResource HeaderButtonMargin}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome x:Name="ButtonChrome"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                RenderNormal="True"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}"
                                RenderChecked="{TemplateBinding IsOpen}"
                                IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="7"
                                Height="4"
                                Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="7"
                                Height="4"
                                Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneHeader_PinButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="{StaticResource HeaderButtonMargin}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                RenderNormal="True"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}"
                                IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="7"
                                Height="9"
                                Data="M3,7 L4,7 L4,9 L3,9 z M1,0 L6,0 L6,5 L7,5 L7,6 L0,6 L0,5 L1,5 z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="7"
                                Height="9"
                                Data="M3,7 L4,7 L4,9 L3,9 z M1,0 L6,0 L6,5 L7,5 L7,6 L0,6 L0,5 L1,5 z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneHeader_UnPinButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="{StaticResource HeaderButtonMargin}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                RenderNormal="True"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}"
                                IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="10"
                                Height="7"
                                Data="M0,3 L2,3 L2,4 L0,4 z M3,0 L4,0 L4,1 L9,1 L9,6 L4,6 L4,7 L3,7 z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="10"
                                Height="7"
                                Data="M0,3 L2,3 L2,4 L0,4 z M3,0 L4,0 L4,1 L9,1 L9,6 L4,6 L4,7 L3,7 z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneHeader_CloseButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="{StaticResource HeaderButtonMargin}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid x:Name="LayoutRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                RenderNormal="True"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}"
                                IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="8"
                                Height="7"
                                Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="8"
                                Height="7"
                                Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="PaneHeaderTemplate" TargetType="dock:PaneHeader">
        <Border x:Name="Root"
                Background="{TemplateBinding Background}"
                BorderThickness="{TemplateBinding BorderThickness}"
                BorderBrush="{TemplateBinding BorderBrush}"
                CornerRadius="{StaticResource PaneHeader_CornerRadius}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommandsMenuStates">
                    <VisualState x:Name="CommandsMenuNormalState"/>
                    <VisualState x:Name="CommandsMenuHiddenState">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderDropDownMenu" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PinnedStates">
                    <VisualState x:Name="Unpinned">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderUnPinButton" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderPinButton" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pinned"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="HighlightStates">
                    <VisualState x:Name="NotHighlighted"/>
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource PaneHeader_Background_Focused}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid x:Name="Content">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <ContentControl x:Name="TitleElement"
                        Grid.Column="0"
                        Margin="{TemplateBinding Padding}"
                        Content="{Binding SelectedPane.Title, RelativeSource={RelativeSource TemplatedParent}}"
                        ContentTemplate="{Binding SelectedPane.TitleTemplate, RelativeSource={RelativeSource TemplatedParent}}"
                        VerticalAlignment="Center"
                        Foreground="{StaticResource PaneTabForeground}"
                        HorizontalContentAlignment="Stretch"
                        VerticalContentAlignment="Center"
                        IsTabStop="False"/>
                <telerik:RadDropDownButton x:Name="HeaderDropDownMenu"
                        Grid.Column="1"
                        Command="local:RadDockingCommands.ContextMenuOpen"
                        CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}"
                        Style="{StaticResource PaneHeader_MenuButtonStyle}"
                        IsTabStop="{TemplateBinding IsTabStop}"/>
                <Grid Grid.Column="2" Visibility="{Binding SelectedPane.PinButtonVisibility, RelativeSource={RelativeSource TemplatedParent}}">
                    <telerik:RadButton x:Name="HeaderPinButton"
                            Command="local:RadDockingCommands.Pin"
                            CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}"
                            Style="{StaticResource PaneHeader_PinButtonStyle}"
                            IsTabStop="{TemplateBinding IsTabStop}"/>
                    <telerik:RadButton x:Name="HeaderUnPinButton"
                            Visibility="Collapsed"
                            Command="local:RadDockingCommands.Pin"
                            CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}"
                            Style="{StaticResource PaneHeader_UnPinButtonStyle}"
                            IsTabStop="{TemplateBinding IsTabStop}"/>
                </Grid>
                <telerik:RadButton x:Name="HeaderCloseButton"
                        Grid.Column="3"
                        Command="local:RadDockingCommands.Close"
                        CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}"
                        Style="{StaticResource PaneHeader_CloseButtonStyle}"
                        IsTabStop="{TemplateBinding IsTabStop}"/>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="PaneHeaderStyle" TargetType="dock:PaneHeader">
        <Setter Property="Template" Value="{StaticResource PaneHeaderTemplate}"/>
        <Setter Property="BorderThickness" Value="{StaticResource PaneHeader_BorderThickness}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PaneHeader_BorderBrush}"/>
        <Setter Property="Background" Value="{StaticResource PaneHeader_Background}"/>
        <Setter Property="Foreground" Value="{StaticResource PaneTabForeground}"/>
        <Setter Property="Padding" Value="3 0"/>
        <Setter Property="telerikDragDrop:DragDropManager.AllowDrag" Value="True"/>
        <Setter Property="dock:InputBindingsManager.InputBindings">
            <Setter.Value>
                <InputBindingCollection>
                    <MouseBinding Command="local:RadDockingCommands.PaneHeaderMenuOpen">
                        <MouseBinding.Gesture>
                            <MouseGesture MouseAction="RightClick"/>
                        </MouseBinding.Gesture>
                    </MouseBinding>
                </InputBindingCollection>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneGroup_CloseButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid x:Name="LayoutRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="8"
                                Height="7"
                                Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="8"
                                Height="7"
                                Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneGroup_LeftScrollButtonStyle" TargetType="RepeatButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid x:Name="LayoutRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="7"
                                Height="7"
                                Data="M6,0 L6,7 5,7 5,6 4,6 4,5 3,5 3,4 2,4 2,3 3,3 3,2 4,2 4,1 5,1 5,0 Z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="7"
                                Height="7"
                                Data="M6,0 L6,7 5,7 5,6 4,6 4,5 3,5 3,4 2,4 2,3 3,3 3,2 4,2 4,1 5,1 5,0 Z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneGroup_RightScrollButtonStyle" TargetType="RepeatButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid x:Name="LayoutRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="7"
                                Height="7"
                                Data="M1,0 L1,7 2,7 2,6 3,6 3,5 4,5 4,4 5,4 5,3 4,3 4,2 3,2 3,1 2,1 2,0 Z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="7"
                                Height="7"
                                Data="M1,0 L1,7 2,7 2,6 3,6 3,5 4,5 4,4 5,4 5,3 4,3 4,2 3,2 3,1 2,1 2,0 Z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PaneGroup_PaneMenuButtonStyle" TargetType="telerik:RadDropDownButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome
                                RenderNormal="False"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}"
                                RenderChecked="{TemplateBinding IsOpen}"
                                IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="7"
                                Height="7"
                                Data="M0,2 L7,2 7,3 6,3 6,4 5,4 5,5 4,5 4,6 3,6 3,5 2,5 2,4 1,4 1,3 0,3 Z M0,0 L7,0 7,1 0,1 Z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="7"
                                Height="7"
                                Data="M0,2 L7,2 7,3 6,3 6,4 5,4 5,5 4,5 4,6 3,6 3,5 2,5 2,4 1,4 1,3 0,3 Z M0,0 L7,0 7,1 0,1 Z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="PaneGroupBottomTemplate" TargetType="local:RadPaneGroup">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="AutoCollapseStates">
                    <VisualState x:Name="SingleItem">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsContainer" Storyboard.TargetProperty="Visibility" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="TwoOrMoreItems"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PaneHeaderVisibilityStates">
                    <VisualState x:Name="PaneHeaderHidden">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Visibility" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="PaneHeaderVisible"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ResizerStates">
                    <VisualState x:Name="ResizerLeft">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="00:00:00" To="4" Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="MinWidth"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBackground" Storyboard.TargetProperty="Margin" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>4 0 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsContainer" Storyboard.TargetProperty="Margin" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>4 -5 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ResizerTop">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="VerticalAlignment" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Top</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="HorizontalAlignment" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Stretch</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Placement" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Dock>Top</Dock>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Double>4</sys:Double>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="(Grid.RowSpan)" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>0</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBackground" Storyboard.TargetProperty="Margin" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 4 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="HideResizer"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" MinHeight="20"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <ContentControl x:Name="ContentBackground"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Foreground="{TemplateBinding Foreground}"
                    Background="{TemplateBinding Background}"
                    Style="{StaticResource PaneGroup_PaneFrameStyle}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Border Grid.Row="0" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.PaneHeaderVisibility}">
                        <dock:PaneHeader x:Name="HeaderElement" Grid.Row="0" MinHeight="16" SelectedPane="{TemplateBinding SelectedPane}"/>
                    </Border>
                    <Grid Grid.Row="1">
                        <ContentPresenter x:Name="ContentElement"
                                Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                                ContentTemplate="{TemplateBinding SelectedContentTemplate}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                        <Grid x:Name="ContentElementsPanel" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                    </Grid>
                </Grid>
            </ContentControl>
            <Border x:Name="ItemsContainer" Grid.Row="1" Margin="0 -5 0 0" Padding="0 0 1 0">
                <ItemsPresenter x:Name="ItemsPresenterElement"/>
            </Border>
            <dock:RadGridResizer x:Name="DockResizer" Grid.RowSpan="2" Placement="Left" ShowsPreview="True" Visibility="Collapsed" VerticalAlignment="Stretch" HorizontalAlignment="Left"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="PaneGroupDocumentTemplate" TargetType="local:RadPaneGroup">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="DropDownDisplayStates">
                    <VisualState x:Name="DropDownButtonCollapsed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownButtonElement" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownButtonVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownButtonElement" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ResizerStates">
                    <VisualState x:Name="ResizerLeft">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="00:00:00" To="4" Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="MinWidth"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsPresenterElement" Storyboard.TargetProperty="Margin" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>4 2 0 2</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBackground" Storyboard.TargetProperty="Margin" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>4 0 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ResizerTop">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Visibility" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="VerticalAlignment" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Top</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="HorizontalAlignment" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Stretch</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Placement" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Dock>Top</Dock>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="Height" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Double>4</sys:Double>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="(Grid.RowSpan)" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DockResizer" Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>0</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="Margin" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 4 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="HideResizer"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <ContentControl x:Name="ContentBackground"
                    Grid.Row="1"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Foreground="{TemplateBinding Foreground}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"
                    Style="{StaticResource PaneGroup_DocumentFrameStyle}">
                <Grid>
                    <ContentPresenter x:Name="ContentElement"
                            Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            ContentTemplate="{TemplateBinding SelectedContentTemplate}"
                            ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                    <Grid x:Name="ContentElementsPanel" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                </Grid>
            </ContentControl>
            <Grid Grid.Row="0" x:Name="Header">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <RepeatButton x:Name="LeftScrollButtonElement"
                        Style="{StaticResource PaneGroup_LeftScrollButtonStyle}"
                        Grid.Column="0"
                        Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}"/>
                <ScrollViewer x:Name="ScrollViewerElement"
                        Grid.Column="1"
                        Margin="0 -2"
                        HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
                    <ScrollViewer.Template>
                        <ControlTemplate TargetType="ScrollViewer">
                            <ScrollContentPresenter x:Name="ScrollContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="0 0 1 0"/>
                        </ControlTemplate>
                    </ScrollViewer.Template>
                    <ItemsPresenter x:Name="ItemsPresenterElement" Margin="0 2"/>
                </ScrollViewer>
                <RepeatButton x:Name="RightScrollButtonElement"
                        Style="{StaticResource PaneGroup_RightScrollButtonStyle}"
                        Grid.Column="2"
                        Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}"/>
                <telerik:RadDropDownButton x:Name="DropDownButtonElement"
                        Style="{StaticResource PaneGroup_PaneMenuButtonStyle}"
                        Visibility="Collapsed"
                        Grid.Column="3"
                        IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                    <telerikNavigation:RadContextMenu.ContextMenu>
                        <telerikTabControl:DropDownMenu x:Name="DropDownMenuElement"
                                StaysOpen="False"
                                Placement="Bottom"
                                Foreground="{StaticResource PaneContentForeground}"
                                ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}"
                                ItemTemplateSelector="{TemplateBinding ItemDropDownContentTemplateSelector}"
                                DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}"/>
                    </telerikNavigation:RadContextMenu.ContextMenu>
                </telerik:RadDropDownButton>
                <telerik:RadButton x:Name="CloseButton"
                        Grid.Column="4"
                        Style="{StaticResource PaneGroup_CloseButtonStyle}"
                        Command="local:RadDockingCommands.Close"
                        Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            </Grid>
            <dock:RadGridResizer x:Name="DockResizer" Placement="Left" ShowsPreview="True" Visibility="Collapsed" VerticalAlignment="Stretch" HorizontalAlignment="Left" Grid.RowSpan="2"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadPaneGroupStyle" TargetType="local:RadPaneGroup">
        <Setter Property="Template" Value="{StaticResource PaneGroupBottomTemplate}"/>
        <Setter Property="BottomTemplate" Value="{StaticResource PaneGroupBottomTemplate}"/>
        <Setter Property="TopTemplate" Value="{StaticResource PaneGroupDocumentTemplate}"/>
        <Setter Property="DocumentHostTemplate" Value="{StaticResource PaneGroupDocumentTemplate}"/>
        <Setter Property="LeftTemplate" Value="{StaticResource PaneGroupBottomTemplate}"/>
        <Setter Property="RightTemplate" Value="{StaticResource PaneGroupBottomTemplate}"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikNavigationPrimitives:TabStripPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="BorderThickness" Value="{StaticResource PaneGroup_BorderThickness}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PaneGroup_BorderBrush}"/>
        <Setter Property="Background" Value="{StaticResource PaneGroup_Background}"/>
        <Setter Property="Foreground" Value="{StaticResource PaneContentForeground}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="Align" Value="Left"/>
        <Setter Property="TabStripPlacement" Value="Bottom"/>
        <Setter Property="AllTabsEqualHeight" Value="True"/>
        <Setter Property="BackgroundVisibility" Value="Visible"/>
        <Setter Property="MinWidth" Value="15"/>
        <Setter Property="MinHeight" Value="15"/>
    </Style>
    <ControlTemplate x:Key="AutoHideAreaTopTemplate" TargetType="dock:AutoHideArea">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <ItemsPresenter x:Name="ItemsPresenterElement" Grid.Row="0"/>
            <Popup x:Name="ContentPopup" IsOpen="False" Grid.Row="1" AllowsTransparency="True">
                <Grid>
                    <Grid x:Name="PopupChild" MinWidth="50" MinHeight="50">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <ContentControl x:Name="ContentBackground"
                                Grid.Row="0"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                Foreground="{TemplateBinding Foreground}"
                                Style="{StaticResource PaneGroup_PaneFrameStyle}">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <dock:PaneHeader x:Name="HeaderElement"
                                        Visibility="{Binding SelectedPane.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}"
                                        Grid.Row="0"
                                        MinHeight="16"
                                        SelectedPane="{TemplateBinding SelectedPane}"/>
                                <ContentPresenter x:Name="ContentElement" Grid.Row="1" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
                            </Grid>
                        </ContentControl>
                        <dock:RadGridResizer x:Name="Resizer" Placement="Bottom" Grid.Row="1" Height="4" Background="#01010101" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Cursor="SizeNS"/>
                    </Grid>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="AutoHideAreaBottomTemplate" TargetType="dock:AutoHideArea">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <ItemsPresenter x:Name="ItemsPresenterElement" Grid.Row="1"/>
            <Popup x:Name="ContentPopup" IsOpen="False" AllowsTransparency="True" Placement="Top">
                <Grid>
                    <Grid x:Name="PopupChild" MinWidth="50" MinHeight="50">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <dock:RadGridResizer x:Name="Resizer" Grid.Row="0" Placement="Top" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="4" Background="#01010101" Cursor="SizeNS"/>
                        <ContentControl x:Name="ContentBackground"
                                Grid.Row="1"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                Foreground="{TemplateBinding Foreground}"
                                Style="{StaticResource PaneGroup_PaneFrameStyle}">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <dock:PaneHeader x:Name="HeaderElement"
                                        Visibility="{Binding SelectedPane.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}"
                                        Grid.Row="0"
                                        MinHeight="16"
                                        SelectedPane="{TemplateBinding SelectedPane}"/>
                                <ContentPresenter x:Name="ContentElement" Grid.Row="1" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
                            </Grid>
                        </ContentControl>
                    </Grid>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="AutoHideAreaLeftTemplate" TargetType="dock:AutoHideArea">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <ItemsPresenter x:Name="ItemsPresenterElement"/>
            <Popup IsOpen="False" x:Name="ContentPopup" Grid.Column="1" AllowsTransparency="True" Placement="Right">
                <Grid>
                    <Grid x:Name="PopupChild" MinWidth="50" MinHeight="50">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <ContentControl x:Name="ContentBackground"
                                Grid.Column="0"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                Foreground="{TemplateBinding Foreground}"
                                Style="{StaticResource PaneGroup_PaneFrameStyle}">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <dock:PaneHeader x:Name="HeaderElement"
                                        Visibility="{Binding SelectedPane.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}"
                                        Grid.Row="0"
                                        MinHeight="16"
                                        SelectedPane="{TemplateBinding SelectedPane}"/>
                                <ContentPresenter x:Name="ContentElement" Grid.Row="1" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
                            </Grid>
                        </ContentControl>
                        <dock:RadGridResizer x:Name="Resizer" Grid.Column="1" Placement="Right" HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="4" Background="#01010101" Cursor="SizeWE"/>
                    </Grid>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="AutoHideAreaRightTemplate" TargetType="dock:AutoHideArea">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <ItemsPresenter x:Name="ItemsPresenterElement" Grid.Column="1"/>
            <Popup IsOpen="False" x:Name="ContentPopup" AllowsTransparency="True" Placement="Left">
                <Grid>
                    <Grid x:Name="PopupChild" MinWidth="50" MinHeight="50">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ContentControl x:Name="ContentBackground"
                                Grid.Column="1"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                Foreground="{TemplateBinding Foreground}"
                                Style="{StaticResource PaneGroup_PaneFrameStyle}">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <dock:PaneHeader x:Name="HeaderElement"
                                        Visibility="{Binding SelectedPane.PaneHeaderVisibility, RelativeSource={RelativeSource TemplatedParent}}"
                                        Grid.Row="0"
                                        MinHeight="16"
                                        SelectedPane="{TemplateBinding SelectedPane}"/>
                                <ContentPresenter x:Name="ContentElement" Grid.Row="1" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
                            </Grid>
                        </ContentControl>
                        <dock:RadGridResizer x:Name="Resizer" Grid.Column="0" Placement="Left" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="4" Background="#01010101" Cursor="SizeWE"/>
                    </Grid>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <Style x:Key="AutoHideAreaStyle" TargetType="dock:AutoHideArea">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsEnabled" Value="True"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="{StaticResource PaneGroup_BorderThickness}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PaneGroup_BorderBrush}"/>
        <Setter Property="Background" Value="{StaticResource PaneGroup_Background}"/>
        <Setter Property="Foreground" Value="{StaticResource PaneContentForeground}"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikNavigationPrimitives:TabStripPanel x:Name="TabStripPanel"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ReorderTabRows" Value="False"/>
        <Setter Property="Template" Value="{StaticResource AutoHideAreaTopTemplate}"/>
        <Setter Property="TopTemplate" Value="{StaticResource AutoHideAreaTopTemplate}"/>
        <Setter Property="BottomTemplate" Value="{StaticResource AutoHideAreaBottomTemplate}"/>
        <Setter Property="RightTemplate" Value="{StaticResource AutoHideAreaRightTemplate}"/>
        <Setter Property="LeftTemplate" Value="{StaticResource AutoHideAreaLeftTemplate}"/>
    </Style>
    <Style x:Key="ToolWindow_CloseButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Margin" Value="{StaticResource HeaderButtonMargin}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid x:Name="LayoutRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ForegroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundIcon" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" IsTabStop="{TemplateBinding IsTabStop}"/>
                        <Path x:Name="BackgroundIcon"
                                Fill="{StaticResource ButtonIconBackground_Normal}"
                                Margin="0 2 0 0"
                                Width="8"
                                Height="7"
                                Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
                        <Path x:Name="ForegroundIcon"
                                Fill="{StaticResource ButtonIconForeground_Normal}"
                                Margin="0 1 0 1"
                                Width="8"
                                Height="7"
                                Data="M0,0 L2,0 2,1 3,1 3,2 5,2 5,1 6,1 6,0 8,0 8,1 7,1 7,2 6,2 6,3 5,3 5,4 6,4 6,5 6,5 7,5 7,6 8,6 8,7 6,7 6,6 5,6 5,5 3,5 3,6 2,6 2,7 0,7 0,6 1,6 1,5 2,5 2,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 Z"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ToolWindowStyle" TargetType="dock:ToolWindow">
        <Setter Property="MinHeight" Value="24"/>
        <Setter Property="MinWidth" Value="85"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Foreground" Value="{StaticResource PaneTabForeground}"/>
        <Setter Property="Background" Value="{StaticResource ToolWindow_Background}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ToolWindow_OuterBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dock:ToolWindow">
                    <Grid x:Name="VisualRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PaneHeader_Background_Focused}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border Background="Transparent">
                            <Border x:Name="Border" CornerRadius="4" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <Border x:Name="HeaderElement" Grid.Row="0" Grid.Column="0" Background="Transparent" Padding="3 1">
                                        <Border.InputBindings>
                                            <MouseBinding Command="local:RadDockingCommands.PaneHeaderMenuOpen">
                                                <MouseBinding.Gesture>
                                                    <MouseGesture MouseAction="RightClick"/>
                                                </MouseBinding.Gesture>
                                            </MouseBinding>
                                        </Border.InputBindings>
                                        <ContentPresenter x:Name="Header" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}"/>
                                    </Border>
                                    <telerik:RadButton x:Name="CloseButton"
                                            Style="{StaticResource ToolWindow_CloseButtonStyle}"
                                            Grid.Row="0"
                                            Grid.Column="1"
                                            Margin="1 1 3 1"
                                            Command="{x:Static telerik:WindowCommands.Close}"/>
                                    <ContentPresenter x:Name="Content" Grid.Row="1" Grid.ColumnSpan="2" Content="{TemplateBinding Content}" Margin="3 0 3 3"/>
                                </Grid>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="local:RadPane" BasedOn="{StaticResource RadPaneStyle}"/>
    <Style TargetType="local:RadDocumentPane" BasedOn="{StaticResource RadPaneStyle}"/>
    <Style TargetType="dock:Compass" BasedOn="{StaticResource CompassStyle}"/>
    <Style TargetType="dock:RootCompass" BasedOn="{StaticResource RootCompassStyle}"/>
    <Style TargetType="dock:VisualCue" BasedOn="{StaticResource VisualCueStyle}"/>
    <Style TargetType="local:RadDocking" BasedOn="{StaticResource RadDockingStyle}"/>
    <Style TargetType="dock:DocumentHost" BasedOn="{StaticResource DocumentHostStyle}"/>
    <Style TargetType="dock:RadGridResizer" BasedOn="{StaticResource RadGridResizerStyle}"/>
    <Style TargetType="local:RadSplitContainer" BasedOn="{StaticResource RadSplitContainerStyle}"/>
    <Style TargetType="dock:PaneHeader" BasedOn="{StaticResource PaneHeaderStyle}"/>
    <Style TargetType="local:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}"/>
    <Style TargetType="dock:ToolWindow" BasedOn="{StaticResource ToolWindowStyle}"/>
    <Style TargetType="dock:AutoHideArea" BasedOn="{StaticResource AutoHideAreaStyle}"/>
</ResourceDictionary>
