<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls" xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls" xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" xmlns:telerikNavigationPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation" xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls" xmlns:telerikToolBar="clr-namespace:Telerik.Windows.Controls.ToolBar;assembly=Telerik.Windows.Controls.Navigation" xmlns:treeView="clr-namespace:Telerik.Windows.Controls.TreeView;assembly=Telerik.Windows.Controls.Navigation" xmlns:themes="http://schemas.telerik.com/2008/xaml/presentation" xmlns:mscorlib="clr-namespace:System;assembly=mscorlib" xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls" xmlns:telerikTabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation" xmlns:animationNavigation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation" xmlns:book="clr-namespace:Telerik.Windows.Controls.Book;assembly=Telerik.Windows.Controls.Navigation" xmlns:outlookBarPrimitives="clr-namespace:Telerik.Windows.Controls.OutlookBar;assembly=Telerik.Windows.Controls.Navigation" xmlns:Telerik_Windows_Controls_TileView="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:local="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" xmlns:carousel="clr-namespace:Telerik.Windows.Controls.Carousel;assembly=Telerik.Windows.Controls.Navigation" xmlns:telerikBreadcrumb="clr-namespace:Telerik.Windows.Controls.Breadcrumb;assembly=Telerik.Windows.Controls.Navigation">
  <!-- Brushes and Resources-->
  <SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF000000" />
  <SolidColorBrush x:Key="ControlItem_InnerBorder_Normal" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="ControlItem_OuterBorder_MouseOver" Color="#FF6F9DB5" />
  <SolidColorBrush x:Key="ControlItem_InnerBorder_MouseOver" Color="#FFFFFFFF" />
  <LinearGradientBrush x:Key="ControlItem_Background_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD6E9F0" />
    <GradientStop Color="#FFA6C8D4" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlItem_OuterBorder_Selected" Color="#FF198FB0" />
  <LinearGradientBrush x:Key="ControlItem_InnerBorder_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF71B4CB" Offset="0" />
    <GradientStop Color="#FFCCEDF8" Offset="1" />
    <GradientStop Color="#FFCCEDF8" Offset="0.112" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ControlItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD6E9F0" Offset="0.101" />
    <GradientStop Color="#FFA6C8D4" Offset="1" />
    <GradientStop Color="#FF8AAEBB" Offset="0.027" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFC9C9C9" />
  <SolidColorBrush x:Key="ControlInnerBorder_Disabled" Color="Transparent" />
  <LinearGradientBrush x:Key="ControlBackground_Disabled" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFE3E8EB" Offset="1" />
    <GradientStop Color="White" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlElement_Normal" Color="#FF000000" />
  <SolidColorBrush x:Key="FocusBrushBlack" Color="#FF000000" />
  <CornerRadius x:Key="ControlSubItem_OuterCornerRadius">1</CornerRadius>
  <SolidColorBrush x:Key="ControlSubItem_OuterBorder_MouseOver" Color="#FFC2DAE3" />
  <Thickness x:Key="ControlSubItem_OuterBorderThickness">1</Thickness>
  <SolidColorBrush x:Key="ControlSubItem_InnerBorder_MouseOver" Color="Transparent" />
  <CornerRadius x:Key="ControlSubItem_InnerCornerRadius">0</CornerRadius>
  <Thickness x:Key="ControlSubItem_InnerBorderThickness">0</Thickness>
  <LinearGradientBrush x:Key="ControlSubItem_Background_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFE7F3F8" Offset="0" />
    <GradientStop Color="#FFD4E7EE" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlSubItem_OuterBorder_Selected" Color="#FFA9CAD6" />
  <SolidColorBrush x:Key="ControlSubItem_InnerBorder_Selected" Color="Transparent" />
  <LinearGradientBrush x:Key="ControlSubItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFDEF0F8" Offset="0.12" />
    <GradientStop Color="#FFB4D2DC" Offset="0" />
    <GradientStop Color="#FFBEDEEA" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ControlItem_Background_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFE3E8EB" Offset="1" />
    <GradientStop Color="White" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlItem_OuterBorder_Normal" Color="#FFB2B2B2" />
  <LinearGradientBrush x:Key="TileView_ButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFA6C8D4" Offset="0.176" />
    <GradientStop Color="#FF6F9DB5" Offset="1" />
    <GradientStop Color="#FF263E4B" Offset="0.003" />
    <GradientStop Color="#FF263E4B" Offset="0.159" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="TileView_ButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF7FBFD4" Offset="0.176" />
    <GradientStop Color="#FF198FB0" Offset="1" />
    <GradientStop Color="#FF074151" Offset="0.003" />
    <GradientStop Color="#FF074151" Offset="0.163" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="TileView_ButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF9C9DA1" Offset="0.164" />
    <GradientStop Color="#FF95969B" Offset="1" />
    <GradientStop Color="#FF4D4E53" Offset="0.006" />
    <GradientStop Color="#FF4D4E53" Offset="0.139" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="TileView_ButtonOuterBorder" Color="#FFFFFFFF" />
  <LinearGradientBrush x:Key="TileView_HeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="White" />
    <GradientStop Color="#FFE4E6E8" Offset="1" />
  </LinearGradientBrush>
  <CornerRadius x:Key="TileView_HeaderBorder_CornerRadius">1</CornerRadius>
  <SolidColorBrush x:Key="TileView_HeaderBorder" Color="#FFD6D6D6" />
  <Thickness x:Key="TileView_HeaderBorder_Thickness">0 0 0 1</Thickness>
  <LinearGradientBrush x:Key="TileView_HeaderBorder_HorizontalSplitterOpacityMask" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="Black" Offset="0" />
    <GradientStop Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="TileView_HeaderBorder_HorizontalSplitterBackground" Color="Transparent" />
  <SolidColorBrush x:Key="TileView_Background" Color="#FFF1F2F3" />
  <SolidColorBrush x:Key="TileView_OuterBorder" Color="#FFB2B2B2" />
  <CornerRadius x:Key="TileView_OuterBorder_CornerRadius">2</CornerRadius>
  <SolidColorBrush x:Key="TileView_InneBorder" Color="#FFFFFFFF" />
  <CornerRadius x:Key="TileView_InneBorder_CornerRadius">1</CornerRadius>
  <Thickness x:Key="TileView_InneBorder_Thickness">1</Thickness>
  <SolidColorBrush x:Key="DisabledBrush" Color="#99FFFFFF"></SolidColorBrush>
  <SolidColorBrush x:Key="ControlOuterBorder_Selected" Color="#FFA9CAD6" />
  <Thickness x:Key="TileView_MaximizeArea_BorderThickness">0</Thickness>
  <SolidColorBrush x:Key="TileView_MaximizeArea_BorderBrush" Color="Transparent" />
  <SolidColorBrush x:Key="TileView_MaximizeArea_Background" Color="#330E7194" />
  <SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FF6F9DB5" />
  <LinearGradientBrush x:Key="ControlBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD6E9F0" />
    <GradientStop Color="#FFA6C8D4" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlInnerBorder_MouseOver" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="ControlOuterBorder_Pressed" Color="#FF198FB0" />
  <LinearGradientBrush x:Key="ControlBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF8AAEBB" Offset="0" />
    <GradientStop Color="#FFBBDBE6" Offset="0.15" />
    <GradientStop Color="#FF7FBFD4" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ControlInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF65A5BB" Offset="0" />
    <GradientStop Color="#FFCCEDF8" Offset="0.143" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FFB2B2B2" />
  <CornerRadius x:Key="TabControl_ScrollButton_CornerRadius">0</CornerRadius>
  <LinearGradientBrush x:Key="ControlBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="White" />
    <GradientStop Color="#FFE3E8EB" Offset="1" />
  </LinearGradientBrush>
  <CornerRadius x:Key="TabControl_ScrollButton_InnerCornerRadius">0</CornerRadius>
  <SolidColorBrush x:Key="ControlInnerBorder_Normal" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="ControlOuterBorder_Checked" Color="#FF198FB0" />
  <LinearGradientBrush x:Key="ControlBackground_Checked" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF8AAEBB" Offset="0.027" />
    <GradientStop Color="#FFBBDBE6" Offset="0.146" />
    <GradientStop Color="#FF7FBFD4" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ControlInnerBorder_Checked" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF65A5BB" Offset="0" />
    <GradientStop Color="#FFCCEDF8" Offset="0.143" />
    <GradientStop Color="#FFCCEDF8" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush EndPoint="0.5,1" x:Key="ControlBackground" StartPoint="0.5,0">
    <GradientStop Color="White" />
    <GradientStop Color="#FFE4E6E8" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlOuterBorder" Color="#FFB2B2B2" />
  <SolidColorBrush x:Key="TabControl_DropDownHeaderBrush" Color="Transparent" />
  <SolidColorBrush x:Key="TabControl_ContentBorderBrush" Color="#FFB1B1B1" />
  <SolidColorBrush x:Key="TabControl_ContentBackground" Color="#FFFFFFFF" />
  <LinearGradientBrush x:Key="TabControl_HeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD4D4D4" Offset="0.041" />
    <GradientStop Color="#FFD4D4D4" Offset="0.992" />
    <GradientStop Color="White" Offset="0.005" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="TabItem_OuterBorder_SelectedMouseOver" Color="#FF6F9DB5" />
  <Thickness x:Key="TabItem_Margin">1 0</Thickness>
  <CornerRadius x:Key="TabItem_OuterCornerRadius">1 1 0 0</CornerRadius>
  <SolidColorBrush x:Key="TabItem_InnerBorder_Normal" Color="#FFFFFFFF" />
  <CornerRadius x:Key="TabItem_InnerCornerRadius">0</CornerRadius>
  <Thickness x:Key="TabItem_InnerBorderThickness">1 1 1 0</Thickness>
  <SolidColorBrush x:Key="TabItem_OuterBorder_MouseOver" Color="#FF6F9DB5" />
  <LinearGradientBrush x:Key="TabItem_Background_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD6E9F0" Offset="1" />
    <GradientStop Color="#FFA6C8D4" />
  </LinearGradientBrush>
  <Thickness x:Key="TabItem_OuterBorderThickness">1 1 1 0</Thickness>
  <SolidColorBrush x:Key="TabItem_InnerBorder_MouseOver" Color="#FFFFFFFF" />
  <Thickness x:Key="TabItem_Margin_Selected">0</Thickness>
  <SolidColorBrush x:Key="TabItem_OuterBorder_Selected" Color="#FFB1B1B1" />
  <LinearGradientBrush x:Key="TabItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD6E9F0" />
    <GradientStop Color="White" Offset="0.709" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="TabItem_InnerBorder_Selected" Color="#FFFFFFFF" />
  <LinearGradientBrush x:Key="TabItem_Background_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFFEFEFE" Offset="1" />
    <GradientStop Color="#FFE9E9E9" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="TabItem_OuterBorder_Normal" Color="#FFB1B1B1" />
  <CornerRadius x:Key="ControlOuterBorder_CornerRadius">2</CornerRadius>
  <CornerRadius x:Key="ControlInnerBorder_CornerRadius">1</CornerRadius>
  <SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF00B1F0" />
  <SolidColorBrush x:Key="ControlBackground_Focused" Color="Transparent" />
  <SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="Transparent" />
  <SolidColorBrush x:Key="CoreButtonOuterBorder_Pressed" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="PickerBackground_Normal" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="TextBoxBackground_ReadOnly" Color="#5EC9C9C9" />
  <SolidColorBrush Color="#FFEEEEEE" x:Key="CheckBox_Background" />
  <SolidColorBrush Color="#FF000000" x:Key="CheckBox_Foreground" />
  <SolidColorBrush Color="#FF979898" x:Key="CheckBox_Border" />
  <SolidColorBrush x:Key="CheckBox_MiddleInnerStrokeOver" Color="#FF448DCA" />
  <LinearGradientBrush x:Key="CheckBox_MiddleFillOver" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
    <GradientStop Color="#FFE5F6FD" Offset="0" />
    <GradientStop Color="#FFC3DBE4" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="CheckBox_MiddleStrokeOver" EndPoint="0,1">
    <GradientStop Offset="0" Color="#FF025B7C" />
    <GradientStop Offset="1" Color="#FF2E7B96" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="CheckBox_MiddleFillPressed" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
    <GradientStop Color="#FFE5F6FD" Offset="0" />
    <GradientStop Color="#FFC3DBE4" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="CheckBox_MiddleStrokePressed" EndPoint="0,1">
    <GradientStop Offset="0" Color="#FF025B7C" />
    <GradientStop Offset="1" Color="#FF2E7B96" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="CheckBox_MiddleStroke" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
    <GradientStop Color="#FF9B9B9B" Offset="0" />
    <GradientStop Color="#FFE6E6E8" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="CheckBox_MiddleFill" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
    <GradientStop Color="#FFBABFC6" Offset="0" />
    <GradientStop Color="#FFFFFFFF" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="CheckBox_Path" EndPoint="0,1">
    <GradientStop Offset="0" Color="#FF025B7C" />
    <GradientStop Offset="1" Color="#FF2E7B96" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlOuterBorder_MouseOverChecked" Color="#FF198FB0" />
  <LinearGradientBrush x:Key="ControlBackground_MouseOverChecked" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF80B7CA" Offset="0.027" />
    <GradientStop Color="#FFD0E4EC" Offset="0.146" />
    <GradientStop Color="#FF94C8D9" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ControlInnerBorder_MouseOverChecked" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF77B0C4" Offset="0" />
    <GradientStop Color="#FFD6E9F0" Offset="0.143" />
    <GradientStop Color="#FFCCEDF8" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlElement_Active" Color="#FF000000" />
  <SolidColorBrush x:Key="ControlOuterBorder_DisabledChecked" Color="#FF95C9DA" />
  <LinearGradientBrush x:Key="ControlBackground_DisabledChecked" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFE3F2F8" Offset="0.146" />
    <GradientStop Color="#FFC7DDE4" Offset="1" />
    <GradientStop Color="#FF9ED1E2" Offset="0.027" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ControlInnerBorder_DisabledChecked" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFA4D3E2" Offset="0" />
    <GradientStop Color="#FFE1F8FF" Offset="1" />
    <GradientStop Color="#FFCCEDF8" Offset="0.143" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="#72198FB0" />
  <LinearGradientBrush x:Key="ControlBackground_Highlighted" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFE7F3F8" Offset="0" />
    <GradientStop Color="#FFD4E7EE" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="ControlInnerBorder_Highlighted" Color="Transparent" />
  <themes:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
  <SolidColorBrush x:Key="ToolBar_OuterSeparator" Color="#FFC9C9C9" />
  <SolidColorBrush x:Key="ToolBar_InnerSeparator" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="ToolBar_ToggleButton_normalOuterBorder" Color="#FFB2B2B2" />
  <LinearGradientBrush x:Key="ToolBar_ToggleButton_normalBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFB1B7CB" Offset="1" />
    <GradientStop Color="White" />
  </LinearGradientBrush>
  <Thickness x:Key="ToolBar_ToggleButton_InnerBorderThickness">1</Thickness>
  <SolidColorBrush x:Key="ToolBar_ToggleButton_normalInnerBorder" Color="#FFFFFFFF" />
  <LinearGradientBrush x:Key="ToolBar_InnerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFFEFEFE" Offset="0" />
    <GradientStop Color="#FFE9E9E9" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="ToolBar_InnerBackgroundV" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFFEFEFE" Offset="0" />
    <GradientStop Color="#FFE9E9E9" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="OverflowBorderInnerBrush" Color="#FF9199A4" />
  <SolidColorBrush x:Key="OverflowContentBackgroundBrush" Color="#FFF6F6F6" />
  <SolidColorBrush x:Key="ToolBar_OuterBorder" Color="#FFB2B2B2" />
  <SolidColorBrush x:Key="ToolBar_InnerBorder" Color="Transparent" />
  <SolidColorBrush x:Key="ToolBar_OuterGripOrnament" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="ToolBar_InnerGripOrnament" Color="#FF7A7A7A" />
  <LinearGradientBrush x:Key="MenuBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFFEFEFE" Offset="0" />
    <GradientStop Color="#FFFEFEFE" Offset="0.033" />
    <GradientStop Color="#FFE9E9E9" Offset="0.925" />
    <GradientStop Color="White" Offset="0.959" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="MenuOuterBorder" Color="#FFB2B2B2" />
  <Thickness x:Key="MenuBorderThickness">1</Thickness>
  <Thickness x:Key="MenuItemSeparatorMargin">2 2 2 2</Thickness>
  <SolidColorBrush x:Key="MenuItemSeparatorTop" Color="#FFC9C9C9" />
  <SolidColorBrush x:Key="MenuItemSeparatorBottom" Color="#FFFFFFFF" />
  <Thickness x:Key="MenuTopLevelItemMargin">2</Thickness>
  <CornerRadius x:Key="SplitButton_SpanCornerRadius">2</CornerRadius>
  <SolidColorBrush x:Key="MenuPopupOuterBorder" Color="#FFB2B2B2" />
  <SolidColorBrush x:Key="MenuPopupBackground" Color="#FFF3F3F3" />
  <SolidColorBrush x:Key="MenuPopupIconsBackground" Color="Transparent" />
  <Thickness x:Key="MenuPopupIconsSeparatorMargin">0</Thickness>
  <SolidColorBrush x:Key="MenuPopupIconsSeparatorLeft" Color="#FFC9C9C9" />
  <SolidColorBrush x:Key="MenuPopupIconsSeparatorRight" Color="Transparent" />
  <Thickness x:Key="MenuSubItemMargin">2</Thickness>
  <CornerRadius x:Key="SplitButton_SpanInnerCornerRadius">1</CornerRadius>
  <SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="Transparent" />
  <SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF353535" />
  <Thickness x:Key="MenuItemPadding">6 3</Thickness>
  <SolidColorBrush x:Key="PanelBorderBrush" Color="#FFB2B2B2" />
  <Thickness x:Key="WindowButtonPadding">3</Thickness>
  <Thickness x:Key="WindowButtonMargin">1 1 0 1</Thickness>
  <SolidColorBrush x:Key="WindowInnerBorder" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="WindowHeaderBackground" Color="#FFE4E6E8" />
  <LinearGradientBrush x:Key="WindowButtonIconFill" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF7E8188" Offset="0.163" />
    <GradientStop Color="#FF4D4E53" Offset="0.151" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="WindowButtonIconStroke" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="WindowBackground" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="WindowOuterBorder" Color="#FF9B9797" />
  <SolidColorBrush x:Key="WindowBorderBackground" Color="#FFE4E6E8" />
  <LinearGradientBrush x:Key="WindowModalBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#E5000000" />
    <GradientStop Color="#4C000000" Offset="0.5" />
    <GradientStop Color="#E5000000" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="BorderLineOuterColor" Color="#26000000" />
  <SolidColorBrush x:Key="BorderLineInnerColor" Color="#FFFFFFFF" />
  <LinearGradientBrush x:Key="TreeView_DragContainerFormOuterBorder" EndPoint="0,1">
    <GradientStop Offset="0" Color="#FF00B4F3" />
    <GradientStop Offset="1" Color="#FF0090C7" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="RadTreeView_DragContainerFormInnerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFFFFFFF" Offset="0" />
    <GradientStop Color="#66FFFFFF" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="RadTreeView_DragContainerFormInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFFFFFFF" Offset="0" />
    <GradientStop Color="#FFFFFFFF" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="RadTreeView_DragItemsCountBorderBrush" Color="#FFFFFFFF"></SolidColorBrush>
  <LinearGradientBrush x:Key="RadTreeView_DragItemsCountFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF00AEFF" Offset="0" />
    <GradientStop Color="#FF002D8F" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="RadTreeView_DragItemsCountTextBrush" Color="#FFFFFFFF"></SolidColorBrush>
  <LinearGradientBrush x:Key="RadTreeView_DragTooltipFormFillBrush" EndPoint="0.5,0" StartPoint="0.5,1">
    <GradientStop Color="#FFE4E5F0" Offset="0" />
    <GradientStop Color="#FFFFFFFF" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="Header2ForegroundBrush" Color="#FF0080AD" />
  <SolidColorBrush x:Key="RadTreeView_ForbiddenDragIcon1" Color="#4C000000"></SolidColorBrush>
  <SolidColorBrush x:Key="RadTreeView_ForbiddenDragIcon2" Color="#FFFF0000"></SolidColorBrush>
  <SolidColorBrush x:Key="RadTreeView_ForbiddenDragIcon3" Color="#FFFF0000"></SolidColorBrush>
  <SolidColorBrush x:Key="RadTreeView_ForbiddenDragIcon4" Color="#FFFFFFFF"></SolidColorBrush>
  <LinearGradientBrush x:Key="RadTreeView_ForbiddenDragIcon5" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF2F0101" Offset="0" />
    <GradientStop Color="#FFFF0000" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="RadTreeView_InsertDragIcon1" Color="#4C000000"></SolidColorBrush>
  <LinearGradientBrush x:Key="RadTreeView_InsertDragIcon2" EndPoint="0,0.5" StartPoint="1,0.5">
    <GradientStop Color="#FF00F1F7" Offset="1" />
    <GradientStop Color="#FF0074FF" Offset="0" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="RadTreeView_InsertDragStrokeIcon2" Color="#FFF"></SolidColorBrush>
  <SolidColorBrush x:Key="TreeView_ExpandElement_BorderBrush_ExpandedStates" Color="#FF000000"></SolidColorBrush>
  <SolidColorBrush x:Key="ControlElement_Disabled" Color="#FF9D9D9D" />
  <SolidColorBrush x:Key="TreeView_ExpandElement_Background_Normal" Color="#FF000000"></SolidColorBrush>
  <SolidColorBrush x:Key="TreeView_ExpandElement_BorderBrush_Normal" Color="#FF000000"></SolidColorBrush>
  <SolidColorBrush x:Key="TreeView_ExpandElement_Background_MouseOver" Color="#FF8EE3FF"></SolidColorBrush>
  <SolidColorBrush x:Key="TreeView_ExpandElement_BorderBrush_MouseOver" Color="#FF8EE3FF"></SolidColorBrush>
  <SolidColorBrush x:Key="TreeView_ExpandElement_Background_ExpandedStates" Color="#FF000000"></SolidColorBrush>
  <SolidColorBrush Color="#3c7fb1" x:Key="DragBetweenItemsFeedback_BackgroundBrush" />
  <SolidColorBrush x:Key="ControlSubItem_OuterBorder_UnFocus" Color="#FFdbdbdb" />
  <SolidColorBrush x:Key="ControlSubItem_InnerBorder_UnFocus" Color="Transparent" />
  <LinearGradientBrush x:Key="ControlSubItem_Background_UnFocus" EndPoint="0,1">
    <GradientStop Color="#FFf8f6f9" Offset="0" />
    <GradientStop Color="#FFf0f0f0" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="TreeView_LineColor" Color="#FFCCCCCC" />
  <SolidColorBrush x:Key="ControlElement_MouseOver" Color="#FF000000" />
  <SolidColorBrush x:Key="ControlElement_Pressed" Color="#FF000000" />
  <LinearGradientBrush x:Key="OutlookBar_MinimizedContentButton_Background_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="White" />
    <GradientStop Color="#FFE4E6E8" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="OutlookBar_MinimizedContentButton_Background_MouseOver" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFE7F3F8" Offset="0" />
    <GradientStop Color="#FFD4E7EE" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="OutlookBar_MinimizedContentButton_Background_Pressed" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFB4D2DC" Offset="0" />
    <GradientStop Color="#FFBEDEEA" Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="OutlookBar_HorizontalSplitterOpacityMask" EndPoint="0.5,0" StartPoint="0.5,1">
    <GradientStop Color="Black" Offset="0" />
    <GradientStop Color="White" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="OutlookBar_HorizontalSplitterPath_OuterBackground" Color="#FF000000" />
  <SolidColorBrush x:Key="OutlookBar_HorizontalSplitterPath_InnerBackground" Color="#FFE2F0FD" />
  <Thickness x:Key="OutlookBar_HorizontalSplitter_BorderThickness">0 1 0 0</Thickness>
  <SolidColorBrush x:Key="OutlookBar_HorizontalSplitterBackground" Color="#FFF0F0F0" />
  <SolidColorBrush x:Key="OutlookBar_ForegroundHeader" Color="#000000" />
  <SolidColorBrush x:Key="OutlookBar_HeaderOuterBorder" Color="#FFB2B2B2" />
  <LinearGradientBrush x:Key="OutlookBar_HeaderBackground" StartPoint="0 0" EndPoint="0 1">
    <GradientStop Color="#FFC5C5C5" Offset="1" />
    <GradientStop Color="#FFE4E4E4" />
  </LinearGradientBrush>
  <Thickness x:Key="OutlookBar_HeaderInnerBorder_Thickness">1</Thickness>
  <SolidColorBrush x:Key="OutlookBar_HeaderInnerBorder" Color="#FFFFFFFF" />
  <Thickness x:Key="OutlookBar_OuterBorderThickness">0 1 0 0</Thickness>
  <SolidColorBrush x:Key="OutlookBar_Footer_OuterItemBorderBrush" Color="#FFB2B2B2" />
  <LinearGradientBrush x:Key="OutlookBar_Footer_BackgroundItem" StartPoint="0 0" EndPoint="0 1">
    <GradientStop Color="#FFE3E8EB" Offset="1" />
    <GradientStop Color="White" />
  </LinearGradientBrush>
  <Thickness x:Key="OutlookBar_InnerBorderThickness">1</Thickness>
  <SolidColorBrush x:Key="OutlookBar_Footer_InnerItemBorderBrush" Color="#FFFFFFFF" />
  <SolidColorBrush x:Key="Carousel_ItemOuterBorder" Color="#FFB1B1B1" />
  <SolidColorBrush x:Key="Carousel_ItemInnerBorder" Color="#FFB1B1B1" />
  <LinearGradientBrush x:Key="Carousel_ItemBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFBBDBE6" Offset="0.12" />
    <GradientStop Color="#FFB4D2DC" Offset="0" />
    <GradientStop Color="#FF7FBFD4" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="Carousel_ItemInnerBorder_Selected" Color="#FF6F9DB5" />
  <SolidColorBrush x:Key="Carousel_ItemForeground_Selected" Color="Black" />
  <SolidColorBrush x:Key="Carousel_ItemBackground" Color="White" />
  <LinearGradientBrush x:Key="Carousel_ItemBorder" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFF6F6F6" />
    <GradientStop Color="#FFD2D2D2" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="Carousel_ButtonInnerBorder" Color="White" />
  <SolidColorBrush x:Key="Carousel_ButtonContentShadow" Color="Transparent" />
  <SolidColorBrush x:Key="Carousel_ButtonContent" Color="#FF353535" />
  <SolidColorBrush x:Key="Carousel_ButtonOuterBorder_Over" Color="#FF6F9DB5" />
  <SolidColorBrush x:Key="Carousel_ButtonInnerBorder_Over" Color="White" />
  <LinearGradientBrush x:Key="Carousel_ButtonBackground_Over" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFD6E9F0" />
    <GradientStop Color="#FFA6C8D4" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="Carousel_ButtonOuterBorder_Pressed" Color="#FF198FB0" />
  <LinearGradientBrush x:Key="Carousel_ButtonInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FF65A5BB" Offset="0" />
    <GradientStop Color="#FFCCEDF8" Offset="1" />
    <GradientStop Color="#FFCCEDF8" Offset="0.143" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="Carousel_ButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFBBDBE6" Offset="0.146" />
    <GradientStop Color="#FF7FBFD4" Offset="1" />
    <GradientStop Color="#FF8AAEBB" Offset="0.027" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="Carousel_ButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
    <GradientStop Color="#FFE3E8EB" Offset="1" />
    <GradientStop Color="White" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="Carousel_ButtonOuterBorder" Color="#FFB2B2B2" />
  <SolidColorBrush x:Key="Carousel_ControlBackground" Color="White" />
  <!-- RadPanelBar-->
  <Style TargetType="telerikNavigation:RadPanelBar" x:Key="RadPanelbarBaseStyle">
    <Setter Property="KeyboardNavigation.TabNavigation" Value="Local" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <local:PanelBarPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadPanelBar">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="OrientationStates">
                <VisualState x:Name="Vertical">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="transformationRoot" Storyboard.TargetProperty="(telerikPrimitives:LayoutTransformControl.LayoutTransform)">
                      <DiscreteObjectKeyFrame KeyTime="00:00:00">
                        <DiscreteObjectKeyFrame.Value>
                          <RotateTransform Angle="0" />
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Horizontal">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="transformationRoot" Storyboard.TargetProperty="(telerikPrimitives:LayoutTransformControl.LayoutTransform)">
                      <DiscreteObjectKeyFrame KeyTime="00:00:00">
                        <DiscreteObjectKeyFrame.Value>
                          <RotateTransform Angle="-90" />
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikPrimitives:LayoutTransformControl x:Name="transformationRoot">
              <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                <ScrollViewer Padding="{TemplateBinding Padding}" IsTabStop="False" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" x:Name="ScrollViewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                  <ItemsPresenter />
                </ScrollViewer>
              </Border>
            </telerikPrimitives:LayoutTransformControl>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Orientation" Value="Vertical" />
    <Setter Property="IsTabStop" Value="true" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
  </Style>
  <Style TargetType="telerikNavigation:RadPanelBar" BasedOn="{StaticResource RadPanelbarBaseStyle}" x:Key="RadPanelBarStyle"></Style>
  <Style TargetType="telerikNavigation:RadPanelBar" BasedOn="{StaticResource RadPanelBarStyle}" />
  <!-- RadPanelBarItem Top Level Control Template -->
  <ControlTemplate TargetType="telerikNavigation:RadPanelBarItem" x:Key="PanelBarItemTopLevelTemplate">
    <Grid x:Name="RootElement" SnapsToDevicePixels="True">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
      </Grid.RowDefinitions>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Normal" />
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetName="NormalVisual" Storyboard.TargetProperty="Opacity" Duration="0" To="0" />
              <DoubleAnimation Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="arrow" To="0.5" Duration="0" />
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header" To="0.5" Duration="0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseOver">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseOut" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="SelectionStates">
          <VisualState x:Name="Unselected" />
          <VisualState x:Name="Selected">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetName="SelectVisual" Duration="0" Storyboard.TargetProperty="Opacity" To="1" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="ExpandStates">
          <VisualState x:Name="Expanded">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetName="directionRotation" Storyboard.TargetProperty="Angle" To="180" Duration="0" />
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsContainer" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <DoubleAnimation Storyboard.TargetName="ItemsContainer" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:0.2" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Collapsed" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Focused">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unfocused">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid x:Name="HeaderRow">
        <Grid.ColumnDefinitions>
          <!-- indent -->
          <ColumnDefinition Width="Auto" />
          <!-- collapse/expand -->
          <ColumnDefinition Width="Auto" />
          <!-- left image -->
          <ColumnDefinition Width="Auto" />
          <!-- selection, text, edit element -->
          <ColumnDefinition Width="*" />
          <!-- empty -->
          <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <!-- normal-->
        <Border x:Name="NormalVisual" Grid.ColumnSpan="5" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
          <Border BorderBrush="{StaticResource ControlItem_InnerBorder_Normal}" BorderThickness="1" Background="{TemplateBinding Background}" />
        </Border>
        <!-- Hover -->
        <Border x:Name="MouseOverVisual" Opacity="0" Grid.ColumnSpan="5" BorderBrush="{StaticResource ControlItem_OuterBorder_MouseOver}" BorderThickness="1">
          <Border BorderBrush="{StaticResource ControlItem_InnerBorder_MouseOver}" BorderThickness="1" Background="{StaticResource ControlItem_Background_MouseOver}" />
        </Border>
        <!-- Select -->
        <Border x:Name="SelectVisual" Opacity="0" Grid.ColumnSpan="5" BorderBrush="{StaticResource ControlItem_OuterBorder_Selected}" BorderThickness="1">
          <Border BorderBrush="{StaticResource ControlItem_InnerBorder_Selected}" BorderThickness="1" Background="{StaticResource ControlItem_Background_Selected}" />
        </Border>
        <!-- Disabled -->
        <Border x:Name="DisabledVisual" Opacity="0" Grid.ColumnSpan="5" BorderBrush="{StaticResource ControlOuterBorder_Disabled}" BorderThickness="1">
          <Border BorderBrush="{StaticResource ControlInnerBorder_Disabled}" BorderThickness="1" Background="{StaticResource ControlBackground_Disabled}" />
        </Border>
        <!-- Arrow-->
        <Path x:Name="arrow" Opacity="1" Margin="7 0" HorizontalAlignment="Right" Grid.Column="5" VerticalAlignment="Center" Stretch="None" Stroke="{StaticResource ControlElement_Normal}" StrokeThickness="2" RenderTransformOrigin="0.5 0.5" Data="M 1,1.5 L 4.5,5 L 8,1.5">
          <Path.RenderTransform>
            <RotateTransform x:Name="directionRotation" Angle="0" />
          </Path.RenderTransform>
        </Path>
        <ContentControl x:Name="Header" Margin="{TemplateBinding Padding}" Grid.ColumnSpan="4" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
        <!-- Focus -->
        <Rectangle x:Name="FocusVisual" Visibility="Collapsed" Grid.Column="0" Grid.ColumnSpan="5" Stroke="{StaticResource FocusBrushBlack}" StrokeThickness="1" StrokeDashArray="1 2" IsHitTestVisible="False" />
      </Grid>
      <Grid Grid.Row="1" Visibility="Collapsed" x:Name="ItemsContainer">
        <telerikPrimitives:LayoutTransformControl x:Name="transformationRoot">
          <ItemsPresenter />
        </telerikPrimitives:LayoutTransformControl>
      </Grid>
    </Grid>
  </ControlTemplate>
  <!-- RadPanelBarItem Second Level Control Template -->
  <ControlTemplate TargetType="telerikNavigation:RadPanelBarItem" x:Key="PanelBarItemSecondLevelTemplate">
    <Grid x:Name="RootElement">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
      </Grid.RowDefinitions>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Normal" />
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisual" To="1.0" Duration="0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseOver">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual" To="1.0" Duration="0:0:0.2" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseOut">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual" To="0.0" Duration="0:0:0.2" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="SelectionStates">
          <VisualState x:Name="Unselected" />
          <VisualState x:Name="Selected">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionVisual" To="1" Duration="0" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="ExpandStates">
          <VisualState x:Name="Expanded">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsContainer" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <DoubleAnimation Storyboard.TargetName="ItemsContainer" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:0.2" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Collapsed" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Focused">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unfocused">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid x:Name="HeaderRow" Background="Transparent">
        <!-- Hover -->
        <Border x:Name="MouseOverVisual" Opacity="0" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderBrush="{StaticResource ControlSubItem_OuterBorder_MouseOver}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
          <Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_MouseOver}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlSubItem_Background_MouseOver}" />
        </Border>
        <!-- Select -->
        <Border x:Name="SelectionVisual" Opacity="0" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderBrush="{StaticResource ControlSubItem_OuterBorder_Selected}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
          <Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_Selected}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlSubItem_Background_Selected}" />
        </Border>
        <!-- Disabled -->
        <Border x:Name="DisabledVisual" Opacity="0" BorderBrush="{StaticResource ControlOuterBorder_Disabled}" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
          <Border BorderBrush="{StaticResource ControlInnerBorder_Disabled}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlBackground_Disabled}" />
        </Border>
        <!-- Header -->
        <ContentControl x:Name="Header" Margin="{TemplateBinding Padding}" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
        <!-- Focus -->
        <Rectangle x:Name="FocusVisual" Visibility="Collapsed" Stroke="{StaticResource FocusBrushBlack}" StrokeThickness="1" StrokeDashArray="1 2" IsHitTestVisible="False" RadiusX="2" RadiusY="2" />
      </Grid>
      <!-- Content -->
      <Grid Visibility="Collapsed" Grid.Row="1" x:Name="ItemsContainer">
        <ItemsPresenter />
      </Grid>
    </Grid>
  </ControlTemplate>
  <Style TargetType="telerikNavigation:RadPanelBarItem" x:Key="RadPanelbarItemBaseStyle">
    <Setter Property="Background" Value="{StaticResource ControlItem_Background_Normal}" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlItem_OuterBorder_Normal}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="ChildItemsTemplate" Value="{StaticResource PanelBarItemSecondLevelTemplate}" />
    <Setter Property="Template" Value="{StaticResource PanelBarItemSecondLevelTemplate}" />
    <Setter Property="KeyboardNavigation.TabNavigation" Value="Local" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <local:PanelBarPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Style.Triggers>
      <Trigger Property="Level" Value="1">
        <Setter Property="Template" Value="{StaticResource PanelBarItemTopLevelTemplate}" />
      </Trigger>
    </Style.Triggers>
  </Style>
  <Style TargetType="telerikNavigation:RadPanelBarItem" BasedOn="{StaticResource RadPanelbarItemBaseStyle}" x:Key="RadPanelBarItemStyle"></Style>
  <Style TargetType="telerikNavigation:RadPanelBarItem" BasedOn="{StaticResource RadPanelBarItemStyle}" />
  <!-- RadTileView-->
  <Style x:Key="maximizeToggleStyle" TargetType="telerik:RadToggleButton">
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="HorizontalAlignment" Value="Right" />
    <Setter Property="Width" Value="17" />
    <Setter Property="Height" Value="17" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadToggleButton">
          <Grid Background="Transparent">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused" />
                <VisualState x:Name="Unfocused" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Disabled" />
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RestoreIcon" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TileView_ButtonBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapseIcon" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TileView_ButtonBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RestoreIcon" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TileView_ButtonBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapseIcon" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TileView_ButtonBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Restore" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Restore" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Indeterminate" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid Width="13" Height="13" x:Name="Restore" Background="Transparent">
              <ToolTipService.ToolTip>
                <ToolTip themes:LocalizationManager.ResourceKey="TileViewItemMaximizeText" />
              </ToolTipService.ToolTip>
              <Path x:Name="RestoreIcon" Fill="{StaticResource TileView_ButtonBackground}" Stretch="Fill" Stroke="{x:Null}" Margin="1" Data="M2,5 L2,8.9999999 6,8.9999999 6,5 z M0,3 L8,3 8,5 8,8.9999999 8,11 0,11 0,8.9999999 0,5 z M3,0 L11,0 11,2 11,8.9999999 9,8.9999999 9,2 3,2 z" StrokeThickness="0.5" />
              <Path Fill="{StaticResource TileView_ButtonOuterBorder}" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0.5" Data="M1,12 L9,12 9,13 1,13 z M3.9999999,7 L3.9999999,9 6,9 6,7 z M3,6 L7,6 7,7 7,9 7,10 3,10 3,9 3,7 z M0,4 L1,4 1,12 0,12 z M12,1 L13,1 13,10 12,10 z M3,1 L3.9999999,1 3.9999999,3 10,3 10,4 10,10 12,10 12,11 10,11 10,12 9,12 9,4 1,4 1,3 3,3 z M3.9999999,0 L12,0 12,1 3.9999999,1 z" />
            </Grid>
            <Grid Width="12" Height="5" x:Name="Collapse" Visibility="Collapsed" Background="Transparent">
              <ToolTipService.ToolTip>
                <ToolTip themes:LocalizationManager.ResourceKey="TileViewItemMinimizeText" />
              </ToolTipService.ToolTip>
              <Rectangle Stroke="{x:Null}" StrokeThickness="0.5" Fill="{StaticResource TileView_ButtonOuterBorder}" />
              <Rectangle x:Name="CollapseIcon" Fill="{StaticResource TileView_ButtonBackground}" Stroke="{x:Null}" StrokeThickness="0.5" Margin="1" />
            </Grid>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!--TileViewItemHeader-->
  <Style x:Key="TileViewItemHeaderStyle" TargetType="Telerik_Windows_Controls_TileView:TileViewItemHeader">
    <Setter Property="Background" Value="{StaticResource TileView_HeaderBackground}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Telerik_Windows_Controls_TileView:TileViewItemHeader">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="TileStates">
                <VisualState x:Name="Maximized">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeToggleButton" Storyboard.TargetProperty="IsChecked" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Boolean>True</sys:Boolean>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Restored">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeToggleButton" Storyboard.TargetProperty="IsChecked" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Boolean>False</sys:Boolean>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <StackPanel>
              <Border CornerRadius="{StaticResource TileView_HeaderBorder_CornerRadius}" Padding="10 0 7 0" BorderBrush="{StaticResource TileView_HeaderBorder}" BorderThickness="{StaticResource TileView_HeaderBorder_Thickness}" Background="{TemplateBinding Background}">
                <Grid MinHeight="28">
                  <Border x:Name="GripBarElement" Background="Transparent">
                    <ContentPresenter x:Name="HeaderElement" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,10,0" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
                  </Border>
                  <themes:RadToggleButton x:Name="MaximizeToggleButton" Command="Telerik_Windows_Controls_TileView:TileViewCommands.ToggleTileState" Style="{StaticResource maximizeToggleStyle}" />
                </Grid>
              </Border>
              <Border x:Name="Splitter" Height="4" BorderThickness="0" OpacityMask="{StaticResource TileView_HeaderBorder_HorizontalSplitterOpacityMask}" Background="{StaticResource TileView_HeaderBorder_HorizontalSplitterBackground}" />
            </StackPanel>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="Telerik_Windows_Controls_TileView:TileViewItemHeader" BasedOn="{StaticResource TileViewItemHeaderStyle}" />
  <!--TileViewItem-->
  <Style x:Key="RadTileViewItemStyle" TargetType="telerikNavigation:RadTileViewItem">
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="Background" Value="{StaticResource TileView_Background}" />
    <Setter Property="BorderBrush" Value="{StaticResource TileView_OuterBorder}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Padding" Value="7" />
    <Setter Property="SnapsToDevicePixels" Value="True"></Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadTileViewItem">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="SelectionStates">
                <VisualState x:Name="Selected">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectedItem" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unselected" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="MouseOverDraggingStates">
                <VisualState x:Name="MouseOverDragging">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseNotOverDragging" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="outerBorder" CornerRadius="{StaticResource TileView_OuterBorder_CornerRadius}" Margin="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
              <Border x:Name="outerContainer" Background="Transparent" BorderBrush="{StaticResource  TileView_InneBorder}" CornerRadius="{StaticResource TileView_InneBorder_CornerRadius}" BorderThickness="{StaticResource TileView_InneBorder_Thickness}">
                <Grid>
                  <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                  </Grid.RowDefinitions>
                  <Telerik_Windows_Controls_TileView:TileViewItemHeader x:Name="HeaderPart" HeaderTemplate="{TemplateBinding HeaderTemplate}" Style="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HeaderStyle, Mode=TwoWay}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" />
                  <Grid Grid.Row="1" Background="Transparent">
                    <ContentPresenter x:Name="ContentElement" Grid.Row="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                  </Grid>
                  <Rectangle x:Name="DisabledVisual" Grid.RowSpan="2" RadiusX="4" RadiusY="4" Fill="{StaticResource DisabledBrush}" Visibility="Collapsed" />
                </Grid>
              </Border>
            </Border>
            <!-- Selectrion state -->
            <Grid x:Name="SelectedItem" Visibility="Collapsed" Margin="-1">
              <Border CornerRadius="{StaticResource TileView_OuterBorder_CornerRadius}" Margin="{TemplateBinding Padding}" BorderBrush="{StaticResource ControlOuterBorder_Selected}" BorderThickness="2" />
            </Grid>
            <!-- MouseOver dragging state -->
            <Border x:Name="MouseOverBorder" Visibility="Collapsed" Opacity="0.5" BorderThickness="{StaticResource TileView_MaximizeArea_BorderThickness}" BorderBrush="{StaticResource TileView_MaximizeArea_BorderBrush}" Background="{StaticResource TileView_MaximizeArea_Background}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadTileViewItem" BasedOn="{StaticResource RadTileViewItemStyle}" />
  <!--TileView-->
  <Style x:Key="RadTileViewStyle" TargetType="telerikNavigation:RadTileView">
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="ScrollBarVisibility" Value="Auto" />
    <Setter Property="IsAnimationOptimized" Value="False" />
    <Setter Property="HeaderStyle" Value="{StaticResource TileViewItemHeaderStyle}" />
    <Setter Property="SnapsToDevicePixels" Value="True"></Setter>
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
    <Setter Property="Padding" Value="7" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <local:TileViewPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadTileView">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*"></ColumnDefinition>
              <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition Height="*"></RowDefinition>
              <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="Docking">
                <VisualState x:Name="DockTop">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaTop" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaBottom" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaLeft" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaRight" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="DockLeft">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaTop" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaBottom" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaLeft" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaRight" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="DockRight">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaTop" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaBottom" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaLeft" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaRight" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="DockBottom">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaTop" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaBottom" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaLeft" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaRight" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="HideMaximizeArea">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaTop" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaBottom" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaLeft" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MaximizeAreaRight" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.RowSpan="2" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
              <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Background="Transparent" CanContentScroll="True" HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}" VerticalScrollBarVisibility="{Binding (ScrollViewer.VerticalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
                <ItemsPresenter />
              </ScrollViewer>
            </Border>
            <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBrush}" Grid.ColumnSpan="2" Grid.RowSpan="2" Visibility="Collapsed" />
            <Border x:Name="MaximizeAreaTop" Visibility="Collapsed" Grid.ColumnSpan="2" Grid.Row="0" BorderThickness="{StaticResource TileView_MaximizeArea_BorderThickness}" BorderBrush="{StaticResource TileView_MaximizeArea_BorderBrush}" Background="{StaticResource TileView_MaximizeArea_Background}" />
            <Border x:Name="MaximizeAreaBottom" Visibility="Collapsed" Grid.ColumnSpan="2" Grid.Row="1" BorderThickness="{StaticResource TileView_MaximizeArea_BorderThickness}" BorderBrush="{StaticResource TileView_MaximizeArea_BorderBrush}" Background="{StaticResource TileView_MaximizeArea_Background}" />
            <Border x:Name="MaximizeAreaLeft" Visibility="Collapsed" Grid.RowSpan="2" Grid.Column="0" BorderThickness="{StaticResource TileView_MaximizeArea_BorderThickness}" BorderBrush="{StaticResource TileView_MaximizeArea_BorderBrush}" Background="{StaticResource TileView_MaximizeArea_Background}" />
            <Border x:Name="MaximizeAreaRight" Visibility="Collapsed" Grid.RowSpan="2" Grid.Column="1" BorderThickness="{StaticResource TileView_MaximizeArea_BorderThickness}" BorderBrush="{StaticResource TileView_MaximizeArea_BorderBrush}" Background="{StaticResource TileView_MaximizeArea_Background}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadTileView" BasedOn="{StaticResource RadTileViewStyle}" />
  <!-- RadTabControl-->
  <themes:BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
  <themes:InvertedBooleanToVisibilityConverter x:Key="InvertBoolToVisConverter" />
  <!-- SubMenuItem -->
  <ControlTemplate x:Key="DropDownMenuItemTemplate" TargetType="telerikTabControl:DropDownMenuItem">
    <Grid x:Name="RootElement" Background="Transparent">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStateGroup">
          <VisualState x:Name="Highlighted">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity" To="1" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Normal" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStateGroup">
          <VisualState x:Name="Checked">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="GlyphPanel" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unchecked" />
          <VisualState x:Name="HideIcon" />
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <!-- Hover -->
      <Border x:Name="MouseOverVisual" Opacity="0" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderBrush="{StaticResource ControlSubItem_OuterBorder_MouseOver}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
        <Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_MouseOver}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlSubItem_Background_MouseOver}" />
      </Border>
      <themes:RadDockPanel Margin="5 2">
        <Path x:Name="GlyphPanel" Fill="{StaticResource ControlElement_Normal}" Margin="2" Visibility="Collapsed" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" Width="9" Height="11" themes:RadDockPanel.Dock="Left" />
        <ContentPresenter x:Name="Content" Grid.Column="2" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
      </themes:RadDockPanel>
    </Grid>
  </ControlTemplate>
  <Style TargetType="telerikTabControl:DropDownMenuItem" x:Key="DropDownMenuItemStyle">
    <Setter Property="Template" Value="{StaticResource DropDownMenuItemTemplate}" />
    <Setter Property="SubmenuItemTemplateKey" Value="{StaticResource DropDownMenuItemTemplate}" />
    <Setter Property="SubmenuHeaderTemplateKey" Value="{StaticResource DropDownMenuItemTemplate}" />
    <Setter Property="TopLevelHeaderTemplateKey" Value="{StaticResource DropDownMenuItemTemplate}" />
    <Setter Property="TopLevelItemTemplateKey" Value="{StaticResource DropDownMenuItemTemplate}" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="HorizontalContentAlignment" Value="Left" />
    <Setter Property="BorderThickness" Value="1" />
  </Style>
  <Style TargetType="telerikTabControl:DropDownMenuItem" BasedOn="{StaticResource DropDownMenuItemStyle}" />
  <!-- Empty ScrollViewer -->
  <Style x:Key="EmptyScrollViewerStyle" TargetType="ScrollViewer">
    <Setter Property="HorizontalContentAlignment" Value="Left" />
    <Setter Property="VerticalContentAlignment" Value="Top" />
    <Setter Property="Padding" Value="0" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ScrollViewer">
          <Border CornerRadius="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <Grid Background="{TemplateBinding Background}">
              <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
              </Grid.RowDefinitions>
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <ScrollContentPresenter x:Name="ScrollContentPresenter" Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" ContentTemplate="{TemplateBinding ContentTemplate}" />
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!--Scroll Button:-->
  <Style x:Key="ScrollButtonStyle" TargetType="RepeatButton">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="RepeatButton">
          <Grid>
            <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 ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonBorder" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="ButtonBorder">
              <Grid>
                <Border x:Name="OuterBorder" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_Normal}" CornerRadius="{StaticResource TabControl_ScrollButton_CornerRadius}">
                  <Border x:Name="InnerBorder" Background="{StaticResource ControlBackground_Normal}" BorderThickness="1" CornerRadius="{StaticResource TabControl_ScrollButton_InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Normal}" />
                </Border>
                <Path x:Name="Path" Stretch="Uniform" Height="7" Width="5" Margin="{TemplateBinding Padding}" Data="M0.05,3.25 L5,0 L5,7 L0.05,3.25 z" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Fill="{StaticResource ControlElement_Normal}" SnapsToDevicePixels="True" />
              </Grid>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Width" Value="17" />
    <Setter Property="Content" Value="" />
    <Setter Property="Padding" Value="5 2" />
    <Setter Property="Margin" Value="2" />
    <Setter Property="telerik:RadDockPanel.Dock" Value="Left" />
    <Setter Property="IsTabStop" Value="False" />
  </Style>
  <!--DropDown Button Style-->
  <Style x:Key="DropDownButtonStyle" TargetType="ToggleButton">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </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>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
              <Border x:Name="InnerBorder" BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_Normal}" />
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" Background="{StaticResource ControlBackground_Checked}">
              <Border BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_Checked}" />
            </Border>
            <ContentPresenter x:Name="ContentPresenter" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="Center" VerticalAlignment="Center" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Content" Value="" />
    <Setter Property="ContentTemplate">
      <Setter.Value>
        <DataTemplate>
          <Path Fill="{StaticResource ControlElement_Normal}" SnapsToDevicePixels="True" Data="M0,0 L6,0 6,1 0,1 M0,2 L6,2 6,3 5,3 5,4 4,4 4,5 2,5 2,4 1,4 1,3 0,3 0,2" />
        </DataTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Padding" Value="5 3" />
    <Setter Property="telerik:RadDockPanel.Dock" Value="Right" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="IsTabStop" Value="False" />
  </Style>
  <!--DropDown Menu-->
  <Style TargetType="telerikTabControl:DropDownMenu" x:Key="DropDownMenuStyle">
    <Setter Property="Background" Value="{StaticResource ControlBackground}" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="MaxHeight" Value="500" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <themes:RadWrapPanel Orientation="Vertical" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikTabControl:DropDownMenu">
          <Grid>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
              <Border BorderThickness="0 2 0 0" BorderBrush="{StaticResource ControlOuterBorder}">
                <ItemsPresenter Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
              </Border>
            </Border>
            <Rectangle Fill="{StaticResource TabControl_DropDownHeaderBrush}" x:Name="BorderMaskElement" VerticalAlignment="Top" HorizontalAlignment="Left" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikTabControl:DropDownMenu" BasedOn="{StaticResource DropDownMenuStyle}" />
  <!-- RadTabControl-->
  <ControlTemplate x:Key="TabControlTemplate" TargetType="telerikNavigation:RadTabControl">
    <Grid>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Disabled" />
          <VisualState x:Name="Normal" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="DropDownDisplayStates">
          <VisualState x:Name="DropDownButtonCollapsed" />
          <VisualState x:Name="DropDownButtonVisible">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownButtonElement" Storyboard.TargetProperty="Visibility">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="PlacementStates">
          <VisualState x:Name="Left">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderDockedElement" Storyboard.TargetProperty="LayoutTransform">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="-90" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0 1 1 1</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Right">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderDockedElement" Storyboard.TargetProperty="LayoutTransform">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="90" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>1 1 0 1</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Top" />
          <VisualState x:Name="Bottom">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderDockedElement" Storyboard.TargetProperty="LayoutTransform">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="180" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>1 1 1 0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <themes:RadDockPanel LastChildFill="True">
        <telerikPrimitives:LayoutTransformControl x:Name="HeaderDockedElement" themes:RadDockPanel.Dock="Top">
          <Grid SnapsToDevicePixels="True">
            <!--Header Background-->
            <Border x:Name="HeaderBackground" Background="{TemplateBinding HeaderBackground}" Visibility="{TemplateBinding BackgroundVisibility}" />
            <!-- Header bottom border  -->
            <Border BorderThickness="0 0 0 1" BorderBrush="{StaticResource TabControl_ContentBorderBrush}" SnapsToDevicePixels="True" />
            <!--TabStrip-->
            <themes:RadDockPanel Panel.ZIndex="10">
              <ToggleButton x:Name="DropDownButtonElement" Visibility="Collapsed" themes:RadDockPanel.Dock="Right" Margin="2 4 4 2" Style="{TemplateBinding DropDownButtonStyle}" ClickMode="Press" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                <local:RadContextMenu.ContextMenu>
                  <telerikTabControl:DropDownMenu x:Name="DropDownMenuElement" StaysOpen="False" Placement="Bottom" Style="{TemplateBinding DropDownStyle}" ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}" ItemTemplateSelector="{TemplateBinding ItemDropDownContentTemplateSelector}" DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}"></telerikTabControl:DropDownMenu>
                </local:RadContextMenu.ContextMenu>
              </ToggleButton>
              <!-- Items: -->
              <RepeatButton x:Name="LeftScrollButtonElement" Style="{StaticResource ScrollButtonStyle}" Margin="4 4 2 2" Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}" />
              <RepeatButton x:Name="RightScrollButtonElement" Style="{StaticResource ScrollButtonStyle}" themes:RadDockPanel.Dock="Right" Margin="2 4 2 2" Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}" RenderTransformOrigin="0.5,0.5">
                <RepeatButton.RenderTransform>
                  <ScaleTransform ScaleX="-1" />
                </RepeatButton.RenderTransform>
              </RepeatButton>
              <ScrollViewer x:Name="ScrollViewerElement" Style="{StaticResource EmptyScrollViewerStyle}" Margin="2 4 2 0" VerticalScrollBarVisibility="Disabled" BorderThickness="0" IsTabStop="False" HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
                <ItemsPresenter />
              </ScrollViewer>
            </themes:RadDockPanel>
          </Grid>
        </telerikPrimitives:LayoutTransformControl>
        <!--Content-->
        <Border x:Name="ContentBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
          <Grid>
            <ContentPresenter x:Name="ContentElement" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved,           Converter={StaticResource InvertBoolToVisConverter}}" ContentTemplate="{TemplateBinding SelectedContentTemplate}" ContentTemplateSelector="{TemplateBinding SelectedContentTemplateSelector}" />
            <Grid x:Name="ContentElementsPanel" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent},           Path=IsContentPreserved, Converter={StaticResource BoolToVisConverter}}" />
          </Grid>
        </Border>
      </themes:RadDockPanel>
    </Grid>
  </ControlTemplate>
  <!-- RadTabControl -->
  <Style TargetType="telerikNavigation:RadTabControl" x:Key="RadTabControlStyle">
    <Setter Property="MinWidth" Value="5" />
    <Setter Property="MinHeight" Value="26" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="BorderBrush" Value="{StaticResource TabControl_ContentBorderBrush}" />
    <Setter Property="BorderThickness" Value="1 0 1 1" />
    <Setter Property="Background" Value="{StaticResource TabControl_ContentBackground}" />
    <Setter Property="HeaderBackground" Value="{StaticResource TabControl_HeaderBackground}" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <telerikNavigationPrimitives:TabWrapPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="DropDownButtonStyle" Value="{StaticResource DropDownButtonStyle}" />
    <Setter Property="DropDownStyle" Value="{StaticResource DropDownMenuStyle}" />
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
    <Setter Property="Template" Value="{StaticResource TabControlTemplate}" />
  </Style>
  <Style TargetType="telerikNavigation:RadTabControl" BasedOn="{StaticResource RadTabControlStyle}" />
  <!--TabItem Template-->
  <ControlTemplate x:Key="TabItemTemplate" TargetType="telerikNavigation:RadTabItem">
    <Grid x:Name="wrapper">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStateGroup">
          <VisualState x:Name="MouseOver">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="1" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Normal" />
          <VisualState x:Name="Selected">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="SelectionVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="1" />
              <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="SelectedMouseOver">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="0" />
              <DoubleAnimation Duration="0" Storyboard.TargetName="SelectionVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="1" />
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionVisual" Storyboard.TargetProperty="BorderBrush" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TabItem_OuterBorder_SelectedMouseOver}" />
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HeaderElement" To="0.3" Duration="0:0:0.1" />
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="NormalVisual" To="0" Duration="0:0:0.1" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="PlacementStates">
          <VisualState x:Name="HorizontalTop" />
          <VisualState x:Name="HorizontalLeft">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OrientationTransform" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="180" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="HorizontalRight" />
          <VisualState x:Name="HorizontalBottom">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OrientationTransform" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="180" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="VerticalTop">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OrientationTransform" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="-90" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="VerticalLeft">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OrientationTransform" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="90" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="VerticalRight">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OrientationTransform" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="-90" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="VerticalBottom">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OrientationTransform" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <RotateTransform Angle="-90" />
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Unfocused" />
          <VisualState x:Name="Focused" />
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <!-- normal -->
      <Border x:Name="NormalVisual" Margin="{StaticResource TabItem_Margin}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource TabItem_OuterCornerRadius}">
        <Border BorderBrush="{StaticResource TabItem_InnerBorder_Normal}" CornerRadius="{StaticResource TabItem_InnerCornerRadius}" BorderThickness="{StaticResource TabItem_InnerBorderThickness}" />
      </Border>
      <!-- mouseover-->
      <Border x:Name="MouseOverVisual" Opacity="0" Margin="{StaticResource TabItem_Margin}" BorderBrush="{StaticResource TabItem_OuterBorder_MouseOver}" Background="{StaticResource TabItem_Background_MouseOver}" BorderThickness="{StaticResource TabItem_OuterBorderThickness}" CornerRadius="{StaticResource TabItem_OuterCornerRadius}">
        <Border BorderBrush="{StaticResource TabItem_InnerBorder_MouseOver}" CornerRadius="{StaticResource TabItem_InnerCornerRadius}" BorderThickness="{StaticResource TabItem_InnerBorderThickness}" />
      </Border>
      <!-- select-->
      <Border x:Name="SelectionVisual" Opacity="0" Margin="{StaticResource TabItem_Margin_Selected}" BorderBrush="{StaticResource TabItem_OuterBorder_Selected}" Background="{StaticResource TabItem_Background_Selected}" BorderThickness="{StaticResource TabItem_OuterBorderThickness}" CornerRadius="{StaticResource TabItem_OuterCornerRadius}">
        <Border BorderBrush="{StaticResource TabItem_InnerBorder_Selected}" CornerRadius="{StaticResource TabItem_InnerCornerRadius}" BorderThickness="{StaticResource TabItem_InnerBorderThickness}" />
      </Border>
      <!--Content-->
      <telerikPrimitives:LayoutTransformControl x:Name="OrientationTransform">
        <ContentPresenter x:Name="HeaderElement" ContentTemplate="{TemplateBinding HeaderTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" SnapsToDevicePixels="True" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
      </telerikPrimitives:LayoutTransformControl>
    </Grid>
  </ControlTemplate>
  <!--RadTabItem-->
  <Style TargetType="telerikNavigation:RadTabItem" x:Key="RadTabItemStyle">
    <Setter Property="MinWidth" Value="5" />
    <Setter Property="BorderThickness" Value="{StaticResource TabItem_OuterBorderThickness}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="MinHeight" Value="5" />
    <Setter Property="Background" Value="{StaticResource TabItem_Background_Normal}" />
    <Setter Property="BorderBrush" Value="{StaticResource TabItem_OuterBorder_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="6 3" />
    <Setter Property="Template" Value="{StaticResource TabItemTemplate}" />
  </Style>
  <Style TargetType="telerikNavigation:RadTabItem" BasedOn="{StaticResource RadTabItemStyle}" />
  <!-- RadToolBar-->
  <Style x:Key="ButtonStyle" TargetType="Button">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity">
                      <DiscreteDoubleKeyFrame KeyTime="00:00:00.050" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="1" />
                    <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border x:Name="InnerBorder" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Normal}" />
            </Border>
            <Border x:Name="DisabledVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Disabled}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border Background="{StaticResource ControlBackground_Disabled}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Disabled}" />
            </Border>
            <ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" />
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="OpacityMask" Value="{StaticResource CoreButtonOuterBorder_Pressed}" />
  </Style>
  <Style TargetType="Button" BasedOn="{StaticResource ButtonStyle}" />
  <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="FontStyle" Value="Normal" />
    <Setter Property="FontWeight" Value="Normal" />
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <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">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </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" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Focused}" />
                    </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" Background="{StaticResource TextBoxBackground_ReadOnly}" Opacity="0" />
                <ScrollViewer Padding="{TemplateBinding Padding}" Foreground="{TemplateBinding Foreground}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" x:Name="PART_ContentHost" />
              </Grid>
            </Border>
            <Border x:Name="DisabledVisual" Visibility="Collapsed" BorderThickness="1" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Disabled}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="TextBox" BasedOn="{StaticResource TextBoxStyle}" />
  <!--  style for CheckBox -->
  <Style x:Key="CheckBoxStyle" TargetType="CheckBox">
    <Setter Property="Background" Value="{StaticResource CheckBox_Background}" />
    <Setter Property="Foreground" Value="{StaticResource CheckBox_Foreground}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource CheckBox_Border}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="CheckBox">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="16" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleInnerStrokeOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleFillOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleStrokeOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleInnerStrokeOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleFillPressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleStrokePressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To=".55" />
                    <DoubleAnimation Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="0.55" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked" />
                <VisualState x:Name="Indeterminate">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="IndeterminateIcon" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
              <Rectangle x:Name="Background" Width="14" Height="14" RadiusX="0" RadiusY="0" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{TemplateBinding Background}" Margin="1" />
              <Rectangle x:Name="BoxMiddle" Width="10" Height="10" StrokeThickness="1" Stroke="{StaticResource CheckBox_MiddleStroke}" Fill="{StaticResource CheckBox_MiddleFill}" />
              <Rectangle x:Name="BoxMiddleLine" Width="10" Height="10" RadiusX="0" RadiusY="0" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" Opacity=".2" />
              <Path x:Name="CheckIcon" Margin="0,1,0,1.5" Stretch="Fill" Opacity="0" Width="9" Height="8" Stroke="{StaticResource CheckBox_Path}" StrokeThickness="2" Data="M32.192282,77.371554 L34.688632,80.304322 38.863374,72.720928" FlowDirection="LeftToRight" />
              <Rectangle x:Name="IndeterminateIcon" Height="2" Fill="{StaticResource CheckBox_Path}" Opacity="0" Width="6" />
              <Rectangle x:Name="DisabledVisualElement" RadiusX="0" RadiusY="0" Width="14" Height="14" Opacity="0" Fill="#FFFFFFFF" />
              <Rectangle x:Name="ContentFocusVisualElement" RadiusX="0" RadiusY="0" Stroke="#FF6DBDD1" StrokeThickness="0" Opacity="0" IsHitTestVisible="false" Width="16" Height="16" />
            </Grid>
            <ContentPresenter Grid.Column="1" x:Name="contentPresenter" RecognizesAccessKey="True" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="CheckBox" BasedOn="{StaticResource CheckBoxStyle}" />
  <!-- style for RadioButton -->
  <Style x:Key="RadioButtonStyle" TargetType="RadioButton">
    <Setter Property="Background" Value="{StaticResource CheckBox_Background}" />
    <Setter Property="Foreground" Value="{StaticResource CheckBox_Foreground}" />
    <Setter Property="HorizontalContentAlignment" Value="Left" />
    <Setter Property="VerticalContentAlignment" Value="Top" />
    <Setter Property="Padding" Value="4,1,0,0" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource CheckBox_Border}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="RadioButton">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="16" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleInnerStrokeOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleFillOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleStrokeOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleInnerStrokeOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleStrokePressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="Stroke">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CheckBox_MiddleStrokePressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To=".55" />
                    <DoubleAnimation Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="0.55" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
              <Ellipse x:Name="Background" Width="14" Height="14" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{TemplateBinding Background}" Margin="1" />
              <Ellipse x:Name="BoxMiddle" Width="10" Height="10" StrokeThickness="1" Stroke="{StaticResource CheckBox_MiddleStroke}" Fill="{StaticResource CheckBox_MiddleFill}" />
              <Ellipse x:Name="CheckIcon" VerticalAlignment="Center" HorizontalAlignment="Center" Width="8" Height="8" Opacity="0" StrokeThickness="1" Fill="{StaticResource CheckBox_Path}" />
              <Ellipse x:Name="DisabledVisualElement" Width="14" Height="14" Opacity="0" Fill="#FFFFFFFF" />
              <Ellipse x:Name="ContentFocusVisualElement" Stroke="#006DBDD1" StrokeThickness="1" Opacity="0" IsHitTestVisible="false" Width="14" Height="14" />
            </Grid>
            <ContentPresenter Grid.Column="1" x:Name="contentPresenter" Content="{TemplateBinding Content}" RecognizesAccessKey="True" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="RadButtonStyle" TargetType="telerik:RadButton">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadButton">
          <Grid SnapsToDevicePixels="True">
            <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 ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="BackgroundVisibility">
                <VisualState x:Name="BackgroundHidden">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="BackgroundVisible" />
              </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>
                    <DoubleAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="1" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}" />
  <Style x:Key="RadToggleButtonStyle" TargetType="telerik:RadToggleButton">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadToggleButton">
          <Grid SnapsToDevicePixels="True">
            <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 ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}" />
                    </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:0:0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="BackgroundVisibility">
                <VisualState x:Name="BackgroundHidden">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="BackgroundVisible" />
              </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border x:Name="InnerCheckedVisual" Background="{StaticResource ControlBackground_Checked}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Checked}" />
            </Border>
            <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"></ContentPresenter>
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerik:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}" />
  <Style x:Key="RadRadioButtonStyle" TargetType="telerik:RadRadioButton">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadRadioButton">
          <Grid SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="DisabledChecked">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOverChecked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="BackgroundVisibility">
                <VisualState x:Name="BackgroundHidden">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="BackgroundVisible" />
              </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border x:Name="InnerCheckedVisual" Background="{StaticResource ControlBackground_Checked}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Checked}" />
            </Border>
            <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerik:RadRadioButton" BasedOn="{StaticResource RadRadioButtonStyle}" />
  <Style x:Key="RadDropDownButtonStyle" TargetType="telerik:RadDropDownButton">
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadDropDownButton">
          <Grid SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity" To="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Disabled}" />
                    </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="BackgroundHidden">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="BackgroundVisible" />
              </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" />
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Active}" />
                    </ObjectAnimationUsingKeyFrames>
                  </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border x:Name="InnerCheckedVisual" Background="{StaticResource ControlBackground_Checked}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Checked}" />
            </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" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
              <Path x:Name="DropDownIndicator" Grid.Row="2" Grid.Column="1" IsHitTestVisible="False" Visibility="{TemplateBinding DropDownIndicatorVisibility}" Fill="{StaticResource ControlElement_Normal}" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="5,3,5,3" Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" SnapsToDevicePixels="True" />
            </Grid>
            <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom">
              <Grid>
                <Border x:Name="DropDownPopupBorder" BorderBrush="{StaticResource ControlOuterBorder}" Background="{StaticResource ControlBackground}" BorderThickness="1" CornerRadius="0" MinWidth="3" MinHeight="3" Width="{TemplateBinding DropDownWidth}" Height="{TemplateBinding DropDownHeight}" MaxWidth="{TemplateBinding DropDownMaxWidth}" MaxHeight="{TemplateBinding DropDownMaxHeight}">
                  <ContentPresenter x:Name="DropDownPopupContent" Content="{TemplateBinding DropDownContent}" ContentTemplate="{TemplateBinding DropDownContentTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
                </Border>
              </Grid>
            </Popup>
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerik:RadDropDownButton" BasedOn="{StaticResource RadDropDownButtonStyle}" />
  <Style x:Key="toggleStyle" TargetType="telerik:RadToggleButton">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadToggleButton">
          <Grid SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="DisabledChecked">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1" />
                    <DoubleAnimation Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_DisabledChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_DisabledChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_DisabledChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOverChecked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </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" />
                <VisualState x:Name="Focused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border x:Name="InnerCheckedVisual" Background="{StaticResource ControlBackground_Checked}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Checked}" />
            </Border>
            <Path x:Name="DropDownIndicator" IsHitTestVisible="False" Fill="{StaticResource ControlElement_Normal}" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="5,3,5,3" Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" SnapsToDevicePixels="True">
              <Path.RenderTransform>
                <RotateTransform Angle="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(telerik:RadSplitButton.ToggleContentRotateAngle)}"></RotateTransform>
              </Path.RenderTransform>
            </Path>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="buttonStyle" TargetType="telerik:RadButton">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadButton">
          <Grid SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStatesGroup">
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="Focused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="RadSplitButtonStyle" TargetType="telerik:RadSplitButton">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="TogglePartStyle" Value="{StaticResource toggleStyle}" />
    <Setter Property="ButtonPartStyle" Value="{StaticResource buttonStyle}" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadSplitButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="IsCheckedState">
                <VisualState x:Name="UnChecked" />
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Checked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="IsOpenState">
                <VisualState x:Name="Closed" />
                <VisualState x:Name="Opened">
                  <Storyboard>
                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CheckedVisual" />
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Canvas.ZIndex)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </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>
                  </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>
                  </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>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="ButtonPartVisibility">
                <VisualState x:Name="ButtonInvisible">
                  <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.ColumnSpan)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>3</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="IsTabStop">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Boolean>True</sys:Boolean>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="ButtonVisible" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="BackgroundVisibility">
                <VisualState x:Name="BackgroundHidden">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Opacity" To="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="BackgroundVisible" />
              </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Grid>
                <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
                <Border x:Name="InnerBorder" Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="Transparent" />
              </Grid>
            </Border>
            <!-- CheckedVisual -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Highlighted}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border Background="{StaticResource ControlBackground_Highlighted}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Highlighted}" />
            </Border>
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper" IsHitTestVisible="false">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </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>
              <themes:RadToggleButton x:Name="DropDownPart" IsTabStop="false" Margin="0,-1,0,0" Grid.Column="1" Grid.Row="2" MinWidth="11" CornerRadius="{TemplateBinding InnerCornerRadius}" MinHeight="7" Visibility="{TemplateBinding DropDownIndicatorVisibility}" IsBackgroundVisible="False" Style="{TemplateBinding TogglePartStyle}" IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
              <themes:RadButton x:Name="ButtonPart" Grid.Row="1" Grid.Column="1" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay,                Path=IsButtonPartVisible, Converter={StaticResource BooleanToVisibilityConverter}}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Style="{TemplateBinding ButtonPartStyle}" Padding="{TemplateBinding Padding}" Foreground="{TemplateBinding Foreground}" IsBackgroundVisible="False" Content="{TemplateBinding Content}" CornerRadius="{TemplateBinding InnerCornerRadius}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
            </Grid>
            <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom">
              <Grid>
                <Border x:Name="DropDownPopupBorder" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder}" Background="{StaticResource ControlBackground}" CornerRadius="0" Margin="0" MinWidth="3" MinHeight="3" Width="{TemplateBinding DropDownWidth}" Height="{TemplateBinding DropDownHeight}" MaxWidth="{TemplateBinding DropDownMaxWidth}" MaxHeight="{TemplateBinding DropDownMaxHeight}">
                  <ContentPresenter x:Name="DropDownPopupContent" Content="{TemplateBinding DropDownContent}" ContentTemplate="{TemplateBinding DropDownContentTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
                </Border>
              </Grid>
            </Popup>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerik:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}" />
  <Style x:Key="ToolBarTextBox" TargetType="TextBox" BasedOn="{StaticResource TextBoxStyle}">
    <Setter Property="FontSize" Value="11" />
    <Setter Property="Foreground" Value="#FF000000" />
    <Setter Property="FontStyle" Value="Normal" />
    <Setter Property="FontWeight" Value="Normal" />
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Margin" Value="3 2" />
    <Setter Property="BorderBrush" Value="#FFFFFFFF" />
  </Style>
  <Style x:Key="ToolBarTextBox_Expression" TargetType="TextBox" BasedOn="{StaticResource TextBoxStyle}">
    <Setter Property="Foreground" Value="#DDDDDD" />
  </Style>
  <Style TargetType="CheckBox" x:Key="ToolBarCheckBox" BasedOn="{StaticResource CheckBoxStyle}">
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="4,0,0,0" />
  </Style>
  <Style TargetType="RadioButton" x:Key="ToolBarRadioButton" BasedOn="{StaticResource RadioButtonStyle}">
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="4,0,0,0" />
  </Style>
  <Style x:Key="RadToolBarSeparatorStyle" TargetType="telerikNavigation:RadToolBarSeparator">
    <Setter Property="Background" Value="{StaticResource ToolBar_OuterSeparator}" />
    <Setter Property="BorderBrush" Value="{StaticResource ToolBar_InnerSeparator}" />
    <Setter Property="Margin" Value="2" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadToolBarSeparator">
          <Grid MinWidth="2" MinHeight="2" SnapsToDevicePixels="true">
            <Rectangle Margin="1,1,0,0" Fill="{TemplateBinding BorderBrush}" />
            <Rectangle Margin="0,0,1,1" Fill="{TemplateBinding Background}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadToolBarSeparator" BasedOn="{StaticResource RadToolBarSeparatorStyle}" />
  <Style x:Key="ToolBarTextBlock" TargetType="TextBlock">
    <Setter Property="FontSize" Value="11" />
    <Setter Property="Foreground" Value="Black" />
    <Setter Property="FontStyle" Value="Normal" />
    <Setter Property="FontWeight" Value="Normal" />
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Margin" Value="3 1 3 0" />
  </Style>
  <Style x:Key="ToolBarButton" TargetType="Button" BasedOn="{StaticResource ButtonStyle}">
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="2" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity">
                      <DiscreteDoubleKeyFrame KeyTime="00:00:00.050" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border x:Name="InnerBorder" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="Transparent" />
            </Border>
            <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="ToggleButton" x:Key="ToolBarToggleButton">
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="2" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="CommonStatesWrapper" Storyboard.TargetProperty="Opacity">
                      <DiscreteDoubleKeyFrame KeyTime="00:00:00.050" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
                  </Storyboard>
                </VisualState>
              </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border x:Name="InnerBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Transparent" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" />
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" Background="{StaticResource ControlBackground_Checked}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_Checked}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" />
            </Border>
            <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="ToolBarRadButton" TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}">
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="2" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="IsBackgroundVisible" Value="False" />
  </Style>
  <Style x:Key="ToolBarRadToggleButton" TargetType="telerik:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}">
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="2" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="IsBackgroundVisible" Value="False" />
  </Style>
  <Style x:Key="ToolBarRadRadioButton" TargetType="telerik:RadRadioButton" BasedOn="{StaticResource RadRadioButtonStyle}">
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="2" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="IsBackgroundVisible" Value="False" />
  </Style>
  <Style TargetType="telerik:RadDropDownButton" x:Key="ToolBarRadDropDownButton" BasedOn="{StaticResource RadDropDownButtonStyle}">
    <Setter Property="Margin" Value="1" />
    <Setter Property="Padding" Value="2" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="IsBackgroundVisible" Value="False" />
  </Style>
  <Style x:Key="ToolBarRadSplitButton" TargetType="telerik:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="Margin" Value="0 1" />
    <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
    <Setter Property="IsBackgroundVisible" Value="False" />
  </Style>
  <ControlTemplate TargetType="ToggleButton" x:Key="ToolBarDropdownButton">
    <Grid Background="Transparent">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Normal" />
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="OrnamentGrid" Storyboard.TargetProperty="Opacity" To="0.25" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseOver">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverDecorator" Storyboard.TargetProperty="Opacity" To="1" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Pressed">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="backgroundDecoratorCheck" Storyboard.TargetProperty="Opacity" To="1" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStates">
          <VisualState x:Name="Unchecked" />
          <VisualState x:Name="Checked">
            <Storyboard>
              <DoubleAnimation Duration="0" Storyboard.TargetName="backgroundDecoratorCheck" Storyboard.TargetProperty="Opacity" To="1" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border BorderThickness="1" BorderBrush="{StaticResource ToolBar_ToggleButton_normalOuterBorder}" Background="{StaticResource ToolBar_ToggleButton_normalBackground}" x:Name="backgroundDecorator" CornerRadius="0 3 3 0">
        <Border BorderThickness="{StaticResource ToolBar_ToggleButton_InnerBorderThickness}" CornerRadius="0 2 2 0" BorderBrush="{StaticResource ToolBar_ToggleButton_normalInnerBorder}" />
      </Border>
      <Border BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_MouseOver}" Background="{StaticResource ControlBackground_MouseOver}" x:Name="MouseOverDecorator" CornerRadius="0 3 3 0" Opacity="0">
        <Border BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0 2 2 0" BorderBrush="{StaticResource ControlInnerBorder_MouseOver}" />
      </Border>
      <Border BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_Pressed}" Background="{StaticResource ControlBackground_Pressed}" x:Name="backgroundDecoratorCheck" CornerRadius="0 3 3 0" Opacity="0">
        <Border BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0 2 2 0" BorderBrush="{StaticResource ControlInnerBorder_Pressed}" />
      </Border>
      <Grid x:Name="OrnamentGrid" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0 0 3 3" Opacity="1">
        <Path Fill="#FFFFFFFF" Stretch="Fill" Margin="2,5,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Width="5" Height="3" Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" />
        <Path Fill="{StaticResource ControlElement_Normal}" Stretch="Fill" Margin="0,4,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Width="5" Height="3" Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" />
        <Path Fill="#FFFFFFFF" Stretch="Fill" Margin="2,1,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Width="5" Height="1" Data="M0,0 L5,0 5,1 0,1 0,0 z" />
        <Path Fill="{StaticResource ControlElement_Normal}" Stretch="Fill" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Width="5" Height="1" Data="M0,0 L5,0 5,1 0,1 0,0 z" />
      </Grid>
    </Grid>
  </ControlTemplate>
  <Style TargetType="telerikNavigation:RadToolBar" x:Key="RadToolBarStyle">
    <Setter Property="FocusManager.IsFocusScope" Value="True" />
    <Setter Property="ItemContainerStyleSelector">
      <Setter.Value>
        <local:ToolBarContainerStyleSelector>
          <local:ToolBarContainerStyle TypeName="RadToolBarSeparator" ContainerStyle="{StaticResource RadToolBarSeparatorStyle}" />
          <local:ToolBarContainerStyle TypeName="TextBlock" ContainerStyle="{StaticResource ToolBarTextBlock}" />
          <local:ToolBarContainerStyle TypeName="TextBox" ContainerStyle="{StaticResource ToolBarTextBox}" />
          <local:ToolBarContainerStyle TypeName="Button" ContainerStyle="{StaticResource ToolBarButton}" />
          <local:ToolBarContainerStyle TypeName="ToggleButton" ContainerStyle="{StaticResource ToolBarToggleButton}" />
          <local:ToolBarContainerStyle TypeName="CheckBox" ContainerStyle="{StaticResource ToolBarCheckBox}" />
          <local:ToolBarContainerStyle TypeName="RadioButton" ContainerStyle="{StaticResource ToolBarRadioButton}" />
          <local:ToolBarContainerStyle TypeName="RadButton" ContainerStyle="{StaticResource ToolBarRadButton}" />
          <local:ToolBarContainerStyle TypeName="RadToggleButton" ContainerStyle="{StaticResource ToolBarRadToggleButton}" />
          <local:ToolBarContainerStyle TypeName="RadRadioButton" ContainerStyle="{StaticResource ToolBarRadRadioButton}" />
          <local:ToolBarContainerStyle TypeName="RadDropDownButton" ContainerStyle="{StaticResource ToolBarRadDropDownButton}" />
          <local:ToolBarContainerStyle TypeName="RadSplitButton" ContainerStyle="{StaticResource ToolBarRadSplitButton}" />
        </local:ToolBarContainerStyleSelector>
      </Setter.Value>
    </Setter>
    <Setter Property="MinWidth" Value="25" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadToolBar">
          <Grid MinHeight="24" x:Name="RootElement" SnapsToDevicePixels="True">
            <Grid.ColumnDefinitions>
              <ColumnDefinition x:Name="c0" Width="Auto" />
              <ColumnDefinition x:Name="c1" Width="*" />
              <ColumnDefinition x:Name="c2" Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition x:Name="r0" Height="Auto" />
              <RowDefinition x:Name="r1" Height="*" />
              <RowDefinition x:Name="r2" Height="Auto" />
            </Grid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStateGroup">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="RootElement" To="0.5" Duration="0:0:0.2" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="OrientationStateGroup">
                <VisualState x:Name="Horizontal">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="c1" Storyboard.TargetProperty="Width" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>*</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="r0" Storyboard.TargetProperty="Height" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>*</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="r1" Storyboard.TargetProperty="Height" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>Auto</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="r2" Storyboard.TargetProperty="Height" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>Auto</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="Orientation" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Orientation>Horizontal</Orientation>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>0</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="(Grid.Column)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="Margin" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0 1 4 1</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>0</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="(Grid.Column)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>2</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="Margin" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>-4 0 0 0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="GripOrnamentH" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="GripOrnamentV" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBackground" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToolBar_InnerBackground}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Vertical">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="c0" Storyboard.TargetProperty="Width" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>*</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="c1" Storyboard.TargetProperty="Width" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>Auto</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="c2" Storyboard.TargetProperty="Width" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>Auto</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="r1" Storyboard.TargetProperty="Height" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <GridLength>*</GridLength>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="Orientation" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Orientation>Vertical</Orientation>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="(Grid.Column)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>0</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_StripPanel" Storyboard.TargetProperty="Margin" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>1 0 1 4</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="(Grid.Row)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>2</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="(Grid.Column)" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>0</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="Margin" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0 -4 0 0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DropdownButton" Storyboard.TargetProperty="LayoutTransform" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <TransformGroup>
                            <RotateTransform x:Name="ToolBarToggleButtonAngle" Angle="-90" />
                            <ScaleTransform x:Name="ToolBarToggleButtonScale" ScaleX="1" ScaleY="-1" />
                          </TransformGroup>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="GripOrnamentH" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="GripOrnamentV" Storyboard.TargetProperty="Visibility" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBackground" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ToolBar_InnerBackgroundV}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <ToggleButton Visibility="{TemplateBinding OverflowButtonVisibility}" x:Name="PART_DropdownButton" Template="{StaticResource ToolBarDropdownButton}" IsEnabled="{TemplateBinding HasOverflowItems}" IsChecked="{TemplateBinding IsOverflowOpen}" Grid.Column="2" Grid.RowSpan="2" Width="14" />
            <Grid Grid.Column="2">
              <Popup x:Name="PART_Overflow" AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom" IsOpen="{Binding Path=IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
                <Border Margin="0" MinWidth="55" MinHeight="33">
                  <Border BorderBrush="{StaticResource OverflowBorderInnerBrush}" Background="{StaticResource OverflowContentBackgroundBrush}" BorderThickness="1" Padding="1,2,1,2">
                    <telerikToolBar:RadToolBarPanel x:Name="PART_OverflowPanel" Orientation="Vertical" VerticalAlignment="Top" />
                  </Border>
                </Border>
              </Popup>
            </Grid>
            <Border x:Name="InnerBackground" Grid.ColumnSpan="2" Grid.RowSpan="2" BorderBrush="{StaticResource ToolBar_OuterBorder}" CornerRadius="3" HorizontalAlignment="Stretch" BorderThickness="1" Background="{StaticResource ToolBar_InnerBackground}">
              <Border BorderThickness="1" CornerRadius="2" BorderBrush="{StaticResource ToolBar_InnerBorder}"></Border>
            </Border>
            <Border x:Name="BindingBackground" Grid.ColumnSpan="2" Grid.RowSpan="2" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="3" HorizontalAlignment="Stretch" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"></Border>
            <Grid Visibility="{TemplateBinding GripVisibility}" Grid.RowSpan="2">
              <Grid x:Name="GripOrnamentH" Visibility="Visible">
                <Path Fill="{StaticResource ToolBar_OuterGripOrnament}" Stretch="Fill" Margin="5,1,0,0" Width="2" Height="14" VerticalAlignment="Center" HorizontalAlignment="Left" Data="M0,12 L2,12 2,14 0,14 0,12 z M0,8 L2,8 2,10 0,10 0,8 z M0,4 L2,4 2,6 0,6 0,4 z M0,0 L2,0 2,2 0,2 0,0 z" />
                <Path Fill="{StaticResource ToolBar_InnerGripOrnament}" Stretch="Fill" Margin="4.4,0.4,0,0" Width="2" Height="14" VerticalAlignment="Center" HorizontalAlignment="Left" Data="M0,12 L2,12 2,14 0,14 0,12 z M0,8 L2,8 2,10 0,10 0,8 z M0,4 L2,4 2,6 0,6 0,4 z M0,0 L2,0 2,2 0,2 0,0 z" />
              </Grid>
              <Grid x:Name="GripOrnamentV" Visibility="Collapsed">
                <Path Fill="{StaticResource ToolBar_OuterGripOrnament}" Stretch="Fill" Margin="1,5,0,0" Width="14" Height="2" VerticalAlignment="Top" HorizontalAlignment="Center" Data="M12,0 L12,2 14,2 14,0 12,0 z M8,0 L8,2 10,2 10,0 8,0 z M4,0 L4,2 6,2 6,0 4,0 z M0,0 L0,2 2,2 2,0 0,0 z" />
                <Path Fill="{StaticResource ToolBar_InnerGripOrnament}" Stretch="Fill" Margin="0.4,4.4,0,0" Width="14" Height="2" VerticalAlignment="Top" HorizontalAlignment="Center" Data="M12,0 L12,2 14,2 14,0 12,0 z M8,0 L8,2 10,2 10,0 8,0 z M4,0 L4,2 6,2 6,0 4,0 z M0,0 L0,2 2,2 2,0 0,0 z" />
              </Grid>
            </Grid>
            <telerikToolBar:RadToolBarPanel x:Name="PART_StripPanel" Grid.Column="1" Margin="0,1,4,1" Orientation="Horizontal" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadToolBar" BasedOn="{StaticResource RadToolBarStyle}" />
  <Style TargetType="telerikNavigation:RadToolBarTray" x:Key="RadToolBarTrayStyle">
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <telerikToolBar:RadToolBarTrayPanel x:Name="PART_BandPanel" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadToolBarTray">
          <Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <ItemsPresenter x:Name="PART_ItemsPresenter" />
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadToolBarTray" BasedOn="{StaticResource RadToolBarTrayStyle}" />
  <!-- RadMenu-->
  <!-- RadMenu -->
  <Style x:Key="RadMenuStyle" TargetType="telerikNavigation:RadMenu">
    <Setter Property="IconColumnWidth" Value="28" />
    <Setter Property="Background" Value="{StaticResource MenuBackground}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="BorderBrush" Value="{StaticResource MenuOuterBorder}" />
    <Setter Property="BorderThickness" Value="{StaticResource MenuBorderThickness}" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="animation:AnimationManager.AnimationSelector">
      <Setter.Value>
        <animation:AnimationSelector>
          <animation:SlideAnimation Direction="In" SlideMode="Top" AnimationName="Expand" TargetElementName="PopupContentElement" />
          <!--<animation:SlideAnimation Direction="Out" SlideMode="Top"
                            AnimationName="Collapse" TargetElementName="PopupContentElement" />-->
        </animation:AnimationSelector>
      </Setter.Value>
    </Setter>
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <WrapPanel Orientation="{Binding Orientation, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerikNavigation:RadMenu}}}" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadMenu">
          <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
            <ItemsPresenter />
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadMenu" BasedOn="{StaticResource RadMenuStyle}" />
  <!--SeparatorTemplate  -->
  <ControlTemplate TargetType="telerikNavigation:RadMenuItem" x:Key="SeparatorTemplate">
    <Grid HorizontalAlignment="Stretch">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
      </Grid.ColumnDefinitions>
      <Grid Grid.Column="0" HorizontalAlignment="Left" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Menu.IconColumnWidth}" />
      <Grid Grid.Column="1" Height="2" Margin="{StaticResource MenuItemSeparatorMargin}">
        <Rectangle Height="1" VerticalAlignment="Top" Fill="{StaticResource MenuItemSeparatorTop}" />
        <Rectangle Height="1" VerticalAlignment="Bottom" Fill="{StaticResource MenuItemSeparatorBottom}" />
      </Grid>
    </Grid>
  </ControlTemplate>
  <!-- TopLevelItem -->
  <ControlTemplate x:Key="TopLevelItemTemplate" TargetType="telerikNavigation:RadMenuItem">
    <Grid x:Name="RootElement" Margin="{StaticResource MenuTopLevelItemMargin}">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentGrid" To="0.5" Duration="0:0:0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Highlighted" />
          <VisualState x:Name="Normal" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Unfocused" />
          <VisualState x:Name="Focused" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStates">
          <VisualState x:Name="Checked">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Tick" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unchecked" />
          <VisualState x:Name="HideIcon">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
      <telerikChromes:ButtonChrome x:Name="SelectionChrome" Grid.ColumnSpan="3" RenderNormal="False" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderMouseOver="{TemplateBinding IsHighlighted}" />
      <Grid x:Name="ContentGrid" Margin="{TemplateBinding Padding}">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Path x:Name="Tick" Margin="0 0 4 0" Grid.Column="0" Visibility="Collapsed" FlowDirection="LeftToRight" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" />
        <ContentPresenter x:Name="Icon" Margin="0 0 4 0" Grid.Column="0" Content="{TemplateBinding Icon}" ContentTemplate="{TemplateBinding IconTemplate}" />
        <ContentPresenter x:Name="Content" Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"></ContentPresenter>
      </Grid>
    </Grid>
  </ControlTemplate>
  <!-- TopLevelHeader -->
  <ControlTemplate x:Key="TopLevelHeaderTemplate" TargetType="telerikNavigation:RadMenuItem">
    <Grid x:Name="RootElement" Margin="{StaticResource MenuTopLevelItemMargin}">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Highlighted" />
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentGrid" To="0.5" Duration="0:0:0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Normal" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Unfocused" />
          <VisualState x:Name="Focused" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStates">
          <VisualState x:Name="Checked">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Tick" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unchecked" />
          <VisualState x:Name="HideIcon">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
      <telerikChromes:ButtonChrome x:Name="SelectionChrome" Grid.ColumnSpan="3" RenderNormal="False" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderMouseOver="{TemplateBinding IsHighlighted}" RenderPressed="{TemplateBinding IsSubmenuOpen}" />
      <Grid x:Name="ContentGrid" Margin="{TemplateBinding Padding}">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Path x:Name="Tick" Margin="0 0 4 0" Grid.Column="0" Visibility="Collapsed" FlowDirection="LeftToRight" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" />
        <ContentPresenter x:Name="Icon" Margin="0 0 4 0" Grid.Column="0" Content="{TemplateBinding Icon}" ContentTemplate="{TemplateBinding IconTemplate}" />
        <ContentPresenter x:Name="Content" Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"></ContentPresenter>
      </Grid>
      <Popup x:Name="PART_Popup" HorizontalOffset="-1" VerticalOffset="1" IsOpen="{TemplateBinding IsSubmenuOpen}" Focusable="false" AllowsTransparency="true">
        <Grid>
          <Grid x:Name="PopupContentElement">
            <Border BorderThickness="1" BorderBrush="{StaticResource MenuPopupOuterBorder}" Background="{StaticResource MenuPopupBackground}">
              <Grid>
                <Grid Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Menu.IconColumnWidth}" HorizontalAlignment="Left">
                  <Rectangle Fill="{StaticResource MenuPopupIconsBackground}" Margin="0 0 2 0" />
                  <Grid HorizontalAlignment="Right" Margin="{StaticResource MenuPopupIconsSeparatorMargin}">
                    <Rectangle Width="1" HorizontalAlignment="Right" Margin="0 0 1 0" Fill="{StaticResource MenuPopupIconsSeparatorLeft}" />
                    <Rectangle Width="1" HorizontalAlignment="Right" Margin="0 0 0 0" Fill="{StaticResource MenuPopupIconsSeparatorRight}" />
                  </Grid>
                </Grid>
                <ItemsPresenter Margin="1" />
              </Grid>
            </Border>
          </Grid>
        </Grid>
      </Popup>
    </Grid>
  </ControlTemplate>
  <!-- SubMenuItem -->
  <ControlTemplate x:Key="SubMenuItemTemplate" TargetType="telerikNavigation:RadMenuItem">
    <Grid x:Name="RootElement">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Highlighted">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HighlightVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentGrid" To="0.5" Duration="0:0:0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Normal" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Unfocused" />
          <VisualState x:Name="Focused" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStates">
          <VisualState x:Name="Checked">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Tick" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unchecked" />
          <VisualState x:Name="HideIcon">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
      <Grid Margin="{StaticResource MenuSubItemMargin}">
        <Border x:Name="HighlightVisual" Visibility="Collapsed" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_Highlighted}" Background="{StaticResource ControlBackground_Highlighted}">
          <Border BorderThickness="1" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Highlighted}" />
        </Border>
        <Grid x:Name="ContentGrid">
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
          </Grid.ColumnDefinitions>
          <Grid Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Menu.IconColumnWidth}">
            <Path x:Name="Tick" Grid.Column="0" Visibility="Collapsed" FlowDirection="LeftToRight" VerticalAlignment="Center" HorizontalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" />
            <ContentPresenter x:Name="Icon" Grid.Column="0" Margin="2 2 10 2" Content="{TemplateBinding Icon}" ContentTemplate="{TemplateBinding IconTemplate}" />
          </Grid>
          <ContentPresenter x:Name="Content" Grid.Column="1" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"></ContentPresenter>
        </Grid>
      </Grid>
    </Grid>
  </ControlTemplate>
  <!-- SubMenuHeader -->
  <ControlTemplate x:Key="SubMenuHeaderTemplate" TargetType="telerikNavigation:RadMenuItem">
    <Grid x:Name="RootElement">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Highlighted">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HighlightVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentGrid" To="0.5" Duration="0:0:0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Normal" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Unfocused" />
          <VisualState x:Name="Focused" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="CheckStates">
          <VisualState x:Name="Checked">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unchecked" />
          <VisualState x:Name="HideIcon" />
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
      <Grid Margin="{StaticResource MenuSubItemMargin}">
        <Border x:Name="HighlightVisual" Visibility="Collapsed" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_Highlighted}" Background="{StaticResource ControlBackground_Highlighted}">
          <Border BorderThickness="1" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Highlighted}" />
        </Border>
        <Grid x:Name="ContentGrid">
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
          </Grid.ColumnDefinitions>
          <Grid Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Menu.IconColumnWidth}">
            <ContentPresenter x:Name="Icon" Margin="2 2 10 2" Content="{TemplateBinding Icon}" ContentTemplate="{TemplateBinding IconTemplate}" />
          </Grid>
          <ContentPresenter x:Name="Content" Grid.Column="1" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"></ContentPresenter>
          <Path x:Name="ExpandIconBackground" Grid.Column="2" Margin="6 7 6 5" Fill="{StaticResource ButtonIconBackground_Normal}" VerticalAlignment="Center" Height="7" Width="4" Data="M0,0 L0,7 1,7 1,6 2,6 2,5 3,5 3,4 4,4 4,3 3,3 3,2 2,2 2,1 1,1 1,0 z" />
          <Path x:Name="ExpandIconForeground" Grid.Column="2" Margin="6 6 6 6" Fill="{StaticResource ButtonIconForeground_Normal}" VerticalAlignment="Center" Height="7" Width="4" Data="M0,0 L0,7 1,7 1,6 2,6 2,5 3,5 3,4 4,4 4,3 3,3 3,2 2,2 2,1 1,1 1,0 z" />
        </Grid>
      </Grid>
      <Popup x:Name="PART_Popup" HorizontalOffset="1" VerticalOffset="-1" IsOpen="{TemplateBinding IsSubmenuOpen}" Focusable="false" AllowsTransparency="true">
        <Grid>
          <Grid x:Name="PopupContentElement">
            <Border BorderThickness="1" BorderBrush="{StaticResource MenuPopupOuterBorder}" Background="{StaticResource MenuPopupBackground}">
              <Grid>
                <Grid Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Menu.IconColumnWidth}" HorizontalAlignment="Left">
                  <Rectangle Fill="{StaticResource MenuPopupIconsBackground}" Margin="0 0 2 0" />
                  <Grid HorizontalAlignment="Right" Margin="{StaticResource MenuPopupIconsSeparatorMargin}">
                    <Rectangle Width="1" HorizontalAlignment="Right" Margin="0 0 1 0" Fill="{StaticResource MenuPopupIconsSeparatorLeft}" />
                    <Rectangle Width="1" HorizontalAlignment="Right" Margin="0 0 0 0" Fill="{StaticResource MenuPopupIconsSeparatorRight}" />
                  </Grid>
                </Grid>
                <ItemsPresenter Margin="1" />
              </Grid>
            </Border>
          </Grid>
        </Grid>
      </Popup>
    </Grid>
  </ControlTemplate>
  <!-- RadMenuItem -->
  <Style x:Key="RadMenuItemStyle" TargetType="telerikNavigation:RadMenuItem">
    <Setter Property="Padding" Value="{StaticResource MenuItemPadding}" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="BorderBrush" Value="{StaticResource PanelBorderBrush}" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="TopLevelHeaderTemplateKey" Value="{StaticResource TopLevelHeaderTemplate}" />
    <Setter Property="TopLevelItemTemplateKey" Value="{StaticResource TopLevelItemTemplate}" />
    <Setter Property="SubmenuHeaderTemplateKey" Value="{StaticResource SubMenuHeaderTemplate}" />
    <Setter Property="SubmenuItemTemplateKey" Value="{StaticResource SubMenuItemTemplate}" />
    <Setter Property="SeparatorTemplateKey" Value="{StaticResource SeparatorTemplate}" />
    <Setter Property="Template" Value="{StaticResource SubMenuItemTemplate}" />
    <Setter Property="HorizontalContentAlignment" Value="Left" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Style.Triggers>
      <Trigger Property="Role" Value="TopLevelHeader">
        <Setter Property="Template" Value="{StaticResource TopLevelHeaderTemplate}" />
      </Trigger>
      <Trigger Property="Role" Value="TopLevelItem">
        <Setter Property="Template" Value="{StaticResource TopLevelItemTemplate}" />
      </Trigger>
      <Trigger Property="Role" Value="SubmenuHeader">
        <Setter Property="Template" Value="{StaticResource SubMenuHeaderTemplate}" />
      </Trigger>
      <Trigger Property="Role" Value="SubmenuItem">
        <Setter Property="Template" Value="{StaticResource SubMenuItemTemplate}" />
      </Trigger>
      <Trigger Property="Role" Value="Separator">
        <Setter Property="Template" Value="{StaticResource SeparatorTemplate}" />
      </Trigger>
    </Style.Triggers>
  </Style>
  <Style TargetType="telerikNavigation:RadMenuItem" BasedOn="{StaticResource RadMenuItemStyle}" />
  <!-- RadContextMenu -->
  <Style x:Key="RadContextMenuStyle" TargetType="telerikNavigation:RadContextMenu">
    <Setter Property="IconColumnWidth" Value="28" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Background" Value="{StaticResource MenuPopupBackground}" />
    <Setter Property="BorderBrush" Value="{StaticResource MenuPopupOuterBorder}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadContextMenu">
          <Grid>
            <Grid x:Name="PopupContentElement">
              <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource MenuPopupOuterBorder}" Background="{StaticResource MenuPopupBackground}">
                <Grid>
                  <Grid Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IconColumnWidth}" HorizontalAlignment="Left">
                    <Rectangle Fill="{StaticResource MenuPopupIconsBackground}" Margin="0 0 2 0" />
                    <Grid HorizontalAlignment="Right" Margin="{StaticResource MenuPopupIconsSeparatorMargin}">
                      <Rectangle Width="1" HorizontalAlignment="Right" Margin="0 0 1 0" Fill="{StaticResource MenuPopupIconsSeparatorLeft}" />
                      <Rectangle Width="1" HorizontalAlignment="Right" Margin="0 0 0 0" Fill="{StaticResource MenuPopupIconsSeparatorRight}" />
                    </Grid>
                  </Grid>
                  <ItemsPresenter Margin="1" />
                </Grid>
              </Border>
            </Grid>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="animation:AnimationManager.AnimationSelector">
      <Setter.Value>
        <animation:AnimationSelector>
          <animation:SlideAnimation Direction="In" SlideMode="Top" AnimationName="Expand" TargetElementName="PopupContentElement" />
          <!--<animation:SlideAnimation Direction="Out" SlideMode="Top"
                            AnimationName="Collapse" TargetElementName="PopupContentElement" />-->
        </animation:AnimationSelector>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadContextMenu" BasedOn="{StaticResource RadContextMenuStyle}" />
  <!-- RadWindow-->
  <DataTemplate x:Key="AlertIconTemplate">
    <Grid Height="44" Width="46">
      <Path Stretch="Fill" Margin="-22.792,0,0,0.274" RenderTransformOrigin="0.749972820281982,0.500000059604645" Data="M24.177877,0.032801032 C24.973236,0.35406893 25.418495,1.4006116 25.418495,1.4006121 C25.418495,1.4006116 46.196983,38.359432 46.196983,40.912521 C46.196983,43.465626 43.744934,43.759003 43.744934,43.759003 L23.09598,43.759003 L2.4520493,43.758999 C2.4520493,43.758999 0,43.465626 0,40.912521 C0,38.359428 20.841993,1.4006089 20.841993,1.4006094 C20.841993,1.4006089 21.290586,0.35406619 22.085945,0.032798279 z" HorizontalAlignment="Left" Width="46.197">
        <Path.Fill>
          <LinearGradientBrush EndPoint="0.378,0.983" StartPoint="0.622,0.017">
            <GradientStop Color="#FFFFDA45" Offset="0.325" />
            <GradientStop Color="#FFFF9945" Offset="1" />
          </LinearGradientBrush>
        </Path.Fill>
        <Path.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="-1" />
            <SkewTransform AngleX="0" AngleY="0" />
            <RotateTransform Angle="0" />
            <TranslateTransform X="-2.6427077841617574E-06" />
          </TransformGroup>
        </Path.RenderTransform>
      </Path>
      <Path Stretch="Fill" Margin="-22.792,17.862,0,0.274" RenderTransformOrigin="0.749972820281982,0.500000059604645" Data="M44.972065,37.721554 C45.75716,39.384399 46.196983,40.533127 46.196983,40.912521 C46.196983,43.465626 43.744934,43.759003 43.744934,43.759003 L23.09598,43.759003 L2.4520493,43.758999 C2.4520493,43.758999 0,43.465626 0,40.912521 C0,39.551815 5.8988295,28.605951 11.450073,18.315256 C11.575222,18.08326 44.685875,37.115395 44.972065,37.721554 z" HorizontalAlignment="Left" Width="46.197">
        <Path.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="-1" />
            <SkewTransform AngleX="0" AngleY="0" />
            <RotateTransform Angle="0" />
            <TranslateTransform X="-2.6427077841617574E-06" />
          </TransformGroup>
        </Path.RenderTransform>
        <Path.Fill>
          <LinearGradientBrush EndPoint="0.378,0.983" StartPoint="0.524,0.404">
            <GradientStop Color="#FFFCB827" Offset="0.675" />
            <GradientStop Color="#FFFE9A0A" Offset="0.122" />
          </LinearGradientBrush>
        </Path.Fill>
      </Path>
      <Path Stretch="Fill" Margin="-21.842,1.273,0,0.647" RenderTransformOrigin="0.749972820281982,0.500000059604645" Data="M24.177877,0.032801032 C24.973236,0.35406893 25.201269,1.4006116 25.201269,1.4006121 C25.201269,1.4006116 45.979759,38.359432 45.979759,40.912521 C45.979759,43.465626 43.52771,43.626354 43.52771,43.626354 L23.09598,43.626354 L2.8015947,43.62635 C2.8015947,43.62635 0.34954548,43.465626 0.34954548,40.912521 C0.34954548,38.359428 21.19154,1.4006089 21.19154,1.4006094 C21.19154,1.4006089 21.640133,0.35406619 22.435492,0.032798279 z" Stroke="#FFFEF065" HorizontalAlignment="Left" Width="44.514">
        <Path.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="-1" />
            <SkewTransform AngleX="0" AngleY="0" />
            <RotateTransform Angle="0" />
            <TranslateTransform X="0.80997209357889233" />
          </TransformGroup>
        </Path.RenderTransform>
      </Path>
      <Path Stretch="Fill" Height="17.453" Margin="6,0,6,0.522" VerticalAlignment="Bottom" Data="M179.65936,132.98976 L209.18358,132.98976 C209.18358,132.98976 207.00056,119.53224 194.23856,119.53224 C182.50038,119.53224 179.65936,132.98976 179.65936,132.98976 z">
        <Path.OpacityMask>
          <RadialGradientBrush GradientOrigin="0.502,0.9">
            <GradientStop Color="#A8FFD100" Offset="0.404" />
            <GradientStop Color="Transparent" Offset="0.914" />
            <GradientStop Color="#A0DCA209" Offset="0.238" />
          </RadialGradientBrush>
        </Path.OpacityMask>
        <Path.Fill>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#24FEF9BA" Offset="1" />
            <GradientStop Color="#BBFBFC18" Offset="0.913" />
            <GradientStop Color="#48FED72C" Offset="0.272" />
          </LinearGradientBrush>
        </Path.Fill>
      </Path>
      <Path Stretch="Fill" Margin="-23,0,0,0.274" RenderTransformOrigin="0.749972820281982,0.500000059604645" Data="M24.177877,0.032801032 C24.973236,0.35406893 25.418495,1.4006116 25.418495,1.4006121 C25.418495,1.4006116 46.196983,38.359432 46.196983,40.912521 C46.196983,43.465626 43.744934,43.759003 43.744934,43.759003 L23.09598,43.759003 L2.4520493,43.758999 C2.4520493,43.758999 0,43.465626 0,40.912521 C0,38.359428 20.841993,1.4006089 20.841993,1.4006094 C20.841993,1.4006089 21.290586,0.35406619 22.085945,0.032798279 z" HorizontalAlignment="Left" Width="46.197">
        <Path.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="-1" />
            <SkewTransform AngleX="0" AngleY="0" />
            <RotateTransform Angle="0" />
            <TranslateTransform X="-2.6427077841617574E-06" />
          </TransformGroup>
        </Path.RenderTransform>
        <Path.Stroke>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFF66E04" Offset="0" />
            <GradientStop Color="#FFC35602" Offset="1" />
          </LinearGradientBrush>
        </Path.Stroke>
      </Path>
      <Path Stretch="Fill" Margin="19.923,13.002,0,14.998" Data="M118.27322,79.474892 C118.27322,79.474892 118.85989,78.476952 119.21207,78.418251 C119.56425,78.359558 121.20724,78.418251 121.20724,78.418251 C121.20724,78.418251 121.9702,79.122696 122.02888,79.298744 C122.08757,79.474792 122.08733,91.269852 122.08733,91.269852 L121.14874,92.795433 L119.1532,92.79541 L118.21424,91.269402 z" Fill="White" HorizontalAlignment="Left" Width="5" />
      <Ellipse Fill="White" Height="6" Margin="19,0,0,5" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="6" />
    </Grid>
  </DataTemplate>
  <DataTemplate x:Key="ConfirmIconTemplate">
    <Grid Height="44" Width="44">
      <Ellipse Width="44">
        <Ellipse.Fill>
          <LinearGradientBrush EndPoint="0.718,0.95" StartPoint="0.282,0.05">
            <GradientStop Color="#FF67A1F4" Offset="0.107" />
            <GradientStop Color="#FF1660C0" Offset="0.691" />
          </LinearGradientBrush>
        </Ellipse.Fill>
      </Ellipse>
      <Path Stretch="Fill" Margin="1.512,16.495,0.765,0.399" Data="M289.00311,92.619354 C289.00311,92.619354 299.31836,80.597733 329.41049,81.075485 C329.88766,81.083061 332.65619,107.10075 308.88998,107.10075 C296.08267,107.10075 289.00311,92.619354 289.00311,92.619354 z">
        <Path.Fill>
          <LinearGradientBrush EndPoint="0.61,0.964" StartPoint="0.39,0.036">
            <GradientStop Color="#FF1660C0" Offset="0" />
            <GradientStop Color="#FF084EAB" Offset="1" />
          </LinearGradientBrush>
        </Path.Fill>
      </Path>
      <Ellipse Stroke="#FF9AC2FA" Margin="1,1,0,0">
        <Ellipse.OpacityMask>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#7C1D99EC" Offset="0" />
            <GradientStop Color="#7EAFDDFC" Offset="1" />
            <GradientStop Color="#C45EB6F1" Offset="0.382" />
          </LinearGradientBrush>
        </Ellipse.OpacityMask>
      </Ellipse>
      <Path Stretch="Fill" Margin="13.257,6.592,12.036,15.073" Data="M300.16647,72.508377 L300.20032,76.801308 C300.20032,76.801308 303.76443,74.208626 308.57635,75.053101 C312.64224,75.766647 312.37244,80.342621 311.28177,81.957657 C307.64908,87.336853 306.09219,88.091827 306.09219,89.696152 C306.09219,91.561272 306.08142,92.930161 306.08142,92.930161 L311.46021,92.930161 L311.46597,89.720444 C311.46597,89.720444 312.49261,89.006256 315.2182,85.837914 C316.81396,83.982925 318.0397,81.959572 318.45352,80.790619 C319.04788,79.111671 319.7117,74.514389 315.04593,72.119629 C313.44992,71.300461 311.46005,70.473305 307.15707,70.607811 C302.8541,70.742317 300.16647,72.508377 300.16647,72.508377 z" Fill="White" />
      <Rectangle Fill="White" Height="6" Margin="19,0,19,6" VerticalAlignment="Bottom" />
      <Ellipse Width="44">
        <Ellipse.Stroke>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF2F6FC4" Offset="0" />
            <GradientStop Color="#FF084FAB" Offset="1" />
          </LinearGradientBrush>
        </Ellipse.Stroke>
      </Ellipse>
    </Grid>
  </DataTemplate>
  <!-- WindowButtonStyle -->
  <Style x:Key="WindowButtonStyle" TargetType="telerik:RadButton">
    <Setter Property="Padding" Value="{StaticResource WindowButtonPadding}" />
    <Setter Property="Margin" Value="{StaticResource WindowButtonMargin}" />
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadButton">
          <Grid>
            <telerikChromes:ButtonChrome RenderNormal="False" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" />
            <ContentPresenter Margin="{TemplateBinding Padding}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!-- WindowResizeThumbStyle -->
  <Style x:Key="WindowResizeThumbStyle" TargetType="Thumb">
    <Setter Property="MinWidth" Value="5" />
    <Setter Property="MinHeight" Value="5" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Thumb">
          <Rectangle Fill="Transparent" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!-- RadWindowTemplate -->
  <ControlTemplate x:Key="RadWindowTemplate" TargetType="telerikNavigation:RadWindow">
    <Grid x:Name="LayoutRoot">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Normal" />
          <VisualState x:Name="Disabled" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Focused" />
          <VisualState x:Name="Unfocused" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="DragStates">
          <VisualState x:Name="NotDragging" />
          <VisualState x:Name="Dragging" />
          <VisualState x:Name="Resizing" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="WindowStates">
          <VisualState x:Name="NormalWindow" />
          <VisualState x:Name="Maximized">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="CornerRadius">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <CornerRadius>0</CornerRadius>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowInnerBorder" Storyboard.TargetProperty="CornerRadius">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <CornerRadius>0</CornerRadius>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowInnerBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentInnerBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0 1 0 0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="BorderThickness">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0 1 0 0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="Margin">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButtons" Storyboard.TargetProperty="Margin">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="Margin">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Shadow" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>-->
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Minimized">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="Visibility">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButtons" Storyboard.TargetProperty="Margin">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Thickness>0</Thickness>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="HorizontalAlignment">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <HorizontalAlignment>Left</HorizontalAlignment>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="VerticalAlignment">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <VerticalAlignment>Top</VerticalAlignment>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border x:Name="Shadow" CornerRadius="10" BorderBrush="#11000000" BorderThickness="1">
        <Border CornerRadius="9" BorderBrush="#22000000" BorderThickness="1">
          <Border CornerRadius="8" BorderBrush="#33000000" BorderThickness="1">
            <Border CornerRadius="7" BorderBrush="#44000000" BorderThickness="0 0 1 1">
              <Border CornerRadius="6" BorderBrush="#55000000" BorderThickness="0 0 1 1">
                <!--<Border CornerRadius="5" BorderBrush="#66000000" BorderThickness="1">
									<Border CornerRadius="4" BorderBrush="#77000000" BorderThickness="1">
									</Border>
								</Border>-->
              </Border>
            </Border>
          </Border>
        </Border>
      </Border>
      <Border x:Name="WindowOuterBorder" Margin="3 3 5 5" Grid.RowSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="5">
        <Border x:Name="WindowInnerBorder" BorderBrush="{StaticResource WindowInnerBorder}" BorderThickness="1" CornerRadius="4">
          <Grid>
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto" />
              <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Rectangle x:Name="HeaderBackgroundVisual" Grid.Row="0" Fill="{StaticResource WindowHeaderBackground}" />
            <Rectangle x:Name="BackgroundVisual" Grid.Row="1" Fill="{TemplateBinding BorderBackground}" />
            <Grid x:Name="Header">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Thumb x:Name="titleThumb" Grid.ColumnSpan="2" Style="{StaticResource WindowResizeThumbStyle}" />
              <Grid Grid.Column="0" Margin="2 0 0 0">
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <ContentPresenter x:Name="IconContent" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" Content="{TemplateBinding Icon}" ContentTemplate="{TemplateBinding IconTemplate}" />
                <ContentPresenter x:Name="HeaderContent" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"></ContentPresenter>
              </Grid>
              <Border x:Name="PART_HeaderButtonsBorder" Grid.Column="1">
                <StackPanel x:Name="HeaderButtons" Grid.Column="1" Orientation="Horizontal" Margin="0 0 3 0">
                  <themes:RadButton x:Name="PART_MinimizeButton" Command="telerik:WindowCommands.Minimize" Style="{StaticResource WindowButtonStyle}" Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,7.5 L12.5,7.5 12.5,11.5 1.5,11.5 Z" />
                  </themes:RadButton>
                  <themes:RadButton x:Name="PART_RestoreButton" Command="telerik:WindowCommands.Restore" Style="{StaticResource WindowButtonStyle}" Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M0.5,4.5 0.5,11.5 1.5,12.5 8.5,12.5 9.5,11.5 9.5,3.5 1.5,3.5 Z M3.5,6.5 L3.5,9.5 L6.5,9.5 6.5,6.5 Z M3.5,3.5 3.5,1.5 4.5,0.5 11.5,0.5 12.5,1.5 12.5,9.5 11.5,10.5 9.5,10.5 9.5,3.5 Z" />
                  </themes:RadButton>
                  <themes:RadButton x:Name="PART_MaximizeButton" Command="telerik:WindowCommands.Maximize" Style="{StaticResource WindowButtonStyle}" Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,2.5 L12.5,2.5 12.5,11.5 1.5,11.5 Z M4.5,5.5 L9.5,5.5 9.5,8.5 4.5,8.5 Z" />
                  </themes:RadButton>
                  <themes:RadButton x:Name="PART_CloseButton" Command="telerik:WindowCommands.Close" Style="{StaticResource WindowButtonStyle}" Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z" />
                  </themes:RadButton>
                </StackPanel>
              </Border>
            </Grid>
            <Border x:Name="ContentOuterBorder" Grid.Row="1" Margin="{TemplateBinding BorderThickness}" BorderThickness="1" BorderBrush="{StaticResource WindowInnerBorder}">
              <Border x:Name="ContentInnerBorder" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                <ContentPresenter x:Name="ContentElement" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
              </Border>
            </Border>
          </Grid>
        </Border>
      </Border>
      <Thumb x:Name="W" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeWE" HorizontalAlignment="Left" />
      <Thumb x:Name="N" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeNS" VerticalAlignment="Top" />
      <Thumb x:Name="E" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeWE" HorizontalAlignment="Right" />
      <Thumb x:Name="S" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeNS" VerticalAlignment="Bottom" />
      <Thumb x:Name="NW" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeNWSE" VerticalAlignment="Top" HorizontalAlignment="Left" />
      <Thumb x:Name="NE" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeNESW" VerticalAlignment="Top" HorizontalAlignment="Right" />
      <Thumb x:Name="SE" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeNWSE" VerticalAlignment="Bottom" HorizontalAlignment="Right" />
      <Thumb x:Name="SW" Style="{StaticResource WindowResizeThumbStyle}" Cursor="SizeNESW" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
    </Grid>
  </ControlTemplate>
  <!-- telerikNavigation:RadWindow -->
  <Style x:Key="RadWindowStyle" TargetType="telerikNavigation:RadWindow">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="Background" Value="{StaticResource WindowBackground}" />
    <Setter Property="BorderBrush" Value="{StaticResource WindowOuterBorder}" />
    <Setter Property="BorderBackground" Value="{StaticResource WindowBorderBackground}" />
    <Setter Property="ModalBackground" Value="{StaticResource WindowModalBackground}" />
    <Setter Property="BorderThickness" Value="2 0 2 2" />
    <Setter Property="MinHeight" Value="36" />
    <Setter Property="MinWidth" Value="110" />
    <Setter Property="HorizontalAlignment" Value="Stretch" />
    <Setter Property="VerticalAlignment" Value="Stretch" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="Header" Value="RadWindow" />
    <Setter Property="WindowStartupLocation" Value="Manual" />
    <Setter Property="WindowState" Value="Normal" />
    <Setter Property="CaptionHeight" Value="29" />
    <Setter Property="ResizeBorder" Value="8 6 10 10" />
    <Setter Property="Template" Value="{StaticResource RadWindowTemplate}" />
    <Setter Property="animation:AnimationManager.AnimationSelector">
      <Setter.Value>
        <animation:AnimationSelector>
          <animation:AnimationGroup AnimationName="Show">
            <animation:FadeAnimation Direction="In" TargetElementName="LayoutRoot"></animation:FadeAnimation>
            <animation:ScaleAnimation Direction="In" TargetElementName="LayoutRoot" MinScale="0.9"></animation:ScaleAnimation>
          </animation:AnimationGroup>
          <animation:AnimationGroup AnimationName="Hide">
            <animation:FadeAnimation Direction="Out" TargetElementName="LayoutRoot"></animation:FadeAnimation>
            <animation:ScaleAnimation Direction="Out" TargetElementName="LayoutRoot" MinScale="0.9"></animation:ScaleAnimation>
          </animation:AnimationGroup>
        </animation:AnimationSelector>
      </Setter.Value>
    </Setter>
    <Setter Property="navigation:RadWindowInteropHelper.OpaqueWindowBackground" Value="{StaticResource WindowBorderBackground}" />
    <Style.Triggers>
      <Trigger Property="navigation:RadWindowInteropHelper.AllowTransparency" Value="False">
        <Setter Property="navigation:RadWindowInteropHelper.ClipMaskCornerRadius" Value="10" />
        <Setter Property="ResizeBorder" Value="6" />
        <Setter Property="CaptionHeight" Value="26" />
        <Setter Property="animation:AnimationManager.IsAnimationEnabled" Value="False" />
      </Trigger>
    </Style.Triggers>
  </Style>
  <Style TargetType="telerikNavigation:RadWindow" BasedOn="{StaticResource RadWindowStyle}" />
  <!-- telerikNavigation:RadPrompt -->
  <Style x:Key="RadPromptStyle" TargetType="telerikNavigation:RadPrompt">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="Width" Value="350" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadPrompt">
          <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{StaticResource ConfirmIconTemplate}" />
            <StackPanel FocusManager.FocusedElement="{Binding ElementName=PromptTextBox}" x:Name="PromptContent" Grid.Row="0" Grid.Column="1">
              <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8">
                <ContentPresenter x:Name="PromptText" Margin="8 8 8 0" />
              </ScrollViewer>
              <TextBox x:Name="PromptTextBox" Margin="8" IsTabStop="True" TabIndex="0" Focusable="True" />
            </StackPanel>
            <Border x:Name="HorizontalRule" Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="0 0 0 1" Height="2" Background="{StaticResource BorderLineOuterColor}" BorderBrush="{StaticResource BorderLineInnerColor}" VerticalAlignment="Top" />
            <StackPanel x:Name="DialogButtons" Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
              <themes:RadButton x:Name="OK" Command="telerik:WindowCommands.Confirm" local:RadWindow.ResponseButton="Accept" MinWidth="70" IsTabStop="True" TabIndex="1" HorizontalAlignment="Right" themes:LocalizationManager.ResourceKey="Ok" Margin="0 10 8 8" />
              <themes:RadButton x:Name="Cancel" Command="telerik:WindowCommands.Cancel" local:RadWindow.ResponseButton="Cancel" MinWidth="70" IsTabStop="True" TabIndex="2" HorizontalAlignment="Right" themes:LocalizationManager.ResourceKey="Cancel" Margin="0 10 8 8" />
            </StackPanel>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadPrompt" BasedOn="{StaticResource RadPromptStyle}" />
  <!-- telerikNavigation:RadConfirm -->
  <Style x:Key="RadConfirmStyle" TargetType="telerikNavigation:RadConfirm">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="MinWidth" Value="275" />
    <Setter Property="MaxWidth" Value="500" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadConfirm">
          <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{StaticResource ConfirmIconTemplate}" />
            <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8">
              <ContentPresenter x:Name="ConfirmText" Margin="8 8 8 0" />
            </ScrollViewer>
            <Border x:Name="HorizontalRule" Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="0 0 0 1" Height="2" Background="{StaticResource BorderLineOuterColor}" BorderBrush="{StaticResource BorderLineInnerColor}" VerticalAlignment="Top" />
            <StackPanel x:Name="DialogButtons" Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" FocusManager.FocusedElement="{Binding ElementName=OK}">
              <themes:RadButton x:Name="OK" Command="telerik:WindowCommands.Confirm" local:RadWindow.ResponseButton="Accept" MinWidth="70" IsTabStop="True" TabIndex="0" HorizontalAlignment="Right" themes:LocalizationManager.ResourceKey="Ok" Margin="0 10 8 8" />
              <themes:RadButton x:Name="Cancel" Command="telerik:WindowCommands.Cancel" local:RadWindow.ResponseButton="Cancel" MinWidth="70" TabIndex="1" HorizontalAlignment="Right" themes:LocalizationManager.ResourceKey="Cancel" Margin="0 10 8 8" />
            </StackPanel>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadConfirm" BasedOn="{StaticResource RadConfirmStyle}" />
  <!-- telerikNavigation:RadAlert -->
  <Style x:Key="RadAlertStyle" TargetType="telerikNavigation:RadAlert">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="MinWidth" Value="275" />
    <Setter Property="MaxWidth" Value="500" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadAlert">
          <Grid x:Name="LayoutRoot" FocusManager.FocusedElement="{Binding ElementName=OK}">
            <Grid.RowDefinitions>
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.InputBindings>
              <KeyBinding Key="Escape" Command="telerik:WindowCommands.Confirm" />
            </Grid.InputBindings>
            <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{StaticResource AlertIconTemplate}" />
            <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8">
              <ContentPresenter x:Name="AlertText" Margin="8 8 8 0" />
            </ScrollViewer>
            <Border x:Name="HorizontalRule" Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="0 0 0 1" Height="2" Background="{StaticResource BorderLineOuterColor}" BorderBrush="{StaticResource BorderLineInnerColor}" VerticalAlignment="Top" />
            <themes:RadButton x:Name="OK" Command="telerik:WindowCommands.Confirm" local:RadWindow.ResponseButton="Accept" Grid.Row="2" Grid.ColumnSpan="2" MinWidth="70" IsTabStop="True" TabIndex="0" HorizontalAlignment="Right" themes:LocalizationManager.ResourceKey="Ok" Margin="0 10 8 8" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadAlert" BasedOn="{StaticResource RadAlertStyle}" />
  <!-- RadTreeView-->
  <!-- forbidden icon -->
  <Style x:Key="TreeviewFocusVisual">
    <Setter Property="Control.Template">
      <Setter.Value>
        <ControlTemplate>
          <Rectangle Stroke="Transparent" StrokeThickness="0" Margin="0" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="treeView:TreeViewDragCue" x:Key="TreeViewDragCueStyle">
    <Setter Property="IsHitTestVisible" Value="False" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="BorderBrush" Value="{StaticResource TreeView_DragContainerFormOuterBorder}" />
    <Setter Property="Background" Value="{StaticResource RadTreeView_DragContainerFormInnerBackground}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="treeView:TreeViewDragCue">
          <StackPanel>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="DropStates">
                <VisualState x:Name="DropPossible" />
                <VisualState x:Name="DropImpossible">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropImpossibleIconElement" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropPossibleIconElement" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid HorizontalAlignment="Left" Visibility="{TemplateBinding DragPreviewVisibility}">
              <Border Opacity="0.8" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="3">
                <Border CornerRadius="2" BorderBrush="{StaticResource RadTreeView_DragContainerFormInnerBorder}" Background="{TemplateBinding Background}" BorderThickness="1">
                  <ItemsPresenter Margin="{TemplateBinding Padding}" />
                </Border>
              </Border>
              <Grid x:Name="DraggedItemsCountContainer" Visibility="Collapsed" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Rectangle Stroke="{StaticResource RadTreeView_DragItemsCountBorderBrush}" Fill="{StaticResource RadTreeView_DragItemsCountFillBrush}" RadiusX="2" RadiusY="2" />
                <TextBlock Margin="3" x:Name="DraggedItemsCountText" Foreground="{StaticResource RadTreeView_DragItemsCountTextBrush}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Text="5" />
              </Grid>
            </Grid>
            <Grid Margin="0 2 0 0" Visibility="{TemplateBinding DragTooltipVisibility}">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Rectangle Grid.ColumnSpan="2" Stroke="{TemplateBinding BorderBrush}" Fill="{StaticResource RadTreeView_DragTooltipFormFillBrush}" StrokeLineJoin="Bevel" StrokeThickness="1" RadiusX="3" RadiusY="3" />
              <ContentPresenter x:Name="DropImpossibleIconElement" Margin="5,0" Content="{TemplateBinding DropImpossibleIcon}" ContentTemplate="{TemplateBinding DropImpossibleIconTemplate}" Visibility="Collapsed" />
              <ContentPresenter x:Name="DropPossibleIconElement" Margin="5,0" Content="{TemplateBinding DropPossibleIcon}" ContentTemplate="{TemplateBinding DropPossibleIconTemplate}" />
              <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Grid.Column="1" MinHeight="20">
                <ContentControl Content="{TemplateBinding DragActionContent}" ContentTemplate="{TemplateBinding DragActionContentTemplate}" Foreground="{StaticResource Header2ForegroundBrush}" VerticalAlignment="Center" />
                <ContentPresenter Content="{TemplateBinding DragTooltipContent}" ContentTemplate="{TemplateBinding DragTooltipContentTemplate}" Margin="0,0,5,0" VerticalAlignment="Center" />
              </StackPanel>
            </Grid>
          </StackPanel>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="DropImpossibleIcon" Value="The icon is assigned as DataTemplate because assigning as Content triggers a bug in Silverlight" />
    <Setter Property="DropImpossibleIconTemplate">
      <Setter.Value>
        <DataTemplate>
          <Grid>
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_ForbiddenDragIcon1}" Data="M 9603.25,-9232.61C 9599.62,-9232.61 9596.66,-9235.57 9596.66,-9239.21C 9596.66,-9242.85 9599.62,-9245.81 9603.25,-9245.81C 9606.9,-9245.81 9609.85,-9242.85 9609.85,-9239.21C 9609.85,-9235.57 9606.9,-9232.61 9603.25,-9232.61 Z " Width="13.195" Height="13.197" Margin="1.33, 1.08, 0, 0" />
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_ForbiddenDragIcon2}" Data="M 9605.12,-9238.52L 9605.14,-9238.55C 9605.42,-9239.07 9605.58,-9239.66 9605.58,-9240.29C 9605.58,-9242.31 9603.94,-9243.94 9601.93,-9243.94C 9601.3,-9243.94 9600.71,-9243.78 9600.19,-9243.5L 9600.16,-9243.48L 9605.12,-9238.52 Z " Width="5.417" Height="5.418" Margin="4.83, 2.95, 0, 0" />
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_ForbiddenDragIcon3}" Data="M 9601.93,-9236.64C 9602.56,-9236.64 9603.15,-9236.8 9603.67,-9237.08L 9603.89,-9237.22L 9602.88,-9238.24C 9602.34,-9238.78 9601.79,-9239.32 9601.24,-9239.86L 9598.83,-9242.2L 9598.72,-9242.03C 9598.44,-9241.51 9598.28,-9240.92 9598.28,-9240.29C 9598.28,-9238.28 9599.92,-9236.64 9601.93,-9236.64 Z " Width="5.604" Height="5.555" Margin="2.95, 4.69, 0, 0" />
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_ForbiddenDragIcon4}" Data="M 9601.93,-9233.69C 9598.29,-9233.69 9595.33,-9236.65 9595.33,-9240.29C 9595.33,-9243.93 9598.29,-9246.89 9601.93,-9246.89C 9605.57,-9246.89 9608.53,-9243.93 9608.53,-9240.29C 9608.53,-9236.65 9605.57,-9233.69 9601.93,-9233.69 Z " Width="13.195" Height="13.197" />
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_ForbiddenDragIcon5}" Data="M 9605.12,-9238.52L 9605.14,-9238.55C 9605.42,-9239.07 9605.58,-9239.66 9605.58,-9240.29C 9605.58,-9242.31 9603.94,-9243.94 9601.93,-9243.94C 9601.3,-9243.94 9600.71,-9243.78 9600.19,-9243.5L 9600.16,-9243.48M 9601.93,-9236.64C 9602.56,-9236.64 9603.15,-9236.8 9603.67,-9237.08L 9603.89,-9237.22L 9602.88,-9238.24C 9602.34,-9238.78 9601.79,-9239.32 9601.24,-9239.86L 9598.83,-9242.2L 9598.72,-9242.03C 9598.44,-9241.51 9598.28,-9240.92 9598.28,-9240.29C 9598.28,-9238.28 9599.92,-9236.64 9601.93,-9236.64 Z M 9601.93,-9234.76C 9598.88,-9234.76 9596.4,-9237.24 9596.4,-9240.29C 9596.4,-9243.35 9598.88,-9245.82 9601.93,-9245.82C 9604.98,-9245.82 9607.46,-9243.35 9607.46,-9240.29C 9607.46,-9237.24 9604.98,-9234.76 9601.93,-9234.76 Z " Width="11.062" Height="11.064" Margin="1.07,1.07,0,0" />
          </Grid>
        </DataTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="DropPossibleIcon" Value="The icon is assigned as DataTemplate because assigning as Content triggers a bug in Silverlight" />
    <Setter Property="DropPossibleIconTemplate">
      <Setter.Value>
        <DataTemplate>
          <Grid>
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_InsertDragIcon1}" Data="M 9617.85,-9437.65C 9617.38,-9437.65 9616.91,-9437.83 9616.56,-9438.18C 9615.84,-9438.9 9615.84,-9440.06 9616.56,-9440.78L 9617.1,-9441.32L 9613.49,-9441.32C 9612.48,-9441.32 9611.66,-9442.14 9611.66,-9443.16C 9611.66,-9444.17 9612.48,-9444.99 9613.49,-9444.99L 9617.1,-9444.99L 9616.56,-9445.54C 9615.84,-9446.25 9615.84,-9447.41 9616.56,-9448.13C 9617.27,-9448.84 9618.44,-9448.84 9619.15,-9448.13L 9622.82,-9444.45C 9623.54,-9443.74 9623.54,-9442.58 9622.82,-9441.86L 9619.15,-9438.18C 9618.79,-9437.83 9618.32,-9437.65 9617.85,-9437.65 Z " Width="11.704" Height="11.016" Margin="1.246,1.546,0,0" />
            <Path Stretch="Fill" Fill="{StaticResource RadTreeView_InsertDragIcon2}" StrokeThickness="1" StrokeLineJoin="Miter" Data="M 9617.53,-9438.84C 9617.15,-9438.84 9616.77,-9438.98 9616.47,-9439.27C 9615.89,-9439.86 9615.89,-9440.81 9616.47,-9441.4L 9617.59,-9442.51L 9613.17,-9442.51C 9612.34,-9442.51 9611.67,-9443.18 9611.67,-9444.01C 9611.67,-9444.84 9612.34,-9445.51 9613.17,-9445.51L 9617.59,-9445.51L 9616.47,-9446.63C 9615.89,-9447.21 9615.89,-9448.16 9616.47,-9448.75C 9617.06,-9449.33 9618.01,-9449.33 9618.6,-9448.75L 9622.27,-9445.07C 9622.86,-9444.48 9622.86,-9443.54 9622.27,-9442.95L 9618.6,-9439.27C 9618.3,-9438.98 9617.92,-9438.84 9617.53,-9438.84 Z " Width="12.371" Height="11.682" StrokeDashCap="Flat" Stroke="{StaticResource RadTreeView_InsertDragStrokeIcon2}" />
          </Grid>
        </DataTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="treeView:TreeViewDragCue" BasedOn="{StaticResource TreeViewDragCueStyle}" />
  <Style TargetType="telerikNavigation:RadTreeView" x:Key="RadTreeViewStyle">
    <Setter Property="animation:AnimationManager.AnimationSelector">
      <Setter.Value>
        <animation:AnimationSelector>
          <animationNavigation:TreeViewExpandCollapseAnimation AnimationName="Expand" Direction="In" />
          <animationNavigation:TreeViewExpandCollapseAnimation AnimationName="Collapse" Direction="Out" />
        </animation:AnimationSelector>
      </Setter.Value>
    </Setter>
    <Setter Property="IsDragTooltipEnabled" Value="True" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="IsEnabled" Value="True" />
    <Setter Property="IsDropPreviewLineEnabled" Value="True" />
    <Setter Property="IsRootLinesEnabled" Value="True" />
    <Setter Property="IsExpandOnDblClickEnabled" Value="True" />
    <Setter Property="IsDragPreviewEnabled" Value="True" />
    <Setter Property="SelectionMode" Value="Single" />
    <Setter Property="ItemsIndent" Value="20" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <treeView:TreeViewPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="dragDrop:RadDragAndDropManager.AllowDrop" Value="True" />
    <Setter Property="ItemEditTemplate">
      <Setter.Value>
        <DataTemplate>
          <TextBox />
        </DataTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="ExpanderStyle">
      <Setter.Value>
        <Style TargetType="ToggleButton">
          <Setter Property="BorderBrush" Value="{StaticResource TreeView_ExpandElement_BorderBrush_ExpandedStates}" />
          <Setter Property="IsTabStop" Value="False" />
          <Setter Property="Cursor" Value="Hand" />
          <Setter Property="Template">
            <Setter.Value>
              <ControlTemplate TargetType="ToggleButton">
                <Grid Margin="5,0,0,0">
                  <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="CommonStates">
                      <VisualState x:Name="Normal" />
                      <VisualState x:Name="MouseOver">
                        <Storyboard>
                          <DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="ExpandedVisualOver" Storyboard.TargetProperty="Opacity" To="1" />
                          <DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="CollapsedVisualOver" Storyboard.TargetProperty="Opacity" To="1" />
                        </Storyboard>
                      </VisualState>
                      <VisualState x:Name="Disabled">
                        <Storyboard>
                          <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ExpandedVisual" Storyboard.TargetProperty="Fill">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                          </ObjectAnimationUsingKeyFrames>
                          <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ExpandedVisual" Storyboard.TargetProperty="Stroke">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                          </ObjectAnimationUsingKeyFrames>
                          <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapsedVisual" Storyboard.TargetProperty="Fill">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                          </ObjectAnimationUsingKeyFrames>
                          <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapsedVisual" Storyboard.TargetProperty="Stroke">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                          </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                      </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="CheckStates">
                      <VisualState x:Name="Checked">
                        <Storyboard>
                          <DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="ExpandedStates" Storyboard.TargetProperty="Opacity" To="1" />
                          <DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="CollapsedStates" Storyboard.TargetProperty="Opacity" To="0" />
                        </Storyboard>
                      </VisualState>
                      <VisualState x:Name="Unchecked">
                        <Storyboard>
                          <DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="ExpandedStates" Storyboard.TargetProperty="Opacity" To="0" />
                          <DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="CollapsedStates" Storyboard.TargetProperty="Opacity" To="1" />
                        </Storyboard>
                      </VisualState>
                    </VisualStateGroup>
                  </VisualStateManager.VisualStateGroups>
                  <Grid x:Name="CollapsedStates">
                    <Path x:Name="CollapsedVisual" Stretch="Fill" Fill="{StaticResource TreeView_ExpandElement_Background_Normal}" Stroke="{StaticResource TreeView_ExpandElement_BorderBrush_Normal}" Data="M0.5,0.5 L5.2,5.4 L5.2,5.4 L0.5,10.5 z" RenderTransformOrigin="0.5,1" HorizontalAlignment="Left" Margin="3,1,0,0" Width="6" Height="9" VerticalAlignment="Center" />
                    <Path x:Name="CollapsedVisualOver" Opacity="0" Stretch="Fill" Fill="{StaticResource TreeView_ExpandElement_Background_MouseOver}" Stroke="{StaticResource TreeView_ExpandElement_BorderBrush_MouseOver}" Data="M0.5,0.5 L5.2,5.4 L5.2,5.4 L0.5,10.5 z" RenderTransformOrigin="0.5,1" HorizontalAlignment="Left" Margin="3,1,0,0" Width="6" Height="9" VerticalAlignment="Center" />
                  </Grid>
                  <Grid x:Name="ExpandedStates" Opacity="0">
                    <Path x:Name="ExpandedVisual" HorizontalAlignment="Left" Margin="2,1,0,0" Width="7" Height="7" VerticalAlignment="Center" Stretch="Fill" Fill="{StaticResource TreeView_ExpandElement_Background_ExpandedStates}" Stroke="{TemplateBinding BorderBrush}" Data="M3.27,3.75 L6.5,0.5 L6.5,6.5 L0.5,6.5 z" />
                    <Path x:Name="ExpandedVisualOver" HorizontalAlignment="Left" Margin="2,1,0,0" Width="7" Height="7" VerticalAlignment="Center" Opacity="0" Stretch="Fill" Fill="{StaticResource TreeView_ExpandElement_Background_ExpandedStates}" Stroke="{TemplateBinding BorderBrush}" Data="M3.27,3.75 L6.5,0.5 L6.5,6.5 L0.5,6.5 z" />
                  </Grid>
                </Grid>
              </ControlTemplate>
            </Setter.Value>
          </Setter>
        </Style>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadTreeView">
          <Grid x:Name="RootElement">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="DropStates">
                <VisualState x:Name="DropImpossible" />
                <VisualState x:Name="DropPossible" />
                <VisualState x:Name="DropRootPossible">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollViewer" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <SolidColorBrush Color="#7fFCD590" />
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
              <Grid>
                <ScrollViewer Padding="{TemplateBinding Padding}" IsTabStop="False" x:Name="ScrollViewer" BorderThickness="0" Background="{x:Null}" CanContentScroll="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                  <ItemsPresenter />
                </ScrollViewer>
                <Grid x:Name="DragBetweenItemsFeedback" Height="8" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" IsHitTestVisible="False" Margin="{TemplateBinding Padding}">
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="8" />
                    <ColumnDefinition />
                  </Grid.ColumnDefinitions>
                  <Ellipse Stroke="{StaticResource DragBetweenItemsFeedback_BackgroundBrush}" StrokeThickness="2" HorizontalAlignment="Left" VerticalAlignment="Center" Width="8" Height="8" />
                  <Rectangle Fill="{StaticResource DragBetweenItemsFeedback_BackgroundBrush}" RadiusX="2" RadiusY="2" Margin="-2,3,0,0" VerticalAlignment="Top" Height="2" Grid.Column="1" />
                </Grid>
              </Grid>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadTreeView" BasedOn="{StaticResource RadTreeViewStyle}" />
  <ControlTemplate TargetType="telerikNavigation:RadTreeViewItem" x:Key="TreeViewItemDefaultTemplate">
    <Grid x:Name="RootElement">
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="EditStates">
          <VisualState x:Name="Display" />
          <VisualState x:Name="Edit">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="EditHeaderElement" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="CommonStates">
          <VisualState x:Name="Normal" />
          <VisualState x:Name="Disabled">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header" To="0.35" Duration="0:0:0.0" />
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Image" To="0.35" Duration="0:0:0.0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseOver">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual" To="1" Duration="0:0:0.1" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="SelectionStates">
          <VisualState x:Name="Unselected" />
          <VisualState x:Name="Selected">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="SelectedUnfocused">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionUnfocusedVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="LoadingOnDemandStates">
          <VisualState x:Name="LoadingOnDemand">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LoadingVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Expander" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
              <DoubleAnimation Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359" Duration="0:0:1" RepeatBehavior="Forever" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="LoadingOnDemandReverse" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="FocusStates">
          <VisualState x:Name="Focused">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Unfocused" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="ExpandStates">
          <VisualState x:Name="Expanded">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost" Storyboard.TargetProperty="Visibility" Duration="0">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Collapsed" />
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition />
      </Grid.RowDefinitions>
      <Grid x:Name="HeaderRow" Background="Transparent" MinHeight="{TemplateBinding MinHeight}" SnapsToDevicePixels="True">
        <Grid.ColumnDefinitions>
          <!-- indent -->
          <ColumnDefinition Width="Auto" />
          <!-- collapse/expand -->
          <ColumnDefinition Width="Auto" />
          <!-- checkbox, radio-->
          <ColumnDefinition Width="Auto" />
          <!-- left image -->
          <ColumnDefinition Width="Auto" />
          <!-- selection, text, edit element -->
          <ColumnDefinition Width="Auto" />
          <!-- empty -->
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <!-- normal-->
        <Border CornerRadius="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="2" Grid.ColumnSpan="6" />
        <!-- Hover -->
        <Border x:Name="MouseOverVisual" Opacity="0" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderBrush="{StaticResource ControlSubItem_OuterBorder_MouseOver}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
          <Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_MouseOver}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlSubItem_Background_MouseOver}" />
        </Border>
        <!-- Selection Unfocused-->
        <Border x:Name="SelectionUnfocusedVisual" Visibility="Collapsed" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderBrush="{StaticResource ControlSubItem_OuterBorder_UnFocus}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
          <Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_UnFocus}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlSubItem_Background_UnFocus}" />
        </Border>
        <!-- Select -->
        <Border x:Name="SelectionVisual" Visibility="Collapsed" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" BorderBrush="{StaticResource ControlSubItem_OuterBorder_Selected}" BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
          <Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_Selected}" CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}" BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}" Background="{StaticResource ControlSubItem_Background_Selected}" />
        </Border>
        <!-- indent -->
        <StackPanel x:Name="IndentContainer" Orientation="Horizontal">
          <Rectangle x:Name="IndentFirstVerticalLine" Width="1" Visibility="Collapsed" Stroke="{StaticResource TreeView_LineColor}" VerticalAlignment="Top"></Rectangle>
        </StackPanel>
        <!-- ListRoot decoration -->
        <Grid Grid.Column="1" x:Name="ListRootContainer" HorizontalAlignment="Center" MinWidth="20">
          <!-- Lines -->
          <Rectangle x:Name="HorizontalLine" Height="1" Stroke="{StaticResource TreeView_LineColor}" VerticalAlignment="Center" HorizontalAlignment="Right"></Rectangle>
          <Rectangle x:Name="VerticalLine" Width="1" Stroke="{StaticResource TreeView_LineColor}" VerticalAlignment="Top" HorizontalAlignment="Center"></Rectangle>
          <!-- Collapse/Expand -->
          <ToggleButton x:Name="Expander" IsTabStop="False" Background="{TemplateBinding Background}" />
          <!-- Loading ... -->
          <Grid x:Name="LoadingVisual" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Grid.RenderTransform>
              <TransformGroup>
                <RotateTransform x:Name="LoadingVisualAngleTransform" Angle="0" CenterX="0.5" CenterY="0.5" />
              </TransformGroup>
            </Grid.RenderTransform>
            <Path Width="10" Height="10" Stretch="Fill" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" StrokeStartLineCap="Round" Data="M1,0 A1,1,90,1,1,0,-1" />
            <Path Margin="5,-1.5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="4" Height="4" Stretch="Fill" Fill="{TemplateBinding Foreground}" Data="M0,-1.1 L0.1,-1 L0,-0.9" StrokeThickness="1" />
          </Grid>
        </Grid>
        <!--/ ListRoot decoration -->
        <!-- Checkbox/Radio -->
        <CheckBox IsTabStop="False" Grid.Column="2" VerticalAlignment="Center" Margin="5,0,0,0" x:Name="CheckBoxElement" Visibility="Collapsed" />
        <RadioButton IsTabStop="False" Grid.Column="2" Margin="5,0,0,0" VerticalAlignment="Center" x:Name="RadioButtonElement" Visibility="Collapsed" />
        <!--/ Checkbox/Radio -->
        <!-- Image and text -->
        <Image Grid.Column="3" x:Name="Image" MaxWidth="16" MaxHeight="16" Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <!-- Focus -->
        <Rectangle x:Name="FocusVisual" Visibility="Collapsed" Grid.Column="2" Grid.ColumnSpan="6" Stroke="{StaticResource FocusBrushBlack}" StrokeThickness="1" StrokeDashArray="1 2" IsHitTestVisible="False" RadiusX="3" RadiusY="3" />
        <!-- Content -->
        <Grid Grid.Column="4" Grid.ColumnSpan="2">
          <ContentPresenter x:Name="Header" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
          <ContentPresenter x:Name="EditHeaderElement" Visibility="Collapsed" ContentTemplateSelector="{TemplateBinding HeaderEditTemplateSelector}" ContentTemplate="{TemplateBinding HeaderEditTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
        </Grid>
      </Grid>
      <!-- Items Container -->
      <ItemsPresenter Grid.Row="1" x:Name="ItemsHost" Visibility="Collapsed" />
      <!--/ Items Container -->
    </Grid>
  </ControlTemplate>
  <Style TargetType="telerikNavigation:RadTreeViewItem" x:Key="RadTreeViewItemStyle">
    <Setter Property="FocusVisualStyle" Value="{StaticResource TreeviewFocusVisual}" />
    <Setter Property="HorizontalContentAlignment" Value="Left" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="CheckState" Value="Off" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Padding" Value="1 0 5 0" />
    <Setter Property="IsDropAllowed" Value="True" />
    <Setter Property="ItemsOptionListType" Value="Default" />
    <Setter Property="IsEnabled" Value="True" />
    <Setter Property="MinHeight" Value="24" />
    <Setter Property="Template" Value="{StaticResource TreeViewItemDefaultTemplate}" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <treeView:TreeViewPanel VerticalAlignment="Bottom" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadTreeViewItem" BasedOn="{StaticResource RadTreeViewItemStyle}" />
  <!-- RadOutlookBar-->
  <outlookBarPrimitives:ResizerAlignmentToHorizontalAlignmentConverter x:Key="AlignmentConverter" />
  <Style TargetType="telerik:RadToggleButton" x:Key="MinimizeButtonStyle">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="CornerRadius" Value="0" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadToggleButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow" Storyboard.TargetProperty="Fill" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow" Storyboard.TargetProperty="Fill" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow" Storyboard.TargetProperty="Fill" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="directionRotation" Storyboard.TargetProperty="Angle" To="-90" Duration="0" />
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow" Storyboard.TargetProperty="Fill" Duration="0">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused" />
                <VisualState x:Name="Unfocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border x:Name="InnerBorder" BorderBrush="Transparent" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" />
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" Background="{StaticResource ControlBackground_Checked}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border BorderBrush="{StaticResource ControlInnerBorder_Checked}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" />
            </Border>
            <Path x:Name="arrow" Fill="{StaticResource ControlElement_Normal}" Width="8" Height="4" Stretch="None" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Data="M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z" RenderTransformOrigin="0.5,0.5">
              <Path.RenderTransform>
                <RotateTransform x:Name="directionRotation" Angle="90" />
              </Path.RenderTransform>
            </Path>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerik:RadDropDownButton" x:Key="MinimizedContentButtonStyle">
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="{StaticResource OutlookBar_MinimizedContentButton_Background_Normal}" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadDropDownButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual" To="1" Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PressedVisual" To="1" Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </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" />
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Fill">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlElement_Active}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="DropDownButtonPosition">
                <VisualState x:Name="DropDownButtonAtLeft">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>0</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames 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 Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames 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 Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>2</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames 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 Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="(Grid.Column)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames 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 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 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 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="FocusStates">
                <VisualState x:Name="Focused" />
                <VisualState x:Name="Unfocused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <!-- normal-->
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
            <!-- Hover -->
            <Border x:Name="MouseOverVisual" Opacity="0" Background="{StaticResource OutlookBar_MinimizedContentButton_Background_MouseOver}" />
            <!-- pressed -->
            <Border x:Name="PressedVisual" Opacity="0" Background="{StaticResource OutlookBar_MinimizedContentButton_Background_Pressed}" />
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" Background="{StaticResource OutlookBar_MinimizedContentButton_Background_Pressed}" />
            <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" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" />
              <Path x:Name="DropDownIndicator" Grid.Row="2" Grid.Column="1" IsHitTestVisible="False" Visibility="{TemplateBinding DropDownIndicatorVisibility}" Fill="{StaticResource ControlElement_Normal}" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="5,3,5,3" Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" SnapsToDevicePixels="True" />
            </Grid>
            <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom" IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
              <Grid>
                <Border x:Name="DropDownPopupBorder" BorderBrush="{StaticResource ControlOuterBorder}" Background="{StaticResource ControlBackground}" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" Margin="0,1,4,4" MinWidth="3" MinHeight="3" Width="{TemplateBinding DropDownWidth}" Height="{TemplateBinding DropDownHeight}" MaxWidth="{TemplateBinding DropDownMaxWidth}" MaxHeight="{TemplateBinding DropDownMaxHeight}">
                  <ContentPresenter x:Name="DropDownPopupContent" Content="{TemplateBinding DropDownContent}" ContentTemplate="{TemplateBinding DropDownContentTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
                </Border>
              </Grid>
            </Popup>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!--DropDown Menu-->
  <Style TargetType="telerikTabControl:DropDownMenu" x:Key="DropDownStyle">
    <Setter Property="Background" Value="{StaticResource ControlBackground}" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="MaxHeight" Value="500" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <themes:RadWrapPanel Orientation="Vertical" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikTabControl:DropDownMenu">
          <Grid>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
              <Grid>
                <Border BorderThickness="0 0 1 0" Width="26" Opacity="0.5" HorizontalAlignment="Left" BorderBrush="{TemplateBinding BorderBrush}" />
                <ItemsPresenter Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
              </Grid>
            </Border>
            <Rectangle Fill="{StaticResource TabControl_DropDownHeaderBrush}" x:Name="BorderMaskElement" VerticalAlignment="Top" HorizontalAlignment="Left" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!--	
			*******************************
					OVERFLOW BUTTON
			*******************************
	-->
  <Style TargetType="ToggleButton" x:Key="OutlookFooterToggleButton">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToggleButton">
          <Grid Background="Transparent">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </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>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border x:Name="InnerBorder" BorderBrush="Transparent" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" />
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" Background="{StaticResource ControlBackground_Checked}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
              <Border BorderBrush="{StaticResource ControlInnerBorder_Checked}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" />
            </Border>
            <ContentPresenter x:Name="Content" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Padding" Value="0" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="Background" Value="Transparent" />
  </Style>
  <!--	
			*****************************************
					MINIMIZED OUTLOOKBAR ITEM
			*****************************************
	-->
  <Style x:Key="MinimizedOutlookBarItemStyle" TargetType="outlookBarPrimitives:MinimizedOutlookBarItem">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="outlookBarPrimitives:MinimizedOutlookBarItem">
          <Border x:Name="ControlBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="3 0 0 0">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverElement" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PressedElement" 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="PressedElement" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unselected" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid>
              <!-- MouseOver -->
              <Border x:Name="MouseOverElement" Visibility="Collapsed" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_MouseOver}">
                <Border CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_MouseOver}" Background="{StaticResource ControlBackground_MouseOver}" />
              </Border>
              <!-- Pressed -->
              <Border x:Name="PressedElement" Visibility="Collapsed" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_Pressed}">
                <Border CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlInnerBorder_Pressed}" Background="{StaticResource ControlBackground_Pressed}" />
              </Border>
              <themes:RadDockPanel Margin="{TemplateBinding Padding}">
                <Image Source="{TemplateBinding SmallIcon}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" themes:RadDockPanel.Dock="Left" Stretch="None" />
                <ContentPresenter Content="{TemplateBinding Content}" Grid.Column="1" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
              </themes:RadDockPanel>
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Padding" Value="2 0 2 0" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
  </Style>
  <Style TargetType="outlookBarPrimitives:MinimizedOutlookBarItem" BasedOn="{StaticResource MinimizedOutlookBarItemStyle}" />
  <!--	
			******************************
					MINIMIZED AREA
			******************************
	-->
  <Style x:Key="MinimizedOutlookBarAreaStyle" TargetType="outlookBarPrimitives:MinimizedOutlookBarArea">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="outlookBarPrimitives:MinimizedOutlookBarArea">
          <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <ItemsPresenter />
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <outlookBarPrimitives:OutlookBarPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="outlookBarPrimitives:MinimizedOutlookBarArea" BasedOn="{StaticResource MinimizedOutlookBarAreaStyle}" />
  <!--	
			***********************************
					HORIZONTAL SPLITTER
			***********************************
	-->
  <Style TargetType="Thumb" x:Key="OutlookBarHorizontalSplitter">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Thumb">
          <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" OpacityMask="{StaticResource OutlookBar_HorizontalSplitterOpacityMask}">
            <Grid Height="3" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="15">
              <Path Fill="{StaticResource OutlookBar_HorizontalSplitterPath_OuterBackground}" Stretch="Fill" StrokeThickness="0" Margin="0,0,1,1" Data="M12,0 L13,0 L14,0 L14,1 L14,2 L13,2 L12,2 L12,1 z M8,0 L9,0 L10,0 L10,1 L10,2 L9,2 L8,2 L8,1 z M4,0 L5,0 L6,0 L6,1 L6,2 L5,2 L4,2 L4,1 z M0,0 L1,0 L2,0 L2,1 L2,2 L1,2 L0,2 L0,1 z" />
              <Path Fill="{StaticResource OutlookBar_HorizontalSplitterPath_InnerBackground}" Stretch="Fill" StrokeThickness="0" Margin="1,1,0,0" Data="M12,0 L13,0 L14,0 L14,1 L14,2 L13,2 L12,2 L12,1 z M8,0 L9,0 L10,0 L10,1 L10,2 L9,2 L8,2 L8,1 z M4,0 L5,0 L6,0 L6,1 L6,2 L5,2 L4,2 L4,1 z M0,0 L1,0 L2,0 L2,1 L2,2 L1,2 L0,2 L0,1 z" />
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}" />
    <Setter Property="BorderThickness" Value="{StaticResource OutlookBar_HorizontalSplitter_BorderThickness}" />
    <Setter Property="Background" Value="{StaticResource OutlookBar_HorizontalSplitterBackground}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="0 2 0 2" />
    <Setter Property="Cursor" Value="SizeNS" />
  </Style>
  <!--	
			**************************
					MenuItem
			************************** 
	-->
  <Style TargetType="telerikNavigation:RadMenuItem" x:Key="MenuItemStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadMenuItem">
          <Grid>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
            <Grid Margin="{StaticResource MenuSubItemMargin}">
              <telerikChromes:ButtonChrome Grid.ColumnSpan="3" RenderNormal="False" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderHighlighted="{TemplateBinding IsHighlighted}" />
              <Grid>
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Menu.IconColumnWidth}">
                  <Image Grid.Column="0" Margin="2 2 10 2" Height="14" Source="{TemplateBinding Icon}" />
                </Grid>
                <ContentPresenter Grid.Column="1" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" RecognizesAccessKey="True" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"></ContentPresenter>
              </Grid>
            </Grid>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <DataTemplate x:Key="DefaultMinimizedButtonContentTemplate">
    <TextBlock Text="{Binding}" FontWeight="Bold" />
  </DataTemplate>
  <!--	
			**************************
					OUTLOOKBAR
			************************** 
	-->
  <Style x:Key="RadOutlookBarStyle" TargetType="telerikNavigation:RadOutlookBar">
    <Setter Property="TitleTemplate">
      <Setter.Value>
        <DataTemplate>
          <Grid>
            <ContentControl HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Foreground="{StaticResource OutlookBar_ForegroundHeader}" FontSize="12" FontWeight="Bold" IsTabStop="False" Content="{Binding}" />
          </Grid>
        </DataTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadOutlookBar">
          <Grid x:Name="LayoutRoot">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="DropDownDisplayStates">
                <VisualState x:Name="DropDownButtonVisible" />
                <VisualState x:Name="DropDownButtonCollapsed" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="MinimizedModeStates">
                <VisualState x:Name="Restored">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="(UIElement.Opacity)" From="0" To="1" />
                    <DoubleAnimation Duration="0" Storyboard.TargetName="TitleElement" Storyboard.TargetProperty="(UIElement.Opacity)" From="0" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Minimized">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="TitleElement" Storyboard.TargetProperty="(UIElement.Opacity)" From="1" To="0" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" x:Name="RootElement">
              <DockPanel>
                <Border BorderThickness="1" BorderBrush="{StaticResource OutlookBar_HeaderOuterBorder}" Background="{StaticResource OutlookBar_HeaderBackground}" Margin="-1" DockPanel.Dock="Top" Visibility="{TemplateBinding HeaderVisibility}">
                  <Border BorderThickness="{StaticResource OutlookBar_HeaderInnerBorder_Thickness}" BorderBrush="{StaticResource OutlookBar_HeaderInnerBorder}">
                    <Grid>
                      <ContentControl x:Name="TitleElement" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="5 3 5 3" IsTabStop="False" ContentTemplate="{TemplateBinding TitleTemplate}" />
                      <themes:RadToggleButton x:Name="MinimizeButton" Margin="0 0 3 0" HorizontalAlignment="Right" Width="19" Height="19" Style="{StaticResource MinimizeButtonStyle}" VerticalAlignment="Center" IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsMinimized, Mode=TwoWay}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsMinimizable, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    </Grid>
                  </Border>
                </Border>
                <Border Visibility="{TemplateBinding MinimizedAreaVisibility}" DockPanel.Dock="Bottom" BorderThickness="{StaticResource OutlookBar_OuterBorderThickness}" BorderBrush="{StaticResource OutlookBar_Footer_OuterItemBorderBrush}" MinHeight="{TemplateBinding MinimizedAreaMinHeight}" Background="{StaticResource OutlookBar_Footer_BackgroundItem}">
                  <Border Padding="0 2" BorderThickness="{StaticResource OutlookBar_InnerBorderThickness}" BorderBrush="{StaticResource OutlookBar_Footer_InnerItemBorderBrush}">
                    <DockPanel HorizontalAlignment="Right">
                      <ToggleButton x:Name="DropDownButtonElement" MinWidth="15" DockPanel.Dock="Right" ClickMode="Press" Style="{StaticResource OutlookFooterToggleButton}" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                        <ToolTipService.ToolTip>
                          <TextBlock Text="Configure buttons" themes:LocalizationManager.ResourceKey="OutlookBarConfigureButtons" />
                        </ToolTipService.ToolTip>
                        <local:RadContextMenu.ContextMenu>
                          <telerikTabControl:DropDownMenu x:Name="DropDownMenuElement" StaysOpen="False" Placement="Bottom" Style="{TemplateBinding DropDownStyle}" ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}" ItemTemplateSelector="{TemplateBinding ItemDropDownContentTemplateSelector}" DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}" ItemContainerStyle="{StaticResource MenuItemStyle}" />
                        </local:RadContextMenu.ContextMenu>
                        <Path Data="M0,0 L5,0 3,3 0,0" Fill="{StaticResource ControlElement_Normal}" Width="5" Height="3" />
                      </ToggleButton>
                      <outlookBarPrimitives:MinimizedOutlookBarArea IsTabStop="False" x:Name="MinimizedAreaControl" DockPanel.Dock="Right" />
                    </DockPanel>
                  </Border>
                </Border>
                <ItemsPresenter DockPanel.Dock="Bottom" x:Name="ItemsPresenterElement" />
                <Thumb x:Name="HorizontalSplitter" DockPanel.Dock="Bottom" Style="{TemplateBinding HorizontalSplitterStyle}">
                  <ToolTipService.ToolTip>
                    <TextBlock Text="Start dragging in order to change items' position" themes:LocalizationManager.ResourceKey="OutlookBarHorizontalSplitter" />
                  </ToolTipService.ToolTip>
                </Thumb>
                <Grid>
                  <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding SelectedContentTemplate}" ContentTemplateSelector="{TemplateBinding SelectedContentTemplateSelector}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
                  <themes:RadDropDownButton DropDownIndicatorVisibility="Collapsed" x:Name="MinimizedContentElement" Style="{StaticResource MinimizedContentButtonStyle}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsMinimized, Converter={StaticResource BooleanToVisibilityConverter}}" DropDownPlacement="Right" Padding="4 0 0 0" Margin="0 1 0 0">
                    <telerikPrimitives:LayoutTransformControl>
                      <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                        <RotateTransform Angle="-90" />
                      </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                      <ContentPresenter Content="{TemplateBinding MinimizedButtonContent}" ContentTemplate="{TemplateBinding MinimizedButtonContentTemplate}" />
                    </telerikPrimitives:LayoutTransformControl>
                    <themes:RadDropDownButton.DropDownContent>
                      <Grid>
                        <ContentPresenter x:Name="MinimizedContentPresenter" ContentTemplate="{TemplateBinding SelectedContentTemplate}" ContentTemplateSelector="{TemplateBinding SelectedContentTemplateSelector}" />
                        <Thumb x:Name="PopupResizer" VerticalAlignment="Stretch" Cursor="SizeWE" Opacity="0" HorizontalAlignment="Right" Width="2" />
                      </Grid>
                    </themes:RadDropDownButton.DropDownContent>
                  </themes:RadDropDownButton>
                </Grid>
              </DockPanel>
            </Border>
            <Thumb x:Name="VerticalResizer" Opacity="0" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsVerticalResizerVisible, Converter={StaticResource BooleanToVisibilityConverter}}" Cursor="SizeWE" VerticalAlignment="Stretch" Width="2" HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalResizerAlignment, Converter={StaticResource AlignmentConverter}}">
              <ToolTipService.ToolTip>
                <TextBlock Text="Start dragging in order to resize the outlookbar" themes:LocalizationManager.ResourceKey="OutlookBarVerticalResizer" />
              </ToolTipService.ToolTip>
            </Thumb>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="MinimizedButtonContentTemplate" Value="{StaticResource DefaultMinimizedButtonContentTemplate}" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}" />
    <Setter Property="DropDownDisplayMode" Value="Visible" />
    <Setter Property="DropDownStyle" Value="{StaticResource DropDownStyle}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <outlookBarPrimitives:OutlookBarPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="MinimizedAreaMinHeight" Value="31" />
    <Setter Property="HorizontalSplitterStyle" Value="{StaticResource OutlookBarHorizontalSplitter}" />
    <Setter Property="Background" Value="{StaticResource ControlBackground}" />
    <Setter Property="KeyboardNavigation.TabNavigation" Value="Once" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
  </Style>
  <Style TargetType="telerikNavigation:RadOutlookBar" BasedOn="{StaticResource RadOutlookBarStyle}" />
  <!--	
			*******************************
					OUTLOOKBAR ITEM
			******************************* 
	-->
  <Style x:Key="RadOutlookBarItemStyle" TargetType="telerikNavigation:RadOutlookBarItem">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadOutlookBarItem">
          <Grid x:Name="wrapper">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStateGroup">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Selected">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="SelectVisual" Duration="0" Storyboard.TargetProperty="Opacity" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <!-- normal-->
            <Border BorderBrush="{TemplateBinding BorderBrush}" Margin="-1 0 -1 -1" BorderThickness="{TemplateBinding BorderThickness}">
              <Border BorderBrush="{StaticResource ControlItem_InnerBorder_Normal}" BorderThickness="1" Background="{TemplateBinding Background}" />
            </Border>
            <!-- Hover -->
            <Border x:Name="MouseOverVisual" Opacity="0" BorderBrush="{StaticResource ControlItem_OuterBorder_MouseOver}" BorderThickness="1" Margin="-1 0 -1 -1">
              <Border BorderBrush="{StaticResource ControlItem_InnerBorder_MouseOver}" BorderThickness="1" Background="{StaticResource ControlItem_Background_MouseOver}" />
            </Border>
            <!-- Select -->
            <Border x:Name="SelectVisual" Opacity="0" Margin="-1 0 -1 -1" BorderBrush="{StaticResource ControlItem_OuterBorder_Selected}" BorderThickness="1">
              <Border BorderBrush="{StaticResource ControlItem_InnerBorder_Selected}" BorderThickness="1" Background="{StaticResource ControlItem_Background_Selected}" />
            </Border>
            <!-- Disabled -->
            <Border x:Name="DisabledVisual" Opacity="0" Margin="-1 0 -1 -1" BorderBrush="{StaticResource ControlOuterBorder_Disabled}" BorderThickness="1">
              <Border BorderBrush="{StaticResource ControlInnerBorder_Disabled}" BorderThickness="1" Background="{StaticResource ControlBackground_Disabled}" />
            </Border>
            <Grid Margin="{TemplateBinding Padding}">
              <themes:RadDockPanel>
                <Image Source="{TemplateBinding Icon}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" themes:RadDockPanel.Dock="Left" Stretch="None" />
                <ContentControl x:Name="HeaderElement" Margin="3 0 0 0" FontWeight="{TemplateBinding FontWeight}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{TemplateBinding Foreground}" IsTabStop="False" />
              </themes:RadDockPanel>
            </Grid>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="BorderBrush" Value="{StaticResource ControlItem_OuterBorder_Normal}" />
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="FontWeight" Value="Normal" />
    <Setter Property="Background" Value="{StaticResource ControlItem_Background_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Left" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
  </Style>
  <Style TargetType="telerikNavigation:RadOutlookBarItem" BasedOn="{StaticResource RadOutlookBarItemStyle}" />
  <!-- RadBook-->
  <LinearGradientBrush x:Key="Book_Shadow1" EndPoint="0,0.5" StartPoint="1,0.5">
    <GradientStop Color="#5F000000" Offset="0.033" />
    <GradientStop Color="#00000000" Offset="1" />
    <GradientStop Color="#BF000000" Offset="0.008" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="Book_Shadow2" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#5F000000" Offset="0.033" />
    <GradientStop Color="#00000000" Offset="1" />
    <GradientStop Color="#BF000000" Offset="0.008" />
  </LinearGradientBrush>
  <Style x:Key="RadBookStyle" TargetType="telerikNavigation:RadBook">
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="Padding" Value="0" />
    <Setter Property="FlipDuration" Value="0:0:0.750" />
    <Setter Property="RightPageIndex" Value="1" />
    <Setter Property="IsKeyboardNavigationEnabled" Value="False" />
    <Setter Property="FirstPagePosition" Value="Left" />
    <Setter Property="FoldSize" Value="50,50" />
    <Setter Property="PageFlipMode" Value="SingleClick" />
    <Setter Property="IsVirtualizing" Value="True" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <book:BookPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadBook">
          <Grid x:Name="LayoutRoot">
            <Border Margin="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
              <ItemsPresenter />
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadBook" BasedOn="{StaticResource RadBookStyle}" />
  <Style x:Key="RadBookItemStyle" TargetType="telerikNavigation:RadBookItem">
    <Setter Property="Background" Value="White" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="ClipToBounds" Value="True" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadBookItem">
          <Grid x:Name="LayoutRoot">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="0.15*" />
              <ColumnDefinition Width="0.7*" />
              <ColumnDefinition Width="0.15*" />
            </Grid.ColumnDefinitions>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="3" />
            <ContentPresenter Content="{TemplateBinding Content}" Grid.ColumnSpan="3" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding BorderThickness}" />
            <!--RightBackPageShadow-->
            <Border x:Name="RightBackPageShadow" IsHitTestVisible="False" Grid.Column="2" Visibility="Collapsed" Background="{StaticResource Book_Shadow1}" />
            <!--RightBackPageShadowStatic-->
            <Border x:Name="RightBackPageShadowStatic" IsHitTestVisible="False" Grid.Column="2" Visibility="Collapsed" Background="{StaticResource Book_Shadow1}" />
            <!--LeftBackPageShadow-->
            <Border x:Name="LeftBackPageShadow" IsHitTestVisible="False" Grid.Column="0" Visibility="Collapsed" Background="{StaticResource Book_Shadow2}" />
            <!--RightUnderPageShadow-->
            <Border x:Name="RightUnderPageShadow" IsHitTestVisible="False" Grid.Column="0" Visibility="Collapsed" Background="{StaticResource Book_Shadow2}" />
            <!--LeftUnderPageShadow-->
            <Border x:Name="LeftUnderPageShadow" IsHitTestVisible="False" Grid.Column="2" Visibility="Collapsed" Background="{StaticResource Book_Shadow1}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadBookItem" BasedOn="{StaticResource RadBookItemStyle}" />
  <!-- RadBreadcrumb-->
  <themes:BooleanToVisibilityConverter x:Key="visibilityConverter" />
  <Style x:Key="imageStyle" TargetType="Image">
    <Setter Property="MaxHeight" Value="16" />
    <Setter Property="MaxWidth" Value="16" />
  </Style>
  <Style x:Key="ListBoxItemStyle" TargetType="ListBoxItem">
    <Setter Property="Padding" Value="0" />
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Top" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ListBoxItem">
          <Grid>
            <ContentPresenter x:Name="contentPresenter" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!-- split button style -->
  <Style x:Key="BreadcrumbToggleStyle" TargetType="telerik:RadToggleButton">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadToggleButton">
          <Grid SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Opacity" To="0.5" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="DisabledChecked">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1" />
                    <DoubleAnimation Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_DisabledChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_DisabledChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_DisabledChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOverChecked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerCheckedVisual" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOverChecked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="CheckStates">
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1" />
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="RenderTransform">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <TransformGroup>
                            <RotateTransform Angle="0" />
                          </TransformGroup>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unchecked" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStatesGroup">
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="Focused" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border x:Name="InnerBorder" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Normal}" />
            </Border>
            <!-- checked -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Checked}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border x:Name="InnerCheckedVisual" Background="{StaticResource ControlBackground_Checked}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Checked}" />
            </Border>
            <Path x:Name="DropDownIndicator" IsHitTestVisible="False" Fill="{StaticResource ControlElement_Normal}" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="5,3,5,3" Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" SnapsToDevicePixels="True">
              <Path.RenderTransform>
                <RotateTransform Angle="-90" />
              </Path.RenderTransform>
            </Path>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="SplitButtonStyle" TargetType="telerik:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="TogglePartStyle" Value="{StaticResource BreadcrumbToggleStyle}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadSplitButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background" Duration="0:0:0">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Disabled}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="IsCheckedState">
                <VisualState x:Name="UnChecked" />
                <VisualState x:Name="Checked">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonPart" Storyboard.TargetProperty="Background">
                      <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Checked}" />
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="IsOpenState">
                <VisualState x:Name="Closed" />
                <VisualState x:Name="Opened">
                  <Storyboard>
                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CheckedVisual" />
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Canvas.ZIndex)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </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>
                  </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>
                  </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>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="ButtonPartVisibility">
                <VisualState x:Name="ButtonInvisible">
                  <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.ColumnSpan)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>3</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="IsTabStop">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Boolean>True</sys:Boolean>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="ButtonVisible" />
              </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>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0:0:0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                      <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="{TemplateBinding CornerRadius}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsBackgroundVisible, Converter={StaticResource visibilityConverter}}">
              <Border x:Name="InnerBorder" CornerRadius="{TemplateBinding InnerCornerRadius}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="Transparent" />
            </Border>
            <!-- CheckedVisual -->
            <Border x:Name="CheckedVisual" Opacity="0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ControlOuterBorder_Highlighted}" CornerRadius="{TemplateBinding CornerRadius}">
              <Border Background="{StaticResource ControlBackground_Highlighted}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Highlighted}" />
            </Border>
            <!-- Focus -->
            <Border x:Name="CommonStatesWrapper" IsHitTestVisible="false">
              <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{StaticResource ControlOuterBorder_Focused}" Background="{StaticResource ControlBackground_Focused}">
                <Border x:Name="FocusInnerVisual" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Focused}" />
              </Border>
            </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>
              <themes:RadToggleButton x:Name="DropDownPart" IsTabStop="false" Margin="0,-1,0,0" Grid.Column="1" Grid.Row="2" MinWidth="11" CornerRadius="{TemplateBinding InnerCornerRadius}" MinHeight="7" Visibility="{TemplateBinding DropDownIndicatorVisibility}" Style="{TemplateBinding TogglePartStyle}" IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"></themes:RadToggleButton>
              <themes:RadButton x:Name="ButtonPart" Grid.Row="1" Grid.Column="1" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay,                Path=IsButtonPartVisible, Converter={StaticResource visibilityConverter}}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Style="{TemplateBinding ButtonPartStyle}" Padding="{TemplateBinding Padding}" Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Content}" CornerRadius="{TemplateBinding InnerCornerRadius}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"></themes:RadButton>
            </Grid>
            <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom" IsOpen="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
              <Grid>
                <Border x:Name="DropDownPopupBorder" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder}" Background="{StaticResource ControlBackground}" CornerRadius="0" Margin="0" MinWidth="3" MinHeight="3" Width="{TemplateBinding DropDownWidth}" Height="{TemplateBinding DropDownHeight}" MaxWidth="{TemplateBinding DropDownMaxWidth}" MaxHeight="{TemplateBinding DropDownMaxHeight}">
                  <ContentPresenter x:Name="DropDownPopupContent" Content="{TemplateBinding DropDownContent}" ContentTemplate="{TemplateBinding DropDownContentTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
                </Border>
              </Grid>
            </Popup>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!-- end split button style -->
  <!-- split overflow button style -->
  <Style x:Key="SplitButtonOverflowStyle" TargetType="telerik:RadSplitButton">
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="IsButtonPartVisible" Value="False" />
    <Setter Property="Width" Value="Auto" />
    <Setter Property="MinWidth" Value="14" />
    <Setter Property="MaxWidth" Value="150" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="DropDownMaxHeight" Value="700" />
    <Setter Property="DropDownMaxWidth" Value="400" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
  </Style>
  <Style x:Key="textSplitButton" TargetType="telerik:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}">
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="IsOpen" Value="false" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Padding" Value="3" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerik:RadSplitButton">
          <Grid>
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="Disabled" />
                <VisualState x:Name="Pressed" />
                <VisualState x:Name="MouseOver" />
              </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>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="(Canvas.ZIndex)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>1</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="DropDownButtonPosition">
                <VisualState x:Name="DropDownButtonAtLeft" />
                <VisualState x:Name="DropDownButtonAtTop" />
                <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" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="ButtonPartVisibility">
                <VisualState x:Name="ButtonInvisible">
                  <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.ColumnSpan)">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Int32>3</sys:Int32>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownPart" Storyboard.TargetProperty="IsTabStop">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Boolean>True</sys:Boolean>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="ButtonVisible" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStatesGroup">
                <VisualState x:Name="Unfocused" />
                <VisualState x:Name="Focused" />
              </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>
              <themes:RadToggleButton x:Name="DropDownPart" IsTabStop="false" Margin="0,-1,0,0" Grid.Column="1" Grid.Row="2" MinWidth="11" MinHeight="7" Visibility="{TemplateBinding DropDownIndicatorVisibility}" Style="{TemplateBinding TogglePartStyle}" IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"></themes:RadToggleButton>
              <ContentControl x:Name="Content" Content="{TemplateBinding Content}" Grid.Column="1" Grid.Row="1" Foreground="{TemplateBinding Foreground}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="Stretch" ContentTemplate="{TemplateBinding ContentTemplate}" />
            </Grid>
            <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom" IsOpen="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
              <Grid>
                <Border x:Name="DropDownPopupBorder" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder}" Background="{StaticResource ControlBackground}" CornerRadius="0" Margin="0" MinWidth="3" MinHeight="3" Width="{TemplateBinding DropDownWidth}" Height="{TemplateBinding DropDownHeight}" MaxWidth="{TemplateBinding DropDownMaxWidth}" MaxHeight="{TemplateBinding DropDownMaxHeight}">
                  <ContentPresenter x:Name="DropDownPopupContent" Content="{TemplateBinding DropDownContent}" ContentTemplate="{TemplateBinding DropDownContentTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
                </Border>
              </Grid>
            </Popup>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <ControlTemplate x:Key="BarItemControlTemplate" TargetType="telerikBreadcrumb:RadBreadcrumbBarItem">
    <Grid>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="ItemsCount">
          <VisualState x:Name="NoItems">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="SplitButton" Storyboard.TargetProperty="DropDownIndicatorVisibility">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="HasItems">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="SplitButton" Storyboard.TargetProperty="DropDownIndicatorVisibility">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Visible</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="IsOverflow">
          <VisualState x:Name="NotOverflowButton" />
          <VisualState x:Name="OverflowButton">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="SplitButton" Storyboard.TargetProperty="(FrameworkElement.Style)">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SplitButtonOverflowStyle}" />
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="ButtonPartVisibility">
          <VisualState x:Name="ButtonPartVisible" />
          <VisualState x:Name="ButtonPartHiden">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="SplitButton" Storyboard.TargetProperty="IsButtonPartVisible">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <sys:Boolean>False</sys:Boolean>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
        <VisualStateGroup x:Name="SplitButtonVisibility">
          <VisualState x:Name="SplitButtonVisible" />
          <VisualState x:Name="SplitButtonHiden">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="SplitButton" Storyboard.TargetProperty="Visibility">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <Visibility>Collapsed</Visibility>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border x:Name="headerContainer" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
        <themes:RadSplitButton x:Name="SplitButton" Margin="0" Foreground="{TemplateBinding Foreground}" Command="telerikBreadcrumb:RadBreadcrumbCommands.ClearSelectedItem" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" IsOpen="{Binding Path=IsPopupOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{TemplateBinding SplitButtonStyle}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}">
          <themes:RadSplitButton.DropDownContent>
            <ScrollViewer HorizontalScrollBarVisibility="Auto" MaxWidth="270" MinWidth="200" Padding="0" BorderThickness="0" VerticalScrollBarVisibility="Auto">
              <Grid>
                <Grid Width="32" HorizontalAlignment="Left">
                  <Border BorderThickness="0 0 1 0" HorizontalAlignment="Right" Width="2" BorderBrush="{StaticResource MenuPopupIconsSeparatorRight}" Background="{StaticResource MenuPopupIconsSeparatorLeft}" />
                  <Rectangle Fill="{StaticResource MenuPopupIconsBackground}" Margin="0 0 2 0" />
                </Grid>
                <ItemsPresenter Margin="3" />
              </Grid>
            </ScrollViewer>
          </themes:RadSplitButton.DropDownContent>
        </themes:RadSplitButton>
      </Border>
    </Grid>
  </ControlTemplate>
  <ControlTemplate x:Key="DropDownItemControlTemplate" TargetType="telerikBreadcrumb:RadBreadcrumbBarItem">
    <Grid>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="Mouse">
          <VisualState x:Name="MouseEnter">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="headerContainer" Storyboard.TargetProperty="BorderBrush">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlOuterBorder_Highlighted}" />
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlInnerBorder_Highlighted}" />
              </ObjectAnimationUsingKeyFrames>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Highlighted}" />
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="MouseLeave" />
        </VisualStateGroup>
        <VisualStateGroup x:Name="Selection">
          <VisualState x:Name="Select">
            <Storyboard>
              <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="contentControl" Storyboard.TargetProperty="FontWeight">
                <DiscreteObjectKeyFrame KeyTime="0">
                  <DiscreteObjectKeyFrame.Value>
                    <FontWeight>Bold</FontWeight>
                  </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
              </ObjectAnimationUsingKeyFrames>
            </Storyboard>
          </VisualState>
          <VisualState x:Name="UnSelect" />
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border x:Name="headerContainer" BorderThickness="1" BorderBrush="Transparent" Background="{TemplateBinding Background}" CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}">
        <Border x:Name="InnerBorder" BorderThickness="1" Background="Transparent" BorderBrush="Transparent" CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}">
          <Grid Margin="2">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="32" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Image Style="{StaticResource imageStyle}" HorizontalAlignment="Left" Margin="0 0 10 0" Source="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Image}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsIconVisible,           Converter={StaticResource visibilityConverter}}" />
            <ContentControl x:Name="contentControl" Grid.Column="1" Content="{TemplateBinding DropDownHeader}" ContentTemplate="{TemplateBinding DropDownHeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" />
          </Grid>
        </Border>
      </Border>
    </Grid>
  </ControlTemplate>
  <!--Breadcrumb-->
  <Style x:Key="RadBreadcrumbStyle" TargetType="telerikNavigation:RadBreadcrumb">
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="Focusable" Value="False" />
    <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
    <Setter Property="BarItemControlTemplate" Value="{StaticResource BarItemControlTemplate}" />
    <Setter Property="DropDownItemControlTemplate" Value="{StaticResource DropDownItemControlTemplate}" />
    <Setter Property="SplitButtonStyle" Value="{StaticResource SplitButtonStyle}" />
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="MinWidth" Value="150" />
    <Setter Property="OverflowButtonStyle" Value="{StaticResource SplitButtonOverflowStyle}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikNavigation:RadBreadcrumb">
          <Grid x:Name="outerGrid">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="Visibility">
                <VisualState x:Name="TextBoxVisibile">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="pathTextBox" Storyboard.TargetProperty="Opacity" To="1" />
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="BreadcrumbBar" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="ItemsPresenterVisible">
                  <Storyboard>
                    <DoubleAnimation Duration="0" Storyboard.TargetName="pathTextBox" Storyboard.TargetProperty="Opacity" To="0" />
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="BreadcrumbBar" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="IsTextModeEnabled">
                <VisualState x:Name="TextModeDisabled">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="historySplitButton" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Collapsed</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="TextModeEnabled" />
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="15" />
            </Grid.ColumnDefinitions>
            <Border Background="{TemplateBinding Background}" Grid.ColumnSpan="3" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
            <Image x:Name="image" Margin="5 0" Style="{StaticResource imageStyle}" Source="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CurrentContainer.Image}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsCurrentIconVisible,           Converter={StaticResource visibilityConverter}}" />
            <themes:RadSplitButton x:Name="historySplitButton" Style="{StaticResource textSplitButton}" Grid.Column="1" IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsHistoryOpen, Mode=TwoWay}" Grid.ColumnSpan="2">
              <themes:RadSplitButton.Content>
                <TextBox BorderThickness="0" MinHeight="20" Margin="1" Opacity="0" x:Name="pathTextBox" />
              </themes:RadSplitButton.Content>
              <themes:RadSplitButton.DropDownContent>
                <ListBox BorderThickness="0" x:Name="HistoryListBox" ItemContainerStyle="{StaticResource ListBoxItemStyle}" ItemsSource="{TemplateBinding HistoryItems}" Padding="2" HorizontalContentAlignment="Stretch" SelectedItem="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedHistoryItem, Mode=TwoWay}" />
              </themes:RadSplitButton.DropDownContent>
            </themes:RadSplitButton>
            <telerikBreadcrumb:RadBreadcrumbBar x:Name="BreadcrumbBar" Grid.Column="1" Background="{TemplateBinding Background}" ItemTemplateSelector="{TemplateBinding ItemTemplateSelector}" Foreground="{TemplateBinding Foreground}" ItemTemplate="{TemplateBinding ItemTemplate}" />
            <Popup x:Name="AutocompletePopup" Placement="Bottom" AllowsTransparency="True" StaysOpen="False" Focusable="false">
              <ListBox x:Name="AutoCompleteListBox" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder}" ItemsSource="{TemplateBinding AutocompleteItems}" MaxWidth="650" MaxHeight="500" MinHeight="30" MinWidth="100" ItemContainerStyle="{StaticResource ListBoxItemStyle}" SelectedItem="{Binding RelativeSource={RelativeSource TemplatedParent},           Path=SelectedAutocompleteItem, Mode=TwoWay}" />
            </Popup>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikNavigation:RadBreadcrumb" BasedOn="{StaticResource RadBreadcrumbStyle}" />
  <!--BreadcrumbBar-->
  <Style x:Key="RadBreadcrumbBarStyle" TargetType="telerikBreadcrumb:RadBreadcrumbBar">
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <StackPanel Orientation="Horizontal" />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="IsTabStop" Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikBreadcrumb:RadBreadcrumbBar">
          <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <ItemsPresenter x:Name="ItemsPresented" />
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikBreadcrumb:RadBreadcrumbBar" BasedOn="{StaticResource RadBreadcrumbBarStyle}" />
  <!--BreadcrumbBarItem-->
  <Style x:Key="RadBreadcrumbBarItemStyle" TargetType="telerikBreadcrumb:RadBreadcrumbBarItem">
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="BorderThickness" Value="0" />
  </Style>
  <Style TargetType="telerikBreadcrumb:RadBreadcrumbBarItem" BasedOn="{StaticResource RadBreadcrumbBarItemStyle}" />
  <!-- RadCarousel-->
  <ControlTemplate x:Key="CarouselDataFieldPresenterTemplate" TargetType="{x:Type telerikNavigation:CarouselDataFieldPresenter}">
    <Border Background="Transparent" Margin="7" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
      <Grid>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="105" />
          <ColumnDefinition Width="*" />
          <ColumnDefinition Width="105" />
        </Grid.ColumnDefinitions>
        <TextBlock TextElement.FontWeight="Bold" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{TemplateBinding Header}" />
        <ContentPresenter Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center" Content="{TemplateBinding Content}">
          <ContentPresenter.ContentTemplate>
            <DataTemplate>
              <TextBlock TextTrimming="None" TextWrapping="Wrap" Text="{Binding}" />
            </DataTemplate>
          </ContentPresenter.ContentTemplate>
        </ContentPresenter>
      </Grid>
    </Border>
  </ControlTemplate>
  <Style x:Key="CarouselDataFieldPresenterStyle" TargetType="{x:Type telerikNavigation:CarouselDataFieldPresenter}">
    <Setter Property="Template" Value="{StaticResource CarouselDataFieldPresenterTemplate}" />
  </Style>
  <Style TargetType="{x:Type telerikNavigation:CarouselDataFieldPresenter}" BasedOn="{StaticResource CarouselDataFieldPresenterStyle}" />
  <ControlTemplate x:Key="CarouselItemScrollViewerTemplate" TargetType="{x:Type telerikNavigation:CarouselScrollViewer}">
    <Grid x:Name="Grid" Margin="0,-1,-1,-1" Background="Transparent">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="*" />
        <RowDefinition Height="Auto" />
      </Grid.RowDefinitions>
      <ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" />
      <ScrollBar Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_VerticalScrollBar" Grid.Column="1" Grid.Row="0" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="VerticalScrollBar" />
      <ScrollBar Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="HorizontalScrollBar" />
    </Grid>
  </ControlTemplate>
  <ControlTemplate x:Key="CarouselDataRecordPresenterTemplate" TargetType="{x:Type telerikNavigation:CarouselDataRecordPresenter}">
    <local:CarouselScrollViewer Template="{StaticResource CarouselItemScrollViewerTemplate}" VerticalScrollBarVisibility="Auto">
      <ItemsControl ItemsSource="{Binding Path=FieldDescriptors, RelativeSource={RelativeSource AncestorType={x:Type telerikNavigation:RadCarousel}}}" Background="Transparent" ClipToBounds="True">
        <ItemsControl.ItemTemplate>
          <DataTemplate>
            <local:CarouselDataFieldPresenter Data="{Binding DataContext, RelativeSource={RelativeSource AncestorType=telerikNavigation:CarouselDataRecordPresenter}}" />
          </DataTemplate>
        </ItemsControl.ItemTemplate>
      </ItemsControl>
    </local:CarouselScrollViewer>
  </ControlTemplate>
  <Style x:Key="CarouselDataRecordPresenterStyle" TargetType="{x:Type telerikNavigation:CarouselDataRecordPresenter}">
    <Setter Property="Template" Value="{StaticResource CarouselDataRecordPresenterTemplate}" />
  </Style>
  <Style TargetType="{x:Type telerikNavigation:CarouselDataRecordPresenter}" BasedOn="{StaticResource CarouselDataRecordPresenterStyle}" />
  <carousel:ArithmeticValueConverter x:Key="ArithmeticValueConverter" />
  <ControlTemplate x:Key="CarouselItemTemplate" TargetType="{x:Type telerikNavigation:CarouselItem}">
    <Grid ClipToBounds="False" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
      <Border x:Name="reflection" RenderTransformOrigin="0.5, 1" ClipToBounds="False" Width="{Binding ElementName=dialog_Copy, Path=ActualWidth}" Opacity="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.Opacity}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.Visibility}" BorderBrush="White" IsHitTestVisible="False" BorderThickness="0">
        <Border.RenderTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="{Binding RelativeSource={RelativeSource TemplatedParent},                                                          Path=ReflectionSettings.WidthOffset,                                                          Converter={StaticResource ArithmeticValueConverter},                                                          ConverterParameter=1}" ScaleY="{Binding RelativeSource={RelativeSource TemplatedParent},                                                          Path=ReflectionSettings.HeightOffset,                                                          Converter={StaticResource ArithmeticValueConverter},                                                          ConverterParameter=-1}" CenterY="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.OffsetY}" />
            <TranslateTransform X="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.OffsetX}" />
            <SkewTransform AngleX="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.Angle}" />
          </TransformGroup>
        </Border.RenderTransform>
        <Border.OpacityMask>
          <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
              <GradientStop Offset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ReflectionSettings.HiddenPercentage}" Color="Transparent" />
              <GradientStop Offset="1" Color="Black" />
            </LinearGradientBrush.GradientStops>
          </LinearGradientBrush>
        </Border.OpacityMask>
        <Border.Background>
          <VisualBrush Visual="{Binding ElementName=dialog_Copy}"></VisualBrush>
        </Border.Background>
      </Border>
      <Border x:Name="dialog_Copy" BorderThickness="1" CornerRadius="4" Background="{TemplateBinding BorderBrush}" BorderBrush="{StaticResource Carousel_ItemOuterBorder}">
        <Border x:Name="CarouselItemBackground" BorderBrush="{StaticResource Carousel_ItemInnerBorder}" BorderThickness="1" CornerRadius="3" Margin="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
          <ContentPresenter x:Name="CarouselContentPresenter" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
        </Border>
      </Border>
    </Grid>
    <ControlTemplate.Triggers>
      <Trigger Property="IsSelected" Value="True">
        <Setter TargetName="CarouselItemBackground" Property="Background" Value="{StaticResource Carousel_ItemBackground_Selected}" />
        <Setter TargetName="CarouselItemBackground" Property="BorderBrush" Value="{StaticResource Carousel_ItemInnerBorder_Selected}" />
        <Setter Property="Foreground" Value="{StaticResource Carousel_ItemForeground_Selected}" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>
  <Style x:Key="CarouselItemStyle" TargetType="{x:Type telerikNavigation:CarouselItem}">
    <Setter Property="Template" Value="{StaticResource CarouselItemTemplate}" />
    <Setter Property="Padding" Value="0" />
    <Setter Property="Background" Value="{StaticResource Carousel_ItemBackground}" />
    <Setter Property="BorderBrush" Value="{StaticResource Carousel_ItemBorder}" />
    <Setter Property="BorderThickness" Value="6" />
    <Setter Property="VerticalContentAlignment" Value="Top" />
    <Setter Property="HorizontalContentAlignment" Value="Left" />
  </Style>
  <Style TargetType="{x:Type telerikNavigation:CarouselItem}" BasedOn="{StaticResource CarouselItemStyle}" />
  <DataTemplate x:Key="AutoGeneratedItemContentTemplate">
    <local:CarouselDataRecordPresenter />
  </DataTemplate>
  <DataTemplate x:Key="DefaultItemContentPresenterTemplate">
    <ContentPresenter Content="{Binding}" />
  </DataTemplate>
  <local:CarouselItemContentTemplateSelector x:Key="CarouselItemContentTemplateSelector" />
  <Style x:Key="CarouselItemContentPresenterStyle" TargetType="{x:Type telerikNavigation:CarouselItemContentPresenter}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ContentControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
          <ContentPresenter Content="{Binding}" ContentTemplateSelector="{StaticResource CarouselItemContentTemplateSelector}" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="AutoGeneratedItemContentTemplate" Value="{StaticResource AutoGeneratedItemContentTemplate}" />
    <Setter Property="DefaultItemContentPresenterTemplate" Value="{StaticResource DefaultItemContentPresenterTemplate}" />
  </Style>
  <Style TargetType="telerikNavigation:CarouselItemContentPresenter" BasedOn="{StaticResource CarouselItemContentPresenterStyle}" />
  <ControlTemplate x:Key="CarouselScrollButtonTemplate" TargetType="{x:Type carousel:CarouselScrollButton}">
    <Border x:Name="ButtonOuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="1">
      <Border x:Name="ButtonInnerBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource Carousel_ButtonInnerBorder}" Background="{TemplateBinding Background}">
        <Grid x:Name="Arrow" HorizontalAlignment="Center" VerticalAlignment="Center">
          <Path x:Name="ArrowBackground" Fill="{StaticResource Carousel_ButtonContentShadow}" Margin="0,1,0,0" Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
            <Path.RenderTransform>
              <TransformGroup>
                <ScaleTransform ScaleX="1" ScaleY="1" />
                <SkewTransform AngleX="0" AngleY="0" />
                <RotateTransform Angle="0" />
                <TranslateTransform />
              </TransformGroup>
            </Path.RenderTransform>
          </Path>
          <Path x:Name="ArrowForeground" Fill="{StaticResource Carousel_ButtonContent}" Margin="0,0,0,1" Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
            <Path.RenderTransform>
              <TransformGroup>
                <ScaleTransform ScaleX="1" ScaleY="1" />
                <SkewTransform AngleX="0" AngleY="0" />
                <RotateTransform Angle="0" />
                <TranslateTransform />
              </TransformGroup>
            </Path.RenderTransform>
          </Path>
        </Grid>
      </Border>
    </Border>
    <ControlTemplate.Triggers>
      <Trigger Property="IsMouseOver" Value="True">
        <Setter Property="BorderBrush" TargetName="ButtonOuterBorder" Value="{StaticResource Carousel_ButtonOuterBorder_Over}" />
        <Setter Property="BorderBrush" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonInnerBorder_Over}" />
        <Setter Property="Background" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonBackground_Over}" />
      </Trigger>
      <Trigger Property="IsPressed" Value="True">
        <Setter Property="BorderBrush" TargetName="ButtonOuterBorder" Value="{StaticResource Carousel_ButtonOuterBorder_Pressed}" />
        <Setter Property="BorderBrush" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonInnerBorder_Pressed}" />
        <Setter Property="Background" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonBackground_Pressed}" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="LineUp">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M3,0L4,0 4,1.0000002 5,1.0000002 5,2.0000002 6,2.0000002 6,3.0000002 7,3.0000002 7,4.0000002 0,4.0000002 0,3.0000002 1,3.0000002 1,2.0000002 2,2.0000002 2,1.0000002 3,1.0000002z" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M3,0L4,0 4,1.0000002 5,1.0000002 5,2.0000002 6,2.0000002 6,3.0000002 7,3.0000002 7,4.0000002 0,4.0000002 0,3.0000002 1,3.0000002 1,2.0000002 2,2.0000002 2,1.0000002 3,1.0000002z" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="LineLeft">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M3,0L4,0 4,7 3,7 3,6 2,6 2,5 1,5 1,4 0,4 0,3 1,3 1,2 2,2 2,1 3,1z" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M3,0L4,0 4,7 3,7 3,6 2,6 2,5 1,5 1,4 0,4 0,3 1,3 1,2 2,2 2,1 3,1z" />
        <Setter Property="Width" Value="30" />
        <Setter Property="Height" Value="18" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="LineRight">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M0,0L1.0000001,0 1.0000001,1 2,1 2,2 3,2 3,3 4,3 4,4 3,4 3,5 2,5 2,6 1.0000001,6 1.0000001,7 0,7z" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M0,0L1.0000001,0 1.0000001,1 2,1 2,2 3,2 3,3 4,3 4,4 3,4 3,5 2,5 2,6 1.0000001,6 1.0000001,7 0,7z" />
        <Setter Property="Width" Value="30" />
        <Setter Property="Height" Value="18" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="PageUp">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M3.0000001,5L4.0000001,5 4.0000001,6.0000002 5.0000001,6.0000002 5.0000001,7.0000002 6.0000001,7.0000002 6.0000001,8.0000002 7.0000001,8.0000002 7.0000001,9 0,9 0,8.0000002 1.0000001,8.0000002 1.0000001,7.0000002 2.0000001,7.0000002 2.0000001,6.0000002 3.0000001,6.0000002z M0,4.0000002L0,3.0000002 1.0000001,3.0000002 1.0000001,2.0000002 2.0000001,2.0000002 2.0000001,1.0000002 3.0000001,1.0000002 3.0000001,0 4.0000001,0 4.0000001,1.0000002 5.0000001,1.0000002 5.0000001,2.0000002 6.0000001,2.0000002 6.0000001,3.0000002 7.0000001,3.0000002 7.0000001,4.0000002" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M3.0000001,5L4.0000001,5 4.0000001,6.0000002 5.0000001,6.0000002 5.0000001,7.0000002 6.0000001,7.0000002 6.0000001,8.0000002 7.0000001,8.0000002 7.0000001,9 0,9 0,8.0000002 1.0000001,8.0000002 1.0000001,7.0000002 2.0000001,7.0000002 2.0000001,6.0000002 3.0000001,6.0000002z M0,4.0000002L0,3.0000002 1.0000001,3.0000002 1.0000001,2.0000002 2.0000001,2.0000002 2.0000001,1.0000002 3.0000001,1.0000002 3.0000001,0 4.0000001,0 4.0000001,1.0000002 5.0000001,1.0000002 5.0000001,2.0000002 6.0000001,2.0000002 6.0000001,3.0000002 7.0000001,3.0000002 7.0000001,4.0000002" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="PageDown">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M0,5L7.0000001,5 7.0000001,6 6.0000001,6 6.0000001,7 5.0000001,7 5.0000001,8 4.0000001,8 4.0000001,9 3.0000001,9 3.0000001,8 2.0000001,8 2.0000001,7 1.0000001,7 1.0000001,6 0,6z M0,0L7.0000001,0 7.0000001,1 6.0000001,1 6.0000001,2 5.0000001,2 5.0000001,3 4.0000001,3 4.0000001,4 3.0000001,4 3.0000001,3 2.0000001,3 2.0000001,2 1.0000001,2 1.0000001,1 0,1z" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M0,5L7.0000001,5 7.0000001,6 6.0000001,6 6.0000001,7 5.0000001,7 5.0000001,8 4.0000001,8 4.0000001,9 3.0000001,9 3.0000001,8 2.0000001,8 2.0000001,7 1.0000001,7 1.0000001,6 0,6z M0,0L7.0000001,0 7.0000001,1 6.0000001,1 6.0000001,2 5.0000001,2 5.0000001,3 4.0000001,3 4.0000001,4 3.0000001,4 3.0000001,3 2.0000001,3 2.0000001,2 1.0000001,2 1.0000001,1 0,1z" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="PageLeft">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M8,0L9,0 9,7.0000001 8,7.0000001 8,6.0000001 7,6.0000001 7,5.0000001 6,5.0000001 6,4.0000001 5,4.0000001 5,3.0000001 6,3.0000001 6,2.0000001 7,2.0000001 7,1.0000001 8,1.0000001z M3,0L4,0 4,7.0000001 3,7.0000001 3,6.0000001 2,6.0000001 2,5.0000001 1,5.0000001 1,4.0000001 0,4.0000001 0,3.0000001 1,3.0000001 1,2.0000001 2,2.0000001 2,1.0000001 3,1.0000001z" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M8,0L9,0 9,7.0000001 8,7.0000001 8,6.0000001 7,6.0000001 7,5.0000001 6,5.0000001 6,4.0000001 5,4.0000001 5,3.0000001 6,3.0000001 6,2.0000001 7,2.0000001 7,1.0000001 8,1.0000001z M3,0L4,0 4,7.0000001 3,7.0000001 3,6.0000001 2,6.0000001 2,5.0000001 1,5.0000001 1,4.0000001 0,4.0000001 0,3.0000001 1,3.0000001 1,2.0000001 2,2.0000001 2,1.0000001 3,1.0000001z" />
        <Setter Property="Width" Value="30" />
        <Setter Property="Height" Value="18" />
      </Trigger>
      <Trigger Property="CarouselScrollButtonType" Value="PageRight">
        <Setter TargetName="ArrowBackground" Property="Data" Value="M5,0L6.0000002,0 6.0000002,1.0000001 7,1.0000001 7,2.0000001 8,2.0000001 8,3.0000001 9,3.0000001 9,4.0000001 8,4.0000001 8,5.0000001 7,5.0000001 7,6.0000001 6.0000002,6.0000001 6.0000002,7.0000001 5,7.0000001z M0,0L1,0 1,1.0000001 2,1.0000001 2,2.0000001 3,2.0000001 3,3.0000001 4,3.0000001 4,4.0000001 3,4.0000001 3,5.0000001 2,5.0000001 2,6.0000001 1,6.0000001 1,7.0000001 0,7.0000001z" />
        <Setter TargetName="ArrowForeground" Property="Data" Value="M5,0L6.0000002,0 6.0000002,1.0000001 7,1.0000001 7,2.0000001 8,2.0000001 8,3.0000001 9,3.0000001 9,4.0000001 8,4.0000001 8,5.0000001 7,5.0000001 7,6.0000001 6.0000002,6.0000001 6.0000002,7.0000001 5,7.0000001z M0,0L1,0 1,1.0000001 2,1.0000001 2,2.0000001 3,2.0000001 3,3.0000001 4,3.0000001 4,4.0000001 3,4.0000001 3,5.0000001 2,5.0000001 2,6.0000001 1,6.0000001 1,7.0000001 0,7.0000001z" />
        <Setter Property="Width" Value="30" />
        <Setter Property="Height" Value="18" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>
  <Style x:Key="CarouselScrollButtonStyle" TargetType="{x:Type carousel:CarouselScrollButton}">
    <Setter Property="Background" Value="{StaticResource Carousel_ButtonBackground}" />
    <Setter Property="BorderBrush" Value="{StaticResource Carousel_ButtonOuterBorder}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Height" Value="30" />
    <Setter Property="Width" Value="18" />
    <Setter Property="HorizontalContentAlignment" Value="Center" />
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="Template" Value="{StaticResource CarouselScrollButtonTemplate}" />
  </Style>
  <Style TargetType="{x:Type carousel:CarouselScrollButton}" BasedOn="{StaticResource CarouselScrollButtonStyle}" />
  <!-- PANEL SCROLL VIEWER -->
  <ControlTemplate x:Key="CarouselVerticalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
    <Grid SnapsToDevicePixels="true" x:Name="Bg" Background="Transparent" VerticalAlignment="Bottom">
      <Grid.RowDefinitions>
        <RowDefinition Height="{TemplateBinding Height}" />
        <RowDefinition Height="{TemplateBinding Height}" />
        <RowDefinition Height="{TemplateBinding Height}" />
        <RowDefinition Height="{TemplateBinding Height}" />
      </Grid.RowDefinitions>
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageUp" Grid.Row="0" Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineUp" Grid.Row="1" Command="{x:Static ScrollBar.LineUpCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineDown" Grid.Row="2" Command="{x:Static ScrollBar.LineDownCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageDown" Grid.Row="3" Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
    </Grid>
  </ControlTemplate>
  <Style x:Key="CarouselVerticalScrollBarStyle" TargetType="ScrollBar">
    <Setter Property="Width" Value="30" />
    <Setter Property="MinWidth" Value="30" />
    <Setter Property="Height" Value="Auto" />
    <Setter Property="MinHeight" Value="30" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Template" Value="{StaticResource CarouselVerticalScrollBarTemplate}" />
  </Style>
  <ControlTemplate x:Key="CarouselHorizontalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
    <Grid SnapsToDevicePixels="true" x:Name="Bg" Background="{TemplateBinding Background}" HorizontalAlignment="Right">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="{TemplateBinding Width}" />
        <ColumnDefinition Width="{TemplateBinding Width}" />
        <ColumnDefinition Width="{TemplateBinding Width}" />
        <ColumnDefinition Width="{TemplateBinding Width}" />
      </Grid.ColumnDefinitions>
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageLeft" Grid.Column="0" Command="{x:Static ScrollBar.PageUpCommand}" />
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineLeft" Grid.Column="1" Command="{x:Static ScrollBar.LineLeftCommand}" />
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineRight" Grid.Column="2" Command="{x:Static ScrollBar.LineRightCommand}" />
      <carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageRight" Grid.Column="3" Command="{x:Static ScrollBar.PageDownCommand}" />
    </Grid>
  </ControlTemplate>
  <Style x:Key="CarouselHorizontalScrollBarStyle" TargetType="ScrollBar">
    <Setter Property="Width" Value="Auto" />
    <Setter Property="MinWidth" Value="30" />
    <Setter Property="Height" Value="30" />
    <Setter Property="MinHeight" Value="30" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Template" Value="{StaticResource CarouselHorizontalScrollBarTemplate}" />
  </Style>
  <ControlTemplate x:Key="CarouselScrollViewerTemplate" TargetType="{x:Type telerikNavigation:CarouselScrollViewer}">
    <Grid x:Name="Grid" Background="{TemplateBinding Background}">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="*" />
        <RowDefinition Height="Auto" />
      </Grid.RowDefinitions>
      <ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" />
      <ScrollBar Style="{StaticResource CarouselVerticalScrollBarStyle}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_VerticalScrollBar" Grid.Column="1" Grid.Row="0" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="VerticalScrollBar" />
      <ScrollBar Style="{StaticResource CarouselHorizontalScrollBarStyle}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="HorizontalScrollBar" />
    </Grid>
  </ControlTemplate>
  <ItemsPanelTemplate x:Key="CarouselItemsControlItemPanelTemplate">
    <local:RadCarouselPanel x:Name="CarouselPanel" IsPathVisible="False" />
  </ItemsPanelTemplate>
  <ControlTemplate x:Key="CarouselItemsControlTemplate" TargetType="{x:Type carousel:CarouselItemsControl}">
    <local:CarouselScrollViewer CanContentScroll="True" Template="{StaticResource CarouselScrollViewerTemplate}" HorizontalScrollBarVisibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikNavigation:RadCarousel}}, Path=HorizontalScrollBarVisibility}" VerticalScrollBarVisibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikNavigation:RadCarousel}}, Path=VerticalScrollBarVisibility}">
      <ItemsPresenter x:Name="ItemsPresenter" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
    </local:CarouselScrollViewer>
  </ControlTemplate>
  <Style x:Key="CarouselItemsControlStyle" TargetType="{x:Type carousel:CarouselItemsControl}">
    <Setter Property="Template" Value="{StaticResource CarouselItemsControlTemplate}" />
    <Setter Property="ItemTemplate">
      <Setter.Value>
        <DataTemplate>
          <local:CarouselItemContentPresenter />
        </DataTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="ItemsPanel" Value="{StaticResource CarouselItemsControlItemPanelTemplate}" />
  </Style>
  <Style TargetType="{x:Type carousel:CarouselItemsControl}" BasedOn="{StaticResource CarouselItemsControlStyle}" />
  <ControlTemplate x:Key="RadCarouselTemplate" TargetType="{x:Type telerikNavigation:RadCarousel}">
    <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="{TemplateBinding Margin}">
      <carousel:CarouselItemsControl x:Name="PART_RootItemsControl" />
    </Border>
  </ControlTemplate>
  <Style x:Key="RadCarouselStyle" TargetType="{x:Type telerikNavigation:RadCarousel}">
    <Setter Property="Template" Value="{StaticResource RadCarouselTemplate}" />
    <Setter Property="ClipToBounds" Value="True" />
    <Setter Property="Background" Value="{StaticResource Carousel_ControlBackground}" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
  </Style>
  <Style TargetType="{x:Type telerikNavigation:RadCarousel}" BasedOn="{StaticResource RadCarouselStyle}" />
</ResourceDictionary>