<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:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
        xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
        xmlns:extensions="clr-namespace:Telerik.Windows.Controls.Diagrams.Extensions;assembly=Telerik.Windows.Controls.Diagrams.Extensions"
        xmlns:data="clr-namespace:Telerik.Windows.Controls.Diagrams.Extensions.Data;assembly=Telerik.Windows.Controls.Diagrams.Extensions"
        xmlns:core="clr-namespace:Telerik.Windows.Diagrams.Core;assembly=Telerik.Windows.Diagrams.Core">
    <telerik1:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <telerik1:InvertedBooleanConverter x:Key="InvertedBooleanConverter"/>
    <telerik1:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
    <SolidColorBrush x:Key="SliderThumb_OuterBorder_Normal" Color="#FF898C95"/>
    <CornerRadius x:Key="SliderHandOuterBorder_CornerRadius">2</CornerRadius>
    <CornerRadius x:Key="SliderHandInnerBorder_CornerRadius">1</CornerRadius>
    <SolidColorBrush x:Key="SliderHandOuterBorder_Normal" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="SliderHandInnerBorder_Normal" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="SliderHandBackground_Normal" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="SliderOuterBorder_Focused" Color="#FF2C628B"/>
    <SolidColorBrush x:Key="SliderBackground_Tick" Color="#FF000000"/>
    <SolidColorBrush x:Key="SliderBackgroundTrack" Color="#FFE7EAEA"/>
    <SolidColorBrush x:Key="SliderOuterBorderTrack" Color="#FF898C95"/>
    <SolidColorBrush x:Key="SliderInnerBorderTrack" Color="#00FFFFFF"/>
    <CornerRadius x:Key="SliderOuterBorderTrack_CornerRadius">0</CornerRadius>
    <CornerRadius x:Key="SliderInnerBorderTrack_CornerRadius">0</CornerRadius>
    <Thickness x:Key="SliderOuterBorderTrack_BorderThickness">1</Thickness>
    <Thickness x:Key="SliderInnerBorderTrack_BorderThickness">0</Thickness>
    <Thickness x:Key="SliderRangeMiddleThumb_Margin">0</Thickness>
    <LinearGradientBrush x:Key="SliderRangeMiddleThumb_Background" EndPoint="0.069,0.931" StartPoint="0.069,0.074">
        <GradientStop Color="#FF8ACEE4" Offset="0.655"/>
        <GradientStop Color="#FF9AE7FE" Offset="0.02"/>
        <GradientStop Color="#FF2F58CD" Offset="0.281"/>
        <GradientStop Color="#FF3E69E2" Offset="0.65"/>
        <GradientStop Color="#FF9AE7FE" Offset="0.28"/>
        <GradientStop Color="#FF8ACEE4" Offset="0.996"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SliderRangeMiddleThumb_Background_MouseOver" EndPoint="0.069,0.931" StartPoint="0.069,0.074">
        <GradientStop Color="#FF739DC3" Offset="0.655"/>
        <GradientStop Color="#FFAAD6FE" Offset="0.02"/>
        <GradientStop Color="#FF0A309B" Offset="0.295"/>
        <GradientStop Color="#FF0D5DC9" Offset="0.647"/>
        <GradientStop Color="#FFAAD6FE" Offset="0.28"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SliderRangeMiddleThumb_Background_Disabled" EndPoint="0.069,0.931" StartPoint="0.069,0.074">
        <GradientStop Color="#FFD0F1FA" Offset="0.655"/>
        <GradientStop Color="#FFDEF7FE" Offset="0.02"/>
        <GradientStop Color="#FF849CE2" Offset="0.295"/>
        <GradientStop Color="#FF849CE2" Offset="0.65"/>
        <GradientStop Color="#FFD0F1FA" Offset="0.28"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="SliderRangeMiddleThumb_Focused" Color="#FF2C628B"/>
    <CornerRadius x:Key="SplitButton_LeftPartCornerRadius">2 0 0 2</CornerRadius>
    <CornerRadius x:Key="SplitButton_RightPartCornerRadius">0 2 2 0</CornerRadius>
    <CornerRadius x:Key="SplitButton_TopPartCornerRadius">2 2 0 0</CornerRadius>
    <CornerRadius x:Key="SplitButton_BottomPartCornerRadius">0 0 2 2</CornerRadius>
    <CornerRadius x:Key="SplitButton_SpanCornerRadius">2</CornerRadius>
    <CornerRadius x:Key="SplitButton_SpanInnerCornerRadius">1</CornerRadius>
    <SolidColorBrush x:Key="TextBoxBackground_ReadOnly" Color="#5EC9C9C9"/>
    <CornerRadius x:Key="ControlOuterBorder_CornerRadius">2</CornerRadius>
    <CornerRadius x:Key="ControlInnerBorder_CornerRadius">1</CornerRadius>
    <SolidColorBrush x:Key="ControlOuterBorder" Color="#FFB0B0B0"/>
    <SolidColorBrush x:Key="ControlBackground" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ControlElement_Disabled" Color="#FF6E6E6E"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFA9A9A9"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Disabled" Color="#FFF8F8F8"/>
    <LinearGradientBrush x:Key="ControlBackground_Disabled" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF7F7F7" Offset="0.004"/>
        <GradientStop Color="#FFE3E3E3" Offset="1"/>
        <GradientStop Color="#FFF3F3F3" Offset="0.5"/>
        <GradientStop Color="#FFEAEAEA" Offset="0.5"/>
    </LinearGradientBrush>
    <sys:Double x:Key="ControlElement_Height">4</sys:Double>
    <sys:Double x:Key="ControlElement_Width">7</sys:Double>
    <SolidColorBrush x:Key="ControlElement_Normal" Color="#FF282828"/>
    <SolidColorBrush x:Key="ControlElement_InnerNormal" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF000000"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF898C95"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Normal" Color="#FFFCFCFC"/>
    <LinearGradientBrush x:Key="ControlBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF2F2F2" Offset="0"/>
        <GradientStop Color="#FFECECEC" Offset="0.5"/>
        <GradientStop Color="#FFDDDDDD" Offset="0.5"/>
        <GradientStop Color="#FFD0D0D0" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlElement_MouseOver" Color="#FF282828"/>
    <SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FF3C7FB1"/>
    <SolidColorBrush x:Key="ControlInnerBorder_MouseOver" Color="#FFE9F6FD"/>
    <LinearGradientBrush x:Key="ControlBackground_MouseOver" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#FFBDE4F9" Offset="0"/>
        <GradientStop Color="#FFB4E0F7" Offset="0.5"/>
        <GradientStop Color="#FF98D1EF" Offset="0.5"/>
        <GradientStop Color="#FF81C3E5" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlElement_Pressed" Color="#FF282828"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Pressed" Color="#FF2C628B"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Pressed" Color="#FF9EB0BA"/>
    <LinearGradientBrush x:Key="ControlBackground_Pressed" StartPoint="0.5,1" EndPoint="0.5,0.0">
        <GradientStop Color="#FF6AB6DE" Offset="0"/>
        <GradientStop Color="#FF82C2E4" Offset="0.5"/>
        <GradientStop Color="#FF98D0ED" Offset="0.5"/>
        <GradientStop Color="#FFA9DEFB" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="#B299DEFD"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Highlighted" Color="#FFE7F5FD"/>
    <LinearGradientBrush x:Key="ControlBackground_Highlighted" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#FFF1F8FD" Offset="0"/>
        <GradientStop Color="#FFD5EFFC" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Checked" Color="#FF2C628B"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Checked" Color="#FF9EB0BA"/>
    <LinearGradientBrush x:Key="ControlBackground_Checked" StartPoint="0.5,0" EndPoint="0.5,1">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="#FFA9DEFB" Offset="0"/>
                <GradientStop Color="#FF98D0ED" Offset="0.5"/>
                <GradientStop Color="#FF82C2E4" Offset="0.5"/>
                <GradientStop Color="#FF6AB6DE" Offset="1"/>
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_MouseOverChecked" Color="#FF3C7FB1"/>
    <SolidColorBrush x:Key="ControlInnerBorder_MouseOverChecked" Color="#FF9EB0BA"/>
    <LinearGradientBrush x:Key="ControlBackground_MouseOverChecked" EndPoint="0.5,0" StartPoint="0.5,1">
        <GradientStop Color="#FF82C3E6" Offset="0"/>
        <GradientStop Color="#FF99D2F0" Offset="0.5"/>
        <GradientStop Color="#FFA9DAF4" Offset="0.5"/>
        <GradientStop Color="#FFBCE5FC" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF3C7FB1"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="#FF99DEFD"/>
    <SolidColorBrush x:Key="ControlBackground_Focused" Color="Transparent"/>
    <SolidColorBrush x:Key="ControlSubItem_OuterBorder_Selected" Color="#FFA6D9F4"/>
    <SolidColorBrush x:Key="ControlSubItem_InnerBorder_Selected" Color="#FFD7F0FC"/>
    <LinearGradientBrush x:Key="ControlSubItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE3F4FC" Offset="0"/>
        <GradientStop Color="#FFA6D9F4" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF282828"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF282828"/>
    <SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF282828"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FF282828"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Disabled" Color="Transparent"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="Transparent"/>
    <SolidColorBrush x:Key="ButtonIconBackground_MouseOver" Color="Transparent"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Pressed" Color="Transparent"/>
    <SolidColorBrush x:Key="PickerForeground_Normal" Color="#FF000000"/>
    <SolidColorBrush x:Key="PickerBackground_Normal" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="PickerPopupBackground" Color="White"/>
    <CornerRadius x:Key="ValidationTooltipCornerRadius">1</CornerRadius>
    <CornerRadius x:Key="ValidationTooltip_CornerRadius">2</CornerRadius>
    <SolidColorBrush x:Key="ValidationTooltipForeground" Color="#FFCD2D5B"/>
    <LinearGradientBrush x:Key="ValidationTooltipOuterBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB32D34"/>
        <GradientStop Color="#FFEA8541" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ValidationTooltipInnerBorder" Color="Transparent"/>
    <SolidColorBrush x:Key="ValidationTooltipBackground" Color="White"/>
    <LinearGradientBrush x:Key="ValidationInnerTick" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB42F34" Offset="0"/>
        <GradientStop Color="#FFBF4137" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ValidationOuterTick" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB42F34" Offset="0"/>
        <GradientStop Color="#FFBF4137" Offset="1"/>
    </LinearGradientBrush>
    <ControlTemplate x:Key="ArrowTemplateEditableCombobox" TargetType="ContentControl">
        <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="7" Height="4" Fill="{TemplateBinding Foreground}" Margin="5 0 6 0"/>
    </ControlTemplate>
    <ControlTemplate x:Key="ArrowTemplateNonEditableCombobox" TargetType="ContentControl">
        <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="7" Height="4" Fill="{TemplateBinding Foreground}" Margin="5 0 6 0"/>
    </ControlTemplate>
    <ControlTemplate x:Key="ErrorTooltipTemplate" TargetType="ToolTip">
        <Grid x:Name="RootVisual" HorizontalAlignment="Right" RenderTransformOrigin="0 0" Opacity="0" Margin="5 0">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OpenStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0"/>
                        <VisualTransition To="Open" GeneratedDuration="0:0:0.2">
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.2">
                                    <DoubleAnimation.EasingFunction>
                                        <BackEase Amplitude=".3" EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                                <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.2"/>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="0" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0"/>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Border
                    MinHeight="22"
                    Background="{StaticResource ValidationTooltipBackground}"
                    BorderBrush="{StaticResource ValidationTooltipOuterBorder}"
                    BorderThickness="1"
                    CornerRadius="{StaticResource ValidationTooltipCornerRadius}">
                <Border BorderBrush="{StaticResource ValidationTooltipInnerBorder}" BorderThickness="1">
                    <ContentPresenter TextBlock.Foreground="{StaticResource ValidationTooltipForeground}" Content="{Binding ErrorContent}" Margin="4 0 4 1"/>
                </Border>
            </Border>
            <ContentControl/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="ValidationTooltipTemplate">
        <Grid SnapsToDevicePixels="True" VerticalAlignment="Top">
            <Border Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top" Width="3" Height="3"/>
            <AdornedElementPlaceholder x:Name="Holder"/>
            <Border BorderBrush="{StaticResource ValidationTooltipOuterBorder}" BorderThickness="1" CornerRadius="{StaticResource ValidationTooltip_CornerRadius}"/>
            <Path Data="M2,1 L6,1 6,5 Z" Fill="{StaticResource ValidationInnerTick}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <Path Data="M0,0 L2,0 7,5 7,7 Z" Fill="{StaticResource ValidationOuterTick}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <ToolTipService.ToolTip>
                <ToolTip x:Name="PART_ToolTip"
                        DataContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=PlacementTarget.DataContext}"
                        Template="{StaticResource ErrorTooltipTemplate}"
                        Placement="Right"/>
            </ToolTipService.ToolTip>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="MainBrush" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="GeometryButtonStroke" Color="#FFC5CACE"/>
    <SolidColorBrush x:Key="GeometryButtonForeground" Color="#FF767676"/>
    <LinearGradientBrush x:Key="GeometryButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF2F2F2" Offset="0"/>
        <GradientStop Color="#FFECECEC" Offset="0.5"/>
        <GradientStop Color="#FFDDDDDD" Offset="0.5"/>
        <GradientStop Color="#FFD0D0D0" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GeometryButtonBorderBrush" Color="#FF898C95"/>
    <CornerRadius x:Key="GeometryButtonCornerRadius">2</CornerRadius>
    <Thickness x:Key="GeometryButtonThickness">1</Thickness>
    <SolidColorBrush x:Key="GeometryButtonBorderMouseOver" Color="#FF3C7FB1"/>
    <LinearGradientBrush x:Key="GeometryButtonBackgroundMouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFBDE4F9" Offset="0"/>
        <GradientStop Color="#FFB4E0F7" Offset="0.5"/>
        <GradientStop Color="#FF98D1EF" Offset="0.5"/>
        <GradientStop Color="#FF81C3E5" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GeometryButtonBorderPressed" Color="#FF2C628B"/>
    <LinearGradientBrush x:Key="GeometryButtonBackgroundPressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF6AB6DE" Offset="0"/>
        <GradientStop Color="#FF82C2E4" Offset="0.5"/>
        <GradientStop Color="#FF98D0ED" Offset="0.5"/>
        <GradientStop Color="#FFA9DEFB" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GeometryButtonBackgroundDisabled" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF7F7F7" Offset="0.004"/>
        <GradientStop Color="#FFE3E3E3" Offset="1"/>
        <GradientStop Color="#FFF3F3F3" Offset="0.5"/>
        <GradientStop Color="#FFEAEAEA" Offset="0.5"/>
    </LinearGradientBrush>
    <Thickness x:Key="ToolboxPadding">6</Thickness>
    <sys:Double x:Key="ToolBoxGroupFontSize">11</sys:Double>
    <sys:Double x:Key="HeaderFontSize">11</sys:Double>
    <sys:Double x:Key="ToolBoxGroupOpacity">1</sys:Double>
    <sys:Double x:Key="DiagramToolboxItemOpacity">0.05</sys:Double>
    <FontFamily x:Key="DiagramToolBoxFontFamily">Portable User Interface</FontFamily>
    <FontFamily x:Key="HeaderFontFamily">Portable User Interface</FontFamily>
    <FontWeight x:Key="ViewGalleriesFontWeight">Bold</FontWeight>
    <sys:Double x:Key="ViewGalleriesFontSize">12</sys:Double>
    <FontFamily x:Key="ViewGalleriesFontFamily">Segoe UI</FontFamily>
    <sys:Double x:Key="CloseButtonMinWidth">22</sys:Double>
    <sys:Double x:Key="CloseButtonMinHeight">22</sys:Double>
    <sys:Double x:Key="OpenCloseButtonMinWidth">22</sys:Double>
    <sys:Double x:Key="OpenCloseButtonMinHeight">22</sys:Double>
    <SolidColorBrush x:Key="ToolboxItemForeground" Color="Black"/>
    <SolidColorBrush x:Key="ToolboxItemForegroundOver" Color="Black"/>
    <SolidColorBrush x:Key="ToolboxForeground" Color="White"/>
    <SolidColorBrush x:Key="ToolboxButtonForeground" Color="Black"/>
    <LinearGradientBrush x:Key="ToolboxHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF83ABC0" Offset="0"/>
        <GradientStop Color="#FF4D95A9" Offset="1"/>
        <GradientStop Color="#FF3F7E9D" Offset="0.5"/>
        <GradientStop Color="#FF0A5276" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ToolboxHeaderBorderBrush" Color="#FF131C24"/>
    <LinearGradientBrush x:Key="ToolboxHeaderInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB2CCD8" Offset="0"/>
        <GradientStop Color="#FF96C3CE" Offset="1"/>
        <GradientStop Color="#FF87B2C3" Offset="0.5"/>
        <GradientStop Color="#FF75A4B7" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="SelectedContentBackground" Color="White"/>
    <SolidColorBrush x:Key="ToolboxItemMouseOverForeground" Color="Black"/>
    <Thickness x:Key="ToolboxGroupInnerBorderThickness">1</Thickness>
    <Thickness x:Key="TitleBorderTickness">1 1 0 1</Thickness>
    <Thickness x:Key="CloseButtonPadding">6</Thickness>
    <Thickness x:Key="CloseButtonMargin">4</Thickness>
    <Thickness x:Key="OpenCloseButtonPadding">4 6</Thickness>
    <Thickness x:Key="OpenCloseButtonMargin">3</Thickness>
    <Thickness x:Key="HeaderBorderTickness">1</Thickness>
    <Thickness x:Key="ToolboxGroupPadding">5 3</Thickness>
    <Thickness x:Key="ToolboxGroupMargin">0 2 0 0</Thickness>
    <SolidColorBrush x:Key="ToolboxBorderBrush" Color="#FFB0B0B0"/>
    <SolidColorBrush x:Key="ToolboxBackground" Color="White"/>
    <SolidColorBrush x:Key="ToolboxGroupBackground" Color="Transparent"/>
    <LinearGradientBrush x:Key="ToolboxGroupSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE3F4FC" Offset="0"/>
        <GradientStop Color="#FFA6D9F4" Offset="0.987"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ToolboxGroupSelectedBorderBrush" Color="#FFA6D9F4"/>
    <SolidColorBrush x:Key="ToolboxGroupHoverBorderBrush" Color="#FFA6D9F4"/>
    <SolidColorBrush x:Key="ToolboxGroupInnerBorderBrush" Color="#FFD7F0FC"/>
    <CornerRadius x:Key="ToolboxGroupCornerRadius">1</CornerRadius>
    <LinearGradientBrush x:Key="ToolboxGroupHoverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF1F8FD" Offset="0"/>
        <GradientStop Color="#FFD5EFFC" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ToolboxItemBackground" Color="Black"/>
    <sys:Double x:Key="SettingsPaneGroupButtonsWidth">90</sys:Double>
    <Thickness x:Key="SettingsPaneHelpRectangleMargin">7 -1 0 0</Thickness>
    <Thickness x:Key="SettingsPaneViewMargin">7 0 0 0</Thickness>
    <sys:Double x:Key="SettingsPaneHelpRectangleHeight">13</sys:Double>
    <sys:Double x:Key="SettingsPaneTrianglePathWidth">8</sys:Double>
    <sys:Double x:Key="SettingsPaneTrianglePathHeight">16</sys:Double>
    <Thickness x:Key="SettingsPaneButtonPadding">7</Thickness>
    <Thickness x:Key="SettingsPaneButtonMargin">0 -15 -30 0</Thickness>
    <sys:Double x:Key="SettingsPaneButtonWidth">30</sys:Double>
    <sys:Double x:Key="SettingsPaneButtonHeight">30</sys:Double>
    <SolidColorBrush x:Key="CustomGeometryButtonGeometryFill" Color="#FF000000"/>
    <Thickness x:Key="SettingsPane_CapNumericsPadding">4 0</Thickness>
    <sys:Double x:Key="RadioTabButtonHeight">20</sys:Double>
    <sys:Double x:Key="SettingsPaneComboboxFontSize">11</sys:Double>
    <sys:Double x:Key="SettingsPaneNumericUpDownsFontSize">11</sys:Double>
    <sys:Double x:Key="ButtonFontSize">11</sys:Double>
    <sys:Double x:Key="TextTabToggleButtonFontSize">13</sys:Double>
    <sys:Double x:Key="TextTabToggleButtonWidth">22</sys:Double>
    <sys:Double x:Key="SettingsPaneContainerHeight">22</sys:Double>
    <sys:Double x:Key="SettingsPaneToggleButtonWidth">16</sys:Double>
    <sys:Double x:Key="PaneTabHeight">20</sys:Double>
    <Thickness x:Key="SettingsPaneThickness">0 0 0 0</Thickness>
    <sys:Double x:Key="PaneTabItemFontSize">11</sys:Double>
    <sys:Double x:Key="SettingsPane_Width">242</sys:Double>
    <sys:Double x:Key="SettingsPane_Height">287</sys:Double>
    <sys:Double x:Key="SettingsPane_ToggleButtonWidth">20</sys:Double>
    <sys:Double x:Key="SettingsPane_ToggleButtonHeight">20</sys:Double>
    <Thickness x:Key="SettingsPane_ToggleButtonMargin">2 0 4 2</Thickness>
    <ControlTemplate x:Key="ArrowTemplateCombobox" TargetType="ContentControl">
        <Grid Margin="5 0">
            <Path x:Name="BackgroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Background}" Margin="0 2 0 0"/>
            <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Foreground}" Margin="0 1 0 1"/>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="PaneSliderBackground" Color="#FFE7EAEA"/>
    <SolidColorBrush x:Key="ComboPopupBackground" Color="White"/>
    <SolidColorBrush x:Key="SettingsPaneViewBackground" Color="White"/>
    <SolidColorBrush x:Key="SettingsPaneBorderBrush" Color="#FF898C95"/>
    <SolidColorBrush x:Key="PaneHorizontalSeparatorBrush" Color="#FF898C95"/>
    <SolidColorBrush x:Key="ButtonTextBlockForeground" Color="Black"/>
    <SolidColorBrush x:Key="PaneOpacityPercentageForeground" Color="Black"/>
    <LinearGradientBrush x:Key="PaneSubTabItemBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFD0D0D0" Offset="1"/>
        <GradientStop Color="#FFF2F2F2" Offset="0"/>
        <GradientStop Color="#FFDDDDDD" Offset="0.51"/>
        <GradientStop Color="#FFECECEC" Offset="0.507"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="PaneSubTabItemBorderBrush" Color="#FF898C95"/>
    <FontWeight x:Key="PaneSubTabItemFontWeight">Bold</FontWeight>
    <SolidColorBrush x:Key="PaneSubTabItemForeground" Color="Black"/>
    <SolidColorBrush x:Key="PanePathStroke" Color="#FF898C95"/>
    <SolidColorBrush x:Key="PaneOpacitySliderBackground" Color="White"/>
    <FontFamily x:Key="PrintPreviewTextBlockFontFamily">Portable User Interface</FontFamily>
    <sys:Double x:Key="PrintPreviewTextBlockFontSize">11</sys:Double>
    <sys:Double x:Key="PrintPreviewZoomPaneTextBlockFontSize">11</sys:Double>
    <Thickness x:Key="PrintPreviewZoomPanePadding">0 8 16 8</Thickness>
    <FontWeight x:Key="PrintPreviewTextBlockFontWeight">Bold</FontWeight>
    <SolidColorBrush x:Key="PrintPreviewTextBlockForeground" Color="Black"/>
    <SolidColorBrush x:Key="PrintPreviewBackground" Color="White"/>
    <SolidColorBrush x:Key="PrintPreviewBorderBrush" Color="#FFB0B0B0"/>
    <SolidColorBrush x:Key="PrintPreviewComboBackground" Color="White"/>
    <SolidColorBrush x:Key="PrintPreviewPagesBackground" Color="White"/>
    <SolidColorBrush x:Key="RulerBackground" Color="White"/>
    <SolidColorBrush x:Key="RulerBorderBrush" Color="#FFB1B1B1"/>
    <SolidColorBrush x:Key="RulerLabelForeground" Color="Black"/>
    <SolidColorBrush x:Key="NavigationPaneBackground" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="NavigationPaneBorderBrush" Color="#FFB0B0B0"/>
    <SolidColorBrush x:Key="InnerThumbnailBorderBrush" Color="White"/>
    <SolidColorBrush x:Key="ZoomTextBoxBackground" Color="White"/>
    <SolidColorBrush x:Key="DiagramThumbNailBorderBrush" Color="#FF83A5D2"/>
    <SolidColorBrush x:Key="DiagramThumbNailBackground" Color="White"/>
    <Thickness x:Key="DiagramThumbNailThickness">1</Thickness>
    <sys:Double x:Key="ViewPortThickness">2</sys:Double>
    <SolidColorBrush x:Key="ViewPortStroke" Color="Red"/>
    <sys:Double x:Key="ViewPortOpacity">1</sys:Double>
    <DropShadowEffect x:Key="DiagramEffect" ShadowDepth="0" BlurRadius="0" Color="#FD000000" Opacity="0"/>
    <sys:Boolean x:Key="handleButtonsVisibility">True</sys:Boolean>
    <Thickness x:Key="NavigationPaneThumbNailMargin">2 2 2 3</Thickness>
    <sys:Double x:Key="CustomButtonWidth">22</sys:Double>
    <sys:Double x:Key="CustomToggleButtonWidth">22</sys:Double>
    <sys:Double x:Key="ThumbNailHeight">161</sys:Double>
    <Thickness x:Key="NavigationPaneRectMargin">0</Thickness>
    <sys:Double x:Key="NavigationPaneRectHeight">22</sys:Double>
    <sys:Double x:Key="ZoomTextBoxWidth">43</sys:Double>
    <sys:Double x:Key="ZoomTextBoxFontSize">12</sys:Double>
    <Thickness x:Key="ThumbNailSliderMargin">0</Thickness>
    <DataTemplate x:Key="OpenCloseDataTemplate">
        <Path
                Data="F1M370.3,313.5L376.9,307.2L371.5,307.2L362.6,315.6L371.5,324.0L376.9,324.0L370.3,317.7L385.3,317.7L385.3,313.5z"
                Stretch="Fill"
                Width="10"
                Height="7"
                Fill="{StaticResource ToolboxButtonForeground}"/>
    </DataTemplate>
    <DataTemplate x:Key="CloseDataTemplate">
        <Path
                Data="F1M12.4,5.1L10.9,3.5L8,6.5L5.0,3.5L3.5,5.1L6.4,8.0L3.5,11.0L5.0,12.5L8,9.5L10.9,12.5L12.4,11.0L9.5,8.0z"
                Width="10"
                Height="10"
                Stretch="Fill"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Fill="{StaticResource ToolboxButtonForeground}"/>
    </DataTemplate>
    <DataTemplate x:Key="NavigationPaneMapTemplate">
        <Path Fill="{Binding Foreground,RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="M8,0 L11,3 L9,3 L9,7 L13,7 L13,5 L16,8 L13,11 L13,9 L9,9 L9,13 L11,13 L8,16 L5,13 L7,13 L7,9 L3,9 L3,11 L0,8 L3,5 L3,7 L7,7 L7,3 L5,3 z"/>
    </DataTemplate>
    <DataTemplate x:Key="NavigationPaneToggleTemplate">
        <Grid>
            <Grid Background="Transparent" Visibility="{Binding Path=IsChecked, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadToggleButton}}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                <Path
                        Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Stretch="fill"
                        Height="12"
                        Width="12"
                        Data="M12.0,2.1 C9.8,2.1 7.8,3.7 7.2,5.9 C7.1,6.3 7.1,6.7 7.1,7.1 C7.1,8.1 7.4,9.1 7.9,9.9 C8.7,10.9 9.4,11.3 9.4,11.3 C9.8,11.6 10.3,11.8 10.8,11.9 C11.2,12.0 11.6,12.1 12.0,12.1 C14.2,12.1 16.3,10.5 16.8,8.3 C16.9,7.9 17.0,7.5 17.0,7.1 C17.0,4.9 15.5,2.8 13.2,2.3 C12.8,2.2 12.4,2.1 12.0,2.1 z M12.0,0 C12.6,0 13.2,0.0 13.7,0.2 C17.0,1.0 19.2,3.9 19.2,7.1 C19.2,7.7 19.1,8.2 19.0,8.8 L19.0,8.8 C18.2,12.1 15.2,14.2 12.0,14.2 C11.5,14.2 10.9,14.2 10.3,14.0 C9.6,13.9 9.0,13.6 8.4,13.3 L8.4,13.3 L8.4,13.2 L3.1,18.6 C2.7,19.0 2.2,19.2 1.8,19.2 C1.3,19.2 0.8,19.0 0.5,18.6 C-0.1,17.9 -0.1,16.8 0.5,16.1 L5.8,10.7 L5.7,10.5 C5.2,9.4 4.9,8.3 4.9,7.1 C4.9,6.5 4.9,6.0 5.1,5.4 C5.9,2.1 8.8,-0.0 12.0,0 z"/>
                <ToolTipService.ToolTip>
                    <ToolTip Content="{telerik:LocalizableResource Key=Open}"/>
                </ToolTipService.ToolTip>
            </Grid>
            <Grid Background="Transparent" Visibility="{Binding Path=IsChecked, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadToggleButton}}, Converter={StaticResource BooleanToVisibilityConverter}}">
                <Path
                        Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Stretch="Fill"
                        Height="10"
                        Width="10"
                        Data="F1M12.4,5.1L10.9,3.5L8,6.5L5.0,3.5L3.5,5.1L6.4,8.0L3.5,11.0L5.0,12.5L8,9.5L10.9,12.5L12.4,11.0L9.5,8.0z"/>
                <ToolTipService.ToolTip>
                    <ToolTip Content="{telerik:LocalizableResource Key=Close}"/>
                </ToolTipService.ToolTip>
            </Grid>
        </Grid>
    </DataTemplate>
    <Style x:Key="ListBoxItemStyle" TargetType="ListBoxItem">
        <Setter Property="Padding" Value="3"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverState" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="SelectedState" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="SelectedState" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                Margin="1 0"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"/>
                        <Border x:Name="MouseOverState"
                                Opacity="0"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                Margin="1 0"
                                BorderBrush="{StaticResource ControlOuterBorder_Highlighted}"
                                BorderThickness="{TemplateBinding BorderThickness}">
                            <Border
                                    Background="{StaticResource ControlBackground_Highlighted}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Highlighted}"
                                    BorderThickness="1"
                                    CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"/>
                        </Border>
                        <Border x:Name="SelectedState"
                                Opacity="0"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                Margin="1 0"
                                BorderBrush="{StaticResource ControlSubItem_OuterBorder_Selected}"
                                BorderThickness="{TemplateBinding BorderThickness}">
                            <Border
                                    Background="{StaticResource ControlSubItem_Background_Selected}"
                                    BorderBrush="{StaticResource ControlSubItem_InnerBorder_Selected}"
                                    BorderThickness="1"
                                    CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"/>
                        </Border>
                        <ContentPresenter x:Name="contentPresenter"
                                Margin="{TemplateBinding Padding}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        <Border x:Name="FocusVisual"
                                Opacity="0"
                                Margin="1 0"
                                BorderThickness="1"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                BorderBrush="{StaticResource ControlOuterBorder_Focused}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ListBoxStyle" TargetType="ListBox">
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <ScrollViewer x:Name="ScrollViewer"
                            Margin="0"
                            Padding="{TemplateBinding Padding}"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            ScrollViewer.HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                            ScrollViewer.VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <ItemsPresenter/>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="ListBox" BasedOn="{StaticResource ListBoxStyle}"/>
    <Style TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItemStyle}"/>
    <Style x:Key="TextBoxStyle" TargetType="TextBox">
        <Setter Property="Background" Value="{StaticResource PickerBackground_Normal}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationTooltipTemplate}"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Padding" Value="3 2"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid x:Name="RootElement" UseLayoutRounding="True" SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Hover" Storyboard.TargetProperty="Opacity" To="1"/>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="Transparent"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="PART_ContentHost" Storyboard.TargetProperty="Opacity" To="0.3"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ReadOnly">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ReadOnlyVisualElement"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentHost" Storyboard.TargetProperty="Margin">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>1 1 1 1</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusedVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="Hover" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="Transparent"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="Transparent"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
                            <Grid>
                                <Border x:Name="ReadOnlyVisualElement"
                                        BorderBrush="{TemplateBinding BorderBrush}"
                                        BorderThickness="{TemplateBinding BorderThickness}"
                                        CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                        Background="{StaticResource TextBoxBackground_ReadOnly}"
                                        Opacity="0"/>
                                <ScrollViewer x:Name="PART_ContentHost"
                                        Padding="{TemplateBinding Padding}"
                                        Foreground="{TemplateBinding Foreground}"
                                        Background="Transparent"
                                        VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                        HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                            </Grid>
                        </Border>
                        <Border x:Name="Hover"
                                Background="Transparent"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}"
                                Opacity="0"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                IsHitTestVisible="False"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"/>
                        <Border x:Name="FocusedVisual"
                                Background="Transparent"
                                BorderBrush="{StaticResource ControlOuterBorder_Focused}"
                                Visibility="Collapsed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                IsHitTestVisible="False"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="TextBox" BasedOn="{StaticResource TextBoxStyle}"/>
    <Style x:Key="ComboBoxTextBoxStyle" TargetType="TextBox">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <ControlTemplate x:Key="EditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.050">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderEnabled">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>False</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="PART_EditableTextBox" Storyboard.TargetProperty="Opacity" To="0.6"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0" Value="0.6"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.150" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.150">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderActive">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>True</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.115" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.050">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderFocused">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>True</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="WatermarkStates">
                    <VisualState x:Name="WatermarkVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Watermark" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="WatermarkInvisible"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="Background"
                    Grid.Column="0"
                    IsHitTestVisible="False"
                    Background="{StaticResource PickerBackground_Normal}"
                    CornerRadius="{StaticResource SplitButton_LeftPartCornerRadius}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{StaticResource PickerBackground_Normal}"/>
            <Border Grid.ColumnSpan="2" IsHitTestVisible="False" Background="{TemplateBinding Background}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" Margin="1"/>
            <Border x:Name="Border"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <Border x:Name="MouseOverVisual"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{StaticResource ControlOuterBorder_MouseOver}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Opacity="0"
                    Visibility="Collapsed"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <TextBox x:Name="PART_EditableTextBox"
                    Grid.Column="0"
                    Margin="1 1 0 1"
                    Style="{StaticResource ComboBoxTextBoxStyle}"
                    Padding="{TemplateBinding Padding}"
                    IsReadOnly="{TemplateBinding IsReadOnly}"
                    VerticalAlignment="Stretch"
                    VerticalContentAlignment="Center"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}">
                <TextBox.Template>
                    <ControlTemplate TargetType="TextBox">
                        <Grid>
                            <ScrollViewer
                                    Padding="{TemplateBinding Padding}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{TemplateBinding Background}"
                                    IsTabStop="False"
                                    VerticalScrollBarVisibility="Auto"
                                    x:Name="PART_ContentHost"
                                    VerticalContentAlignment="Stretch"/>
                        </Grid>
                    </ControlTemplate>
                </TextBox.Template>
            </TextBox>
            <Border x:Name="FocusVisual"
                    Visibility="Collapsed"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{StaticResource ControlOuterBorder_Focused}"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                    BorderThickness="{TemplateBinding BorderThickness}">
                <Border BorderBrush="{StaticResource ControlInnerBorder_Focused}" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}"/>
            </Border>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" Margin="0" Padding="0" Grid.Column="1" IsTabStop="False" ClickMode="Press">
                <telerik:RadToggleButton.Template>
                    <ControlTemplate TargetType="telerik:RadToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </telerik:RadToggleButton.Template>
                <Grid>
                    <telerikChromes:ButtonChrome x:Name="ButtonChrome"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            RenderPressed="{TemplateBinding IsDropDownOpen}"
                            RenderMouseOver="{Binding IsMouseOver, ElementName=PART_DropDownButton}"
                            CornerRadius="{StaticResource SplitButton_RightPartCornerRadius}"
                            RenderEnabled="{TemplateBinding IsEnabled}"
                            RenderActive="{TemplateBinding IsMouseOver}"
                            RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"/>
                    <ContentControl x:Name="DropDownIcon"
                            Grid.Column="1"
                            IsTabStop="False"
                            Foreground="{StaticResource ButtonIconForeground_Normal}"
                            Background="{StaticResource ButtonIconBackground_Normal}"
                            Template="{StaticResource ArrowTemplateEditableCombobox}"/>
                </Grid>
            </telerik:RadToggleButton>
            <TextBlock x:Name="Watermark"
                    Text="{TemplateBinding EmptyText}"
                    Opacity=".5"
                    IsHitTestVisible="False"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Left"
                    Margin="5 0 0 0"
                    Visibility="Collapsed"/>
            <Popup x:Name="PART_Popup">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            Background="{StaticResource PickerPopupBackground}"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            x:Name="PART_ResizeBorder">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    Padding="0 1 0 0"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    Foreground="{TemplateBinding Foreground}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="NonEditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderEnabled">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>False</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.6"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledBorder" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderMouseOver">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>True</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border IsHitTestVisible="False" Background="{TemplateBinding Background}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" Foreground="{TemplateBinding Foreground}" IsTabStop="False" Margin="0" Padding="0" ClickMode="Press">
                <telerik:RadToggleButton.Template>
                    <ControlTemplate TargetType="telerik:RadToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </telerik:RadToggleButton.Template>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Border x:Name="DisabledBorder"
                            IsHitTestVisible="False"
                            BorderBrush="{StaticResource ControlOuterBorder_Disabled}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Opacity="0"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            Grid.ColumnSpan="2"/>
                    <telerikChromes:ButtonChrome x:Name="ButtonChrome"
                            Grid.ColumnSpan="2"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            RenderPressed="{TemplateBinding IsDropDownOpen}"
                            RenderFocused="{TemplateBinding IsFocused}"
                            RenderEnabled="{TemplateBinding IsEnabled}"
                            RenderMouseOver="{TemplateBinding IsMouseOver}"/>
                    <Border Grid.ColumnSpan="2" Background="{TemplateBinding Background}" IsHitTestVisible="False" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" Margin="1"/>
                    <ContentControl x:Name="DropDownIcon"
                            Grid.Column="1"
                            IsTabStop="False"
                            Foreground="{StaticResource ButtonIconForeground_Normal}"
                            Background="{StaticResource ButtonIconBackground_Normal}"
                            Template="{StaticResource ArrowTemplateNonEditableCombobox}"/>
                    <ContentPresenter x:Name="Content"
                            Grid.Column="0"
                            Margin="{TemplateBinding Padding}"
                            Content="{TemplateBinding SelectionBoxItem}"
                            ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <ContentPresenter.Resources>
                            <Style TargetType="TextBlock">
                                <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                            </Style>
                        </ContentPresenter.Resources>
                    </ContentPresenter>
                </Grid>
            </telerik:RadToggleButton>
            <Popup x:Name="PART_Popup">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            Background="{StaticResource PickerPopupBackground}"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            x:Name="PART_ResizeBorder">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    Foreground="{TemplateBinding Foreground}"
                                    Padding="0 1 0 0"
                                    BorderThickness="0"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadComboBoxItemStyle" TargetType="telerikInput:RadComboBoxItem">
        <Setter Property="MinHeight" Value="19"/>
        <Setter Property="Margin" Value="0 -1 0 0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="3 2"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadComboBoxItem">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HighlightVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity">
                                            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.33"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Border x:Name="HighlightVisual"
                                    Visibility="Collapsed"
                                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                                    BorderThickness="1"
                                    BorderBrush="{StaticResource ControlOuterBorder_Highlighted}"
                                    Background="{StaticResource ControlBackground_Highlighted}"
                                    AutomationProperties.AutomationId="HighlightVisual">
                                <Border BorderThickness="1" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Highlighted}"/>
                            </Border>
                            <Border x:Name="SelectedVisual"
                                    Opacity="0"
                                    SnapsToDevicePixels="True"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                    BorderBrush="{StaticResource ControlSubItem_OuterBorder_Selected}">
                                <Border
                                        Background="{StaticResource ControlSubItem_Background_Selected}"
                                        BorderBrush="{StaticResource ControlSubItem_InnerBorder_Selected}"
                                        BorderThickness="1"
                                        CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"
                                        SnapsToDevicePixels="True"/>
                            </Border>
                            <ContentPresenter x:Name="Content"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikInput:RadComboBox}}, Path=AllowMultipleSelection}" Value="True"/>
                                <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
                            </MultiDataTrigger.Conditions>
                            <MultiDataTrigger.Setters>
                                <Setter TargetName="SelectedVisual" Property="Opacity" Value="1"/>
                                <Setter TargetName="HighlightVisual" Property="Opacity" Value="0"/>
                            </MultiDataTrigger.Setters>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadComboBoxStyle" TargetType="telerikInput:RadComboBox">
        <Setter Property="Template" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}"/>
        <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Padding" Value="4 0"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{StaticResource PickerForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationTooltipTemplate}"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Continue"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
    </Style>
    <Style TargetType="telerikInput:RadComboBoxItem" BasedOn="{StaticResource RadComboBoxItemStyle}"/>
    <Style TargetType="telerikInput:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle}"/>
    <Style x:Key="RadButtonStyle" TargetType="telerik1:RadButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="OuterMouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterPressedBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Normal}"/>
                        </Border>
                        <Border x:Name="OuterMouseOverBorder"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{StaticResource ControlBackground_MouseOver}"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_MouseOver}"/>
                        </Border>
                        <Border x:Name="OuterPressedBorder"
                                Visibility="Collapsed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_Pressed}"
                                BorderBrush="{StaticResource ControlOuterBorder_Pressed}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Pressed}"/>
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                Background="{StaticResource ControlBackground_Disabled}"/>
                        <ContentPresenter x:Name="Content"
                                TextBlock.Foreground="{TemplateBinding Foreground}"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                        <Border x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Visibility="Collapsed"
                                    Background="{StaticResource ControlBackground_Focused}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_Focused}" CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadPathButtonPathStyle" TargetType="Path">
        <Setter Property="Fill" Value="{StaticResource ControlElement_Normal}"/>
        <Setter Property="Stretch" Value="Fill"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style x:Key="RadPathButtonStyle" TargetType="telerik1:RadPathButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="PathStyle" Value="{StaticResource RadPathButtonPathStyle}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadPathButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="OuterMouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterPressedBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ContentPlacement">
                                <VisualState x:Name="ContentPlacementAtLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 3 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ContentPlacementAtTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 0 3</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ContentPlacementAtRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>2</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>3 0 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ContentPlacementAtBottom">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>2</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 3 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ContentVisibilityStates">
                                <VisualState x:Name="Visible"/>
                                <VisualState x:Name="Collapsed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Normal}"/>
                        </Border>
                        <Border x:Name="OuterMouseOverBorder"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{StaticResource ControlBackground_MouseOver}"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_MouseOver}"/>
                        </Border>
                        <Border x:Name="OuterPressedBorder"
                                Visibility="Collapsed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_Pressed}"
                                BorderBrush="{StaticResource ControlOuterBorder_Pressed}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Pressed}"/>
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                Background="{StaticResource ControlBackground_Disabled}"/>
                        <Grid Margin="{TemplateBinding Padding}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Path x:Name="Path" Grid.Column="1" Grid.Row="1" Style="{TemplateBinding PathStyle}" Data="{TemplateBinding PathGeometry}"/>
                            <Grid x:Name="ContentHost" Grid.Column="1" Grid.Row="2">
                                <ContentPresenter x:Name="Content"
                                        TextBlock.Foreground="{TemplateBinding Foreground}"
                                        Margin="{TemplateBinding ContentMargin}"
                                        Content="{TemplateBinding Content}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                        RecognizesAccessKey="True"/>
                            </Grid>
                        </Grid>
                        <Border x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Visibility="Collapsed"
                                    Background="{StaticResource ControlBackground_Focused}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_Focused}" CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadToggleButtonStyle" TargetType="telerik1:RadToggleButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadToggleButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="OuterMouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterPressedBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DisabledChecked">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Normal}"/>
                        </Border>
                        <Border x:Name="OuterMouseOverBorder"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{StaticResource ControlBackground_MouseOver}"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                            <Border
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_MouseOver}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Border x:Name="OuterPressedBorder"
                                Visibility="Collapsed"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{StaticResource ControlOuterBorder_Pressed}"
                                Background="{StaticResource ControlBackground_Pressed}">
                            <Border
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Pressed}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                Background="{StaticResource ControlBackground_Disabled}"/>
                        <Grid x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual"
                                    Visibility="Collapsed"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Background="{StaticResource ControlBackground_Focused}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border x:Name="FocusInnerVisual"
                                        Background="{x:Null}"
                                        BorderThickness="1"
                                        BorderBrush="{StaticResource ControlInnerBorder_Focused}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                            <Border x:Name="CheckedVisual"
                                    Opacity="0"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Checked}"
                                    Background="{StaticResource ControlBackground_Checked}">
                                <Border x:Name="InnerCheckedVisual"
                                        Background="{x:Null}"
                                        BorderThickness="{TemplateBinding BorderThickness}"
                                        BorderBrush="{StaticResource ControlInnerBorder_Checked}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                        </Grid>
                        <ContentPresenter x:Name="Content"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadRadioButtonStyle" TargetType="telerik1:RadRadioButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadRadioButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="OuterMouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterPressedBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DisabledChecked">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Normal}"/>
                        </Border>
                        <Border x:Name="OuterMouseOverBorder"
                                Opacity="0"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_MouseOver}"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_MouseOver}"/>
                        </Border>
                        <Border x:Name="OuterPressedBorder"
                                Visibility="Collapsed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_Pressed}"
                                BorderBrush="{StaticResource ControlOuterBorder_Pressed}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Pressed}"/>
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                Background="{StaticResource ControlBackground_Disabled}"/>
                        <Grid x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual"
                                    Visibility="Collapsed"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Background="{StaticResource ControlBackground_Focused}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border x:Name="FocusInnerVisual"
                                        Background="{x:Null}"
                                        BorderThickness="1"
                                        BorderBrush="{StaticResource ControlInnerBorder_Focused}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                            <Border x:Name="CheckedVisual"
                                    Opacity="0"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Checked}"
                                    Background="{StaticResource ControlBackground_Checked}">
                                <Border x:Name="InnerCheckedVisual"
                                        Background="{x:Null}"
                                        BorderThickness="{TemplateBinding BorderThickness}"
                                        BorderBrush="{StaticResource ControlInnerBorder_Checked}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                        </Grid>
                        <ContentPresenter x:Name="Content"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadDropDownButtonStyle" TargetType="telerik1:RadDropDownButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}"/>
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadDropDownButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="OuterMouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterPressedBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed"/>
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="DropDownButtonPosition">
                                <VisualState x:Name="DropDownButtonAtLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>2</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtBottom">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>2</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="PopupPlacementState">
                                <VisualState x:Name="PlacementBottom"/>
                                <VisualState x:Name="PlacementTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="180"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="PlacementLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="90"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="PlacementRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="-90"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Border
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Normal}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Border x:Name="OuterMouseOverBorder"
                                Opacity="0"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_MouseOver}"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_MouseOver}"/>
                        </Border>
                        <Border x:Name="OuterPressedBorder"
                                Visibility="Collapsed"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_Pressed}"
                                BorderBrush="{StaticResource ControlOuterBorder_Pressed}">
                            <Border
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Pressed}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                Background="{StaticResource ControlBackground_Disabled}"/>
                        <Border x:Name="CheckedVisual"
                                Opacity="0"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{StaticResource ControlBackground_Checked}"
                                BorderBrush="{StaticResource ControlOuterBorder_Checked}">
                            <Border x:Name="InnerCheckedVisual"
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Checked}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="Content"
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    TextBlock.Foreground="{TemplateBinding Foreground}"
                                    Margin="{TemplateBinding Padding}"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                    RecognizesAccessKey="True"/>
                            <Grid x:Name="DropDownIndicator"
                                    IsHitTestVisible="False"
                                    Grid.Column="1"
                                    Grid.Row="2"
                                    HorizontalAlignment="Center"
                                    Canvas.ZIndex="2"
                                    VerticalAlignment="Center"
                                    RenderTransformOrigin="0.5,0.5"
                                    Visibility="{TemplateBinding DropDownIndicatorVisibility}"
                                    Margin="5 3">
                                <Path
                                        Data="M0,0 L2,0 1,1 Z"
                                        Margin="0 2 0 0"
                                        Stretch="Fill"
                                        Width="{StaticResource ControlElement_Width}"
                                        Height="{StaticResource ControlElement_Height}"
                                        Fill="{StaticResource ControlElement_InnerNormal}"/>
                                <Path x:Name="Path"
                                        Data="M0,0 L2,0 1,1 Z"
                                        Margin="0 1"
                                        Fill="{StaticResource ControlElement_Normal}"
                                        Width="{StaticResource ControlElement_Width}"
                                        Height="{StaticResource ControlElement_Height}"
                                        Stretch="Fill"/>
                            </Grid>
                        </Grid>
                        <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="False" Placement="Bottom">
                            <Grid>
                                <Border x:Name="DropDownPopupBorder"
                                        BorderThickness="1"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}"
                                        Background="{StaticResource ControlBackground}"
                                        BorderBrush="{StaticResource ControlOuterBorder}"
                                        CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
                                    <ContentControl x:Name="DropDownPopupContent"
                                            Foreground="{TemplateBinding Foreground}"
                                            Content="{TemplateBinding DropDownContent}"
                                            HorizontalContentAlignment="Stretch"
                                            VerticalContentAlignment="Stretch"
                                            ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"
                                            ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                            ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
                                </Border>
                            </Grid>
                        </Popup>
                        <Border x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual"
                                    Visibility="Collapsed"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Background="{StaticResource ControlBackground_Focused}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border x:Name="FocusInnerVisual"
                                        Background="{x:Null}"
                                        BorderThickness="1"
                                        BorderBrush="{StaticResource ControlInnerBorder_Focused}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadSplitButtonToggleButtonStyle" BasedOn="{StaticResource RadToggleButtonStyle}" TargetType="telerik1:RadToggleButton">
        <Setter Property="Foreground" Value="{StaticResource ControlElement_Normal}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadToggleButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="OuterMouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterPressedBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DisabledChecked">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{x:Null}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Normal}"/>
                        </Border>
                        <Border x:Name="OuterMouseOverBorder"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{StaticResource ControlBackground_MouseOver}"
                                BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                            <Border
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_MouseOver}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Border x:Name="OuterPressedBorder"
                                Visibility="Collapsed"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{StaticResource ControlOuterBorder_Pressed}"
                                Background="{StaticResource ControlBackground_Pressed}">
                            <Border
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Pressed}"
                                    CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                Background="{StaticResource ControlBackground_Disabled}"/>
                        <Grid x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual"
                                    Visibility="Collapsed"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Background="{StaticResource ControlBackground_Focused}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border x:Name="FocusInnerVisual"
                                        Background="{x:Null}"
                                        BorderThickness="1"
                                        BorderBrush="{StaticResource ControlInnerBorder_Focused}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                            <Border x:Name="CheckedVisual"
                                    Opacity="0"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    BorderBrush="{StaticResource ControlOuterBorder_Checked}"
                                    Background="{StaticResource ControlBackground_Checked}">
                                <Border x:Name="InnerCheckedVisual"
                                        Background="{x:Null}"
                                        BorderThickness="{TemplateBinding BorderThickness}"
                                        BorderBrush="{StaticResource ControlInnerBorder_Checked}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"/>
                            </Border>
                        </Grid>
                        <ContentPresenter x:Name="Content"
                                Content="{TemplateBinding Content}"
                                Margin="{TemplateBinding Padding}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadSplitButtonStyle" TargetType="telerik1:RadSplitButton">
        <Setter Property="IsTabStop" Value="true"/>
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ButtonPartStyle" Value="{StaticResource RadButtonStyle}"/>
        <Setter Property="TogglePartStyle" Value="{StaticResource RadSplitButtonToggleButtonStyle}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadSplitButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard/>
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsCheckedState">
                                <VisualState x:Name="UnChecked"/>
                                <VisualState x:Name="Checked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed"/>
                                <VisualState x:Name="Opened">
                                    <Storyboard/>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenOrChecked">
                                <VisualState x:Name="OpenOrChecked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Checked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="IsBackgroundVisible">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="NotOpenNotChecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="DropDownButtonPosition">
                                <VisualState x:Name="DropDownButtonAtLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 -1 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="CornerRadius" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButton_LeftPartCornerRadius}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="CornerRadius" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButton_RightPartCornerRadius}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 0 -1</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="CornerRadius" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButton_TopPartCornerRadius}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="CornerRadius" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButton_BottomPartCornerRadius}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>2</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>-1 0 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtBottom">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>1</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>2</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="Margin" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 -1 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="CornerRadius" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButton_BottomPartCornerRadius}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="CornerRadius" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButton_TopPartCornerRadius}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ButtonPartVisibility">
                                <VisualState x:Name="ButtonInvisible">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="Margin">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>0 0 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.RowSpan)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>3</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>0</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Grid.ColumnSpan)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Int32>3</sys:Int32>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ButtonVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="BackgroundVisibility">
                                <VisualState x:Name="BackgroundIsHidden"/>
                                <VisualState x:Name="BackgroundIsVisible"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Double>0</sys:Double>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.115">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Double>1</sys:Double>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <telerik1:RadButton x:Name="ButtonPart"
                                    IsTabStop="False"
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Path=IsButtonPartVisible, Converter={StaticResource BooleanToVisibilityConverter}}"
                                    Background="{TemplateBinding Background}"
                                    Style="{TemplateBinding ButtonPartStyle}"
                                    Padding="{TemplateBinding Padding}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    IsBackgroundVisible="{TemplateBinding IsBackgroundVisible}"
                                    Foreground="{TemplateBinding Foreground}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                    MinHeight="{TemplateBinding MinHeight}"
                                    CornerRadius="{StaticResource SplitButton_LeftPartCornerRadius}"
                                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                    Focusable="False"/>
                            <Border x:Name="CheckedVisual"
                                    Visibility="Collapsed"
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Margin="1"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{StaticResource ControlInnerBorder_Checked}"
                                    Background="{x:Null}"
                                    CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"/>
                            <telerik1:RadToggleButton x:Name="DropDownPart"
                                    Margin="-1 0 0 0"
                                    Grid.Row="1"
                                    Grid.Column="2"
                                    IsTabStop="False"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    Background="{TemplateBinding Background}"
                                    Style="{TemplateBinding TogglePartStyle}"
                                    FontSize="{TemplateBinding FontSize}"
                                    IsBackgroundVisible="{TemplateBinding IsBackgroundVisible}"
                                    Visibility="{TemplateBinding DropDownIndicatorVisibility}"
                                    IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                    MinHeight="9"
                                    MinWidth="15"
                                    CornerRadius="{StaticResource SplitButton_RightPartCornerRadius}"
                                    Focusable="False">
                                <Grid x:Name="PART_DropDownIndicatorInner"
                                        IsHitTestVisible="False"
                                        HorizontalAlignment="Center"
                                        Canvas.ZIndex="2"
                                        VerticalAlignment="Center"
                                        RenderTransformOrigin="0.5,0.5"
                                        Margin="0 0 0 0">
                                    <Path
                                            Data="M0,0 L2,0 1,1 Z"
                                            Margin="0 2 0 0"
                                            Stretch="Fill"
                                            Width="{StaticResource ControlElement_Width}"
                                            Height="{StaticResource ControlElement_Height}"
                                            Fill="{StaticResource ControlElement_InnerNormal}"/>
                                    <Path x:Name="Path"
                                            Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                                            Margin="0 1"
                                            Data="M0,0 L2,0 1,1 Z"
                                            Width="{StaticResource ControlElement_Width}"
                                            Height="{StaticResource ControlElement_Height}"
                                            Stretch="Fill"/>
                                </Grid>
                            </telerik1:RadToggleButton>
                        </Grid>
                        <Border x:Name="MouseOverVisual"
                                Visibility="Collapsed"
                                Background="{x:Null}"
                                BorderThickness="1"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                IsHitTestVisible="False"
                                BorderBrush="{StaticResource ControlOuterBorder_Focused}"/>
                        <Border x:Name="CommonStatesWrapper" Visibility="{Binding Path=IsPressed, ElementName = DropDownPart, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                            <Border x:Name="FocusVisual"
                                    Visibility="{Binding Path=IsPressed, ElementName = ButtonPart, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                                    Background="{x:Null}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Opacity="0"
                                    BorderBrush="{StaticResource ControlOuterBorder_Focused}">
                                <Border x:Name="FocusInnerVisual"
                                        BorderThickness="1"
                                        Background="{x:Null}"
                                        CornerRadius="{TemplateBinding InnerCornerRadius}"
                                        BorderBrush="{StaticResource ControlInnerBorder_Focused}"/>
                            </Border>
                        </Border>
                        <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="False" Placement="Bottom">
                            <Grid>
                                <Border x:Name="DropDownPopupBorder"
                                        BorderThickness="1"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}"
                                        Background="{StaticResource ControlBackground}"
                                        BorderBrush="{StaticResource ControlOuterBorder}"
                                        CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
                                    <ContentControl x:Name="DropDownPopupContent"
                                            Foreground="{TemplateBinding Foreground}"
                                            Content="{TemplateBinding DropDownContent}"
                                            ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                            HorizontalContentAlignment="Stretch"
                                            VerticalContentAlignment="Stretch"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik1:RadButton" BasedOn="{StaticResource RadButtonStyle}"/>
    <Style TargetType="telerik1:RadPathButton" BasedOn="{StaticResource RadPathButtonStyle}"/>
    <Style TargetType="telerik1:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}"/>
    <Style TargetType="telerik1:RadRadioButton" BasedOn="{StaticResource RadRadioButtonStyle}"/>
    <Style TargetType="telerik1:RadDropDownButton" BasedOn="{StaticResource RadDropDownButtonStyle}"/>
    <Style TargetType="telerik1:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}"/>
    <ControlTemplate TargetType="RepeatButton" x:Key="HandleRepeatButton">
        <Grid x:Name="Root" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="NormalBorder"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    CornerRadius="{StaticResource SliderHandOuterBorder_CornerRadius}">
                <Border BorderThickness="1" BorderBrush="{StaticResource SliderHandInnerBorder_Normal}" CornerRadius="{StaticResource SliderHandInnerBorder_CornerRadius}"/>
            </Border>
            <Border x:Name="Border"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{x:Null}"
                    Background="{x:Null}"
                    CornerRadius="{StaticResource SliderHandOuterBorder_CornerRadius}">
                <Border x:Name="InnerBorder" BorderThickness="1" BorderBrush="{x:Null}" CornerRadius="{StaticResource SliderHandInnerBorder_CornerRadius}"/>
            </Border>
            <Path
                    Fill="{StaticResource ControlElement_Normal}"
                    x:Name="Path"
                    Stretch="Fill"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    RenderTransformOrigin="0.5,0.5"
                    Data="M4,0 L4,6 0,3 z"
                    Width="4"
                    Height="7"/>
            <Border x:Name="FocusVisual"
                    Visibility="Collapsed"
                    BorderThickness="1"
                    BorderBrush="{StaticResource SliderOuterBorder_Focused}"
                    CornerRadius="{StaticResource SliderHandOuterBorder_CornerRadius}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="IncreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Template" Value="{StaticResource HandleRepeatButton}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background" Value="{StaticResource SliderHandBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SliderHandOuterBorder_Normal}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Width" Value="18"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="2 0 0 0"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform ScaleX="-1" ScaleY="1"/>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DecreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Template" Value="{StaticResource HandleRepeatButton}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background" Value="{StaticResource SliderHandBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SliderHandOuterBorder_Normal}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Width" Value="18"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="0 0 2 0"/>
    </Style>
    <Style TargetType="Thumb" x:Key="ThumbStyle">
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Width" Value="10"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SliderThumb_OuterBorder_Normal}"/>
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
                            <Border BorderThickness="1" BorderBrush="{x:Null}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"/>
                        </Border>
                        <Border x:Name="Border"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{x:Null}"
                                Background="{x:Null}"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
                            <Border x:Name="InnerBorder" BorderThickness="1" BorderBrush="{x:Null}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"/>
                        </Border>
                        <Border x:Name="FocusVisual"
                                BorderThickness="1"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource SliderOuterBorder_Focused}"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Thumb" x:Key="SelectionMiddleThumbStyle">
        <Setter Property="Height" Value="4"/>
        <Setter Property="Background" Value="{StaticResource SliderRangeMiddleThumb_Background}"/>
        <Setter Property="BorderThickness" Value="{StaticResource SliderRangeMiddleThumb_Margin}"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid Background="Transparent" x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Background" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SliderRangeMiddleThumb_Background_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Background" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SliderRangeMiddleThumb_Background_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Background" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SliderRangeMiddleThumb_Background_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
                        <Border x:Name="FocusVisual"
                                BorderThickness="0 1"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource SliderRangeMiddleThumb_Focused}"
                                CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DefaultTicksTemplate">
        <Rectangle Width="1" ToolTipService.ToolTip="{Binding}" Height="5" Fill="{StaticResource SliderBackground_Tick}"/>
    </DataTemplate>
    <Style TargetType="telerik1:RadTickBar" x:Key="RadTickBarStyle">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik1:TickBarPanel Background="Transparent"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="ContentControl" x:Key="TrackStyle">
        <Setter Property="BorderThickness" Value="{StaticResource SliderOuterBorderTrack_BorderThickness}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}"/>
        <Setter Property="Height" Value="6"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{StaticResource SliderOuterBorderTrack_CornerRadius}">
                        <Border CornerRadius="{StaticResource SliderInnerBorderTrack_CornerRadius}" BorderThickness="{StaticResource SliderInnerBorderTrack_BorderThickness}" BorderBrush="{StaticResource SliderInnerBorderTrack}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="RepeatButton" x:Key="LargeHandleStyle">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid Background="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik1:RadSlider" x:Key="RadSliderStyle">
        <Setter Property="BorderBrush" Value="{StaticResource SliderOuterBorderTrack}"/>
        <Setter Property="Background" Value="{StaticResource SliderBackgroundTrack}"/>
        <Setter Property="TickTemplate" Value="{StaticResource DefaultTicksTemplate}"/>
        <Setter Property="ThumbStyle" Value="{StaticResource ThumbStyle}"/>
        <Setter Property="AlternateThumbStyle" Value="{StaticResource ThumbStyle}"/>
        <Setter Property="SelectionMiddleThumbStyle" Value="{StaticResource SelectionMiddleThumbStyle}"/>
        <Setter Property="TickBarStyle" Value="{StaticResource RadTickBarStyle}"/>
        <Setter Property="TrackStyle" Value="{StaticResource TrackStyle}"/>
        <Setter Property="IncreaseHandleStyle" Value="{StaticResource IncreaseHandleStyle}"/>
        <Setter Property="DecreaseHandleStyle" Value="{StaticResource DecreaseHandleStyle}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadSlider">
                    <telerikPrimitives:LayoutTransformControl x:Name="layoutControl" RenderTransformOrigin=".5 0">
                        <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard/>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="OrientationStates">
                                <VisualState x:Name="Horizontal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <RotateTransform Angle="0"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Vertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <RotateTransform Angle="-90"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ReversedHorizontal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <ScaleTransform ScaleX="-1"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <ScaleTransform ScaleX="-1"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <ScaleTransform ScaleX="-1"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ReversedVertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleY="-1"/>
                                                        <RotateTransform Angle="90"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleY="-1"/>
                                                        <RotateTransform Angle="-180"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleY="-1"/>
                                                        <RotateTransform Angle="-180"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="TickPlacementStates">
                                <VisualState x:Name="NoneTicks">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="TopTicks">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BottomTicks">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="BothTicks">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="RangeStates">
                                <VisualState x:Name="SingleThumb"/>
                                <VisualState x:Name="RangeThumbs">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RangeThumbsPanel" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SingleThumbHost" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid UseLayoutRounding="True">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <telerik1:RadTickBar x:Name="TopTickBar"
                                    Grid.Column="1"
                                    Grid.ColumnSpan="3"
                                    ItemTemplate="{TemplateBinding TickTemplate}"
                                    ItemsSource="{TemplateBinding ResultTicks}"
                                    ItemTemplateSelector="{TemplateBinding TickTemplateSelector}"
                                    Maximum="{TemplateBinding Maximum}"
                                    Minimum="{TemplateBinding Minimum}"
                                    IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
                                    Style="{TemplateBinding TickBarStyle}"
                                    RenderTransformOrigin="0.5,0.5">
                                <telerik1:RadTickBar.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </telerik1:RadTickBar.RenderTransform>
                            </telerik1:RadTickBar>
                            <ContentControl
                                    Style="{TemplateBinding TrackStyle}"
                                    x:Name="Track"
                                    Grid.Column="1"
                                    Grid.ColumnSpan="3"
                                    Grid.Row="1"
                                    VerticalAlignment="Center"
                                    Background="{TemplateBinding Background}"/>
                            <RepeatButton x:Name="DecreaseButton"
                                    Grid.Row="1"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"
                                    Visibility="{TemplateBinding HandlesVisibility}"
                                    Style="{TemplateBinding DecreaseHandleStyle}"/>
                            <RepeatButton x:Name="LargeDecreaseButton"
                                    Grid.Column="1"
                                    Grid.Row="1"
                                    Style="{StaticResource LargeHandleStyle}"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"/>
                            <Grid Grid.Row="1" Grid.Column="2">
                                <Thumb x:Name="SingleThumbHost" Style="{TemplateBinding ThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                <StackPanel x:Name="RangeThumbsPanel" Orientation="Horizontal" Visibility="Collapsed">
                                    <Thumb x:Name="RangeStartThumb" Style="{TemplateBinding ThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                    <Thumb x:Name="RangeMiddleThumb" Style="{TemplateBinding SelectionMiddleThumbStyle}"/>
                                    <Thumb x:Name="RangeEndThumb" Style="{TemplateBinding AlternateThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                </StackPanel>
                            </Grid>
                            <RepeatButton x:Name="LargeIncreaseButton"
                                    Grid.Column="3"
                                    Grid.Row="1"
                                    Style="{StaticResource LargeHandleStyle}"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"/>
                            <RepeatButton x:Name="IncreaseButton"
                                    Grid.Row="1"
                                    Grid.Column="4"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"
                                    Visibility="{TemplateBinding HandlesVisibility}"
                                    RenderTransformOrigin="0.5,0.5"
                                    Style="{TemplateBinding IncreaseHandleStyle}"/>
                            <telerik1:RadTickBar x:Name="BottomTickBar"
                                    Grid.Row="2"
                                    Grid.Column="1"
                                    Grid.ColumnSpan="3"
                                    Maximum="{TemplateBinding Maximum}"
                                    Minimum="{TemplateBinding Minimum}"
                                    ItemsSource="{TemplateBinding ResultTicks}"
                                    ItemTemplate="{TemplateBinding TickTemplate}"
                                    ItemTemplateSelector="{TemplateBinding TickTemplateSelector}"
                                    IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
                                    Style="{TemplateBinding TickBarStyle}"
                                    RenderTransformOrigin="0.5,0.5">
                                <telerik1:RadTickBar.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </telerik1:RadTickBar.RenderTransform>
                            </telerik1:RadTickBar>
                        </Grid>
                    </telerikPrimitives:LayoutTransformControl>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik1:RadTickBar" BasedOn="{StaticResource RadTickBarStyle}"/>
    <Style TargetType="telerik1:RadSlider" BasedOn="{StaticResource RadSliderStyle}"/>
    <extensions:BooleanToFontWeightConverter x:Key="BooleanToFontWeightConverter"/>
    <extensions:BooleanToFontStyleConverter x:Key="BooleanToFontStyleConverter"/>
    <extensions:DoubleToSizeConverter x:Key="DoubleToSizeConverter"/>
    <extensions:PercentageConverter x:Key="PercentageConverter"/>
    <DataTemplate x:Key="SourceCapTypeItemTemplate">
        <Viewbox Stretch="Fill" VerticalAlignment="Center">
            <Canvas Width="60" Height="1" Margin="0 1 0 0" UseLayoutRounding="True">
                <telerik:RadDiagramConnection
                        SourceCapType="{Binding}"
                        FlowDirection="LeftToRight"
                        Background="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        Stroke="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        TargetCapType="None"
                        StartPoint="-1,0"
                        EndPoint="60,0"
                        VerticalAlignment="Center"/>
            </Canvas>
        </Viewbox>
    </DataTemplate>
    <DataTemplate x:Key="PaneCloseButtonDataTemplate">
        <Path
                Data="F1M12.4,5.1L10.9,3.5L8,6.5L5.0,3.5L3.5,5.1L6.4,8.0L3.5,11.0L5.0,12.5L8,9.5L10.9,12.5L12.4,11.0L9.5,8.0z"
                Stretch="Fill"
                UseLayoutRounding="False"
                Width="10"
                Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Height="10"
                VerticalAlignment="Center"
                HorizontalAlignment="Center"/>
    </DataTemplate>
    <DataTemplate x:Key="TargetCapTypeItemTemplate">
        <Viewbox Stretch="Fill" VerticalAlignment="Center">
            <Canvas Width="60" Height="1" Margin="0 1 0 0" UseLayoutRounding="True">
                <telerik:RadDiagramConnection
                        SourceCapType="None"
                        FlowDirection="LeftToRight"
                        Background="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        Stroke="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        TargetCapType="{Binding}"
                        StartPoint="0,0"
                        EndPoint="60,0"
                        VerticalAlignment="Center"/>
            </Canvas>
        </Viewbox>
    </DataTemplate>
    <DataTemplate x:Key="FontFamilyItemTemplate">
        <TextBlock Text="{Binding}" FontFamily="{Binding}"/>
    </DataTemplate>
    <DataTemplate x:Key="PaneOpenCloseButtonContentTemplate">
        <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="Fill" Data="F1M511.6,467.2C509.6,468.2 507.1,467.5 506.1,465.5C505.1,463.4 505.9,461.0 507.9,460C509.9,458.9 512.4,459.7 513.4,461.7C514.4,463.7 513.6,466.2 511.6,467.2M518.5,462.8L517.8,460.0L515.3,460.2C515.1,459.8 514.8,459.4 514.5,459.1L515.4,456.8L512.9,455.3L511.3,457.2C510.8,457.1 510.3,457.0 509.7,457.0L508.7,454.9L505.9,455.6L506.2,458.0C505.8,458.3 505.5,458.5 505.2,458.8L503.0,458L501.5,460.4L503.3,461.9C503.2,462.4 503.1,463.0 503.1,463.5L501.0,464.4L501.7,467.2L504.0,467.0C504.3,467.4 504.6,467.9 505.0,468.2L504.1,470.3L506.6,471.9L508.1,470.0C508.6,470.1 509.1,470.2 509.6,470.2L510.5,472.3L513.4,471.7L513.1,469.2C513.6,469.0 514.0,468.7 514.3,468.3L516.5,469.2L518.0,466.7L516.1,465.2C516.2,464.7 516.3,464.2 516.3,463.7z"/>
    </DataTemplate>
    <sys:Double x:Key="PaneGeometryButtonHeight">36</sys:Double>
    <Style TargetType="Rectangle" x:Key="PaneHorizontalSeparator">
        <Setter Property="UseLayoutRounding" Value="True"/>
        <Setter Property="Fill" Value="{StaticResource PaneHorizontalSeparatorBrush}"/>
        <Setter Property="Height" Value="1"/>
    </Style>
    <Style TargetType="TextBlock" x:Key="ButtonTextBlockStyle">
        <Setter Property="FontFamily" Value="Segoe UI"/>
        <Setter Property="FontSize" Value="{StaticResource ButtonFontSize}"/>
        <Setter Property="Foreground" Value="{StaticResource ButtonTextBlockForeground}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>
    <Style TargetType="ContentControl" x:Key="ContentTextBlockStyle">
        <Setter Property="FontFamily" Value="Segoe UI"/>
        <Setter Property="FontSize" Value="{StaticResource ButtonFontSize}"/>
        <Setter Property="Foreground" Value="{StaticResource ButtonTextBlockForeground}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>
    <ItemsPanelTemplate x:Key="PaneTabControlItemsPanel">
        <telerik:RadUniformGrid Rows="1"/>
    </ItemsPanelTemplate>
    <sys:Double x:Key="PaneNumericUpDownLargeChange">10</sys:Double>
    <sys:Double x:Key="PaneNumericUpDownSmallChange">10</sys:Double>
    <sys:Int32 x:Key="PaneNumericUpDownNumberDecimalDigits">1</sys:Int32>
    <DataTemplate x:Key="StrokeDashArrayItemTemplate">
        <Grid Height="20" Width="140">
            <Path
                    Data="M0,0 L215,0"
                    Margin="5"
                    VerticalAlignment="Center"
                    Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                    Stroke="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                    StrokeDashArray="{Binding}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="ColorStyleTemplate">
        <Rectangle HorizontalAlignment="Center" StrokeThickness="1" Stroke="{Binding Path=Stroke, Mode=TwoWay}" Fill="{Binding Path=Fill, Mode=TwoWay}" Width="18" Height="18"/>
    </DataTemplate>
    <Style x:Key="PaneListBoxItemStyle" TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItemStyle}">
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Width" Value="24"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>
    <Style x:Key="PaneListBoxStyle" TargetType="ListBox" BasedOn="{StaticResource ListBoxStyle}">
        <Setter Property="ItemContainerStyle" Value="{StaticResource PaneListBoxItemStyle}"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ItemTemplate" Value="{StaticResource ColorStyleTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <ScrollViewer
                            BorderThickness="{TemplateBinding BorderThickness}"
                            x:Name="ScrollViewer"
                            Padding="{TemplateBinding Padding}"
                            BorderBrush="{StaticResource SettingsPaneBorderBrush}"
                            VerticalScrollBarVisibility="Auto"
                            Background="{TemplateBinding Background}">
                        <ItemsPresenter/>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik:RadUniformGrid Columns="6"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik:RadComboBoxItem" BasedOn="{StaticResource RadComboBoxItemStyle}" x:Key="CommonComboBoxItemStyle">
        <Setter Property="MinHeight" Value="19"/>
    </Style>
    <ControlTemplate x:Key="PaneNonEditableComboBox" TargetType="telerik:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard/>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="FocusBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusBorder">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="BackgroundBorder"
                    IsHitTestVisible="False"
                    Background="{TemplateBinding Background}"
                    Grid.ColumnSpan="2"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <ContentControl
                    Content="{TemplateBinding SelectionBoxItem}"
                    VerticalAlignment="Center"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalContentAlignment="Center"
                    HorizontalAlignment="Stretch"
                    ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                    Margin="{TemplateBinding Padding}"
                    Foreground="{TemplateBinding Foreground}"/>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" Grid.Column="1" IsTabStop="False" ClickMode="Press" Width="{StaticResource SettingsPaneToggleButtonWidth}" Margin="0" Padding="1 0 0 0">
                <telerik:RadToggleButton.ContentTemplate>
                    <DataTemplate>
                        <ContentControl x:Name="DropDownIcon"
                                IsTabStop="False"
                                Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                                Background="{StaticResource ButtonIconBackground_Normal}"
                                Template="{StaticResource ArrowTemplateCombobox}"/>
                    </DataTemplate>
                </telerik:RadToggleButton.ContentTemplate>
            </telerik:RadToggleButton>
            <Border x:Name="FocusBorder"
                    IsHitTestVisible="False"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Visibility="Collapsed"
                    Background="Transparent"
                    Grid.ColumnSpan="2"
                    Opacity="0.2"
                    BorderBrush="{TemplateBinding BorderBrush}"/>
            <Popup x:Name="PART_Popup" Grid.ColumnSpan="2" VerticalOffset="1" Margin="0 1" AllowsTransparency="True">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="1"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            Background="{StaticResource ComboPopupBackground}"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    Padding="0 1 0 0"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="Auto"
                                    Foreground="{TemplateBinding Foreground}"
                                    CanContentScroll="True">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerik:RadComboBox" x:Key="PaneComboStyle" BasedOn="{StaticResource RadComboBoxStyle}">
        <Setter Property="ItemContainerStyle" Value="{StaticResource CommonComboBoxItemStyle}"/>
        <Setter Property="FontSize" Value="{StaticResource SettingsPaneComboboxFontSize}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SettingsPaneBorderBrush}"/>
        <Setter Property="Template" Value="{StaticResource PaneNonEditableComboBox}"/>
        <Setter Property="NonEditableTemplate" Value="{StaticResource PaneNonEditableComboBox}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
    </Style>
    <Style TargetType="extensions:RadGeometryButton" x:Key="RadCustomGeometryButtonStyle">
        <Setter Property="Background" Value="{StaticResource GeometryButtonBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GeometryButtonBorderBrush}"/>
        <Setter Property="CornerRadius" Value="{StaticResource GeometryButtonCornerRadius}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource GeometryButtonForeground}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource CustomGeometryButtonGeometryFill}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="FontFamily" Value="Segoe UI"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="36"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="36"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource GeometryButtonBorderMouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource GeometryButtonBackgroundMouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource GeometryButtonBorderPressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource GeometryButtonBackgroundPressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource GeometryButtonBackgroundDisabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid Background="Transparent">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    x:Name="OuterBorder"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Data="{TemplateBinding Geometry}"
                                    Margin="{TemplateBinding Padding}"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    Stretch="None"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"
                                Style="{StaticResource ContentTextBlockStyle}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneHomeControl" x:Key="SettingsPaneHomeControlStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPaneHomeControl">
                    <StackPanel>
                        <telerik:RadUniformGrid HorizontalAlignment="Stretch" Margin="15" Rows="1">
                            <telerik:RadRadioButton x:Name="generalTabButton"
                                    IsChecked="True"
                                    GroupName="HeaderGroup"
                                    Content="{telerik:LocalizableResource Key=SettingsPane_GeneralTab}"
                                    Foreground="{StaticResource PaneSubTabItemForeground}"
                                    FontWeight="{StaticResource PaneSubTabItemFontWeight}"
                                    Height="{StaticResource RadioTabButtonHeight}"
                                    BorderThickness="1"
                                    BorderBrush="{StaticResource PaneSubTabItemBorderBrush}"
                                    HorizontalContentAlignment="Center"
                                    VerticalContentAlignment="Center"
                                    IsBackgroundVisible="True"
                                    FontFamily="Segoe UI"
                                    MinHeight="22"
                                    FontSize="12"/>
                            <Grid>
                                <telerik:RadRadioButton x:Name="arrangeTabButton"
                                        GroupName="HeaderGroup"
                                        Content="{telerik:LocalizableResource Key=SettingsPane_ArrangeTab}"
                                        Height="{StaticResource RadioTabButtonHeight}"
                                        BorderThickness="1"
                                        Foreground="{StaticResource PaneSubTabItemForeground}"
                                        FontWeight="{StaticResource PaneSubTabItemFontWeight}"
                                        BorderBrush="{StaticResource PaneSubTabItemBorderBrush}"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"
                                        FontFamily="Segoe UI"
                                        MinHeight="22"
                                        FontSize="12"
                                        Margin="-1 0 0 0"/>
                            </Grid>
                        </telerik:RadUniformGrid>
                        <Grid Margin="15 0">
                            <StackPanel Visibility="{Binding IsChecked, ElementName=generalTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <Grid HorizontalAlignment="Stretch">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M4,4L9,4L9,10L10,10L10,4L10.0938,4L16.15,10L16,10L14,10L9,10L9,11L14,11L16,11L16.15,11L16.15,20L4.0375,20L4.0375,17L4,17zM0,0L6.05625,0L8.26406,3L3,3L3,4L3,17L0,17z"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Copy}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Copy}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M12.5,14.9284C11.6716,14.9284 11,15.5999 11,16.4284C11,17.2568 11.6716,17.9284 12.5,17.9284C13.3284,17.9284 14,17.2568 14,16.4284C14,15.5999 13.3284,14.9284 12.5,14.9284zM3.5,14.9284C2.67157,14.9284 2,15.5999 2,16.4284C2,17.2568 2.67157,17.9284 3.5,17.9284C4.32843,17.9284 5,17.2568 5,16.4284C5,15.5999 4.32843,14.9284 3.5,14.9284zM11.69,0L13.4221,0.99998L9.11202,8.46498L11.7376,13.0126L11.7946,12.9995C12.0225,12.9528 12.2584,12.9284 12.5,12.9284C14.433,12.9284 16,14.4954 16,16.4284C16,18.3613 14.433,19.9284 12.5,19.9284C10.567,19.9284 9,18.3613 9,16.4284C9,15.5223 9.34431,14.6966 9.90924,14.075L9.99161,13.9886L7.95725,10.465L5.95438,13.9339L5.97487,13.9535C6.60825,14.5869 7,15.4619 7,16.4284C7,18.3613 5.433,19.9284 3.5,19.9284C1.567,19.9284 -5.1724e-008,18.3613 0,16.4284C-5.1724e-008,14.4954 1.567,12.9284 3.5,12.9284C3.68122,12.9284 3.85922,12.9421 4.03302,12.9687L4.18644,12.9961L6.80255,8.46502L2.49271,1.00017L4.22483,0.000128746L7.95732,6.46498z"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Cut}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Cut}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M11,7L15.7778,12L11,12zM5,7L10,7L10,13L16,13L16,21L5,21zM0,3C1.49012e-007,3 14,3 14,3L14,8.37596L11.6667,6L4,6L4,19L6.25849e-007,19zM5,0L9,0C9.55229,0 10,0.447715 10,1L10,2L4,2L4,1C4,0.447715 4.44772,0 5,0z"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Paste}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Paste}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M13,8.98689C12.4477,8.98689 12,9.43461 12,9.9869L12,17.987C12,18.5393 12.4477,18.987 13,18.987C13.5523,18.987 14,18.5393 14,17.987L14,9.9869C14,9.43461 13.5523,8.98689 13,8.98689zM9,8.98689C8.44772,8.98689 8,9.43461 8,9.9869L8,17.987C8,18.5393 8.44772,18.987 9,18.987C9.55228,18.987 10,18.5393 10,17.987L10,9.9869C10,9.43461 9.55228,8.98689 9,8.98689zM5,8.98689C4.44772,8.98689 4,9.43461 4,9.9869L4,17.987C4,18.5393 4.44772,18.987 5,18.987C5.55228,18.987 6,18.5393 6,17.987L6,9.9869C6,9.43461 5.55228,8.98689 5,8.98689zM2,6.02091L16,6.02091L16,6.85235L16,18.987L16,19.938L16,19.987C16,20.5393 15.5523,20.987 15,20.987L3,20.987C2.44772,20.987 2,20.5393 2,19.987L2,19.938L2,18.987L2,6.85235zM0,2.826L18,2.826L18,4.83918L0,4.83918zM6,0L12,0L12,2L6,2z"
                                            Grid.Column="6"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Delete}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Delete}"/>
                                </Grid>
                                <Rectangle Style="{StaticResource PaneHorizontalSeparator}" Margin="0 15"/>
                                <Grid HorizontalAlignment="Stretch">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,0L14,0L14,6L20,6L20,6.49993L20,19.5L20,20L6,20L6,14L0,14L0,13.5L0,0.5z"
                                            extensions:GeometryButtons.EllipseWidth="{StaticResource SettingsPaneGroupButtonsWidth}"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Group}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Group}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M20,6L20,20L6,20L6,6zM0,0L14,0L14,5L5,5L5,14L0,14z"
                                            extensions:GeometryButtons.EllipseWidth="{StaticResource SettingsPaneGroupButtonsWidth}"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Ungroup}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Ungroup}"/>
                                </Grid>
                            </StackPanel>
                            <StackPanel Visibility="{Binding IsChecked, ElementName=arrangeTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <Grid HorizontalAlignment="Stretch">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M14,14.0 L14,18 L18,18 L18,14.0 z M12,12.0 L14,12.0 L18,12.0 L19,12.0 L20,12.0 L20,20 L19,20 L18,20 L12,20 L12,19 L12,18 L12,14.0 z M9,4.0 L15.9,4.0 L15.9,11.0 L15.0,11.0 L10.9,11.0 L10.9,16 L3.9,16 L3.9,10.0 L4.0,9.0 L9,9.0 z M1.9,2 L1.9,6 L5.9,6 L5.9,2 z M0,0 L1.9,0 L5.9,0 L6.9,0 L7.9,0 L7.9,8 L6.9,8 L5.9,8 L0,8 L0,7 L0,6 L0,2 z"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_GoToBack}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.SendToBack}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M10,10 L10,18 L18,18 L18,10 z M8,8 L18,8 L20,8 L20,10 L20,18 L20,20 L18,20 L10,20 L8,20 L8,18 L8,10 z M0,0 L7,0 L14,0 L14,7 L7,7 L7,14 L0,14 L0,7 z"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_SendBackward}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.SendBackward}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,0 L14,0 L14,14 L10,14 L10,18 L18,18 L18,10 L14.0,10 L14.0,8 L20,8 L20,10 L20,18 L20,20 L18,20 L10,20 L9,20 L8,20 L8,14 L0,14 z"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_SendForward}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.BringForward}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M16,14 L16,16 L14,16 L14,18 L18,18 L18,14 z M1.9,1.9 L1.9,6 L4,6 L4,4 L6,4 L6,1.9 z M0,0 L0.9,0 L1.9,0 L8,0 L8,0.9 L8,1.9 L8,4 L16,4 L16,12 L20,12 L20,14 L20,18 L20,19 L20,20 L14,20 L12,20 L12,18 L12,16 L4,16 L4,8 L1.9,8 L0,8 L0,6 z"
                                            Grid.Column="6"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_GoToFront}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.BringToFront}"/>
                                </Grid>
                                <Rectangle Style="{StaticResource PaneHorizontalSeparator}" Margin="0 15"/>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition MinHeight="10"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,11 L15,11 L15,18 L0,18 z M19,0 L21,0 L21,18 L19,18 z M6,0 L15,0 L15,7 L6,7 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Right"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignRight}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M8,0 L10,0 L10,1 L14,1 L14,8 L10,8 L10,12 L18,12 L18,19 L10,19 L10,20 L8,20 L8,19 L0,19 L0,12 L8,12 L8,8 L4,8 L4,1 L8,1 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Center"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignCenter}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M6,11 L21,11 L21,18 L6,18 z M6,0 L15,0 L15,7 L6,7 z M0,0 L2,0 L2,18 L0,18 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Left"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignLeft}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M11,6 L18,6 L18,12 L11,12 z M0,6 L7,6 L7,18 L0,18 z M0,0 L18,0 L18,2 L0,2 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Top"
                                            Grid.Row="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignTop}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M1,0 L8,0 L8,8 L12,8 L12,4 L19,4 L19,8 L20,8 L20,10 L19,10 L19,14 L12,14 L12,10 L8,10 L8,18 L1,18 L1,10 L0,10 L0,8 L1,8 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Middle"
                                            Grid.Row="2"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignMiddle}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,16 L18,16 L18,18 L0,18 z M11,6 L18,6 L18,12 L11,12 z M0,0 L7,0 L7,12 L0,12 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Bottom"
                                            Grid.Row="2"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignBottom}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                </Grid>
                            </StackPanel>
                        </Grid>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneSizeControl" x:Key="SettingsPaneSizeControlStyle">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="extensions:SettingsPaneSizeControl">
                        <StackPanel Margin="15 15 15 0">
                            <Grid Margin="0 0 0 10">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                    <Path Data="M14.2,0 L18.2,3.9 L14.2,7.9 L14.2,4.8 L4,4.8 L4,7.9 L0,3.9 L4,2.7E-07 L4,2.8 L14.2,2.8 z" Fill="{StaticResource PanePathStroke}" Margin="2 6" Stretch="Fill"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        Minimum="0"
                                        Maximum="10000"
                                        CustomUnit="px"
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                        extensions:SettingsPaneView.EditorPropertyName="Width"
                                        extensions:SettingsPaneView.EditorFallbackPropertyName="ActualWidth"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Custom"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                    <Path
                                            Data="M13.9,0 L17.9,3.9 L13.9,7.9 L13.9,5.0 L4,5.0 L4,7.9 L0,3.9 L4,0.0 L4,3.0 L13.9,3.0 z"
                                            Fill="{StaticResource PanePathStroke}"
                                            Margin="2 6"
                                            RenderTransformOrigin="0.5, 0.5"
                                            Stretch="Fill">
                                        <Path.RenderTransform>
                                            <RotateTransform Angle="-90"/>
                                        </Path.RenderTransform>
                                    </Path>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        Minimum="0"
                                        Maximum="10000"
                                        CustomUnit="px"
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                        extensions:SettingsPaneView.EditorPropertyName="Height"
                                        extensions:SettingsPaneView.EditorFallbackPropertyName="ActualHeight"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Custom"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="10 0 0 0"/>
                            </Grid>
                            <Rectangle Style="{StaticResource PaneHorizontalSeparator}" Margin="-5 15"/>
                            <Grid Margin="0 0 0 10">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                    <TextBlock
                                            Text="X"
                                            FontSize="12"
                                            VerticalAlignment="Center"
                                            HorizontalAlignment="Center"
                                            Margin="0 0 0 1"
                                            Foreground="{StaticResource PanePathStroke}"
                                            FontFamily="Segoe UI Semibold"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                        extensions:SettingsPaneView.EditorPropertyName="X"
                                        extensions:SettingsPaneView.EditorItemType="Shapes"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                    <TextBlock
                                            Text="Y"
                                            FontSize="12"
                                            VerticalAlignment="Center"
                                            HorizontalAlignment="Center"
                                            Margin="0 0 0 1"
                                            Foreground="{StaticResource PanePathStroke}"
                                            FontFamily="Segoe UI Semibold"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                        extensions:SettingsPaneView.EditorPropertyName="Y"
                                        extensions:SettingsPaneView.EditorItemType="Shapes"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                            <Rectangle Style="{StaticResource PaneHorizontalSeparator}" Margin="-5 15"/>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                    <Path
                                            Data="F1M508.3,249.4C507.1,249.2,505.9,248.6,505.0,247.7L510.1,247.4L507.6,244.9L500.3,245.0L500.2,252.3L502.7,254.9L502.9,250.6C504.2,251.8,505.9,252.6,507.6,252.9C513.1,254.0,518.8,250.5,520.0,244.3L516.0,244.2C515.3,247.8,511.9,250.1,508.3,249.4"
                                            Fill="{StaticResource PanePathStroke}"
                                            Stretch="Fill"
                                            Margin="3 6"
                                            RenderTransformOrigin="0.5,0.5">
                                        <Path.RenderTransform>
                                            <RotateTransform Angle="-180"/>
                                        </Path.RenderTransform>
                                    </Path>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        Minimum="0"
                                        CustomUnit="°"
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                        extensions:SettingsPaneView.EditorPropertyName="RotationAngle"
                                        extensions:SettingsPaneView.EditorItemType="Shapes"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="extensions:SettingsPaneStyleControl" x:Key="SettingsPaneStyleControlStyle">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="extensions:SettingsPaneStyleControl">
                        <StackPanel>
                            <telerik:RadUniformGrid HorizontalAlignment="Stretch" Margin="15" Rows="1">
                                <telerik:RadRadioButton x:Name="ColorTabButton"
                                        GroupName="StyleButtons"
                                        Content="{telerik:LocalizableResource Key=SettingsPane_ColorTab}"
                                        Height="{StaticResource RadioTabButtonHeight}"
                                        Background="{StaticResource PaneSubTabItemBackground}"
                                        BorderBrush="{StaticResource PaneSubTabItemBorderBrush}"
                                        BorderThickness="1"
                                        Foreground="{StaticResource PaneSubTabItemForeground}"
                                        FontWeight="{StaticResource PaneSubTabItemFontWeight}"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"
                                        FontFamily="Segoe UI"
                                        MinHeight="22"
                                        FontSize="12"/>
                                <Grid>
                                    <telerik:RadRadioButton x:Name="GeometryTabButton"
                                            IsChecked="True"
                                            GroupName="StyleButtons"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_GeometryTab}"
                                            Height="{StaticResource RadioTabButtonHeight}"
                                            Background="{StaticResource PaneSubTabItemBackground}"
                                            BorderBrush="{StaticResource PaneSubTabItemBorderBrush}"
                                            BorderThickness="1"
                                            Foreground="{StaticResource PaneSubTabItemForeground}"
                                            FontWeight="{StaticResource PaneSubTabItemFontWeight}"
                                            HorizontalContentAlignment="Center"
                                            VerticalContentAlignment="Center"
                                            FontFamily="Segoe UI"
                                            MinHeight="22"
                                            FontSize="12"
                                            Margin="-1 0 0 0"/>
                                </Grid>
                                <Grid extensions:SettingsPaneView.ContainerEditProperty="Visibility" extensions:SettingsPaneView.ContainerEditItemType="Connections">
                                    <telerik:RadRadioButton x:Name="ConnectionTypeTabButton"
                                            Margin="-1 0 0 0"
                                            GroupName="StyleButtons"
                                            Height="{StaticResource RadioTabButtonHeight}"
                                            Background="{StaticResource PaneSubTabItemBackground}"
                                            BorderBrush="{StaticResource PaneSubTabItemBorderBrush}"
                                            BorderThickness="1"
                                            Foreground="{StaticResource PaneSubTabItemForeground}"
                                            FontWeight="{StaticResource PaneSubTabItemFontWeight}"
                                            HorizontalContentAlignment="Center"
                                            VerticalContentAlignment="Center"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_ConnectionTypeTab}"
                                            FontFamily="Segoe UI"
                                            MinHeight="22"
                                            FontSize="12"/>
                                </Grid>
                            </telerik:RadUniformGrid>
                            <Grid Margin="15 0">
                                <StackPanel Visibility="{Binding IsChecked, ElementName=GeometryTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition/>
                                            <RowDefinition MinHeight="10"/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Height="20" Width="20">
                                            <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                            <Path Data="M0,7L12,7 12,10 0,10 z M0,3 L12,3 12,5 0,5z M0,0 L12,0 12,1 0,1z" Fill="{StaticResource PanePathStroke}" Margin="2 6" Stretch="Fill"/>
                                        </Grid>
                                        <telerik:RadNumericUpDown
                                                Minimum="0"
                                                Maximum="10000"
                                                FontWeight="Normal"
                                                CustomUnit="px"
                                                SmallChange="1"
                                                LargeChange="1"
                                                Grid.Column="1"
                                                Margin="10 0 0 0"
                                                NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                                FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                                extensions:SettingsPaneView.EditorPropertyName="StrokeThickness"
                                                extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Height="20" Width="20" Grid.Row="2">
                                            <Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource PanePathStroke}" StrokeThickness="2"/>
                                            <Path
                                                    Data="M6.9,8 L12,8 12,10 6.9,10 z M0,8 L5,8 5,10 0,10 z M10,4 L12,4 12,6 10,6 z M5,4 L6.9,4 6.9,6 5,6 z M0,4 L2,4 2,6 0,6 z M0,0 L12,0 12,2 0,2 z"
                                                    Fill="{StaticResource PanePathStroke}"
                                                    Margin="2 6"
                                                    Stretch="Fill"/>
                                        </Grid>
                                        <telerik:RadComboBox
                                                ItemsSource="{data:StrokeDashArray}"
                                                Grid.Column="1"
                                                Grid.Row="2"
                                                SelectedIndex="7"
                                                Style="{StaticResource PaneComboStyle}"
                                                Margin="10 0 0 0"
                                                extensions:SettingsPaneView.EditorPropertyName="StrokeDashArray"
                                                extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                                ItemTemplate="{StaticResource StrokeDashArrayItemTemplate}"
                                                SelectionBoxTemplate="{StaticResource StrokeDashArrayItemTemplate}"/>
                                    </Grid>
                                    <Rectangle
                                            Style="{StaticResource PaneHorizontalSeparator}"
                                            Margin="-6 15"
                                            extensions:SettingsPaneView.ContainerEditProperty="Visibility"
                                            extensions:SettingsPaneView.ContainerEditItemType="Connections"/>
                                    <Grid Margin="0 0 0 10" extensions:SettingsPaneView.ContainerEditProperty="Visibility" extensions:SettingsPaneView.ContainerEditItemType="Connections">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <telerik:RadComboBox
                                                Style="{StaticResource PaneComboStyle}"
                                                Padding="0 0 3 0"
                                                ItemsSource="{data:CapType}"
                                                BorderThickness="0 1 1 1"
                                                FlowDirection="RightToLeft"
                                                extensions:SettingsPaneView.EditorPropertyName="SourceCapType"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                                ItemTemplate="{StaticResource SourceCapTypeItemTemplate}"/>
                                        <telerik:RadComboBox
                                                Style="{StaticResource PaneComboStyle}"
                                                Padding="0 0 3 0"
                                                Grid.Column="1"
                                                ItemsSource="{data:CapType}"
                                                BorderThickness="0 1 1 1"
                                                extensions:SettingsPaneView.EditorPropertyName="TargetCapType"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                                ItemTemplate="{StaticResource TargetCapTypeItemTemplate}"/>
                                    </Grid>
                                    <Grid extensions:SettingsPaneView.ContainerEditProperty="Visibility" extensions:SettingsPaneView.ContainerEditItemType="Connections">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <telerik:RadNumericUpDown
                                                Minimum="0"
                                                SmallChange="1"
                                                LargeChange="1"
                                                NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                                FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                                FontWeight="Normal"
                                                Margin="0 0 5 0"
                                                Padding="{StaticResource SettingsPane_CapNumericsPadding}"
                                                extensions:SettingsPaneView.EditorPropertyName="SourceCapSize"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource DoubleToSizeConverter}}"/>
                                        <telerik:RadNumericUpDown
                                                Grid.Column="1"
                                                Minimum="0"
                                                SmallChange="1"
                                                LargeChange="1"
                                                NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                                FontSize="{StaticResource SettingsPaneNumericUpDownsFontSize}"
                                                FontWeight="Normal"
                                                Margin="5 0 0 0"
                                                Padding="{StaticResource SettingsPane_CapNumericsPadding}"
                                                extensions:SettingsPaneView.EditorPropertyName="TargetCapSize"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource DoubleToSizeConverter}}"/>
                                    </Grid>
                                </StackPanel>
                                <Grid Visibility="{Binding IsChecked, ElementName=ColorTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <telerik:RadTabControl
                                            Height="150"
                                            DropDownDisplayMode="Collapsed"
                                            FontWeight="Normal"
                                            BorderBrush="{StaticResource SettingsPaneBorderBrush}"
                                            BorderThickness="1 0 1 1"
                                            ItemsPanel="{StaticResource PaneTabControlItemsPanel}"
                                            ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                                        <telerik:RadTabItem
                                                FontSize="{StaticResource PaneTabItemFontSize}"
                                                MinHeight="{StaticResource PaneTabHeight}"
                                                Header="{telerik:LocalizableResource Key=SettingsPane_ColorStyles}"
                                                Margin="2 0"
                                                Padding="3">
                                            <ListBox
                                                    Style="{StaticResource PaneListBoxStyle}"
                                                    ItemsSource="{data:SolidColors}"
                                                    BorderThickness="0"
                                                    extensions:SettingsPaneView.EditorPropertyName="Background, BorderBrush, Stroke"
                                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        </telerik:RadTabItem>
                                        <telerik:RadTabItem FontSize="{StaticResource PaneTabItemFontSize}" Header="{telerik:LocalizableResource Key=SettingsPane_GradientStyles}" Margin="2 0 4 0" Padding="3">
                                            <ListBox
                                                    ItemsSource="{data:GradientColors}"
                                                    Style="{StaticResource PaneListBoxStyle}"
                                                    BorderThickness="0"
                                                    extensions:SettingsPaneView.EditorPropertyName="Background, BorderBrush, Stroke"
                                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        </telerik:RadTabItem>
                                    </telerik:RadTabControl>
                                    <Border
                                            Margin="0 10 0 0"
                                            MinHeight="28"
                                            Padding="8 2"
                                            Grid.Row="1"
                                            Height="{StaticResource SettingsPaneContainerHeight}"
                                            BorderThickness="1"
                                            BorderBrush="{StaticResource SettingsPaneBorderBrush}"
                                            Background="{StaticResource PaneOpacitySliderBackground}">
                                        <Grid VerticalAlignment="Center">
                                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                                <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_Opacity}"/>
                                                <TextBlock
                                                        Style="{StaticResource ButtonTextBlockStyle}"
                                                        Margin="5 0 0 0"
                                                        Text="{Binding Value, ElementName=OpacitySlider, Converter={StaticResource PercentageConverter}}"
                                                        Foreground="{StaticResource PaneOpacityPercentageForeground}"/>
                                            </StackPanel>
                                            <telerik:RadSlider x:Name="OpacitySlider"
                                                    IsDeferredDraggingEnabled="True"
                                                    IsMoveToPointEnabled="True"
                                                    HorizontalAlignment="Right"
                                                    VerticalAlignment="Center"
                                                    IsSnapToTickEnabled="True"
                                                    TickFrequency="0.01"
                                                    Maximum="1"
                                                    SmallChange="0.01"
                                                    LargeChange="0.1"
                                                    Width="105"
                                                    Background="{StaticResource PaneSliderBackground}"
                                                    extensions:SettingsPaneView.EditorPropertyName="Opacity"
                                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                    extensions:SettingsPaneView.EditorValue="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                                <Grid
                                        VerticalAlignment="Top"
                                        Visibility="{Binding IsChecked, ElementName=ConnectionTypeTabButton, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        extensions:SettingsPaneView.IsRadioButtonPanel="True"
                                        extensions:SettingsPaneView.EditorItemType="Connections"
                                        extensions:SettingsPaneView.EditorPropertyName="ConnectionType"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=(extensions:SettingsPaneView.RadioButtonValue), Mode=TwoWay, RelativeSource={RelativeSource Self}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition MinHeight="10"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <StackPanel Margin="0 0 10 0">
                                        <telerik:RadRadioButton GroupName="ConnectionType" Height="{StaticResource PaneGeometryButtonHeight}">
                                            <telerik:RadRadioButton.ContentTemplate>
                                                <DataTemplate>
                                                    <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="M26,0 L28,0 L28,8 L28,10 L1.9,10 L1.9,18 L0,18 L0,10 L0,8 L1.9,8 L26,8 z"/>
                                                </DataTemplate>
                                            </telerik:RadRadioButton.ContentTemplate>
                                            <extensions:SettingsPaneView.RadioButtonValue>
                                                <core:ConnectionType>Polyline</core:ConnectionType>
                                            </extensions:SettingsPaneView.RadioButtonValue>
                                        </telerik:RadRadioButton>
                                        <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_RightAngleConnectionType}"/>
                                    </StackPanel>
                                    <StackPanel Grid.Column="1" Margin="10 0 0 0">
                                        <telerik:RadRadioButton GroupName="ConnectionType" Height="{StaticResource PaneGeometryButtonHeight}">
                                            <telerik:RadRadioButton.ContentTemplate>
                                                <DataTemplate>
                                                    <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="M5,10 C3.3,10 1.9,11.3 1.9,13 L1.9,18 L0,18 L2.0E-06,13 C-9.3E-07,10.2 2.2,8 4.9,8 M5.0,8 L23.0,8 L23.1,7.9 C24.7,7.9 26,6.6 26,5.0 L28,5.0 L27.9,5.1 C27.9,7.7 25.7,9.9 23.1,9.9 L23.0,9.9 L5.0,10 M26,4.9 L26,0 L28,0 L28,4.9"/>
                                                </DataTemplate>
                                            </telerik:RadRadioButton.ContentTemplate>
                                            <extensions:SettingsPaneView.RadioButtonValue>
                                                <core:ConnectionType>Spline</core:ConnectionType>
                                            </extensions:SettingsPaneView.RadioButtonValue>
                                        </telerik:RadRadioButton>
                                        <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_RoundAngleConnectionType}"/>
                                    </StackPanel>
                                    <StackPanel Grid.Row="2" Margin="0 0 10 0">
                                        <telerik:RadRadioButton GroupName="ConnectionType" Height="{StaticResource PaneGeometryButtonHeight}">
                                            <telerik:RadRadioButton.ContentTemplate>
                                                <DataTemplate>
                                                    <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="M30.6,3.2 C30.6,3.2 23.5,15.3 16.2,4.9 C6.9,-8.3 0,9.4 0,9.4 L1.6,10.2 C1.6,10.2 7.2,-5.1 14.9,6.1 C23.0,18.2 32.0,4.2 32.0,4.2 z"/>
                                                </DataTemplate>
                                            </telerik:RadRadioButton.ContentTemplate>
                                            <extensions:SettingsPaneView.RadioButtonValue>
                                                <core:ConnectionType>Bezier</core:ConnectionType>
                                            </extensions:SettingsPaneView.RadioButtonValue>
                                        </telerik:RadRadioButton>
                                        <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_BezierConnectionType}"/>
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="extensions:SettingsPaneTextControl" x:Key="SettingsPaneTextControlStyle">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="extensions:SettingsPaneTextControl">
                        <Grid Margin="15">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <ScrollViewer MaxHeight="90" BorderThickness="0" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                                <TextBox
                                        AcceptsReturn="True"
                                        HorizontalAlignment="Stretch"
                                        VerticalContentAlignment="Center"
                                        HorizontalContentAlignment="Stretch"
                                        extensions:SettingsPaneView.EditorPropertyName="Content"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Text, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        FontFamily="Segoe UI"/>
                            </ScrollViewer>
                            <telerik:RadComboBox
                                    Grid.Row="1"
                                    Margin="0 10"
                                    ItemTemplate="{StaticResource FontFamilyItemTemplate}"
                                    SelectedIndex="0"
                                    Style="{StaticResource PaneComboStyle}"
                                    ItemsSource="{data:FontFamily}"
                                    Padding="7 0 0 0"
                                    extensions:SettingsPaneView.EditorPropertyName="FontFamily"
                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                            <Grid Grid.Row="2">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <telerik:RadComboBox
                                        ItemsSource="{data:FontSize}"
                                        Style="{StaticResource PaneComboStyle}"
                                        Padding="7 0 0 0"
                                        extensions:SettingsPaneView.EditorPropertyName="FontSize"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                <telerik:RadToggleButton
                                        Grid.Column="1"
                                        Width="{StaticResource TextTabToggleButtonWidth}"
                                        Padding="0 0 0 1"
                                        Margin="10 0 0 0"
                                        extensions:SettingsPaneView.EditorPropertyName="FontWeight"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=IsChecked, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToFontWeightConverter}}">
                                    <telerik:RadToggleButton.ContentTemplate>
                                        <DataTemplate>
                                            <TextBlock
                                                    Text="B"
                                                    FontWeight="Bold"
                                                    TextAlignment="Center"
                                                    FontSize="{StaticResource TextTabToggleButtonFontSize}"
                                                    Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                                                    FontFamily="Segoe UI"/>
                                        </DataTemplate>
                                    </telerik:RadToggleButton.ContentTemplate>
                                </telerik:RadToggleButton>
                                <telerik:RadToggleButton
                                        Grid.Column="2"
                                        Padding="0 0 0 1"
                                        Margin="10 0 0 0"
                                        extensions:SettingsPaneView.EditorPropertyName="FontStyle"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=IsChecked, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToFontStyleConverter}}"
                                        Width="{StaticResource TextTabToggleButtonWidth}">
                                    <telerik:RadToggleButton.ContentTemplate>
                                        <DataTemplate>
                                            <TextBlock
                                                    Text="I"
                                                    FontSize="{StaticResource TextTabToggleButtonFontSize}"
                                                    Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                                                    FontStyle="Italic"
                                                    TextAlignment="Center"
                                                    FontFamily="Segoe UI"/>
                                        </DataTemplate>
                                    </telerik:RadToggleButton.ContentTemplate>
                                </telerik:RadToggleButton>
                            </Grid>
                            <ListBox
                                    Grid.Row="3"
                                    ItemsSource="{data:FontColors}"
                                    Style="{StaticResource PaneListBoxStyle}"
                                    Margin="0 10 0 0"
                                    extensions:SettingsPaneView.EditorPropertyName="Foreground"
                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="extensions:SettingsPane" x:Key="SettingsPaneControlStyle">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="SettingsPaneViewWidth" Value="{StaticResource SettingsPane_Width}"/>
        <Setter Property="SettingsPaneViewHeight" Value="{StaticResource SettingsPane_Height}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SettingsPaneBorderBrush}"/>
        <Setter Property="Margin" Value="0 0 -10 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPane">
                    <Border x:Name="RootBorder" MinWidth="1">
                        <Grid>
                            <Canvas>
                                <telerik:RadToggleButton x:Name="ToggleButton"
                                        Width="{StaticResource SettingsPaneButtonWidth}"
                                        Height="{StaticResource SettingsPaneButtonHeight}"
                                        Padding="{StaticResource SettingsPaneButtonPadding}"
                                        Margin="{StaticResource SettingsPaneButtonMargin}"
                                        ContentTemplate="{StaticResource PaneOpenCloseButtonContentTemplate}"
                                        Visibility="{Binding IsActive, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                                        IsChecked="{Binding Path=IsActive, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                            </Canvas>
                            <Popup x:Name="Popup" AllowsTransparency="True" StaysOpen="False" Focusable="False">
                                <Grid>
                                    <Path
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Center"
                                            Width="{StaticResource SettingsPaneTrianglePathWidth}"
                                            Height="{StaticResource SettingsPaneTrianglePathHeight}"
                                            Margin="0 -1 0 0"
                                            Stroke="{TemplateBinding BorderBrush}"
                                            Data="M0,8 8,0 8,16z"
                                            Fill="{StaticResource SettingsPaneViewBackground}"
                                            Stretch="Fill"
                                            UseLayoutRounding="False"
                                            Effect="{StaticResource DiagramEffect}"/>
                                    <extensions:SettingsPaneView x:Name="SettingsPaneView"
                                            Diagram="{TemplateBinding Diagram}"
                                            Margin="{StaticResource SettingsPaneViewMargin}"
                                            IsActive="{Binding IsActive, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                            Height="{TemplateBinding SettingsPaneViewHeight}"
                                            Width="{TemplateBinding SettingsPaneViewWidth}"
                                            Visibility="{Binding Path=IsActive, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                    <Rectangle
                                            VerticalAlignment="Center"
                                            Height="{StaticResource SettingsPaneHelpRectangleHeight}"
                                            Canvas.ZIndex="1"
                                            Width="1"
                                            Fill="{StaticResource SettingsPaneViewBackground}"
                                            HorizontalAlignment="Left"
                                            Margin="{StaticResource SettingsPaneHelpRectangleMargin}"/>
                                </Grid>
                            </Popup>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneView" x:Key="SettingsPaneStyle">
        <Setter Property="Background" Value="{StaticResource SettingsPaneViewBackground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPaneView">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{StaticResource SettingsPaneBorderBrush}" BorderThickness="1">
                        <telerik:RadTabControl x:Name="TabControl"
                                Effect="{StaticResource DiagramEffect}"
                                DropDownDisplayMode="Collapsed"
                                FontWeight="Normal"
                                BorderBrush="{StaticResource SettingsPaneBorderBrush}"
                                BorderThickness="{StaticResource SettingsPaneThickness}"
                                ItemsPanel="{StaticResource PaneTabControlItemsPanel}"
                                ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                            <telerik:RadTabItem Header="{telerik:LocalizableResource Key=SettingsPane_HomeTab}" FontSize="{StaticResource PaneTabItemFontSize}" Padding="0">
                                <extensions:SettingsPaneHomeControl/>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem
                                    Header="{telerik:LocalizableResource Key=SettingsPane_SizeTab}"
                                    FontSize="{StaticResource PaneTabItemFontSize}"
                                    Padding="0"
                                    extensions:SettingsPaneView.ContainerEditProperty="IsEnabled"
                                    extensions:SettingsPaneView.ContainerEditItemType="Shapes">
                                <extensions:SettingsPaneSizeControl/>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem Header="{telerik:LocalizableResource Key=SettingsPane_StyleTab}" FontSize="{StaticResource PaneTabItemFontSize}" Padding="0">
                                <extensions:SettingsPaneStyleControl x:Name="SettingsPaneStyleControl"/>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem Header="{telerik:LocalizableResource Key=SettingsPane_TextTab}" FontSize="{StaticResource PaneTabItemFontSize}" Padding="0">
                                <extensions:SettingsPaneTextControl/>
                            </telerik:RadTabItem>
                            <telerik:RadTabControl.AdditionalContent>
                                <telerik:RadToggleButton
                                        Width="{StaticResource SettingsPane_ToggleButtonWidth}"
                                        MinHeight="{StaticResource SettingsPane_ToggleButtonHeight}"
                                        Margin="{StaticResource SettingsPane_ToggleButtonMargin}"
                                        ContentTemplate="{StaticResource PaneCloseButtonDataTemplate}"
                                        IsChecked="{Binding IsActive, Mode=TwoWay, Converter={StaticResource InvertedBooleanConverter}, RelativeSource={RelativeSource TemplatedParent}}"/>
                            </telerik:RadTabControl.AdditionalContent>
                        </telerik:RadTabControl>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneView" BasedOn="{StaticResource SettingsPaneStyle}"/>
    <Style TargetType="extensions:SettingsPane" BasedOn="{StaticResource SettingsPaneControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneHomeControl" BasedOn="{StaticResource SettingsPaneHomeControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneSizeControl" BasedOn="{StaticResource SettingsPaneSizeControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneStyleControl" BasedOn="{StaticResource SettingsPaneStyleControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneTextControl" BasedOn="{StaticResource SettingsPaneTextControlStyle}"/>
    <DataTemplate x:Key="ToolboxItemTemplate">
        <Grid Margin="0 1 1 0" Width="76" Height="100">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="42"/>
            </Grid.RowDefinitions>
            <Viewbox VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="5 5 5 0">
                <ContentPresenter Content="{Binding Shape}" Margin="5" IsHitTestVisible="False"/>
            </Viewbox>
            <TextBlock
                    Grid.Row="1"
                    Text="{Binding Header}"
                    TextWrapping="Wrap"
                    Margin="5"
                    TextAlignment="Center"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    FontFamily="Segoe UI Semibold"
                    FontSize="12"/>
        </Grid>
    </DataTemplate>
    <HierarchicalDataTemplate x:Key="ToolboxTemplate" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource ToolboxItemTemplate}">
        <TextBlock Text="{Binding Header}" MinWidth="55"/>
    </HierarchicalDataTemplate>
    <Style x:Key="DiagramCloseButtonStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}">
        <Setter Property="ContentTemplate" Value="{StaticResource CloseDataTemplate}"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="MinWidth" Value="{StaticResource CloseButtonMinWidth}"/>
        <Setter Property="MinHeight" Value="{StaticResource CloseButtonMinHeight}"/>
        <Setter Property="Margin" Value="{StaticResource CloseButtonMargin}"/>
        <Setter Property="Padding" Value="{StaticResource CloseButtonPadding}"/>
    </Style>
    <Style x:Key="DiagramOpenCloseButtonStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="MinWidth" Value="{StaticResource OpenCloseButtonMinWidth}"/>
        <Setter Property="MinHeight" Value="{StaticResource OpenCloseButtonMinHeight}"/>
        <Setter Property="Padding" Value="{StaticResource OpenCloseButtonPadding}"/>
        <Setter Property="Margin" Value="{StaticResource OpenCloseButtonMargin}"/>
        <Setter Property="ContentTemplate" Value="{StaticResource OpenCloseDataTemplate}"/>
    </Style>
    <Style TargetType="extensions:RadDiagramToolboxItem" x:Key="RadDiagramToolboxItemStyle">
        <Setter Property="Background" Value="{StaticResource ToolboxItemBackground}"/>
        <Setter Property="Foreground" Value="{StaticResource ToolboxItemForeground}"/>
        <Setter Property="telerik:TouchManager.DragStartTrigger" Value="TouchMove"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramToolboxItem">
                    <Grid x:Name="RootGrid">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="0" Storyboard.TargetName="ViewContent" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ToolboxItemForegroundOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="0" Storyboard.TargetName="DefaultContent" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ToolboxItemForegroundOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ContentStates">
                                <VisualState x:Name="ContentState">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ViewContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DefaultContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ViewContentState">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ViewContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DefaultContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="RootBorder"
                                Opacity="{StaticResource DiagramToolboxItemOpacity}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Border x:Name="MouseOverVisual"
                                BorderThickness="1"
                                Visibility="Collapsed"
                                BorderBrush="{StaticResource ToolboxGroupHoverBorderBrush}"
                                Background="{StaticResource ToolboxGroupHoverBackground}"
                                Opacity="{StaticResource ToolBoxGroupOpacity}">
                            <Border x:Name="InnerBorder" BorderThickness="{StaticResource ToolboxGroupInnerBorderThickness}" BorderBrush="{StaticResource ToolboxGroupInnerBorderBrush}"/>
                        </Border>
                        <ContentControl x:Name="DefaultContent"
                                Content="{TemplateBinding Content}"
                                Foreground="{TemplateBinding Foreground}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                        <ContentControl x:Name="ViewContent"
                                Content="{TemplateBinding ViewContent}"
                                Foreground="{TemplateBinding Foreground}"
                                ContentTemplate="{TemplateBinding ViewContentTemplate}"
                                Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramToolboxGroup" x:Key="RadDiagramToolboxGroupStyle">
        <Setter Property="Margin" Value="{StaticResource ToolboxGroupMargin}"/>
        <Setter Property="Padding" Value="{StaticResource ToolboxGroupPadding}"/>
        <Setter Property="Foreground" Value="{StaticResource ToolboxItemForeground}"/>
        <Setter Property="Background" Value="{StaticResource ToolboxGroupBackground}"/>
        <Setter Property="FontSize" Value="{StaticResource ToolBoxGroupFontSize}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik:RadUniformGrid VerticalAlignment="Top" Columns="3"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramToolboxGroup">
                    <Grid x:Name="RootPanel">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectedVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToolboxItemMouseOverForeground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="NotSelected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectedVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToolboxItemForeground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid x:Name="HeaderPanel">
                            <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                            <Border x:Name="MouseOverVisual"
                                    Visibility="Collapsed"
                                    BorderThickness="1"
                                    CornerRadius="{StaticResource ToolboxGroupCornerRadius}"
                                    BorderBrush="{StaticResource ToolboxGroupHoverBorderBrush}"
                                    Background="{StaticResource ToolboxGroupHoverBackground}"
                                    Opacity="{StaticResource ToolBoxGroupOpacity}">
                                <Border BorderThickness="{StaticResource ToolboxGroupInnerBorderThickness}" BorderBrush="{StaticResource ToolboxGroupInnerBorderBrush}"/>
                            </Border>
                            <Border x:Name="SelectedVisual"
                                    Visibility="Collapsed"
                                    BorderThickness="1"
                                    CornerRadius="{StaticResource ToolboxGroupCornerRadius}"
                                    Background="{StaticResource ToolboxGroupSelectedBackground}"
                                    BorderBrush="{StaticResource ToolboxGroupSelectedBorderBrush}">
                                <Border BorderThickness="1" BorderBrush="{StaticResource ToolboxGroupInnerBorderBrush}"/>
                            </Border>
                            <ContentControl x:Name="HeaderElement"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    Content="{TemplateBinding Header}"
                                    ContentTemplate="{TemplateBinding HeaderTemplate}"
                                    Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground, Mode=TwoWay}"
                                    FontSize="{StaticResource ToolBoxGroupFontSize}"
                                    ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"/>
                        </Grid>
                        <Grid x:Name="ContentPanel" Grid.Column="1" Width="0" Height="0" Visibility="{TemplateBinding Visibility}">
                            <Border Name="OuterBorder" Grid.Row="2">
                                <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" Padding="5" BorderThickness="0">
                                    <ItemsPresenter/>
                                </ScrollViewer>
                            </Border>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramToolbox" x:Key="RadDiagramToolboxStyle">
        <Setter Property="HeaderBackground" Value="{StaticResource ToolboxHeaderBackground}"/>
        <Setter Property="Foreground" Value="{StaticResource ToolboxForeground}"/>
        <Setter Property="Background" Value="{StaticResource ToolboxBackground}"/>
        <Setter Property="FontFamily" Value="{StaticResource DiagramToolBoxFontFamily}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ToolboxBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CloseButtonStyle" Value="{StaticResource DiagramCloseButtonStyle}"/>
        <Setter Property="OpenCloseButtonStyle" Value="{StaticResource DiagramOpenCloseButtonStyle}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="ItemTemplate" Value="{StaticResource ToolboxTemplate}"/>
        <Setter Property="Padding" Value="{StaticResource ToolboxPadding}"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramToolbox">
                    <Grid x:Name="RootGrid" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
                        <Grid.Resources>
                            <Storyboard x:Key="hideAnimation">
                                <DoubleAnimation Duration="00:00:00.4" Storyboard.TargetName="hideablePart" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="100">
                                    <DoubleAnimation.EasingFunction>
                                        <CircleEase EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                            </Storyboard>
                            <Storyboard x:Key="showAnimation">
                                <DoubleAnimation Duration="00:00:00.32" Storyboard.TargetName="hideablePart" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="0">
                                    <DoubleAnimation.EasingFunction>
                                        <CircleEase EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                            </Storyboard>
                        </Grid.Resources>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid x:Name="hideablePart">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.RenderTransform>
                                <TranslateTransform/>
                            </Grid.RenderTransform>
                            <Border Grid.Row="1" Grid.RowSpan="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1 0 0 1"/>
                            <Border Background="{TemplateBinding HeaderBackground}" BorderBrush="{StaticResource ToolboxHeaderBorderBrush}" BorderThickness="1 1 0 1">
                                <Border BorderThickness="{StaticResource TitleBorderTickness}" BorderBrush="{StaticResource ToolboxHeaderInnerBorderBrush}">
                                    <ContentControl
                                            Margin="{TemplateBinding Padding}"
                                            Foreground="{TemplateBinding Foreground}"
                                            ContentTemplate="{TemplateBinding TitleTemplate}"
                                            VerticalAlignment="Center"
                                            HorizontalAlignment="Left"
                                            Content="{TemplateBinding Title}"
                                            FontFamily="{StaticResource HeaderFontFamily}"
                                            FontSize="{StaticResource HeaderFontSize}"/>
                                </Border>
                            </Border>
                            <ItemsPresenter Grid.Row="1" Margin="2 3"/>
                            <telerik:RadButton x:Name="CloseButton" Grid.Row="2" Style="{TemplateBinding CloseButtonStyle}">
                                <ToolTipService.ToolTip>
                                    <ToolTip Content="{telerik:LocalizableResource Key=Close}"/>
                                </ToolTipService.ToolTip>
                            </telerik:RadButton>
                        </Grid>
                        <Grid Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border BorderBrush="{StaticResource ToolboxHeaderBorderBrush}" Background="{TemplateBinding HeaderBackground}" BorderThickness="1">
                                <Border BorderThickness="{StaticResource HeaderBorderTickness}" BorderBrush="{StaticResource ToolboxHeaderInnerBorderBrush}">
                                    <ContentControl
                                            Margin="{TemplateBinding Padding}"
                                            ContentTemplate="{TemplateBinding HeaderTemplate}"
                                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                            FontFamily="{StaticResource HeaderFontFamily}"
                                            FontSize="{StaticResource HeaderFontSize}"
                                            Foreground="{TemplateBinding Foreground}"
                                            Content="{TemplateBinding Header}"/>
                                </Border>
                            </Border>
                            <Border Grid.Row="1" BorderThickness="1 0" Background="{StaticResource SelectedContentBackground}" BorderBrush="{TemplateBinding BorderBrush}">
                                <ContentPresenter x:Name="SelectedTabContent"/>
                            </Border>
                            <Border Grid.Row="2" BorderThickness="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                    <telerik:RadButton x:Name="OpenCloseButton" Style="{TemplateBinding OpenCloseButtonStyle}">
                                        <ToolTipService.ToolTip>
                                            <ToolTip Content="{telerik:LocalizableResource Key=Open_Close}"/>
                                        </ToolTipService.ToolTip>
                                    </telerik:RadButton>
                                    <TextBlock
                                            Margin="5 0 5 0"
                                            Text="{telerik:LocalizableResource Key=Toolbox_ViewGalleries}"
                                            VerticalAlignment="Center"
                                            Foreground="{StaticResource ToolboxButtonForeground}"
                                            FontWeight="{StaticResource ViewGalleriesFontWeight}"
                                            FontSize="{StaticResource ViewGalleriesFontSize}"
                                            FontFamily="{StaticResource ViewGalleriesFontFamily}"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramToolboxItem" BasedOn="{StaticResource RadDiagramToolboxItemStyle}"/>
    <Style TargetType="extensions:RadDiagramToolboxGroup" BasedOn="{StaticResource RadDiagramToolboxGroupStyle}"/>
    <Style TargetType="extensions:RadDiagramToolbox" BasedOn="{StaticResource RadDiagramToolboxStyle}"/>
    <extensions:PercentageConverter x:Key="percentageConverter"/>
    <extensions:ThicknessToDoubleConverter x:Key="thicknessToDoubleConverter"/>
    <Style TargetType="extensions:RadDiagramThumbnail" x:Key="RadDiagramThumbnailStyle">
        <Setter Property="Background" Value="{StaticResource DiagramThumbNailBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DiagramThumbNailBorderBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource DiagramThumbNailThickness}"/>
        <Setter Property="Height" Value="280"/>
        <Setter Property="Width" Value="280"/>
        <Setter Property="ViewportStyle">
            <Setter.Value>
                <Style TargetType="Rectangle">
                    <Setter Property="StrokeThickness" Value="{StaticResource ViewPortThickness}"/>
                    <Setter Property="Stroke" Value="{StaticResource ViewPortStroke}"/>
                    <Setter Property="Opacity" Value="{StaticResource ViewPortOpacity}"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramThumbnail">
                    <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
                        <Grid>
                            <Image Source="{TemplateBinding ImageSource}" Stretch="None"/>
                            <Canvas x:Name="PART_mainCanvas">
                                <Rectangle x:Name="PART_viewportRect" Style="{TemplateBinding ViewportStyle}"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="TextBox" BasedOn="{StaticResource TextBoxStyle}" x:Key="InheritedTextBoxStyle"/>
    <ControlTemplate TargetType="RepeatButton" x:Key="HandleRepeatButtonTemplate">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    CornerRadius="{StaticResource SliderHandOuterBorder_CornerRadius}">
                <Border x:Name="InnerBorder"
                        BorderThickness="1"
                        CornerRadius="{StaticResource SliderHandInnerBorder_CornerRadius}"
                        BorderBrush="{StaticResource SliderHandInnerBorder_Normal}"/>
            </Border>
            <Grid>
                <Path x:Name="path"
                        Stretch="None"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        RenderTransformOrigin="0.5,0.5"
                        Fill="{StaticResource ControlElement_Normal}"
                        Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"/>
            </Grid>
            <Border x:Name="FocusVisual"
                    BorderBrush="{StaticResource SliderOuterBorder_Focused}"
                    Visibility="Collapsed"
                    BorderThickness="1"
                    CornerRadius="{StaticResource SliderHandOuterBorder_CornerRadius}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="IncreaseNavigationPaneButtonStyle" TargetType="RepeatButton" BasedOn="{StaticResource IncreaseHandleStyle}">
        <Setter Property="Width" Value="18"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="2 0"/>
        <Setter Property="Content" Value="M4,0 L6,0 6,4 10,4 10,6 6,6 6,10 4,10 4,6 0,6 0,4 4,4 z"/>
        <Setter Property="Background" Value="{StaticResource SliderHandBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SliderHandOuterBorder_Normal}"/>
        <Setter Property="Template" Value="{StaticResource HandleRepeatButtonTemplate}"/>
    </Style>
    <Style x:Key="DecreaseNavigationPaneButtonStyle" TargetType="RepeatButton" BasedOn="{StaticResource DecreaseHandleStyle}">
        <Setter Property="Width" Value="18"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Background" Value="{StaticResource SliderHandBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource SliderHandOuterBorder_Normal}"/>
        <Setter Property="Content" Value="M0,0 L10,0 L10,2 L0,2 z"/>
        <Setter Property="Template" Value="{StaticResource HandleRepeatButtonTemplate}"/>
    </Style>
    <Style x:Key="ThumbnailSliderStyle" TargetType="telerik:RadSlider" BasedOn="{StaticResource RadSliderStyle}">
        <Setter Property="MinWidth" Value="140"/>
        <Setter Property="Margin" Value="{StaticResource ThumbNailSliderMargin}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="HandlesVisibility" Value="{Binding Source={StaticResource handleButtonsVisibility}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
        <Setter Property="IsSnapToTickEnabled" Value="True"/>
        <Setter Property="IsMoveToPointEnabled" Value="True"/>
        <Setter Property="TickFrequency" Value="0.1"/>
        <Setter Property="SmallChange" Value="0.1"/>
        <Setter Property="LargeChange" Value="0.1"/>
        <Setter Property="Background" Value="{StaticResource SliderBackgroundTrack}"/>
        <Setter Property="IncreaseHandleStyle" Value="{StaticResource IncreaseNavigationPaneButtonStyle}"/>
        <Setter Property="DecreaseHandleStyle" Value="{StaticResource DecreaseNavigationPaneButtonStyle}"/>
    </Style>
    <Style TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}" x:Key="DiagramAutofitButtonStyle">
        <Setter Property="Width" Value="{StaticResource CustomButtonWidth}"/>
        <Setter Property="Margin" Value="2 2 0 2"/>
        <Setter Property="ContentTemplate" Value="{StaticResource NavigationPaneMapTemplate}"/>
    </Style>
    <Style TargetType="telerik:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}" x:Key="DiagramExpandToggleButtonStyle">
        <Setter Property="Width" Value="{StaticResource CustomToggleButtonWidth}"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="ContentTemplate" Value="{StaticResource NavigationPaneToggleTemplate}"/>
    </Style>
    <Style TargetType="extensions:RadDiagramNavigationPane" x:Key="RadDiagramNavigationPaneStyle">
        <Setter Property="Background" Value="{StaticResource NavigationPaneBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NavigationPaneBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="ThumbnailStyle">
            <Setter.Value>
                <Style TargetType="extensions:RadDiagramThumbnail" BasedOn="{StaticResource RadDiagramThumbnailStyle}">
                    <Setter Property="Height" Value="{StaticResource ThumbNailHeight}"/>
                    <Setter Property="Margin" Value="{StaticResource NavigationPaneThumbNailMargin}"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="SliderStyle" Value="{StaticResource ThumbnailSliderStyle}"/>
        <Setter Property="AutofitButtonStyle" Value="{StaticResource DiagramAutofitButtonStyle}"/>
        <Setter Property="ExpandButtonStyle" Value="{StaticResource DiagramExpandToggleButtonStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramNavigationPane">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Effect="{StaticResource DiagramEffect}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            UseLayoutRounding="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid Visibility="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <extensions:RadDiagramThumbnail Style="{TemplateBinding ThumbnailStyle}" Diagram="{TemplateBinding Diagram}" x:Name="Thumbnail"/>
                                <Rectangle Fill="{TemplateBinding BorderBrush}" HorizontalAlignment="Stretch" Height="1" VerticalAlignment="Bottom"/>
                            </Grid>
                            <Grid Grid.Row="1">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <telerik:RadButton
                                        Style="{TemplateBinding AutofitButtonStyle}"
                                        Visibility="{Binding IsAutofitButtonVisible, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        CommandTarget="{TemplateBinding Diagram}"
                                        Command="{x:Static telerik:DiagramCommands.AutoFit}">
                                    <ToolTipService.ToolTip>
                                        <ToolTip Content="{telerik:LocalizableResource Key=Auto_fit}"/>
                                    </ToolTipService.ToolTip>
                                </telerik:RadButton>
                                <telerik:RadToggleButton x:Name="expandCollapseThumbnailButton"
                                        Grid.Column="1"
                                        Style="{TemplateBinding ExpandButtonStyle}"
                                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                <Rectangle
                                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        Width="1"
                                        Height="{StaticResource NavigationPaneRectHeight}"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Left"
                                        Grid.Column="2"
                                        Fill="{TemplateBinding BorderBrush}"
                                        Margin="{StaticResource NavigationPaneRectMargin}"/>
                                <TextBox
                                        IsHitTestVisible="False"
                                        Style="{StaticResource InheritedTextBoxStyle}"
                                        Background="{StaticResource ZoomTextBoxBackground}"
                                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        FontSize="{StaticResource ZoomTextBoxFontSize}"
                                        HorizontalAlignment="Right"
                                        Grid.Column="3"
                                        VerticalAlignment="Center"
                                        Width="{StaticResource ZoomTextBoxWidth}"
                                        Margin="2 0 0 0"
                                        Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Diagram.Zoom, Converter={StaticResource percentageConverter}}"
                                        FontFamily="Segoe UI"/>
                                <telerik:RadSlider x:Name="ZoomSlider"
                                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        Grid.Column="4"
                                        Style="{TemplateBinding SliderStyle}"
                                        Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Diagram.Zoom, Mode=TwoWay}"/>
                                <Border BorderThickness="1" BorderBrush="{StaticResource InnerThumbnailBorderBrush}" Grid.ColumnSpan="5"/>
                            </Grid>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadGeometryButton" x:Key="RadGeometryButtonStyle">
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource ControlElement_Normal}"/>
        <Setter Property="BorderThickness" Value="{StaticResource GeometryButtonThickness}"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{StaticResource GeometryButtonStroke}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid Background="Transparent">
                            <Ellipse x:Name="Ellipse"
                                    Stroke="{TemplateBinding BorderBrush}"
                                    Fill="{TemplateBinding Background}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    Stretch="None"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Data="{TemplateBinding Geometry}"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Foreground="{TemplateBinding Foreground}"
                                FontWeight="SemiBold"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadGeometryDropDownButton" x:Key="RadGeometryDropDownButtonStyle">
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource ControlElement_Normal}"/>
        <Setter Property="BorderThickness" Value="{StaticResource GeometryButtonThickness}"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{StaticResource GeometryButtonStroke}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryDropDownButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed"/>
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="EllipseOpenVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="PathOpenVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid Background="Transparent">
                            <Ellipse x:Name="Ellipse"
                                    Stroke="{TemplateBinding BorderBrush}"
                                    Fill="{TemplateBinding Background}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Data="{TemplateBinding Geometry}"/>
                            <Ellipse x:Name="EllipseOpenVisual"
                                    Opacity="0"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{StaticResource ControlBackground_Checked}"
                                    Stroke="{StaticResource ControlOuterBorder_Checked}"/>
                            <Path x:Name="PathOpenVisual"
                                    Opacity="0"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Data="{TemplateBinding Geometry}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Foreground="{TemplateBinding Foreground}"
                                FontWeight="SemiBold"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"/>
                        <Popup x:Name="DropDownPopup" VerticalOffset="{TemplateBinding DropDownPopupVerticalOffset}" HorizontalOffset="{TemplateBinding DropDownPopupHorizontalOffset}">
                            <Grid>
                                <Grid.Effect>
                                    <DropShadowEffect ShadowDepth="2" BlurRadius="6" Color="#FD000000" Opacity="0.6"/>
                                </Grid.Effect>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.ZIndex="1">
                                    <Path Data="M9,0.5 L17.5,7.5 L0.5,7.5 z" Stretch="Fill" Fill="{StaticResource ControlBackground}" Stroke="{StaticResource ControlOuterBorder}"/>
                                    <Rectangle Width="14" Height="1" Margin="0 6 0 0" Fill="{StaticResource ControlBackground}"/>
                                </Grid>
                                <Border x:Name="DropDownPopupBorder"
                                        Margin="2 7 2 2"
                                        BorderThickness="1"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}"
                                        Background="{StaticResource ControlBackground}"
                                        BorderBrush="{StaticResource ControlOuterBorder}"
                                        CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
                                    <ContentControl x:Name="DropDownPopupContent"
                                            Content="{TemplateBinding DropDownContent}"
                                            ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"
                                            Foreground="{TemplateBinding Foreground}"/>
                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadGeometryToggleButton" x:Key="RadGeometryToggleButtonStyle">
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource ControlElement_Normal}"/>
        <Setter Property="BorderThickness" Value="{StaticResource GeometryButtonThickness}"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{StaticResource GeometryButtonStroke}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryToggleButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Checked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Checked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckedStates">
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid Background="Transparent">
                            <Ellipse x:Name="Ellipse"
                                    Stroke="{TemplateBinding BorderBrush}"
                                    Fill="{TemplateBinding Background}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    Stretch="None"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Data="{TemplateBinding Geometry}"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Foreground="{TemplateBinding Foreground}"
                                FontWeight="SemiBold"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadGeometryRadioButtonStyle" TargetType="extensions:RadGeometryRadioButton">
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{StaticResource ControlElement_Normal}"/>
        <Setter Property="BorderThickness" Value="{StaticResource GeometryButtonThickness}"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{StaticResource GeometryButtonStroke}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryRadioButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Checked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Checked}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Path" Storyboard.TargetProperty="Opacity" To="0.5"/>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="Ellipse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Ellipse x:Name="Ellipse"
                                Stroke="{TemplateBinding BorderBrush}"
                                Fill="{TemplateBinding Background}"
                                Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                        <Path x:Name="Path"
                                Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                Stretch="None"
                                Data="{TemplateBinding Geometry}"/>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                FontWeight="SemiBold"
                                Foreground="{TemplateBinding Foreground}"
                                IsTabStop="False"
                                Content="{TemplateBinding Content}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                Margin="{TemplateBinding Padding}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramThumbnail" BasedOn="{StaticResource RadDiagramThumbnailStyle}"/>
    <Style TargetType="extensions:RadDiagramNavigationPane" BasedOn="{StaticResource RadDiagramNavigationPaneStyle}"/>
    <Style TargetType="extensions:RadGeometryToggleButton" BasedOn="{StaticResource RadGeometryToggleButtonStyle}"/>
    <Style TargetType="extensions:RadGeometryDropDownButton" BasedOn="{StaticResource RadGeometryDropDownButtonStyle}"/>
    <Style TargetType="extensions:RadGeometryButton" BasedOn="{StaticResource RadGeometryButtonStyle}"/>
    <Style TargetType="extensions:RadGeometryRadioButton" BasedOn="{StaticResource RadGeometryRadioButtonStyle}"/>
    <Style TargetType="extensions:XSmallTickContainer" x:Key="XSmallTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:XSmallTickContainer">
                    <Rectangle Fill="{StaticResource RulerBorderBrush}" Width="1" Height="3"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SmallTickContainer" x:Key="SmallTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SmallTickContainer">
                    <Rectangle Fill="{StaticResource RulerBorderBrush}" Width="1" Height="5"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:MediumTickContainer" x:Key="MediumTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:MediumTickContainer">
                    <Rectangle Fill="{StaticResource RulerBorderBrush}" Width="1" Height="8"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:LargeTickContainer" x:Key="LargeTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:LargeTickContainer">
                    <Rectangle Fill="{StaticResource RulerBorderBrush}" Width="1" Height="20"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:LabelContainer" x:Key="LabelContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:LabelContainer">
                    <Grid Height="20">
                        <TextBlock x:Name="RootElement" VerticalAlignment="Top" Text="{Binding Value}" Foreground="{StaticResource RulerLabelForeground}" Margin="2 -2 2 0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MouseIndicatorStyle" TargetType="Path">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Stroke" Value="Red"/>
        <Setter Property="Data" Value="M 0.5,0 L 0.5,20"/>
    </Style>
    <Style TargetType="extensions:RadDiagramRuler" x:Key="RadDiagramRulerStyle">
        <Setter Property="Background" Value="{StaticResource RulerBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource RulerBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="MouseIndicatorStyle" Value="{StaticResource MouseIndicatorStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramRuler">
                    <Grid x:Name="ContentHolder">
                        <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                        <extensions:RulerVirtualizingPanel x:Name="RootPanel" Margin="{TemplateBinding BorderThickness}"/>
                        <Path x:Name="MouseIndicator" Style="{TemplateBinding MouseIndicatorStyle}" Visibility="{TemplateBinding MouseIndicatorVisibility}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ScaleDefinitions">
            <Setter.Value>
                <extensions:DiagramScaleDefinitionCollection>
                    <extensions:DiagramScaleDefinition MaxZoom="0.99">
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                    <extensions:DiagramScaleDefinition MaxZoom="1.99">
                        <extensions:DiagramScaleItemDefinition Interval="5" Type="XSmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                    <extensions:DiagramScaleDefinition MaxZoom="3.99">
                        <extensions:DiagramScaleItemDefinition Interval="2" Type="XSmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="Label"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                    <extensions:DiagramScaleDefinition>
                        <extensions:DiagramScaleItemDefinition Interval="1" Type="XSmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="Label"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="Label"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                </extensions:DiagramScaleDefinitionCollection>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:XSmallTickContainer" BasedOn="{StaticResource XSmallTickContainerStyle}"/>
    <Style TargetType="extensions:SmallTickContainer" BasedOn="{StaticResource SmallTickContainerStyle}"/>
    <Style TargetType="extensions:MediumTickContainer" BasedOn="{StaticResource MediumTickContainerStyle}"/>
    <Style TargetType="extensions:LargeTickContainer" BasedOn="{StaticResource LargeTickContainerStyle}"/>
    <Style TargetType="extensions:LabelContainer" BasedOn="{StaticResource LabelContainerStyle}"/>
    <Style TargetType="extensions:RadDiagramRuler" BasedOn="{StaticResource RadDiagramRulerStyle}"/>
    <extensions:PercentageConverter x:Key="DoublePercentageConverter"/>
    <extensions:ReciprocalDoubleConverter x:Key="ReciprocalDoubleConverter"/>
    <DataTemplate x:Key="PageSizesSelectedItemTemplate">
        <StackPanel Orientation="Horizontal">
            <Path
                    Stretch="Fill"
                    Stroke="{Binding Foreground, ElementName=PageMediaSizeName}"
                    Width="8"
                    Height="11"
                    Data="F1M222,210L222,266.7C222,269.5,222.7,271,225.5,271L272.1,271C274.7,271,276,270.6,276,266.7L276,234.3C276,232.5,275.5,229.8,273.3,227.6C270.2,224.4,261.0,215.6,259.0,213.6C256.9,211.5,255.8,210,249.5,210z"/>
            <TextBlock x:Name="PageMediaSizeName" Text="{Binding PageMediaSizeName}" Margin="5 0 0 0"/>
        </StackPanel>
    </DataTemplate>
    <Style x:Key="PrintPreviewComboStyle" TargetType="telerik:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle}">
        <Setter Property="BorderBrush" Value="{StaticResource PrintPreviewBorderBrush}"/>
        <Setter Property="Background" Value="{StaticResource PrintPreviewComboBackground}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Margin" Value="0 0 0 10"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
    </Style>
    <Style TargetType="extensions:RadDiagramPrintPreviewItem" x:Key="RadDiagramPrintPreviewItemStyle">
        <Setter Property="Margin" Value="2"/>
        <Setter Property="BorderBrush" Value="{StaticResource PrintPreviewBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramPrintPreviewItem">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                        <Border.Effect>
                            <DropShadowEffect ShadowDepth="1" BlurRadius="4" Color="#FD000000" Opacity="0.3"/>
                        </Border.Effect>
                        <Border BorderBrush="#33000000" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Margin="{TemplateBinding Padding}">
                            <Border BorderBrush="#66FFFFFF" Margin="1" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}">
                                <Image
                                        Stretch="Uniform"
                                        Source="{TemplateBinding PagePreviewImageSource}"
                                        Width="{TemplateBinding PagePreviewImageWidth}"
                                        Height="{TemplateBinding PagePreviewImageHeight}"/>
                            </Border>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramPrintPreview" x:Key="RadDiagramPrintPreviewStyle">
        <Setter Property="MinWidth" Value="200"/>
        <Setter Property="MinHeight" Value="200"/>
        <Setter Property="Background" Value="{StaticResource PrintPreviewBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PrintPreviewBorderBrush}"/>
        <Setter Property="ItemStyle" Value="{StaticResource RadDiagramPrintPreviewItemStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition MaxWidth="280"/>
                        </Grid.ColumnDefinitions>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Background="{StaticResource PrintPreviewPagesBackground}" BorderThickness="0">
                                <telerik:RadUniformGrid x:Name="PART_PagesPanel" VerticalAlignment="Top" UseLayoutRounding="True" HorizontalAlignment="Left" Margin="15"/>
                            </ScrollViewer>
                            <StackPanel Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal" Margin="{StaticResource PrintPreviewZoomPanePadding}">
                                <TextBlock
                                        VerticalAlignment="Center"
                                        Text="{telerik:LocalizableResource Key=Zoom}"
                                        FontWeight="{StaticResource PrintPreviewTextBlockFontWeight}"
                                        FontFamily="{StaticResource PrintPreviewTextBlockFontFamily}"
                                        FontSize="{StaticResource PrintPreviewZoomPaneTextBlockFontSize}"
                                        Foreground="{StaticResource PrintPreviewTextBlockForeground}"/>
                                <TextBlock
                                        VerticalAlignment="Center"
                                        Margin="0 0 4 0"
                                        FontWeight="{StaticResource PrintPreviewTextBlockFontWeight}"
                                        Text="{Binding Value, ElementName=ZoomSlider, Converter={StaticResource DoublePercentageConverter}}"
                                        Foreground="{StaticResource PrintPreviewTextBlockForeground}"
                                        FontSize="{StaticResource PrintPreviewZoomPaneTextBlockFontSize}"
                                        FontFamily="{StaticResource PrintPreviewTextBlockFontFamily}"/>
                                <telerik:RadSlider x:Name="ZoomSlider"
                                        TickFrequency="1"
                                        MinWidth="124"
                                        VerticalAlignment="Center"
                                        Minimum="0.1"
                                        Maximum="5"
                                        SmallChange="0.01"
                                        LargeChange="0.1"
                                        Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ScaleDownFactor, Mode=TwoWay, Converter={StaticResource ReciprocalDoubleConverter}}"/>
                            </StackPanel>
                            <Rectangle Grid.RowSpan="2" Width="1" Fill="{TemplateBinding BorderBrush}" HorizontalAlignment="Right" VerticalAlignment="Stretch"/>
                            <Rectangle Height="1" Fill="{TemplateBinding BorderBrush}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
                        </Grid>
                        <Grid Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock
                                    Margin="15 15 15 0"
                                    HorizontalAlignment="Left"
                                    FontWeight="{StaticResource PrintPreviewTextBlockFontWeight}"
                                    Foreground="{StaticResource PrintPreviewTextBlockForeground}"
                                    Text="{telerik:LocalizableResource Key=PrintPreview_Print}"
                                    FontFamily="{StaticResource PrintPreviewTextBlockFontFamily}"
                                    FontSize="{StaticResource PrintPreviewTextBlockFontSize}"/>
                            <telerik:RadComboBox
                                    Grid.Row="1"
                                    Margin="15 10 15 0"
                                    ItemsSource="{Binding PrintQueues, Mode=OneWay}"
                                    SelectedItem="{Binding SelectedPrintQueue, Mode=TwoWay}"
                                    DisplayMemberPath="Name"
                                    Style="{StaticResource PrintPreviewComboStyle}"/>
                            <TextBlock
                                    Grid.Row="2"
                                    Margin="15 15 15 0"
                                    HorizontalAlignment="Left"
                                    FontWeight="{StaticResource PrintPreviewTextBlockFontWeight}"
                                    Foreground="{StaticResource PrintPreviewTextBlockForeground}"
                                    Text="{telerik:LocalizableResource Key=PrintPreview_Settings}"
                                    FontFamily="{StaticResource PrintPreviewTextBlockFontFamily}"
                                    FontSize="{StaticResource PrintPreviewTextBlockFontSize}"/>
                            <telerik:RadComboBox
                                    Grid.Row="3"
                                    Margin="15 10 15 0"
                                    ItemsSource="{Binding PageOrientations, Mode=OneWay}"
                                    SelectedItem="{Binding SelectedPageOrientation, Mode=TwoWay}"
                                    DisplayMemberPath=""
                                    Style="{StaticResource PrintPreviewComboStyle}"/>
                            <telerik:RadComboBox
                                    Grid.Row="4"
                                    Margin="15 15 15 0"
                                    ItemsSource="{Binding PageSizes, Mode=OneWay}"
                                    SelectedItem="{Binding SelectedPageSize, Mode=TwoWay}"
                                    DisplayMemberPath="PageMediaSizeName"
                                    SelectionBoxTemplate="{StaticResource PageSizesSelectedItemTemplate}"
                                    Style="{StaticResource PrintPreviewComboStyle}"/>
                            <telerik:RadButton x:Name="PART_PrintButton"
                                    Grid.Row="6"
                                    HorizontalContentAlignment="Center"
                                    VerticalAlignment="Bottom"
                                    Margin="15 14"
                                    Content="{telerik:LocalizableResource Key=PrintPreview_Print}"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramPrintPreview" BasedOn="{StaticResource RadDiagramPrintPreviewStyle}"/>
    <Style TargetType="extensions:RadDiagramPrintPreviewItem" BasedOn="{StaticResource RadDiagramPrintPreviewItemStyle}"/>
</ResourceDictionary>
