<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	
	xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"

	xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
	xmlns:themes="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"
	xmlns:telerikRibbonBarPrimitives="clr-namespace:Telerik.Windows.Controls.RibbonBar.Primitives;assembly=Telerik.Windows.Controls.RibbonBar"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikTabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    xmlns:telerikNavigationPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikAnimation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
	xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikKeyTips="clr-namespace:Telerik.Windows.Controls.RibbonBar.KeyTips;assembly=Telerik.Windows.Controls.RibbonBar"


>

    <SolidColorBrush x:Key="ApplicationRibbonButtonOverBorder" Color="#CC636363" />
<LinearGradientBrush x:Key="ApplicationRibbonButtonOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ApplicationRibbonButtonOverBorderInner" Color="#CCFFFFFF" />
<SolidColorBrush x:Key="RibbonButtonDropDownArrow" Color="#000000" />
<SolidColorBrush x:Key="RibbonButtonDropDownArrowBorder" Color="#eaf2f9" />
<SolidColorBrush x:Key="DropDownPopupBorderBrush" Color="#868686" />
<SolidColorBrush x:Key="DropDownPopupBackgroundBrush" Color="#FAFAFA" />
<SolidColorBrush x:Key="RadRibbonBarButtonOverBorder" Color="#CC636363" />
<SolidColorBrush x:Key="RadRibbonBarButtonOverBorderInner" Color="#CCFFFFFF" />
<LinearGradientBrush x:Key="RadRibbonBarButtonOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonPressedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonPressedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonPressedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarDropDownButtonPressedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<telerik:TransparentTheme x:Key="Theme" />
<SolidColorBrush x:Key="RibbonPopupBackgroundBrush" Color="#FAFAFA" />
<SolidColorBrush x:Key="ApplicationMenuOuterBorderBrush" Color="#66000000" />
<SolidColorBrush x:Key="RibbonPopupForegroundBrush" Color="#464646" />
<SolidColorBrush x:Key="ApplicationMenuBackgroundBrush" Color="#CCFFFFFF" />
<SolidColorBrush x:Key="ApplicationMenuInnerBorderBrush" Color="#CCFFFFFF" />
<LinearGradientBrush x:Key="ApplicationMenuTopBorderBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.45"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.451"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuMiddleBorderBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0" Color="#66FFFFFF" />
        <GradientStop Offset="1" Color="#66FFFFFF" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ApplicationMenuContentOuterBorderBrush" Color="#66000000" />
<SolidColorBrush x:Key="ApplicationMenuContentInnerBorderBrush" Color="#CCFFFFFF" />
<SolidColorBrush x:Key="ApplicationMenuDividerLightBrush" Color="#F5F5F5" />
<SolidColorBrush x:Key="ApplicationMenuContentBackgroundBrush" Color="#E9EAEE" />
<LinearGradientBrush x:Key="ApplicationMenuFooterBorderBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#CCFFFFFF" Offset="1"/>
        <GradientStop Color="#66FFFFFF" />
        <GradientStop Color="#99FFFFFF" Offset="0.51"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.5"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonForegroundBrush" Color="#464646" />
<Color x:Key="RibbonGroupNormalInnerBorderColor1">#CCFFFFFF</Color>
<Color x:Key="RibbonGroupNormalInnerBorderColor2">#CCFFFFFF</Color>
<Color x:Key="RibbonGroupBackground1">#66FFFFFF</Color>
<Color x:Key="RibbonGroupBackground2">#2FFFFFFF</Color>
<Color x:Key="RibbonGroupBackground3">#2FFFFFFF</Color>
<Color x:Key="RibbonGroupBackground4">#00FFFFFF</Color>
<Color x:Key="RibbonGroupNormalOuterBorderColor1">#66636363</Color>
<Color x:Key="RibbonGroupNormalOuterBorderColor2">#66636363</Color>
<Color x:Key="RibbonGroupNormalTrayBackgroundColor1">#33000000</Color>
<Color x:Key="RibbonGroupNormalTrayBackgroundColor2">#7FFFFFFF</Color>
<SolidColorBrush x:Key="RibbonGroupHeaderBrush" Color="#000000" />
<ImageBrush ImageSource="/Telerik.Windows.Controls.RibbonBar;component/RibbonGroupDialogLauncherBlack.png" x:Key="RibbonGroupDialogLauncher" Stretch="None" />
<Color x:Key="RibbonGroupHotInnerBorderColor1">#f6f6f7</Color>
<Color x:Key="RibbonGroupHotInnerBorderColor2">#e9e9e9</Color>
<Color x:Key="RibbonGroupHotOuterBorderColor1">#aeb0b4</Color>
<Color x:Key="RibbonGroupHotOuterBorderColor2">#818181</Color>
<Color x:Key="RibbonGroupHotTrayBackgroundColor1">#33000000</Color>
<Color x:Key="RibbonGroupHotTrayBackgroundColor2">#7FFFFFFF</Color>
<Color x:Key="RibbonGroupPushedInnerBorderColor1">#fafafa</Color>
<Color x:Key="RibbonGroupPushedInnerBorderColor2">#ffffff</Color>
<Color x:Key="RibbonGroupPushedOuterBorderColor1">#bcc1d6</Color>
<Color x:Key="RibbonGroupPushedOuterBorderColor2">#748dbb</Color>
<LinearGradientBrush x:Key="RibbonGroupPushedBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#f6f6f6" />
		<GradientStop Offset="0.2" Color="#d6dce4" />
		<GradientStop Offset="0.2" Color="#cbd2dd" />
		<GradientStop Offset="1" Color="#ebebeb" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ButtonGroupBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush Color="#CC636363" x:Key="ButtonGroupOuterBorderBrush"/>
<SolidColorBrush Color="#CCFFFFFF" x:Key="ButtonGroupInnerBorderBrush" />
<SolidColorBrush x:Key="ButtonGroupDividerDarkBrush" Color="#359BB7E0" />
<SolidColorBrush x:Key="ButtonGroupDividerLightBrush" Color="#44FFFFFF" />
<LinearGradientBrush x:Key="RadGalleryItemOver_border" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadGalleryItemOver_background" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadGalleryItemOver_Innerborder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadGalleryItemPressed_border" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadGalleryItemPressed_background" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadGalleryItemPressed_Innerborder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="GroupHeaderBackgroundBrush" Color="#ebebeb" />
<SolidColorBrush x:Key="GroupHeaderBorderBrush" Color="#C5C5C5" />
<RadialGradientBrush x:Key="ApplicationMenuButtonBackground" Center="0.5,0.0" GradientOrigin="0.5,0.0" RadiusX="2.5" RadiusY="1">
		<GradientStop Offset="0" Color="#FEFFFFFF" />
		<GradientStop Offset="0.25" Color="#AAFFFFFF" />
		<GradientStop Offset="0.5" Color="#55FFFFFF" />
		<GradientStop Offset="0.5" Color="#00FFFFFF" />
		<GradientStop Offset="1" Color="#66FFFFFF" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuButtonBorder" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#7F8FA8" />
		<GradientStop Offset="0.5" Color="#94A2B6" />
		<GradientStop Offset="1" Color="#76889E" />
	</LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuButtonInnerBackground" GradientOrigin="0.25,0.25">
		<GradientStop Offset="0" Color="#AAFFFFFF" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuButtonInnerBorder" StartPoint="0,0" EndPoint="1,1">
		<GradientStop Offset="0" Color="#FFFFFF" />
		<GradientStop Offset="0.5" Color="#EFF2F6" />
		<GradientStop Offset="1" Color="#FFFFFF" />
	</LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuButtonMiddelBackground" Center="0.5,0.9" GradientOrigin="0.5,0.9">
		<GradientStop Offset="0.2" Color="White" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuOverButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuOverButtonBorder" Center="0.5,0.0" GradientOrigin="0.5,0.0" RadiusX="2.5" RadiusY="1">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </RadialGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuOverButtonInnerBackground" GradientOrigin="0.25,0.25">
		<GradientStop Offset="0" Color="#AAFFFFFF" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuOverButtonInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuOverButtonMiddelBackground" Center="0.5,0.9" GradientOrigin="0.5,0.9">
        <GradientStop Offset="0.1" Color="#66000000" />
        <GradientStop Offset="1" Color="Transparent" />
    </RadialGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuPressedButtonBackground" Center="0.5,0.0" GradientOrigin="0.5,0.0" RadiusX="2.5" RadiusY="1">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuPressedButtonBorder" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuPressedButtonInnerBackground" GradientOrigin="0.25,0.25">
		<GradientStop Offset="0" Color="#AAFFFFFF" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuPressedButtonInnerBorder" StartPoint="0,0" EndPoint="1,1">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuPressedButtonMiddelBackground" Center="0.5,0.9" GradientOrigin="0.5,0.9">
        <GradientStop Offset="0.1" Color="#66000000" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="TabStripTabDividerBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#4c4c4c" />
		<GradientStop Offset="0.3" Color="#3b3b3b" />
		<GradientStop Offset="1" Color="#363636" />
	</LinearGradientBrush>
<Color x:Key="TabStripTabHotOuterBorderColor">#CC727272</Color>
<Color x:Key="TabStripTabHotInnerBorderColor">#FFFFFFFF</Color>
<Color x:Key="TabStripTabHotBackgroundColor1">#E5FFFFFF</Color>
<Color x:Key="TabStripTabHotBackgroundColor2">#66FFFFFF</Color>
<Color x:Key="TabStripTabSelectedOuterBorderColor">#B2000000</Color>
<Color x:Key="TabStripTabSelectedLeftInnerBorderColor">#B2FFFFFF</Color>
<Color x:Key="TabStripTabSelectedRightInnerBorderColor">#B2FFFFFF</Color>
<Color x:Key="TabStripTabSelectedMiddleInnerBorderColor">#B2FFFFFF</Color>
<Color x:Key="TabStripTabSelectedBackgroundColor1">#99CDCDCD</Color>
<Color x:Key="TabStripTabSelectedBackgroundColor2">#CCFFFFFF</Color>
<SolidColorBrush x:Key="TabStripTabSelectedForegroundBrush">#000000</SolidColorBrush>
<SolidColorBrush x:Key="RibbonTitlebarTitleBrush" Color="#000000" />
<SolidColorBrush x:Key="RibbonTitlebarApplicationNameBrush" Color="#000000" />
<SolidColorBrush x:Key="PageScrollViewerButtonInnerBorderBrush" Color="#CCFFFFFF" />
<LinearGradientBrush  x:Key="ButtonHotBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#E5FFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.51"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="ButtonPushedOuterBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ButtonHotInnerBorderBrush" Color="#FFFFFFFF" />
<LinearGradientBrush x:Key="ButtonPushedBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="ButtonPushedInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="PageScrollViewerButtonForegroundBrush" Color="#FF000000" />
<SolidColorBrush x:Key="PageScrollViewerButtonOuterBorderBrush" Color="#CC636363" />
<LinearGradientBrush x:Key="TabPageScrollViewerButtonBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="QatBelowBackgroundBrush" Color="#99FFFFFF" />
<SolidColorBrush x:Key="QatBelowOuterBorderBrush" Color="#7F000000" />
<SolidColorBrush x:Key="QatBelowInnerBorderBrush" Color="#CCFFFFFF" />
<SolidColorBrush x:Key="QatAboveHighlightBrush" Color="#4C000000" />
<SolidColorBrush x:Key="QatAboveBackgroundBrush" Color="Transparent" />
<SolidColorBrush x:Key="QatAboveBorderBrush" Color="#19FFFFFF" />
<SolidColorBrush x:Key="QatButtonArrow" Color="#000000" />
<SolidColorBrush x:Key="QatButtonArrowHighlight" Color="#CDCDCD" />
<SolidColorBrush x:Key="ContextualTabsHeader_Foreground" Color="#000000" />
<LinearGradientBrush x:Key="RibbonBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#4C888888" Offset="1"/>
        <GradientStop Color="#99D0D0D0"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RibbonTitlebarBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
        <GradientStop Color="#33FFFFFF"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonTitlebarBorderBrush" Color="#B2FFFFFF" />
<SolidColorBrush x:Key="RibbonTabstripBorderBrush" Color="#66000000" />
<LinearGradientBrush  x:Key="RibbonLowerBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="Transparent" Offset="1"/>
        <GradientStop Color="Transparent"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonDividerDarkBrush" Color="#9BBBE3" />
<SolidColorBrush x:Key="RibbonDividerLightBrush" Color="#D5E2F3" />
<SolidColorBrush x:Key="ExpanderButtonNormal_Border" Color="Transparent" />
<SolidColorBrush x:Key="ExpanderButtonNormal_Background" Color="Transparent" />
<LinearGradientBrush x:Key="ExpandButtonPressed_OuterBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="ExpanderButtonPressed_Border" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="ExpanderButtonPressed_Background" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGroupButtonArrow" Color="#000000" />
<SolidColorBrush x:Key="ExpandButtonOver_OuterBorder" Color="#CC727272" />
<SolidColorBrush x:Key="ExpanderButtonOver_Border" Color="#FFFFFFFF" />
<LinearGradientBrush x:Key="ExpanderButtonOver_Background" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#E5FFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonPopupOuterBorderBrush" Color="#868686" />
<SolidColorBrush x:Key="RibbonPopupInnerBorderBrush" Color="#F5F5F5" />
<SolidColorBrush x:Key="DisabledBrush" Color="#99FFFFFF"></SolidColorBrush>
<SolidColorBrush x:Key="RibbonComboBoxHotBackgroundBrush" Color="#CCFFFFFF" />
<SolidColorBrush x:Key="RibbonComboBoxHotBorderBrush" Color="#CC727272" />
<LinearGradientBrush x:Key="RibbonComboBoxButtonBackgroundBrush" EndPoint="0,1">
        <GradientStop Color="#E5FFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2CBCBCB" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonComboBoxBorderBrush" Color="#CC727272" />
<SolidColorBrush x:Key="RibbonComboBoxBackgroundBrush" Color="#CCe8e8e8" />
<SolidColorBrush x:Key="RibbonComboBoxForegroundBrush" Color="#000000" />
<CornerRadius x:Key="ComboboxItemCornerRadius">1</CornerRadius>
<CornerRadius x:Key="ComboboxItemInnerCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="ComboboxItemHotOuterBorderBrush" Color="#FFFFC92B" />
<SolidColorBrush x:Key="ComboboxItemHotInnerBorderBrush" Color="#FFFFFFFF" />
<LinearGradientBrush x:Key="ComboboxItemHotBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFFFBA3" Offset="1" />
		<GradientStop Color="#FFFFFBDA" Offset="0" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarDropDownButtonPressedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarDropDownButtonPressedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGalleryBorderBrush" Color="#7F000000" />
<SolidColorBrush x:Key="RibbonGalleryBackgroundBrush" Color="#99FFFFFF" />
<LinearGradientBrush x:Key="RibbonGalleryItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGroupButtonArrowHighlight" Color="#eaf2f9" />
<SolidColorBrush x:Key="RibbonGalleryOverBackgroundBrush" Color="#CCFFFFFF" />
<LinearGradientBrush x:Key="RadRibbonGroupNormalBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RadRibbonGroupNormalBorder" Color="#CC636363" />
<SolidColorBrush x:Key="RadRibbonGroupNormalBorderInner" Color="#CCFFFFFF" />
<LinearGradientBrush x:Key="RadRibbonGroupPressedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonGroupPressedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonGroupPressedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RadRibbonGroupOverBorder" Color="#66636363" />
<LinearGradientBrush x:Key="RadRibbonGroupOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#66FFFFFF"/>
        <GradientStop Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RadRibbonGroupOverBorderInner" Color="#CCFFFFFF" />
<SolidColorBrush x:Key="RibbonGroupSeparatorLightBrush" Color="#F8FAFC" />
<SolidColorBrush x:Key="RibbonGroupSeparatorDarkBrush" Color="#8DACD3" />
<LinearGradientBrush x:Key="RibbonGroupPushedButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#e4e5e6" />
		<GradientStop Offset="0.4" Color="#d0d2d6" />
		<GradientStop Offset="0.4" Color="#c9cbd0" />
		<GradientStop Offset="1" Color="#d4d7db" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RibbonTabBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2FFFFFF" Offset="0"/>
        <GradientStop Color="#33CECECE" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGroupButtonBorderBrush" Color="#a0a0a0" />
<SolidColorBrush x:Key="RibbonGroupButtonBackgroundBrush" Color="#55FFFFFF" />
<SolidColorBrush x:Key="RibbonGroupButtonBottomBrush" Color="#c2c2c2" />
<LinearGradientBrush x:Key="RadRibbonBarButtonSelectedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2000000"/>
        <GradientStop Color="#7F000000" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonSelectedBackground" EndPoint="0.5,1"
			StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonSelectedBorderInner" EndPoint="0.5,1"
			StartPoint="0.5,0">
        <GradientStop Color="#66000000"/>
        <GradientStop Color="#B2FFFFFF" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarSplitButtonBorderInner_Over" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFDE6" Offset="0" />
		<GradientStop Color="#FFFDE6" Offset="0.5" />
		<GradientStop Color="#FFFDE6" Offset="0.5" />
		<GradientStop Color="#FFFDE6" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarSplitButtonBackgroundInner_Over" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFFFEF7" Offset="0" />
		<GradientStop Color="#FFFFF7DF" Offset="0.5" />
		<GradientStop Color="#FFFFEEBE" Offset="0.51" />
		<GradientStop Color="#FFFFF6DD" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonTabOuterBorderBrush" Color="#66000000" />
<LinearGradientBrush x:Key="RibbonTabMinimizedBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#EEFFFFFF" Offset="0" />
        <GradientStop Color="#AACECECE" Offset="1" />
    </LinearGradientBrush>
<CornerRadius x:Key="RibbonTabOuterCornerRadius">3.5</CornerRadius>
<CornerRadius x:Key="RibbonTabInnerCornerRadius">2.5</CornerRadius>
<SolidColorBrush x:Key="RibbonTabInnerBorderBrush" Color="Transparent" />
<LinearGradientBrush x:Key="RibbonTabContextualOuterBorderBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0.9" Color="#C6C7C8" />
		<GradientStop Offset="1" Color="#97AAC5" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RibbonTabContextualInnerBorderBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="Transparent" />
		<GradientStop Offset="0.6" Color="#FFFFFF" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ButtonHotOuterBorderBrush" Color="#CC727272" />
<LinearGradientBrush x:Key="PageScrollViewerHotButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#E5FFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.51"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="PageScrollViewerPressedButtonBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CC323232"/>
        <GradientStop Color="#66828282" Offset="1"/>
        <GradientStop Color="#7FFFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="PageScrollViewerButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="QuickAccessKeyHintBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#ffffff" />
		<GradientStop Offset="1" Color="#e4e4f0" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="QuickAccessKeyHintForegroundBrush" Color="#4C4C4C" />
<SolidColorBrush x:Key="QuickAccessKeyHintBorderBrush" Color="#767676" />
<SolidColorBrush Color="#B2000000" x:Key="RibbonBarKeyTips_OuterBorderBrush" />
<LinearGradientBrush x:Key="RibbonBarKeyTips_Background"  EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFFFFFF"/>
        <GradientStop Color="#66FFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.5"/>
        <GradientStop Color="#B2A1A1A1" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush Color="#CCFFFFFF" x:Key="RibbonBarKeyTips_InnerBorderBrush" />

	
	
	<Style x:Key="ApplicationRibbonButton" TargetType="telerikRibbonBar:RadRibbonButton">
		<Setter Property="Padding" Value="5" />
		<Setter Property="BorderThickness" Value="1.5" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="HorizontalAlignment" Value="Stretch" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Size" Value="Large" />
		<!--<Setter Property="SplitText" Value="False" />-->
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonButton">
					<Grid>
						
						<Border x:Name="buttonSurface"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="1">
							<Border x:Name="buttonSurfaceInner"
									BorderBrush="Transparent"
									BorderThickness="1"/>
						</Border>

						<Grid Margin="{TemplateBinding Padding}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>

							<ContentPresenter Content="" Grid.ColumnSpan="2" />

							<Image Name="Image" />

							<TextBlock
								Name="textRow1" Grid.Column="1" Margin="4,0,1,0"
								Text="{TemplateBinding Text}"
								TextAlignment="Left" VerticalAlignment="Center" />
						</Grid>

						<Rectangle x:Name="DisabledIndicator" Visibility="Collapsed"
								Fill="#99FFFFFF" />
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter Property="BorderBrush" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBorder}" />
							<Setter Property="Background" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBackground}" />
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner"
									Value="{StaticResource ApplicationRibbonButtonOverBorderInner}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBorder}" />
							<Setter Property="Background" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBackground}" />
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner"
									Value="{StaticResource ApplicationRibbonButtonOverBorderInner}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="DisabledIndicator" Property="Visibility" Value="Visible" />
						</Trigger>
						<!--<Trigger Property="TextAlignmentState" Value="TextHide">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
						</Trigger>-->
					</ControlTemplate.Triggers>
					

				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ApplicationRibbonDropDownButton" TargetType="telerikRibbonBar:RadRibbonDropDownButton">
		<Setter Property="Padding" Value="5" />
		<Setter Property="BorderThickness" Value="1.5" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="HorizontalAlignment" Value="Stretch" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Size" Value="Large" />
		<!--<Setter Property="SplitText" Value="False" />-->
		<Setter Property="AutoOpenDelay" Value="0:0:0.3" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonDropDownButton">
                    <Grid SnapsToDevicePixels="True"  >
						
						<Border x:Name="buttonSurface"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="1">
							<Border x:Name="buttonSurfaceInner"
									BorderBrush="Transparent"
									BorderThickness="{TemplateBinding BorderThickness}"/>
						</Border>

						<Border x:Name="isOpenIndicator" Visibility="Collapsed"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{StaticResource ApplicationRibbonButtonOverBorder}"
								Background="{StaticResource ApplicationRibbonButtonOverBackground}"
								CornerRadius="1">
							<Border BorderBrush="{StaticResource ApplicationRibbonButtonOverBorderInner}"
									BorderThickness="{TemplateBinding BorderThickness}"/>
						</Border>

						<Border x:Name="mouseOverIndicator" CornerRadius="1"
								BorderThickness="{TemplateBinding BorderThickness}" />

						<Grid Margin="{TemplateBinding Padding}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="22" />
							</Grid.ColumnDefinitions>

							<ContentPresenter Grid.ColumnSpan="3"
									HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
									Content="{TemplateBinding Content}"
									ContentTemplate="{TemplateBinding ContentTemplate}" />

							<Image Name="Image" />

							<TextBlock
								Name="textRow1" Grid.Column="1" Margin="4,0,1,0"
								Text="{TemplateBinding Text}"
								TextAlignment="Left" VerticalAlignment="Center" />

							<Border Name="DropDownPanel" Grid.Column="2" VerticalAlignment="Stretch">
								<Path Name="DropDownIndicator" VerticalAlignment="Center" 
										HorizontalAlignment="Center"
										Data="M 0,0 L 3.5,3.5 L 0,7" Margin="2,0,0,0"
										Visibility="{TemplateBinding DropDownIndicatorVisibility}"
										Fill="{StaticResource RibbonButtonDropDownArrow}"
										Stroke="{StaticResource RibbonButtonDropDownArrowBorder}" />
							</Border>
						</Grid>
						
						<Popup x:Name="DropDownPopup" 
                            HorizontalOffset="2" VerticalOffset="-1"
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
						
						
								<!--PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">-->
							<Grid>
								
								<Border x:Name="DropDownPopupBorder"
										BorderBrush="{StaticResource DropDownPopupBorderBrush}"
										Background="{StaticResource DropDownPopupBackgroundBrush}"
										BorderThickness="1"
										MinWidth="3" Width="{TemplateBinding DropDownWidth}"
										MinHeight="3" Height="{TemplateBinding DropDownHeight}">
									<ContentControl
										x:Name="DropDownPopupContent"
										Content="{TemplateBinding DropDownContent}"
										HorizontalAlignment="Stretch"
										VerticalAlignment="Stretch" />
								</Border>
							</Grid>
						
						</Popup>
						
						

						<Rectangle x:Name="DisabledIndicator" Visibility="Collapsed"
								Fill="#99FFFFFF" />
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter Property="BorderBrush" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBorder}" />
							<Setter Property="Background" TargetName="buttonSurface"
													Value="{StaticResource ApplicationRibbonButtonOverBackground}" />
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner"
									Value="{StaticResource ApplicationRibbonButtonOverBorderInner}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBorder}" />
							<Setter Property="Background" TargetName="buttonSurface"
									Value="{StaticResource ApplicationRibbonButtonOverBackground}" />
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner"
									Value="{StaticResource ApplicationRibbonButtonOverBorderInner}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="DisabledIndicator" Property="Visibility" Value="Visible" />
						</Trigger>
						<!--<Trigger Property="TextAlignmentState" Value="TextHide">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
						</Trigger>-->
						<Trigger Property="IsOpen" Value="True">
							<Setter TargetName="isOpenIndicator" Property="Visibility" Value="Visible" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate TargetType="telerik:RadButton" x:Key="AppMenuRadSplitButton_ButtonStyle">
		<Grid>
			

			<Border x:Name="backgroundDecorator"
					BorderThickness="{TemplateBinding BorderThickness}"
					BorderBrush="{TemplateBinding BorderBrush}"
					Background="{x:Null}"
					CornerRadius="2">
				<Border x:Name="backgroundDecoratorInner" Margin="0,0,0,0"
						BorderThickness="{TemplateBinding BorderThickness}"
						BorderBrush="Transparent"
						Background="{TemplateBinding Background}"
						CornerRadius="1">
					<ContentPresenter x:Name="Content"
							Content="{TemplateBinding Content}"
							ContentTemplate="{TemplateBinding ContentTemplate}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							Margin="{TemplateBinding Padding}"
							RecognizesAccessKey="True"
						 />
				</Border>
			</Border>
		</Grid>

		
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False" />
			<Trigger Property="IsDefault" Value="True" />
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="BorderBrush" TargetName="backgroundDecorator"
						Value="{StaticResource RadRibbonBarButtonOverBorder}" />
				<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonOverBorderInner}" />
				<Setter Property="Background" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonOverBackground}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter Property="BorderBrush" TargetName="backgroundDecorator"
						Value="{StaticResource RadRibbonBarButtonOverBorder}" />
				<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonOverBorderInner}" />
				<Setter Property="Background" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonOverBackground}" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<ControlTemplate TargetType="telerik:RadToggleButton" x:Key="AppMenuRadSplitButton_DropDownStyle">
		<Grid>
			

			<Border x:Name="backgroundDecorator"
					BorderThickness="{TemplateBinding BorderThickness}" 
					BorderBrush="{TemplateBinding BorderBrush}" 
					Background="{x:Null}" 
					CornerRadius="2">
				<Border x:Name="backgroundDecoratorInner" Margin="0,0,0,0"
						BorderThickness="{TemplateBinding BorderThickness}"
						BorderBrush="Transparent"
						Background="{TemplateBinding Background}"
						CornerRadius="1">
				</Border>
			</Border>

			<Border Opacity="0" x:Name="mouseOverDecorator" Background="{x:Null}" 
					BorderThickness="{TemplateBinding BorderThickness}" 
					BorderBrush="{StaticResource RadRibbonBarButtonOverBorder}" 
					CornerRadius="2">
				<Border x:Name="mouseOverDecoratorInner" Margin="0,0,0,0" CornerRadius="1" 
						BorderThickness="{TemplateBinding BorderThickness}" 
						BorderBrush="{StaticResource RadRibbonBarButtonOverBorderInner}" 
						Background="{StaticResource RadRibbonBarButtonOverBackground}">
				</Border>
			</Border>
			<Border BorderThickness="{TemplateBinding BorderThickness}">
				<ContentPresenter x:Name="contentPresenter"
					Content="{TemplateBinding Content}"
					ContentTemplate="{TemplateBinding ContentTemplate}"
					VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
					HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
					Margin="{TemplateBinding Padding}"
					RecognizesAccessKey="True"
					 />
			</Border>
		</Grid>

		
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False" />
			<Trigger Property="IsFocused" Value="True" />
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="Opacity" TargetName="mouseOverDecorator" Value="1"/>
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter Property="Opacity" TargetName="mouseOverDecorator" Value="1"/>
				<!--<Setter Property="BorderBrush" TargetName="mouseOverDecorator" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
				<Setter Property="BorderBrush" TargetName="mouseOverDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
				<Setter Property="Background" TargetName="mouseOverDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>-->
			</Trigger>
			<Trigger Property="IsChecked" Value="True">
				<Setter Property="Opacity" TargetName="mouseOverDecorator" Value="1"/>
				<!--<Setter Property="BorderBrush" TargetName="backgroundDecorator" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
				<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
				<Setter Property="Background" TargetName="backgroundDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>-->
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<Style x:Key="ApplicationRibbonSplitButton" TargetType="telerikRibbonBar:RadRibbonSplitButton">
		<Setter Property="IsTabStop" Value="false" />
		<Setter Property="IsOpen" Value="false" />
		<Setter Property="Padding" Value="5" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		
		
		<Setter Property="DropDownPlacement" Value="Relative" />
		
		<Setter Property="Size" Value="Large" />
		<!--<Setter Property="SplitText" Value="False" />-->
		<Setter Property="AutoOpenDelay" Value="0:0:0.3" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonSplitButton">
                    <Grid SnapsToDevicePixels="True"  >
						

						<Border x:Name="backgroundDecorator"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{x:Null}"
								CornerRadius="1">
							<Border x:Name="backgroundDecoratorInner"
									BorderThickness="{TemplateBinding BorderThickness}"
									BorderBrush="Transparent"
									Background="{TemplateBinding Background}"/>
						</Border>

						<Border x:Name="mouseOverDecorator" Opacity="0"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{StaticResource ApplicationRibbonButtonOverBorder}"
								Background="{x:Null}"
								CornerRadius="1">
							<Border x:Name="mouseOverDecoratorInner"
									BorderThickness="{TemplateBinding BorderThickness}"
									BorderBrush="{StaticResource ApplicationRibbonButtonOverBorderInner}"
									Background="{StaticResource ApplicationRibbonButtonOverBackground}"/>
						</Border>

						<Grid Margin="1">
							<Grid.RowDefinitions>
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" MaxHeight="28"/>
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<telerik:RadButton
								x:Name="ButtonPart"
								Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
								BorderThickness="0"
								Background="Transparent"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
								Template="{StaticResource AppMenuRadSplitButton_ButtonStyle}"
								Padding="{TemplateBinding Padding}" />
							<telerik:RadToggleButton
								x:Name="DropDownPart"
								Grid.Row="0" Grid.Column="2"
								BorderThickness="0" Margin="0"
								Background="Transparent"
								Visibility="{TemplateBinding DropDownIndicatorVisibility}"
								Template="{StaticResource AppMenuRadSplitButton_DropDownStyle}"
								IsTabStop="false"
								
								
								IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								 />
								<Rectangle
								x:Name="SeparatorPart"
								Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
								MinWidth="1" MinHeight="1"
								Visibility="Collapsed" IsHitTestVisible="False"
								HorizontalAlignment="Right" VerticalAlignment="Stretch"
								Fill="{StaticResource RadRibbonBarDropDownButtonPressedBorder}" />

								<Image Name="Image" IsHitTestVisible="False" Margin="4"/>

								<TextBlock Name="textRow1" Grid.Row="0" Grid.Column="1" Margin="0,0,2,0" IsHitTestVisible="False"
									Text="{TemplateBinding Text}" TextAlignment="Left"  VerticalAlignment="Center" />

								<Grid Name="DropDownPanel" Grid.Row="0" Grid.Column="2" Margin="0"
									Width="22" IsHitTestVisible="False">
									<Path Name="DropDownIndicator" VerticalAlignment="Center" HorizontalAlignment="Center"
										Data="M 0,0 L 3.5,3.5 L 0,7" Margin="0" IsHitTestVisible="False"
										Visibility="{TemplateBinding DropDownIndicatorVisibility}"
										Fill="{StaticResource RibbonButtonDropDownArrow}"
										Stroke="{StaticResource RibbonButtonDropDownArrowBorder}" />
								</Grid>
						</Grid>
						
						<Popup x:Name="DropDownPopup" 
                            HorizontalOffset="2" VerticalOffset="-1"
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
						
						
							<!--PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">-->
							<Grid>
								<!--<telerikRibbonBarPrimitives:DropShadow telerik:StyleManager.Theme="{StaticResource Theme}" Margin="6,6,4,4" />-->
								<Border x:Name="DropDownPopupBorder"
										BorderBrush="{StaticResource DropDownPopupBorderBrush}"
										Background="{StaticResource DropDownPopupBackgroundBrush}"
										BorderThickness="1"
										MinWidth="3" Width="{TemplateBinding DropDownWidth}"
										MinHeight="3" Height="{TemplateBinding DropDownHeight}">
									<ContentControl
										x:Name="DropDownPopupContent"
										Content="{TemplateBinding DropDownContent}"
										HorizontalAlignment="Stretch"
										VerticalAlignment="Stretch" />
								</Border>
							</Grid>
						
						</Popup>
						
						

						<Rectangle x:Name="disabledDecorator" Visibility="Collapsed" Opacity="0" Fill="#FFFFFFFF" />
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter TargetName="mouseOverDecorator" Property="Opacity" Value="1" />
							<Setter TargetName="SeparatorPart" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="disabledDecorator" Property="Opacity" Value="0.55" />
							<Setter TargetName="disabledDecorator" Property="Visibility" Value="Visible"/>
						</Trigger>
						<Trigger Property="IsFocused" Value="True" />
						<Trigger Property="IsOpen" Value="True">
							<Setter TargetName="mouseOverDecorator" Property="Opacity" Value="1" />
							<Setter TargetName="SeparatorPart" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="DropDownButtonPosition" Value="Top" />
						<Trigger Property="DropDownButtonPosition" Value="Left" />
						<Trigger Property="DropDownButtonPosition" Value="Bottom" />
						<Trigger Property="DropDownButtonPosition" Value="Right" />
						<Trigger Property="CurrentSize" Value="Large" />
						<Trigger Property="CurrentSize" Value="Medium" />
						<Trigger Property="CurrentSize" Value="Small" />
						<Trigger Property="DropDownPlacement" Value="Top" />
						<Trigger Property="DropDownPlacement" Value="Left" />
						<Trigger Property="DropDownPlacement" Value="Right" />
						<Trigger Property="DropDownPlacement" Value="Bottom" />
						<Trigger Property="DropDownPlacement" Value="Center" />
						<Trigger Property="DropDownPlacement" Value="Relative">
							<Setter TargetName="DropDownPopup" Property="Placement" Value="Relative" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="telerikRibbonBar:Separator" x:Key="ApplicationSeparatorStyle">
		<Setter Property="Background" Value="#f5f5f5" />
		<Setter Property="BorderThickness" Value="0,1,0,0" />
		<Setter Property="BorderBrush" Value="#c5c5c5" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Height" Value="2" />
		<Setter Property="Margin" Value="44,0,0,0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:Separator">
					<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<telerikRibbonBar:CustomContainerStyleSelector x:Key="ApplicationMenuContainerStyleSelector">
		<telerikRibbonBar:CustomContainerStyle
			TypeName="RadRibbonButton" ContainerStyle="{StaticResource ApplicationRibbonButton}" />
		<telerikRibbonBar:CustomContainerStyle
			TypeName="RadRibbonDropDownButton" ContainerStyle="{StaticResource ApplicationRibbonDropDownButton}" />
		<telerikRibbonBar:CustomContainerStyle
			TypeName="RadRibbonSplitButton" ContainerStyle="{StaticResource ApplicationRibbonSplitButton}" />
		<telerikRibbonBar:CustomContainerStyle
			TypeName="Separator" ContainerStyle="{StaticResource ApplicationSeparatorStyle}" />
	</telerikRibbonBar:CustomContainerStyleSelector>


	<Style TargetType="telerikRibbonBar:ApplicationMenu"
           x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:TransparentTheme , ElementType=telerikRibbonBar:ApplicationMenu}"
		 >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource RibbonPopupBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource ApplicationMenuOuterBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource RibbonPopupForegroundBrush}" />
		<Setter Property="ItemContainerStyleSelector" Value="{StaticResource ApplicationMenuContainerStyleSelector}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:ApplicationMenu">
                    <Grid x:Name="rootGrid" SnapsToDevicePixels="True"
                         >
						
						
						<Grid.OpacityMask>
							<RadialGradientBrush MappingMode="Absolute" Center="24,-2" RadiusX="19" RadiusY="18" GradientOrigin="24,-2">
								<GradientStop Offset="0.99" Color="#00000000" />
								<GradientStop Offset="1" Color="#FF000000" />
							</RadialGradientBrush>
						</Grid.OpacityMask>
						
						<Border Name="PART_OuterBorder" CornerRadius="3" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource ApplicationMenuBackgroundBrush}">
							<Border Name="PART_InnerBorder" CornerRadius="2" BorderThickness="1" BorderBrush="{StaticResource ApplicationMenuInnerBorderBrush}">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="Auto" />
										<RowDefinition Height="*" />
										<RowDefinition Height="Auto" />
									</Grid.RowDefinitions>
									<Rectangle Grid.Row="0" Height="14" Fill="{StaticResource ApplicationMenuTopBorderBrush}" />
									<Border Grid.Row="1" Background="{StaticResource ApplicationMenuMiddleBorderBrush}">
										<Border Margin="2,0,2,0" BorderThickness="1" BorderBrush="{StaticResource ApplicationMenuContentOuterBorderBrush}">
											<Border BorderThickness="1" BorderBrush="{StaticResource ApplicationMenuContentInnerBorderBrush}">
												<Grid>
													<Grid.ColumnDefinitions>
														<ColumnDefinition></ColumnDefinition>
														<ColumnDefinition Width="Auto"></ColumnDefinition>
													</Grid.ColumnDefinitions>
													<Border Name="LeftPane" BorderBrush="#c5c5c5" Background="{TemplateBinding Background}" BorderThickness="0,0,1,0">
														<ItemsPresenter />
													</Border>
													<Border Name="RightPane" Visibility="{TemplateBinding RightPaneVisibility}" Grid.Column="1" BorderBrush="{StaticResource ApplicationMenuDividerLightBrush}" Background="{StaticResource ApplicationMenuContentBackgroundBrush}" BorderThickness="1,0,0,0">
														<ContentPresenter Content="{TemplateBinding Content}" Name="ContentPresenter" MinWidth="100" />
													</Border>
												</Grid>
											</Border>
										</Border>
									</Border>
									<Border Grid.Row="2" Background="{StaticResource ApplicationMenuFooterBorderBrush}">
										<ContentPresenter Content="{TemplateBinding FooterContent}" HorizontalAlignment="Right" VerticalAlignment="Center" />
									</Border>
								</Grid>
							</Border>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

	<Style TargetType="telerikRibbonBarPrimitives:DropShadow"
           x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBarPrimitives:DropShadow}"
        >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBarPrimitives:DropShadow">
					<Grid>
						<!-- Shadow -->
						<Rectangle Name="Left" HorizontalAlignment="Left" VerticalAlignment="Stretch" IsHitTestVisible="False" />
						<Rectangle Name="TopLeft" HorizontalAlignment="Left" VerticalAlignment="Top"  IsHitTestVisible="False" />
						<Rectangle Name="Top" HorizontalAlignment="Stretch" VerticalAlignment="Top" IsHitTestVisible="False" />
						<Rectangle Name="TopRight" HorizontalAlignment="Right" VerticalAlignment="Top" IsHitTestVisible="False" />
						<Rectangle Name="Right" HorizontalAlignment="Right" VerticalAlignment="Stretch" IsHitTestVisible="False" />
						<Rectangle Name="BottomRight" HorizontalAlignment="Right" VerticalAlignment="Bottom" IsHitTestVisible="False" />
						<Rectangle Name="Bottom" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" IsHitTestVisible="False" />
						<Rectangle Name="BottomLeft" HorizontalAlignment="Left" VerticalAlignment="Bottom" IsHitTestVisible="False" />

						<ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

	<Style TargetType="telerikRibbonBarPrimitives:GroupChrome"
        x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:TransparentTheme , ElementType=telerikRibbonBarPrimitives:GroupChrome}"
		 >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBarPrimitives:GroupChrome">
					<Grid Background="Transparent" SnapsToDevicePixels="True"   >
						
						<Border Name="InnerBorder" Margin="1,1,0,0" BorderThickness="1" CornerRadius="1">
							<Border.BorderBrush>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop x:Name="InnerBorder1" Offset="0" Color="{StaticResource RibbonGroupNormalInnerBorderColor1}" />
									<GradientStop x:Name="InnerBorder2" Offset="1" Color="{StaticResource RibbonGroupNormalInnerBorderColor2}" />
								</LinearGradientBrush>
							</Border.BorderBrush>
						</Border>
						<Border Name="OuterBorder" Margin="0,0,1,1" BorderThickness="1" CornerRadius="2">
							<Border.Background>
								<LinearGradientBrush x:Name="BackgroundBrush" StartPoint="0,0" EndPoint="0,1" Opacity="0">
									<GradientStop Offset="0" Color="{StaticResource RibbonGroupBackground1}" />
									<GradientStop Offset="0.17" Color="{StaticResource RibbonGroupBackground2}" />
									<GradientStop Offset="0.17" Color="{StaticResource RibbonGroupBackground3}" />
									<GradientStop Offset="1" Color="{StaticResource RibbonGroupBackground4}" />
								</LinearGradientBrush>
							</Border.Background>
							<Border.BorderBrush>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop x:Name="OuterBorder1" Offset="0" Color="{StaticResource RibbonGroupNormalOuterBorderColor1}" />
									<GradientStop x:Name="OuterBorder2" Offset="1" Color="{StaticResource RibbonGroupNormalOuterBorderColor2}" />
								</LinearGradientBrush>
							</Border.BorderBrush>
						</Border>
						<Border Name="Tray" Height="15" VerticalAlignment="Bottom" Margin="1,0,2,2">
							<Border.Background>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop x:Name="Tray1" Offset="0.5" Color="{StaticResource RibbonGroupNormalTrayBackgroundColor1}" />
									<GradientStop x:Name="Tray2" Offset="1" Color="{StaticResource RibbonGroupNormalTrayBackgroundColor2}" />
								</LinearGradientBrush>
							</Border.Background>
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<ContentControl Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Margin="3,0,3,0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{StaticResource RibbonGroupHeaderBrush}" IsTabStop="False"/>

								<telerikRibbonBar:RadRibbonButton telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="{TemplateBinding DialogLauncherVisibility}" Name="DialogLauncher" Grid.Column="1" IsAutoSize="False" VerticalAlignment="Top" Padding="4,3,3,3" TabIndex="1"
                                                                  IsTabStop="False">
									<telerikRibbonBar:RadRibbonButton.Content>
										<Rectangle Fill="{StaticResource RibbonGroupDialogLauncher}" Width="8" Height="8" />
									</telerikRibbonBar:RadRibbonButton.Content>
								</telerikRibbonBar:RadRibbonButton>

							</Grid>
						</Border>
						<ContentPresenter Margin="4,2,4,18" />
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsCollapsed" Value="True">
							<Setter TargetName="Tray" Property="Visibility" Value="Collapsed" />
						</Trigger>
						
						<Trigger Property="IsMouseOver" Value="True" >
							<Setter  Property="BorderBrush" TargetName="InnerBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop  Offset="0" Color="{StaticResource RibbonGroupHotInnerBorderColor1}" />
										<GradientStop  Offset="1" Color="{StaticResource RibbonGroupHotInnerBorderColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter  Property="BorderBrush" TargetName="OuterBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop Offset="0" Color="{StaticResource RibbonGroupHotOuterBorderColor1}" />
										<GradientStop Offset="1" Color="{StaticResource RibbonGroupHotOuterBorderColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter  Property="Background" TargetName="OuterBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" Opacity="1">
										<GradientStop Offset="0" Color="{StaticResource RibbonGroupBackground1}" />
										<GradientStop Offset="0.17" Color="{StaticResource RibbonGroupBackground2}" />
										<GradientStop Offset="0.17" Color="{StaticResource RibbonGroupBackground3}" />
										<GradientStop Offset="1" Color="{StaticResource RibbonGroupBackground4}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter  Property="Background" TargetName="Tray">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop Offset="0.5" Color="{StaticResource RibbonGroupHotTrayBackgroundColor1}" />
										<GradientStop Offset="1" Color="{StaticResource RibbonGroupHotTrayBackgroundColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>

							<Setter TargetName="OuterBorder" Property="Margin" Value="0,0,0,1" />
							<Setter TargetName="InnerBorder" Property="Margin"  Value="1,1,1,2" />
							<Setter TargetName="InnerBorder" Property="Panel.ZIndex" Value="1" />
						</Trigger>
						
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsMouseOver" Value="False" />
								<Condition Property="IsPushed" Value="True" />
								<Condition Property="IsCollapsed" Value="True" />
							</MultiTrigger.Conditions>
						
							<Setter  Property="BorderBrush" TargetName="InnerBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop  Offset="0" Color="{StaticResource RibbonGroupPushedInnerBorderColor1}" />
										<GradientStop  Offset="1" Color="{StaticResource RibbonGroupPushedInnerBorderColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter  Property="BorderBrush" TargetName="OuterBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop  Offset="0" Color="{StaticResource RibbonGroupPushedOuterBorderColor1}" />
										<GradientStop  Offset="1" Color="{StaticResource RibbonGroupPushedOuterBorderColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter  Property="Background" TargetName="OuterBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" Opacity="1">
										<GradientStop Offset="0" Color="{StaticResource RibbonGroupBackground1}" />
										<GradientStop Offset="0.17" Color="{StaticResource RibbonGroupBackground2}" />
										<GradientStop Offset="0.17" Color="{StaticResource RibbonGroupBackground3}" />
										<GradientStop Offset="1" Color="{StaticResource RibbonGroupBackground4}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Background"
									Value="{StaticResource RibbonGroupPushedBackgroundBrush}" />
						</MultiTrigger>

						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsMouseOver" Value="False" />
								<Condition Property="IsPushed" Value="False" />
								<Condition Property="IsCollapsed" Value="False" />
 							</MultiTrigger.Conditions>
							<Setter TargetName="Tray" Property="Visibility" Value="Visible" />
							<Setter  Property="BorderBrush" TargetName="InnerBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop  Offset="0" Color="{StaticResource RibbonGroupNormalInnerBorderColor1}" />
										<GradientStop  Offset="1" Color="{StaticResource RibbonGroupNormalInnerBorderColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter  Property="BorderBrush" TargetName="OuterBorder">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop  Offset="0" Color="{StaticResource RibbonGroupNormalOuterBorderColor1}" />
										<GradientStop  Offset="1" Color="{StaticResource RibbonGroupNormalOuterBorderColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="Tray" Property="Background">
								<Setter.Value>
									<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
										<GradientStop  Offset="0" Color="{StaticResource RibbonGroupNormalTrayBackgroundColor1}" />
										<GradientStop  Offset="1" Color="{StaticResource RibbonGroupNormalTrayBackgroundColor2}" />
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Opacity" Value="0.5" />
						</MultiTrigger>

                    </ControlTemplate.Triggers>
					

				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

	<Style TargetType="telerikRibbonBar:RadButtonGroup"
           x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadButtonGroup}"
        >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource ButtonGroupBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource ButtonGroupOuterBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadButtonGroup">
					<Border  BorderThickness="{TemplateBinding BorderThickness}" 
							 Background="{TemplateBinding Background}" 
							 BorderBrush="{TemplateBinding BorderBrush}" 
							 CornerRadius="2"
							 SnapsToDevicePixels="True"  >
						<Grid>
							<Border BorderThickness="1" CornerRadius="1" BorderBrush="{StaticResource ButtonGroupInnerBorderBrush}" />
							<telerikRibbonBarPrimitives:ButtonGroupPanel Name="Panel" DividerDarkBrush="{StaticResource ButtonGroupDividerDarkBrush}" DividerLightBrush="{StaticResource ButtonGroupDividerLightBrush}" />
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	
	

    <Style TargetType="telerikRibbonBar:RadGallery"
        x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadGallery}"
        >
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="ItemWidth" Value="156"/>
        <Setter Property="ItemHeight" Value="26"/>
        <Setter Property="ViewportHeight" Value="184"/>
        <Setter Property="ViewportWidth" Value="157"/>        

        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                     <telerik:RadWrapPanel 
                        
                        
                        ItemWidth="{Binding RelativeSource={RelativeSource
						FindAncestor, AncestorType={x:Type telerikRibbonBar:RadRibbonGallery}},
						Path=ItemWidth}" ItemHeight="{Binding RelativeSource={RelativeSource
						FindAncestor, AncestorType={x:Type telerikRibbonBar:RadRibbonGallery}},
						Path=ItemHeight}"
                         />
                    
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadGallery">
                    <Grid >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <ScrollViewer x:Name="ScrollViewer"  
									  Grid.Row="0" IsTabStop="False" 
									  BorderThickness="0" Margin="1" 
									  Height="{TemplateBinding ViewportHeight}"
									  telerik:StyleManager.Theme="{StaticResource Theme}"
									  Padding="0">
                            <ItemsPresenter x:Name="presenter" Width="{TemplateBinding ViewportWidth}" HorizontalAlignment="Left" />
                        </ScrollViewer>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
	

    <Style TargetType="telerikRibbonBar:RadGalleryItem"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadGalleryItem}"
        >
        <Setter Property="Padding" Value="2" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadGalleryItem">
                    <Grid SnapsToDevicePixels="True"  >
                        
                        <Border x:Name="buttonSurface" CornerRadius="1.5"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}" />
						
						<!-- Over -->
						<Border x:Name="mouseOverIndicator" CornerRadius="1.5" Opacity="0"
								BorderBrush="{StaticResource RadGalleryItemOver_border}"
								Background="{StaticResource RadGalleryItemOver_background}"
								BorderThickness="{TemplateBinding BorderThickness}">
							<Border BorderThickness="1" BorderBrush="{StaticResource RadGalleryItemOver_Innerborder}" />
						</Border>
						
						<!-- Selected -->
						<Border x:Name="SelectedIndicator" CornerRadius="1.5" Opacity="0"
								BorderBrush="{StaticResource RadGalleryItemPressed_border}"
								Background="{StaticResource RadGalleryItemPressed_background}"
								BorderThickness="{TemplateBinding BorderThickness}">
							<Border BorderThickness="1"
									BorderBrush="{StaticResource RadGalleryItemPressed_Innerborder}" />
						</Border>

						<Grid >
                            <!--<Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" MaxHeight="28" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>-->

                            <ContentPresenter Content="{TemplateBinding Content}"  	HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>

                            <Image Name="Image" Margin="{TemplateBinding Padding}" Stretch="None"  Source="{TemplateBinding Image}"  HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>

                        </Grid>

                        <Rectangle x:Name="DisabledIndicator" Visibility="Collapsed" Fill="#99FFFFFF" />
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="mouseOverIndicator" Property="Opacity" Value="1" />
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="SelectedIndicator" Property="Opacity" Value="1" />
                            <!--<Setter TargetName="mouseOverIndicator" Property="BorderBrush" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}" />-->
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
	

    <Style TargetType="telerikRibbonBar:RadGroupHeader"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadGroupHeader}"
        >
            <Setter Property="IsTabStop" Value="False" />
            <Setter Property="Background" Value="{StaticResource GroupHeaderBackgroundBrush}" />
            <Setter Property="BorderThickness" Value="0,0,0,1" />
            <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderBorderBrush}" />
            <Setter Property="Padding" Value="11,1,5,1" />
            <Setter Property="HorizontalContentAlignment" Value="Left" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="{StaticResource RibbonPopupForegroundBrush}" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerikRibbonBar:RadGroupHeader">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            
                        
                        <ContentControl  x:Name="contentPresenter"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Margin="{TemplateBinding Padding}"
						Foreground="{TemplateBinding Foreground}" IsTabStop="False" />
                        
                    </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        
	

    <LinearGradientBrush x:Key="ApplicationMenuToggleButtonBackground" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0" Color="#ADCBEF" />
        <GradientStop Offset="0.5" Color="#7BA2CE" />
        <GradientStop Offset="0.5" Color="#3171BD" />
        <GradientStop Offset="1" Color="#7BCFFF" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="RadToolBar_InnerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC7CCCF" Offset="0.11903503041793578" />
        <GradientStop Color="#FFBCC0C6" Offset="0.52385987832825676" />
        <GradientStop Color="#FF969EA8" Offset="0.99256031059887906" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="RadToolBar_InnerBackgroundV" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFC7CCCF" Offset="0.11903503041793578" />
        <GradientStop Color="#FFBCC0C6" Offset="0.52385987832825676" />
        <GradientStop Color="#FF969EA8" Offset="0.99256031059887906" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="OverflowBorderInnerBrush" Color="#FF9199A4" />
    <SolidColorBrush x:Key="OverflowContentBackgroundBrush" Color="#FFF6F6F6" />

    
    <Style x:Key="ApplicationButtonFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Stroke="Transparent" StrokeThickness="0" Margin="0" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    

    <!-- ApplicationButtonStyle -->
    <Style x:Key="ApplicationButtonStyle" TargetType="telerikRibbonBar:RadRibbonDropDownButton">
        <Setter Property="Padding" Value="0" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Background" Value="Transparent" />
        
        <Setter Property="FocusVisualStyle" Value="{StaticResource ApplicationButtonFocusVisual}" />
        
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonDropDownButton">
                    <Grid Width="37" Height="37">
                        
                        <Ellipse Margin="-1.5,-1.5,-2,-2">
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Offset="0.9" Color="#71000000" />
                                    <GradientStop Offset="1" Color="Transparent" />
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Ellipse Fill="{TemplateBinding Background}" />
                        <Grid>
                            <Ellipse StrokeThickness="1" Fill="{StaticResource ApplicationMenuButtonBackground}"
                                    Stroke="{StaticResource ApplicationMenuButtonBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuButtonInnerBackground}"
                                    Stroke="{StaticResource ApplicationMenuButtonInnerBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuButtonMiddelBackground}" />
                        </Grid>
                        <Grid x:Name="MouseOverPart" Opacity="0">
                            <Ellipse StrokeThickness="1" Fill="{StaticResource ApplicationMenuOverButtonBackground}"
                                    Stroke="{StaticResource ApplicationMenuOverButtonBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuOverButtonInnerBackground}"
                                    Stroke="{StaticResource ApplicationMenuOverButtonInnerBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuOverButtonMiddelBackground}" />
                        </Grid>
                        <Grid x:Name="PressedPart" Opacity="0">
                            <Ellipse StrokeThickness="1" Fill="{StaticResource ApplicationMenuPressedButtonBackground}"
                                    Stroke="{StaticResource ApplicationMenuPressedButtonBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuPressedButtonInnerBackground}"
                                    Stroke="{StaticResource ApplicationMenuPressedButtonInnerBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuPressedButtonMiddelBackground}" />
                        </Grid>
                        <Grid x:Name="isOpenIndicator" Opacity="0">
                            <Ellipse StrokeThickness="1" Fill="{StaticResource ApplicationMenuPressedButtonBackground}"
                                    Stroke="{StaticResource ApplicationMenuPressedButtonBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuPressedButtonInnerBackground}"
                                    Stroke="{StaticResource ApplicationMenuPressedButtonInnerBorder}" />
                            <Ellipse Margin="1" Fill="{StaticResource ApplicationMenuPressedButtonMiddelBackground}" />
                        </Grid>
                        <Grid Margin="{TemplateBinding Padding}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" MaxHeight="28" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <ContentPresenter Grid.ColumnSpan="3" Grid.RowSpan="2" HorizontalAlignment="Center"
                                    VerticalAlignment="Center" Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}" />

                            <Image x:Name="Image" Stretch="None" Grid.ColumnSpan="3" Grid.RowSpan="2" />

                            <TextBlock x:Name="textRow1" Grid.Row="1" Margin="0,2,0,0" Text="{TemplateBinding TextRow1}"
                                    TextAlignment="Center" />

                            <StackPanel x:Name="DropDownPanel" Grid.Row="1" Margin="0,14,0,0"
                                    HorizontalAlignment="Center" Orientation="Horizontal" MinHeight="14" MaxHeight="14"
                                    Height="14">
                                <TextBlock x:Name="textRow2" Text="{TemplateBinding TextRow2}" />
                            </StackPanel>
                        </Grid>

                        
                        <Popup x:Name="DropDownPopup" HorizontalOffset="-5" VerticalOffset="-15"
                                AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
                                IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
                            
                            

                                <!--PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">-->
                                <Border x:Name="DropDownPopupBorder" BorderBrush="Transparent" Background="Transparent"
                                        BorderThickness="0" CornerRadius="1" Padding="0" 
                                    
                                    
                                    MinWidth="33" MinHeight="33">
                                    <ContentControl x:Name="DropDownPopupContent"
                                            Content="{TemplateBinding DropDownContent}" HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch" IsTabStop="False" />
                                </Border>
                                
                        </Popup>
                        
                        

                        <Rectangle x:Name="DisabledIndicator" Visibility="Collapsed" Fill="#99FFFFFF" />
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Opacity" TargetName="MouseOverPart" Value="1" />
                            <Setter Property="Opacity" TargetName="PressedPart" Value="0" />

                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="PressedPart" Value="1" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Opacity" TargetName="MouseOverPart" Value="0" />
                            <Setter Property="Opacity" TargetName="PressedPart" Value="0" />
                        </Trigger>
                        <Trigger Property="IsOpen" Value="True">
                            <Setter Property="Opacity" TargetName="isOpenIndicator" Value="1" />
                        </Trigger>
                        <Trigger Property="DropDownButtonPosition" Value="Top" />
                        <Trigger Property="DropDownButtonPosition" Value="Left" />
                        <Trigger Property="DropDownButtonPosition" Value="Bottom" />
                        <Trigger Property="DropDownButtonPosition" Value="Right">
                            <Setter TargetName="DropDownPanel" Property="Grid.Column" Value="2" />
                            <Setter TargetName="DropDownPanel" Property="Grid.Row" Value="0" />
                            <Setter TargetName="DropDownPanel" Property="Margin" Value="0,0,0,0" />
                            <Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                        <Trigger Property="CurrentSize" Value="Large" />
                        <Trigger Property="CurrentSize" Value="Medium">
                            <Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
                            <Setter TargetName="textRow1" Property="Grid.Column" Value="0" />
                            <Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
                            <Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
                            <Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
                            <Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                        <Trigger Property="CurrentSize" Value="Small">
                            <Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
                            <Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                        <!--<Trigger Property="TextAlignmentState" Value="TextAtBottom" />
						<Trigger Property="TextAlignmentState" Value="TextAtRight">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="TextAlignmentState" Value="TextHide">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>-->
                        <Trigger Property="DropDownPlacement" Value="Absolute" />
                        <Trigger Property="DropDownPlacement" Value="Bottom" />
                        <Trigger Property="DropDownPlacement" Value="Center" />
                        <Trigger Property="DropDownPlacement" Value="Top" />
                        <!--<Setter TargetName="DropDownIndicator" Property="RenderTransform">
								<Setter.Value>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="-1" />
									</TransformGroup>
								</Setter.Value>
							</Setter>
						</Trigger>-->
                        <Trigger Property="DropDownPlacement" Value="Left" />
                        <!--<Setter TargetName="DropDownIndicator" Property="RenderTransform">
								<Setter.Value>
									<TransformGroup>
										<RotateTransform Angle="90" CenterX="0.5" CenterY="0.5" />
									</TransformGroup>
								</Setter.Value>
							</Setter>
						</Trigger>-->
                        <Trigger Property="DropDownPlacement" Value="Right" />
                        <!--<Setter TargetName="DropDownIndicator" Property="RenderTransform">
								<Setter.Value>
									<TransformGroup>
										<RotateTransform Angle="-90" CenterX="0" CenterY="0" />
									</TransformGroup>
								</Setter.Value>
							</Setter>
						</Trigger>-->
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--  MinimizeButton -->
    <Style x:Key="MinimizeButtonStyle" TargetType="telerik:RadToggleButton">
        <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="telerik:RadToggleButton">
                    <Grid Width="20">
                        

                        <telerikChromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}"
                                Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                                BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                                BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}"
                                RenderEnabled="{TemplateBinding IsEnabled}" RenderNormal="False"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}" RenderFocused="{TemplateBinding IsFocused}"
                                RenderChecked="{TemplateBinding IsChecked}" CornerRadius="1" />
                        <Border BorderThickness="{TemplateBinding BorderThickness}">
                            <Grid VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
                                <Path x:Name="arrow" Fill="White" Stretch="None" Stroke="Black"
                                        Data="M0.25,4 L3.75,0.25 L4.75,0.25 L8.25,3.875 L8.3125,5.5 L7.25,6.627 L6.25,6.627 L4.25,4.627 L2.25,6.627 L1.25,6.627 L0.25,5.627 z"
                                        StrokeThickness="0.5" RenderTransformOrigin="0.5 0.5">
                                    <Path.RenderTransform>
                                        <RotateTransform x:Name="directionRotation" Angle="0" />
                                    </Path.RenderTransform>
                                </Path>
                                <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}"
                                        Content="{TemplateBinding Content}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
                            </Grid>
                        </Border>
                    </Grid>

                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" TargetName="Content" Value="0.5" />
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="arrow" Property="LayoutTransform">
                                <Setter.Value>
                                    <TransformGroup>
                                        <RotateTransform Angle="180" />
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                    

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- TabItem  Style -->
    <Style TargetType="telerikNavigation:RadTabItem" x:Key="RibbonRadTabItemStyle">
        <Setter Property="Padding" Value="0,1,0,1" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="BorderThickness" Value="1,0,0,0" />
        <Setter Property="BorderBrush" Value="{StaticResource TabStripTabDividerBrush}" />
        <Setter Property="IsTabStop" Value="False" />
        
        <Setter Property="FocusVisualStyle">
            <Setter.Value>
                <Style TargetType="Control">
                    <Setter Property="Visibility" Value="Collapsed" />
                </Style>
            </Setter.Value>
        </Setter>
        
        <Setter Property="TopTemplate">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadTabItem">
                    <Grid>
                        
                        <Rectangle Margin="0 1 0 4" HorizontalAlignment="Left" Fill="{TemplateBinding BorderBrush}"
                                VerticalAlignment="Stretch" Width="1" />
                        <Grid x:Name="wrapper" Margin="4,1,3,1" 
                               >

                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="3" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="3" />
                            </Grid.ColumnDefinitions>
                            <!--<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" />-->

                            <Rectangle Grid.ColumnSpan="3" Margin="1,1,1,0" x:Name="rect">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop x:Name="BackgroundBrush1" Offset="0" />
                                        <GradientStop x:Name="BackgroundBrush2" Offset="1" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle Grid.Column="0" Width="1" HorizontalAlignment="Left" Margin="-1,3,0,1"
                                    x:Name="LeftShadow" Visibility="Collapsed">
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop Offset="0" Color="Transparent" />
                                        <GradientStop Offset="0.6" Color="#08000000" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Path Grid.Column="0" x:Name="LeftOuterBorder" Data="M -0.5,24 L 2.5,21 L 2.5,3 L 5.5,0"
                                    Margin="-2,0,0,0">
                                <Path.Stroke>
                                    <SolidColorBrush x:Name="LeftOuterBorderBrush" />
                                </Path.Stroke>
                            </Path>
                            <Path Grid.Column="0" x:Name="LeftInnerBorder" Data="M -0.5,24 L 2.5,21 L 2.5,3 L 4.5,1"
                                    Margin="-1,0,0,0">
                                <Path.Stroke>
                                    <SolidColorBrush x:Name="LeftInnerBorderBrush" />
                                </Path.Stroke>
                            </Path>

                            <Border Grid.Column="1" x:Name="Middle" BorderThickness="0,1,0,0">
                                <Border.BorderBrush>
                                    <SolidColorBrush x:Name="MiddleOuterBorderBrush" />
                                </Border.BorderBrush>
                            </Border>
                            <Rectangle Grid.Column="1" x:Name="MiddleInnerBorder" Height="1" VerticalAlignment="Top"
                                    Margin="0,1,0,0">
                                <Rectangle.Fill>
                                    <SolidColorBrush x:Name="MiddleInnerBorderBrush" />
                                </Rectangle.Fill>
                            </Rectangle>
                            <telerikNavigationPrimitives:TabItemContentPresenter Grid.Column="1" x:Name="HeaderElement"
                                    Content="{TemplateBinding Header}"
                                    ContentTemplate="{TemplateBinding HeaderTemplate}" IsTabStop="False"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                    HorizontalAlignment="Center" HorizontalContentAlignment="Center"
                                    VerticalAlignment="Center" Margin="0,2,0,1" Foreground="#000000" />
                            <Path Grid.Column="2" x:Name="RightOuterBorder" Data="M 5.5,24 L 2.5,21 L 2.5,3 L -0.5,0"
                                    Margin="0,0,-2,0">
                                <Path.Stroke>
                                    <SolidColorBrush x:Name="RightOuterBorderBrush" />
                                </Path.Stroke>
                            </Path>
                            <Path Grid.Column="2" x:Name="RightInnerBorder" Data="M 4.5,24 L 1.5,21 L 1.5,3 L -0.5,1"
                                    Margin="0,0,-1,0">
                                <Path.Stroke>
                                    <SolidColorBrush x:Name="RightInnerBorderBrush" />
                                </Path.Stroke>
                            </Path>
                            <Rectangle Grid.Column="2" Width="1" HorizontalAlignment="Right" Margin="0,3,-1,1"
                                    x:Name="RightShadow1" Visibility="Collapsed">
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop Offset="0" Color="#11000000" />
                                        <GradientStop Offset="1" Color="#15000000" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle Grid.Column="2" Width="1" HorizontalAlignment="Right" Margin="0,3,-2,1"
                                    x:Name="RightShadow2" Visibility="Collapsed">
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop Offset="0" Color="Transparent" />
                                        <GradientStop Offset="0.6" Color="#09000000" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </Grid>
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="true">
                            <Setter Property="Stroke" TargetName="LeftOuterBorder">
                                <Setter.Value>
                                    <SolidColorBrush Color="Transparent" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RightOuterBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="Transparent" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Middle" Property="BorderBrush">
                                <Setter.Value>
                                    <SolidColorBrush Color="Transparent" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="LeftInnerBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="Transparent" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RightInnerBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="Transparent" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="MiddleInnerBorder" Property="Fill">
                                <Setter.Value>
                                    <SolidColorBrush Color="Transparent" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="rect" Property="Fill">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Transparent" Offset="0" />
                                        <GradientStop Color="Transparent" Offset="1" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Stroke" TargetName="LeftOuterBorder">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabHotOuterBorderColor}" />
                                </Setter.Value>
                            </Setter>

                            <Setter TargetName="RightOuterBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabHotOuterBorderColor}" />
                                </Setter.Value>
                            </Setter>

                            <Setter TargetName="Middle" Property="BorderBrush">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabHotOuterBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="LeftInnerBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabHotInnerBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RightInnerBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabHotInnerBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="MiddleInnerBorder" Property="Fill">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabHotInnerBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="rect" Property="Fill">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="{StaticResource TabStripTabHotBackgroundColor1}" Offset="0" />
                                        <GradientStop Color="{StaticResource TabStripTabHotBackgroundColor2}" Offset="1" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Stroke" TargetName="LeftOuterBorder">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabSelectedOuterBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RightOuterBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabSelectedOuterBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="Middle" Property="BorderBrush">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabSelectedOuterBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="LeftInnerBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabSelectedLeftInnerBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="RightInnerBorder" Property="Stroke">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabSelectedRightInnerBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="MiddleInnerBorder" Property="Fill">
                                <Setter.Value>
                                    <SolidColorBrush Color="{StaticResource TabStripTabSelectedMiddleInnerBorderColor}" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="rect" Property="Fill">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="{StaticResource TabStripTabSelectedBackgroundColor1}"
                                                Offset="0" />
                                        <GradientStop Color="{StaticResource TabStripTabSelectedBackgroundColor2}"
                                                Offset="1" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="wrapper" Property="Margin" Value="4,1,3,0" />
                            <Setter TargetName="LeftShadow" Property="Visibility" Value="Visible" />
                            <Setter TargetName="RightShadow1" Property="Visibility" Value="Visible" />
                            <Setter TargetName="RightShadow2" Property="Visibility" Value="Visible" />
                            <Setter TargetName="HeaderElement" Property="Margin" Value="0,1,0,1" />
                            <Setter TargetName="HeaderElement" Property="Foreground"
                                    Value="{StaticResource TabStripTabSelectedForegroundBrush}" />
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" Value="0.5" TargetName="HeaderElement" />
                        </Trigger>

                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- WindowTitle -->

    <Style x:Key="WindowTitleStyle" TargetType="telerikRibbonBarPrimitives:WindowTitle">
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="FontSize" Value="11" />
        <Setter Property="IsHitTestVisible" Value="false" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="IsActive" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBarPrimitives:WindowTitle">
                    <StackPanel Orientation="Horizontal">                      
                        <TextBlock x:Name="Title" Text="{TemplateBinding Title}"
                                Foreground="{StaticResource RibbonTitlebarTitleBrush}" />
                        <TextBlock x:Name="Divider" Text=" - " Visibility="{TemplateBinding DividerVisibility}"
                                telerik:LocalizationManager.ResourceKey="RibbonBarWindowTitleDivider"
                                Foreground="{StaticResource RibbonTitlebarApplicationNameBrush}" />
                        <TextBlock x:Name="ApplicationName" Text="{TemplateBinding ApplicationName}"
                                Foreground="{StaticResource RibbonTitlebarApplicationNameBrush}" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="telerikRibbonBarPrimitives:WindowTitle" BasedOn="{StaticResource WindowTitleStyle}" />

    <!-- 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="IsTabStop" Value="False" />
        <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="TabScrollButtonStyle" TargetType="RepeatButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid>
                        
                        <Border x:Name="OuterBorder"
                                Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{Binding BorderBrush, RelativeSource={RelativeSource TemplatedParent}}"
                                CornerRadius="3 0 0 3">
                            <Border x:Name="InnerBorder" CornerRadius="2 0 0 2"
                                    BorderBrush="{StaticResource PageScrollViewerButtonInnerBorderBrush}"
                                    BorderThickness="1" Padding="{TemplateBinding Padding}">
                                <ContentPresenter Content="{TemplateBinding Content}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </Border>
                        </Border>

                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="OuterBorder" Property="Background"
                                    Value="{StaticResource ButtonHotBackgroundBrush}" />
                            <Setter TargetName="OuterBorder" Property="BorderBrush"
                                    Value="{StaticResource ButtonPushedOuterBorderBrush}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush"
                                    Value="{StaticResource ButtonHotInnerBorderBrush}" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="OuterBorder" Property="Background"
                                    Value="{StaticResource ButtonPushedBackgroundBrush}" />
                            <Setter TargetName="OuterBorder" Property="BorderBrush"
                                    Value="{StaticResource ButtonPushedOuterBorderBrush}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush"
                                    Value="{StaticResource ButtonPushedInnerBorderBrush}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="OuterBorder" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Content" Value="" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Path Stretch="Uniform" Height="5" Width="3"
                            Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z"
                            Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Padding" Value="2 2 3 2" />
        <Setter Property="Margin" Value="2" />
        
        
        <Setter Property="DockPanel.Dock" Value="Left" />
        
        <Setter Property="BorderBrush" Value="{StaticResource PageScrollViewerButtonOuterBorderBrush}" />
        <Setter Property="Background" Value="{StaticResource TabPageScrollViewerButtonBackgroundBrush}" />
        <Setter Property="IsTabStop" Value="False" />
    </Style>

    <!-- TabControl Top Template:-->
    <ControlTemplate x:Key="TabControlTopTemplate" TargetType="telerikNavigation:RadTabControl">
        <Grid>
            
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <!--Content-->
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
                    Grid.Row="1">
                
                
                <ContentControl x:Name="ContentElement" Padding="{TemplateBinding Padding}"
                        Content="{TemplateBinding SelectedContent}"
                        ContentTemplate="{TemplateBinding SelectedContentTemplate}"
                        Foreground="{TemplateBinding Foreground}" IsTabStop="False" />
                
            </Border>

            <!--Header Background-->
            <Rectangle Visibility="{TemplateBinding BackgroundVisibility}" />

            <!--TabStrip-->
            
                
                <DockPanel>
                    
                    <!-- Items: -->

                    <RepeatButton x:Name="LeftScrollButtonElement" Style="{StaticResource TabScrollButtonStyle}"
                            Margin="4 4 2 7"
                              
                        
                        DockPanel.Dock="Left"
                        
                        Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}" />
                        <RepeatButton x:Name="RightScrollButtonElement" RenderTransformOrigin="0.5,0.5"
                                Style="{StaticResource TabScrollButtonStyle}" Margin="2 4 2 7"
                               
                            
                            DockPanel.Dock="Right"
                            
                            Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=ScrollViewerElement}" >
                            <RepeatButton.RenderTransform>
                                <ScaleTransform ScaleX="-1" />
                            </RepeatButton.RenderTransform>
                        </RepeatButton>

                        <ScrollViewer x:Name="ScrollViewerElement" Style="{StaticResource EmptyScrollViewerStyle}"
                                Margin="2 4 2 0" VerticalScrollBarVisibility="Disabled"
                                HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
                            <ItemsPresenter />
                        </ScrollViewer>
                        
            
            </DockPanel>
            

        </Grid>
        
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <!--<Setter Property="Visibility" Value="Visible" TargetName="DisableVisual" />-->
            </Trigger>
            <Trigger Property="DropDownDisplayMode" Value="Visible">
                <!--<Setter Property="Visibility" Value="Visible" TargetName="DropDownButtonElement" />-->
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="DropDownDisplayMode" Value="WhenNeeded" />
                    <Condition SourceName="ScrollViewerElement" Property="ComputedHorizontalScrollBarVisibility"
                            Value="Visible" />
                </MultiTrigger.Conditions>
                <!--<Setter Property="Visibility" Value="Visible"
                                TargetName="DropDownButtonElement" />-->
            </MultiTrigger>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <!-- RadTabControl -->
    <Style TargetType="telerikNavigation:RadTabControl" x:Key="customType">
        <Setter Property="MinWidth" Value="5" />
        <Setter Property="MinHeight" Value="0" />
        <Setter Property="MaxHeight" Value="26" />
        <Setter Property="Foreground" Value="#FF000000" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="IsEnabled" Value="True" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="BorderThickness" Value="1 0 1 1" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikNavigationPrimitives:TabStripPanel x:Name="TabStripPanel" Margin="-2 0 -2 0" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
        <Setter Property="Template" Value="{StaticResource TabControlTopTemplate}" />
        <Setter Property="TopTemplate" Value="{StaticResource TabControlTopTemplate}" />
    </Style>

    <Style TargetType="telerikRibbonBar:QuickAccessToolBar"
           x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:QuickAccessToolBar}"
         >
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Background" Value="{StaticResource QatBelowBackgroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource QatBelowOuterBorderBrush}" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="CustomizationMenuVisibility" Value="Visible" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:QuickAccessToolBar">
                    <Grid MinHeight="22" x:Name="RootElement">
                        
                        <Grid x:Name="BelowBackgroundGrid" Visibility="Collapsed">
                            <Border BorderThickness="1" CornerRadius="2 2 0 0"
                                    BorderBrush="{StaticResource QatBelowInnerBorderBrush}" Margin="1,1,0,0"
                                    Background="{TemplateBinding Background}" />
                            <Border BorderThickness="1" CornerRadius="2 2 0 0"
                                    BorderBrush="{TemplateBinding BorderBrush}" Margin="0,0,1,1" />
                        </Grid>

                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="13" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid x:Name="AboveBackgroundGridWrapper">
                                <Grid x:Name="AboveBackgroundGrid" Height="22">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="14" />
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="10" />
                                        <ColumnDefinition Width="5" />
                                    </Grid.ColumnDefinitions>
                                    <Border Grid.Column="1" BorderBrush="{StaticResource QatAboveHighlightBrush}"
                                            BorderThickness="0,1,0,1" />
                                    <Border Grid.Column="1" Background="{StaticResource QatAboveBackgroundBrush}"
                                            BorderBrush="{StaticResource QatAboveBorderBrush}" BorderThickness="0,1,0,1"
                                            Margin="0,1,0,1" />
                                    <Path Grid.Column="0" Data="M 14,0.5 L -0.5,0.5 A 28,28 30 0 1 12,23.5 L 14,23.5"
                                            Stroke="{StaticResource QatAboveHighlightBrush}" StrokeThickness="1" />
                                    <Path Grid.Column="0" Data="M 14,1.5 L 1,1.5 A 27,27 30 0 1 13,22.5 L 14,22.5"
                                            Fill="{StaticResource QatAboveBackgroundBrush}"
                                            Stroke="{StaticResource QatAboveBorderBrush}" StrokeThickness="1" />
                                    <Path Grid.Column="2" Data="M0,0.5 A9,10,180,1,1,0,21.5"
                                            Stroke="{StaticResource QatAboveHighlightBrush}" StrokeThickness="1" />
                                    <Path Grid.Column="2" Data="M 0,1.5 A 8,10 180 1 1 0,22.5"
                                            Fill="{StaticResource QatAboveBackgroundBrush}"
                                            Stroke="{StaticResource QatAboveBorderBrush}" StrokeThickness="1" />
                                </Grid>
                            </Grid>
                            <Grid HorizontalAlignment="Left" x:Name="PART_StripPanelGrid" Grid.Column="0"
                                    Margin="16,0,22,0">
                                <StackPanel x:Name="PART_StripPanel" Orientation="Horizontal" HorizontalAlignment="Left" />
                            </Grid>

                            <Popup Grid.Column="1" x:Name="PART_Overflow">

                                <Border Margin="0" MinWidth="55" MinHeight="33">
                                    <Border BorderBrush="{StaticResource OverflowBorderInnerBrush}"
                                            Background="{StaticResource OverflowContentBackgroundBrush}"
                                            BorderThickness="1" Padding="1,2,1,2">

                                        <StackPanel x:Name="PART_OverflowPanel" Orientation="Vertical"
                                                VerticalAlignment="Top" />
                                    </Border>
                                </Border>
                            </Popup>

                            <telerikRibbonBar:RadRibbonDropDownButton
                                    Visibility="{TemplateBinding CustomizationMenuVisibility}"
                                    telerik:StyleManager.Theme="{StaticResource Theme}"
                                    DropDownIndicatorVisibility="Collapsed" Width="13" Height="22"
                                    HorizontalAlignment="Left" Grid.Column="1" VerticalAlignment="Top" Padding="0,2,0,2">
                                <telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
                                    <StackPanel>
                                        <telerikRibbonBar:RadGroupHeader Content="Customize Quick Access Toolbar"
                                                telerik:LocalizationManager.ResourceKey="RibbonBarQATCustomize" />

                                        <telerikNavigation:RadContextMenu
                                                telerik:StyleManager.Theme="{StaticResource Theme}" BorderThickness="0">
                                            <telerikNavigation:RadMenuItem x:Name="TogglePositionMenuItem"
                                                    Header="Show Below the Ribbon."
                                                    telerik:LocalizationManager.ResourceKey="RibbonBarQATShowBelow" />
                                            <telerikNavigation:RadMenuItem IsSeparator="True" Padding="0" Margin="0" />
                                            <telerikNavigation:RadMenuItem x:Name="ToggleMinimizeMenuItem"
                                                    Header="Minimize the Ribbon."
                                                    telerik:LocalizationManager.ResourceKey="RibbonBarQATMinimize" />
                                        </telerikNavigation:RadContextMenu>

                                    </StackPanel>
                                </telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
                                <Path x:Name="MainPopupButtonPath" HorizontalAlignment="Center"
                                        VerticalAlignment="Center" Margin="4,7,2,0"
                                        Data="M 0,-2.5 L 0,-1.5 L 7,-1.5 L 7,-2.5 M 0,0 L 3.5,3.5 L 7,0"
                                        Fill="{StaticResource QatButtonArrow}"
                                        Stroke="{StaticResource QatButtonArrowHighlight}" />
                            </telerikRibbonBar:RadRibbonDropDownButton>

                        </Grid>
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="Position" Value="BelowRibbon">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="AboveBackgroundGrid" />
                            <Setter Property="Visibility" Value="Visible" TargetName="BelowBackgroundGrid" />
                            <Setter Property="Margin" Value="2,2,0,2" TargetName="PART_StripPanelGrid" />
                            <!--<Setter Property="Header" Value="Show Above the Ribbon." TargetName="TogglePositionMenuItem" />-->
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TogglePositionMenuItem"
                                                Storyboard.TargetProperty="Header">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                    telerik:LocalizationManager.ResourceKey="RibbonBarQATShowAbove" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TogglePositionMenuItem"
                                                Storyboard.TargetProperty="Header">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                    telerik:LocalizationManager.ResourceKey="RibbonBarQATShowBelow" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="telerikRibbonBar:RadRibbonContextualGroupContainer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonContextualGroupContainer">
                    <Grid>
                        <ItemsPresenter />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="telerikRibbonBar:RadRibbonContextualGroup" x:Key="ContextualTabsHeaderstyle">
        <Setter Property="Foreground" Value="{StaticResource ContextualTabsHeader_Foreground}" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonContextualGroup">
                    <Grid 
                         Margin="0 -1 0 -3"
                         >
                        <Border BorderThickness="1 0" BorderBrush="#737b87" Margin="-0.5 0 0 2" />
                        <Border Margin="1"
                                Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}">
                            <Border.OpacityMask>
                                <RadialGradientBrush Center="0.507,1.136" GradientOrigin="0.5,1.136" RadiusX="0.736"
                                        RadiusY="1.08">
                                    <GradientStop Offset="1" />
                                    <GradientStop Color="#B2FFFFFF" Offset="0.325" />
                                </RadialGradientBrush>
                            </Border.OpacityMask>
                        </Border>
                        <Border BorderThickness="0 0 0 1"
                                BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                                Margin="0 0 0 1" VerticalAlignment="Bottom">
                            <Border.OpacityMask>
                                <LinearGradientBrush EndPoint="0.007,0.986" StartPoint="1.006,0.986">
                                    <GradientStop Offset="0" Color="#26000000" />
                                    <GradientStop Color="White" Offset="0.5" />
                                    <GradientStop Offset="1" Color="#26000000" />
                                </LinearGradientBrush>
                            </Border.OpacityMask>
                        </Border>
                        <ContentPresenter Margin="10 0 0 0" Content="{TemplateBinding Header}"
                                HorizontalAlignment="Left" VerticalAlignment="Center" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
      
    <!-- RibbonBar -->
    <Style TargetType="telerikRibbonBar:RadRibbonBar"
		x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonBar}"
         >
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Background" Value="{StaticResource RibbonBackgroundBrush}" />
        <Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
        <Setter Property="ApplicationButtonVisibility" Value="Visible" />
        <Setter Property="TitleBarVisibility" Value="Visible" />
        <Setter Property="HelpButtonVisibility" Value="Collapsed" />
        <Setter Property="MinimizeButtonVisibility" Value="Collapsed" />
        <Setter Property="ApplicationName" Value="My Application" />
        <Setter Property="IsMinimizable" Value="True" />
        <Setter Property="IsMouseWheelTabScrollingEnabled" Value="True" />
        <Setter Property="QuickAccessToolBarPosition" Value="AboveRibbon" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="CollapseThresholdSize" Value="300, 250" />
        <Setter Property="FontSize" Value="10.8" />
        <Setter Property="TitleBarStyle" Value="{StaticResource WindowTitleStyle}" />
        <Setter Property="ApplicationButtonStyle" Value="{StaticResource ApplicationButtonStyle}" />
        <Setter Property="TitleBarBackground" Value="{StaticResource RibbonTitlebarBackgroundBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonBar">
                    <Grid x:Name="RootElement" SnapsToDevicePixels="True"
                         >
                        <Grid.Resources>
                            <Style TargetType="telerikNavigation:RadTabItem" x:Key="ContextualTabsStyle">
                                <Setter Property="Padding" Value="0,1,0,1" />
                                <Setter Property="Margin" Value="0" />
                                <Setter Property="Background" Value="Pink" />
                                <Setter Property="BorderThickness" Value="1,0,0,0" />
                                <Setter Property="Foreground" Value="Pink" />
                                <Setter Property="IsTabStop" Value="False" />
                                <Setter Property="BorderBrush" Value="{StaticResource TabStripTabDividerBrush}" />
                                
                                <Setter Property="FocusVisualStyle">
                                    <Setter.Value>
                                        <Style TargetType="Control">
                                            <Setter Property="Visibility" Value="Collapsed" />
                                        </Style>
                                    </Setter.Value>
                                </Setter>
                                
                                <Setter Property="TopTemplate">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="telerikNavigation:RadTabItem">
                                            <Grid x:Name="wrapper" Margin="1,1,0,1">
                                                

                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="3" />
                                                    <ColumnDefinition Width="*" />
                                                    <ColumnDefinition Width="3" />
                                                </Grid.ColumnDefinitions>

                                                <Border BorderBrush="#848484" Grid.ColumnSpan="3" Opacity="0"
                                                        x:Name="MouseOverVisual" BorderThickness="1 1 1 0"
                                                        CornerRadius="3 3 0 0">
                                                    <Border CornerRadius="2 2 0 0" BorderBrush="#99FFFFFF"
                                                            BorderThickness="1 1 1 0">
                                                        <Border CornerRadius="1 1 0 0" Opacity="0.6"
                                                                Background="{TemplateBinding Background}">
                                                            <Border.OpacityMask>
                                                                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                    <GradientStop Color="#00FFFFFF" Offset="0" />
                                                                    <GradientStop Color="#ffFFFFFF" Offset="1" />
                                                                    <GradientStop Color="#19FFFFFF" Offset="0.527" />
                                                                </LinearGradientBrush>
                                                            </Border.OpacityMask>
                                                        </Border>
                                                    </Border>
                                                </Border>

                                                <Border BorderBrush="#848484" Grid.ColumnSpan="3" Opacity="0"
                                                        x:Name="SelectionVisual" BorderThickness="1 1 1 0"
                                                        CornerRadius="3 3 0 0" Background="#FFFFFFFF">
                                                    <Border CornerRadius="2 2 0 0" x:Name="InnerBackground"
                                                            Background="{TemplateBinding Background}">
                                                        <Border.OpacityMask>
                                                            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                <GradientStop Color="#19FFFFFF" Offset="0" />
                                                                <GradientStop Color="#59FFFFFF" Offset="0.173" />
                                                                <GradientStop Color="#7FFFFFFF" Offset="0.191" />
                                                                <GradientStop Color="Transparent" Offset="0.866" />
                                                            </LinearGradientBrush>
                                                        </Border.OpacityMask>
                                                    </Border>
                                                </Border>

                                                <telerikNavigationPrimitives:TabItemContentPresenter Grid.Column="1"
                                                        IsTabStop="False" x:Name="HeaderElement"
                                                        Content="{TemplateBinding Header}"
                                                        ContentTemplate="{TemplateBinding HeaderTemplate}"
                                                        VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                                        HorizontalAlignment="Center" HorizontalContentAlignment="Center"
                                                        VerticalAlignment="Center" Margin="0,2,0,1" Foreground="#000000" />

                                            </Grid>
                                            
                                            <ControlTemplate.Triggers>
                                                <Trigger Property="IsMouseOver" Value="True">
                                                    <Setter TargetName="MouseOverVisual" Property="Opacity" Value="1" />
                                                </Trigger>
                                                <Trigger Property="IsSelected" Value="True">
                                                    <Setter TargetName="SelectionVisual" Property="Opacity" Value="1" />
                                                </Trigger>
                                                <Trigger Property="IsEnabled" Value="False">
                                                    <Setter Property="Opacity" Value="0.5" TargetName="HeaderElement" />
                                                    <Setter TargetName="SelectionVisual" Property="Opacity" Value="0" />
                                                    <Setter TargetName="MouseOverVisual" Property="Opacity" Value="0" />
                                                </Trigger>

                                                <!--Horizontal Left-->
                                                <MultiTrigger>
                                                    <MultiTrigger.Conditions>
                                                        <Condition Property="IsMouseOver" Value="True" />
                                                        <Condition Property="IsSelected" Value="True" />
                                                    </MultiTrigger.Conditions>
                                                    <Setter TargetName="InnerBackground" Property="Background"
                                                            Value="#fbe0a1" />
                                                </MultiTrigger>
                                            </ControlTemplate.Triggers>
                                            
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Grid.Resources>
                        
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" MaxHeight="28" />
                            <RowDefinition Height="Auto" MaxHeight="24" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <!-- Background Fill -->
                        <Rectangle Grid.Row="1" Grid.RowSpan="3" Grid.ColumnSpan="2" Fill="{TemplateBinding Background}" />
                        <!-- Titlebar background -->
                        <Border Grid.ColumnSpan="2" x:Name="titleBarBackground" BorderThickness="0,0,0,1"
                                Visibility="{TemplateBinding TitleBarVisibility}"
                                BorderBrush="{StaticResource RibbonTitlebarBorderBrush}"
                                Background="{TemplateBinding TitleBarBackground}" />
                        <!-- Tabstrip background -->
                        <Rectangle Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Top"
                                Visibility="{TemplateBinding TitleBarVisibility}" Height="1"
                                Fill="{StaticResource RibbonTabstripBorderBrush}" />

                        <Grid Grid.Column="1" Height="28"
                                Visibility="{TemplateBinding TitleBarVisibility}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="AboveToolBarHost" Margin="-7,0,0,1" VerticalAlignment="Bottom"
                                    HorizontalAlignment="Left" />
                            
                        </Grid>

                        <!-- Tabstrip and help button -->
                        <Grid Grid.Row="1" Grid.Column="1" Canvas.ZIndex="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <!--ItemContainerStyle="{StaticResource RibbonRadTabItemStyle}"-->
                            <telerikNavigation:RadTabControl BackgroundVisibility="Collapsed"
                                    ItemContainerStyle="{StaticResource RibbonRadTabItemStyle}"
                                    Style="{StaticResource customType}" IsTabStop="False" x:Name="TabControl"
                                    Margin="10,-3,0,0" ScrollViewer.HorizontalScrollBarVisibility="Auto"
									 >

                                <telerikNavigation:RadTabControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerikRibbonBarPrimitives:TabStripPanel SeparatorOpacityThreshold="3"
                                                VariablePaddingLength="15" />
                                    </ItemsPanelTemplate>
                                </telerikNavigation:RadTabControl.ItemsPanel>
                            </telerikNavigation:RadTabControl>

                            <StackPanel Grid.Column="1" Orientation="Horizontal">

                                <telerikRibbonBar:RadRibbonToggleButton Style="{StaticResource MinimizeButtonStyle}"
                                        Visibility="{TemplateBinding MinimizeButtonVisibility}" Size="Small"
                                        x:Name="MinimizeButton" />

                                <telerikRibbonBar:RadRibbonButton telerik:StyleManager.Theme="{StaticResource Theme}"
                                        Visibility="{TemplateBinding HelpButtonVisibility}" x:Name="HelpButton"
                                        Size="Small" Height="21" SmallImage="{TemplateBinding HelpButtonImageSource}"
                                        VerticalAlignment="Center" />

                                <ContentPresenter Margin="0" Content="{TemplateBinding TabStripAdditionalContent}" />
                            </StackPanel>
                        </Grid>
                        
                        <DockPanel Grid.Column="0" Grid.ColumnSpan="2" MaxHeight="23"
                                Visibility="{TemplateBinding TitleBarVisibility}">
                            <ContentControl x:Name="windowButtonPlaceHolder" IsHitTestVisible="false"
                                    DockPanel.Dock="Right" Focusable="false"
                                    Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}, Path=CaptionButtonsReservedWidth}"
                                    IsTabStop="False" />
                            <ContentControl x:Name="windowIconPadding" Width="28" IsHitTestVisible="false"
                                    DockPanel.Dock="Left" Focusable="false" IsTabStop="False" />
                            <telerikRibbonBarPrimitives:RibbonTitlePanel x:Name="TitleHost">
                                <telerikRibbonBarPrimitives:RibbonTitlePanel.ContextualGroupPlaceholder>
                                    <ItemsControl x:Name="ContextPanel"
                                            ItemContainerStyle="{StaticResource ContextualTabsHeaderstyle}">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <telerikRibbonBarPrimitives:ContextualGroupPanel />
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                    </ItemsControl>
                                </telerikRibbonBarPrimitives:RibbonTitlePanel.ContextualGroupPlaceholder>
                                <telerikRibbonBarPrimitives:RibbonTitlePanel.TitlePlaceholder>
                                    <telerikRibbonBarPrimitives:WindowTitle                                            
                                            Title="{TemplateBinding Title}"
                                            ApplicationName="{TemplateBinding ApplicationName}"
                                            Style="{TemplateBinding TitleBarStyle}" />
                                </telerikRibbonBarPrimitives:RibbonTitlePanel.TitlePlaceholder>
                                <telerikRibbonBarPrimitives:RibbonTitlePanel.QuickAccessToolBarPlaceholder>
                                    <StackPanel>
                                        <ContentPresenter Margin="5,1,0,0" x:Name="QatTopHost"
                                                Content="{TemplateBinding QuickAccessToolBar}" />
                                    </StackPanel>
                                </telerikRibbonBarPrimitives:RibbonTitlePanel.QuickAccessToolBarPlaceholder>
                            </telerikRibbonBarPrimitives:RibbonTitlePanel>
                        </DockPanel>
                        
                        <!-- Application button -->
                        <telerikRibbonBar:RadRibbonDropDownButton IsTabStop="False" x:Name="ApplicationButton"
                                Grid.RowSpan="2" Margin="4,4,0,5" DropDownIndicatorVisibility="Collapsed"
                                SmallImage="{TemplateBinding ApplicationButtonImageSource}"
                                Content="{TemplateBinding ApplicationButtonContent}" IsAutoSize="False"
                                Style="{TemplateBinding ApplicationButtonStyle}"
                                Visibility="{TemplateBinding ApplicationButtonVisibility}" />

                        <!-- Tab content -->
                        <Border Canvas.ZIndex="0" x:Name="TabContentHost" Grid.Row="2" Grid.ColumnSpan="2"
                                Background="{StaticResource RibbonLowerBackgroundBrush}" Visibility="Collapsed">
                            <Grid>
                                

                                <ContentPresenter x:Name="SelectedTabPresenter" Margin="1,-1,1,2" Height="91.0" />
                                <Rectangle VerticalAlignment="Bottom" Margin="4,0,4,1" Height="1" Fill="#0C000000" />
                            </Grid>
                        </Border>

                        <Popup x:Name="TabContentPopup" VerticalOffset="-2" 
                               AllowsTransparency="True"
                             >
                        </Popup>

                        <!-- RadToolBar -->
                        <Border x:Name="MinimizedDivider" Height="2" Grid.Row="3" Grid.ColumnSpan="2"
                                VerticalAlignment="Top" BorderThickness="0,1,0,0"
                                BorderBrush="{StaticResource RibbonDividerDarkBrush}"
                                Background="{StaticResource RibbonDividerLightBrush}" />
                        <ContentPresenter x:Name="BelowToolBarHost" Grid.Row="3" Grid.ColumnSpan="2" />
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Visibility" Value="Visible" TargetName="TabContentHost" />
                            <Setter Property="Visibility" Value="Collapsed" TargetName="MinimizedDivider" />
                        </Trigger>
                        <Trigger Property="IsMinimized" Value="True">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="TabContentHost" />
                            <Setter Property="Visibility" Value="Visible" TargetName="MinimizedDivider" />
                        </Trigger>
                        <Trigger Property="IsHostedInRibbonWindow" Value="true">
                            <Setter TargetName="titleBarBackground" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
	

	<Style TargetType="telerikRibbonBar:RadRibbonButton"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonButton}"
		
		>
		<Setter Property="Padding" Value="3" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonButton">
					<Grid >
						

						<Border x:Name="buttonSurface"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="2">
							<Border x:Name="buttonSurfaceInner"
									BorderBrush="Transparent"
									BorderThickness="{TemplateBinding BorderThickness}" />
						</Border>

                        <Grid Margin="{TemplateBinding Padding}" x:Name="ContentGrid">
							<ContentPresenter
								Name="ContentPresenter"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								RecognizesAccessKey="True"
								 />

							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto"/>
									<RowDefinition Height="*" MaxHeight="28"/>
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>

								<Image Name="Image"/>

								<TextBlock Name="textRow1" Grid.Row="1" Margin="0,2,0,0"
									Text="{TemplateBinding TextRow1}" TextAlignment="Center" />
								<TextBlock Name="textRow2" Grid.Row="1" Margin="0,14,0,0"
									Text="{TemplateBinding TextRow2}" TextAlignment="Center" />
							</Grid>
						</Grid>
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonOverBorder}"/>
							<Setter Property="Background" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonOverBackground}"/>
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner" Value="{StaticResource RadRibbonBarButtonOverBorderInner}"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
							<Setter Property="Background" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="ContentGrid" Property="Opacity" Value="0.5" />
						</Trigger>
						<Trigger Property="IsDefault" Value="True" />
						<Trigger Property="CurrentSize" Value="Large" />
						<Trigger Property="CurrentSize" Value="Medium">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Small">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

	<!-- For  ComboBox, ... -->
	<Style TargetType="telerik:PickerToggleButton" x:Key="ToogleButtonStyle" >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="BorderBrush" Value="{StaticResource ExpanderButtonNormal_Border}" />
		<Setter Property="Background" Value="{StaticResource ExpanderButtonNormal_Background}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:PickerToggleButton">
					<Grid>
                        
						<Border x:Name="Chrome"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="1">
							<Border x:Name="ChromeInner"
									BorderBrush="{TemplateBinding Background}"
									BorderThickness="1"
									Background="{TemplateBinding Background}" />
						</Border>

						<Border x:Name="ChromeCheck" Visibility="Collapsed"
								BorderBrush="{StaticResource ExpandButtonPressed_OuterBorder}"
								BorderThickness="1">
							<Border BorderBrush="{StaticResource ExpanderButtonPressed_Border}"
									BorderThickness="1"
									Background="{StaticResource ExpanderButtonPressed_Background}" />
						</Border>

						<Path x:Name="Path"
								Data="M-0.7,0.45 L6.2,0.45 L2.814,5.509 L2.814,5.509 z" 
								Fill="{StaticResource RibbonGroupButtonArrow}" 
								Stretch="Fill" Width="5" Height="3"
								HorizontalAlignment="Right"
								Margin="0 0 4 0"
								VerticalAlignment="Center" />

						<ContentPresenter Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}" />

					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter TargetName="Chrome"  Property="BorderBrush" 
									Value="{StaticResource ExpandButtonOver_OuterBorder}" />
							<Setter TargetName="ChromeInner" Property="BorderBrush"
									Value="{StaticResource ExpanderButtonOver_Border}" />
							<Setter TargetName="ChromeInner" Property="Background" 
									Value="{StaticResource ExpanderButtonOver_Background}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="Chrome" Property="BorderBrush"
									Value="{StaticResource ExpandButtonPressed_OuterBorder}" />
							<Setter TargetName="ChromeInner" Property="BorderBrush"
									Value="{StaticResource ExpanderButtonPressed_Border}" />
							<Setter TargetName="ChromeInner" Property="Background"
									Value="{StaticResource ExpanderButtonPressed_Background}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False" />
						<Trigger Property="IsChecked" Value="True">
							<Setter TargetName="ChromeCheck" Property="Visibility" Value="Collapsed"/>
						</Trigger>
					</ControlTemplate.Triggers>
					

				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<!-- NonEditableComboBoxTemplate -->
	<ControlTemplate x:Key="NonEditableComboBox" TargetType="telerikRibbonBar:RadRibbonComboBox">
		<Grid Name="MainGrid">
            

			<Border x:Name="ContentPresenterBorder" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition  Width="*"/>
						<ColumnDefinition Width="20" />
					</Grid.ColumnDefinitions>

					<telerik:PickerToggleButton Margin="-1" x:Name="PART_DropDownButton"
                                Grid.ColumnSpan="2"
								Style="{StaticResource ToogleButtonStyle}"
								IsChecked="{TemplateBinding IsDropDownOpen}"
								IsEnabled="{TemplateBinding IsEnabled}" />


					<ContentPresenter x:Name="ContentPresenterElement"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								Margin="{TemplateBinding Padding}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								IsHitTestVisible="False"
								ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
								Content="{TemplateBinding SelectionBoxItem}" />
				</Grid>
			</Border>

			
			<Popup x:Name="PART_Popup" AllowsTransparency="True"
				   PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" >
			
			
					
				<Border x:Name="DropDownBorder"
						HorizontalAlignment="Stretch"
						MinWidth="{TemplateBinding MinDropDownWidth}"
						MaxHeight="{TemplateBinding MaxDropDownHeight}">
					<Grid>
						<Border Background="{StaticResource RibbonPopupBackgroundBrush}" 
								BorderThickness="1"
                                BorderBrush="{StaticResource RibbonPopupOuterBorderBrush}" >
							<Border BorderBrush="{StaticResource RibbonPopupInnerBorderBrush}" BorderThickness="1">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <telerik:RadButton x:Name="PART_ClearButton" Grid.Row="0"
								            Margin="-1 -1 -1 0"
								            Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
								            Content="{TemplateBinding ClearSelectionButtonContent}"
								            telerik:StyleManager.Theme="{StaticResource Theme}" />

                                    <ScrollViewer x:Name="PART_ScrollViewer" Padding="0 1" Grid.Row="1"
											VerticalScrollBarVisibility="Auto" BorderThickness="0"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            
                                            
                                            CanContentScroll="True"
                                            >
                                        
                                        <ItemsPresenter />
                                    </ScrollViewer>
                                </Grid>
                            </Border>
						</Border>
					</Grid>
				</Border>
			
			</Popup>
			
			


			<Rectangle x:Name="DisabledVisual" Visibility="Collapsed"  
					Fill="{StaticResource DisabledBrush}" />
		</Grid>
		
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="True" />
			<Trigger Property="IsKeyboardFocusWithin" Value="True" />
			<Trigger Property="IsEnabled" Value="False">
				<Setter TargetName="DisabledVisual" Property="Visibility" Value="Visible" />
			</Trigger>
		</ControlTemplate.Triggers>
		
		
	</ControlTemplate>
	<!-- EditableComboBoxTemplate -->
	<ControlTemplate x:Key="EditableComboBox" TargetType="telerikRibbonBar:RadRibbonComboBox">
		<Grid>
            
			<Border x:Name="ContentPresenterBorder" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="Auto" />
					</Grid.ColumnDefinitions>
					<telerik:PickerTextBox Grid.Column="0" Name="PART_EditableTextBox"
								Margin="{TemplateBinding Padding}"
								HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
								IsReadOnly="{TemplateBinding IsReadOnly}"/>

					<telerik:PickerToggleButton MinWidth="14" Margin="0,-1,-1,-1" x:Name="PART_DropDownButton" Grid.Column="1"
								Style="{StaticResource ToogleButtonStyle}"
								IsChecked="{TemplateBinding IsDropDownOpen}"
								IsEnabled="{TemplateBinding IsEnabled}" />

                    <TextBlock x:Name="Watermark" Text="{TemplateBinding EmptyText}" Opacity=".5" IsHitTestVisible="False" 
					   VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Visibility="Collapsed" />
                </Grid>
			</Border>

			
			<Popup x:Name="PART_Popup" AllowsTransparency="True"
				   PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" >
			
			
					
				<Border x:Name="DropDownBorder"
						HorizontalAlignment="Stretch"
						MinWidth="{TemplateBinding MinDropDownWidth}"
						MaxHeight="{TemplateBinding MaxDropDownHeight}">
					<Grid>
						<Border Background="{StaticResource RibbonPopupBackgroundBrush}" 
								BorderThickness="1"  
                                BorderBrush="{StaticResource RibbonPopupOuterBorderBrush}" >
							<Border BorderBrush="{StaticResource RibbonPopupInnerBorderBrush}" BorderThickness="1" >
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <telerik:RadButton x:Name="PART_ClearButton" Grid.Row="0"
								            Margin="-1 -1 -1 0"
								            Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
								            Content="{TemplateBinding ClearSelectionButtonContent}"
								            telerik:StyleManager.Theme="{StaticResource Theme}" />

                                    <ScrollViewer x:Name="PART_ScrollViewer" Padding="0 1" Grid.Row="1"
											VerticalScrollBarVisibility="Auto" BorderThickness="0"	
                                            telerik:StyleManager.Theme="{StaticResource Theme}" 
                                            
                                            
                                            CanContentScroll="True"
                                             >

                                        <ItemsPresenter />
                                    </ScrollViewer>
                                </Grid>
                            </Border>
						</Border>
					</Grid>
				</Border>
			
			</Popup>
			
			

			<Rectangle x:Name="DisabledVisual" Visibility="Collapsed" Fill="{StaticResource DisabledBrush}" />
		</Grid>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="True" >
				<Setter TargetName="ContentPresenterBorder" Property="Background" 
						Value="{StaticResource RibbonComboBoxHotBackgroundBrush}" />
				<Setter TargetName="ContentPresenterBorder" Property="BorderBrush"
						Value="{StaticResource RibbonComboBoxHotBorderBrush}" />
				<Setter TargetName="PART_DropDownButton" Property="IsEnabled" Value="True" />
				<Setter TargetName="PART_DropDownButton" Property="Background"
						Value="{StaticResource RibbonComboBoxButtonBackgroundBrush}" />
				<Setter TargetName="PART_DropDownButton" Property="BorderBrush"
						Value="{StaticResource RibbonComboBoxBorderBrush}" />
			</Trigger>
            <Trigger Property="IsWatermarkVisible" Value="True">
                <Setter TargetName="Watermark" Property="Visibility" Value="Visible" />
            </Trigger>
            <Trigger Property="IsKeyboardFocusWithin" Value="True" />
            <Trigger Property="IsEnabled" Value="False" >
                <Setter TargetName="DisabledVisual" Property="Visibility" Value="Visible" />
            </Trigger>
        </ControlTemplate.Triggers>
		
	</ControlTemplate>
	<!-- RadComboBox -->
	<Style TargetType="telerikRibbonBar:RadRibbonComboBox"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonComboBox}"
        >
		<Setter Property="Background" Value="{StaticResource RibbonComboBoxBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonComboBoxBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="FontSize" Value="11" />
		<Setter Property="Foreground" Value="{StaticResource RibbonComboBoxForegroundBrush}" />
		<Setter Property="Padding" Value="3,2,3,2" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="ClearSelectionButtonContent" Value="Clear" />
        
        
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        
        <Setter Property="Template" Value="{StaticResource NonEditableComboBox}" />
		<Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}" />
		<Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
        
	</Style>
	<!-- RadComboBoxItem -->
	<Style TargetType="telerikRibbonBar:RadRibbonComboBoxItem"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonComboBoxItem}"
        >
		<Setter Property="MinHeight" Value="17" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Foreground" Value="#00156e" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonComboBoxItem">
					<Grid x:Name="LayoutRoot" MinHeight="{TemplateBinding MinHeight}">


						<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}"
									BorderThickness="{TemplateBinding BorderThickness}"
									CornerRadius="{StaticResource ComboboxItemCornerRadius}" >

							<Border x:Name="InnerBd" BorderBrush="{TemplateBinding BorderBrush}"
									BorderThickness="1"
									Background="{TemplateBinding Background}" CornerRadius="{StaticResource ComboboxItemInnerCornerRadius}" >

								<ContentPresenter Margin="2,0,0,0" VerticalAlignment="Center" />
							</Border>
						</Border>

						<Rectangle x:Name="DisabledVisual" Visibility="Collapsed"
								Fill="{StaticResource DisabledBrush}" />
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True" >
							<Setter TargetName="Bd" Property="BorderBrush" 
									Value="{StaticResource ComboboxItemHotOuterBorderBrush}" />
							<Setter TargetName="InnerBd" Property="BorderBrush" 
									Value="{StaticResource ComboboxItemHotInnerBorderBrush}" />
							<Setter TargetName="InnerBd" Property="Background" 
									Value="{StaticResource ComboboxItemHotBackgroundBrush}" />
						</Trigger>
						<Trigger Property="IsKeyboardFocusWithin" Value="True" />
						<Trigger Property="IsEnabled" Value="False" >
							<Setter Property="Visibility" TargetName="DisabledVisual" Value="Visible"/>
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	
	

    <Style TargetType="telerikRibbonBar:RadRibbonDropDownButton"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=telerik:TransparentTheme, ElementType=telerikRibbonBar:RadRibbonDropDownButton}"
		
		>
		<Setter Property="Padding" Value="3" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="DropDownButtonPosition" Value="Bottom" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonDropDownButton">
					<Grid>
						

						<Border x:Name="backgroundDecorator"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="2">
							<Border x:Name="backgroundDecoratorInner"
									BorderBrush="Transparent"
									BorderThickness="1"/>
						</Border>

						<Border x:Name="PressedDecorator" Opacity="0"
								BorderThickness="1"
								BorderBrush="{StaticResource RadRibbonBarDropDownButtonPressedBorder}"
								Background="{StaticResource RadRibbonBarDropDownButtonPressedBackground}"
								CornerRadius="2">
							<Border x:Name="PressedDecoratorInner"
									BorderBrush="{StaticResource RadRibbonBarDropDownButtonPressedBorderInner}"
									BorderThickness="1"
									/>
						</Border>

                        <Grid Margin="{TemplateBinding Padding}"  x:Name="ContentGrid">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*"  />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<ContentPresenter
								Name="ContentPresenter"
								Grid.ColumnSpan="2" Grid.RowSpan="2"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								 RecognizesAccessKey="True"  />

							<Image Name="Image" />

							<TextBlock Name="textRow1" Grid.Row="1" Margin="3,2,2,0"
									Text="{TemplateBinding TextRow1}" TextAlignment="Center" />

                             <StackPanel Name="DropDownPanel" Grid.Row="1" Margin="2,14,0,0"
									HorizontalAlignment="Center" Orientation="Horizontal"
									MinHeight="14" MaxHeight="14" Height="14">
								<TextBlock Name="textRow2" Text="{TemplateBinding TextRow2}" />
								<Path
									Name="DropDownIndicator"
									IsHitTestVisible="False"
									VerticalAlignment="Center"
									Visibility="{TemplateBinding DropDownIndicatorVisibility}"
									Fill="{StaticResource RibbonButtonDropDownArrow}"
									Stroke="{StaticResource RibbonButtonDropDownArrowBorder}"
									Data="M 0,0 L 3.5,3.5 L 7,0"
									Margin="2,0,2,0"
									 SnapsToDevicePixels="True"  />
							</StackPanel>
						</Grid>

						
						<Popup x:Name="DropDownPopup" 
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
						
						

							<Grid>
								<!--<telerikRibbonBarPrimitives:DropShadow Margin="6,6,4,4" />-->
								<Border x:Name="DropDownPopupBorder"
										BorderBrush="{StaticResource DropDownPopupBorderBrush}"
										Background="{StaticResource DropDownPopupBackgroundBrush}"
										BorderThickness="1" Padding="1" 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.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter Property="BorderBrush" TargetName="backgroundDecorator" Value="{StaticResource RadRibbonBarButtonOverBorder}"/>
							<Setter Property="Background" TargetName="backgroundDecorator" Value="{StaticResource RadRibbonBarButtonOverBackground}"/>
							<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner" Value="{StaticResource RadRibbonBarButtonOverBorderInner}"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="PressedDecorator" Value="1"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="ContentGrid" Property="Opacity" Value="0.5" />
                        </Trigger>
						<Trigger Property="IsFocused" Value="True" />
						<Trigger Property="IsOpen" Value="True">
							<Setter Property="Opacity" TargetName="PressedDecorator" Value="1"/>
						</Trigger>
						<Trigger Property="DropDownButtonPosition" Value="Top" />
						<Trigger Property="DropDownButtonPosition" Value="Left" />
						<Trigger Property="DropDownButtonPosition" Value="Bottom" />
						<Trigger Property="DropDownButtonPosition" Value="Right">
							<Setter TargetName="DropDownPanel" Property="Grid.Column" Value="2"/>
							<Setter TargetName="DropDownPanel" Property="Grid.RowSpan" Value="2"/>
                            <Setter TargetName="DropDownPanel" Property="Margin" Value="2,0,0,0"/>
                            <Setter TargetName="textRow1" Property="Grid.RowSpan" Value="2"/>
                            <Setter TargetName="Image" Property="Grid.RowSpan" Value="2"/>
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Large" />
						<Trigger Property="CurrentSize" Value="Medium">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,3,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Small">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="DropDownPlacement" Value="Absolute" />
						<Trigger Property="DropDownPlacement" Value="Bottom" />
						<Trigger Property="DropDownPlacement" Value="Center" />
						<Trigger Property="DropDownPlacement" Value="Top" />
						<Trigger Property="DropDownPlacement" Value="Left" />
						<Trigger Property="DropDownPlacement" Value="Right" />
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    
	

    <Style TargetType="telerikRibbonBar:RadRibbonGallery"
        x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonGallery}"
        >
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="BorderBrush" Value="{StaticResource RibbonGalleryBorderBrush}" />
        <Setter Property="Background" Value="{StaticResource RibbonGalleryBackgroundBrush}" />
        <Setter Property="ViewportWidth" Value="217" />
        <Setter Property="ViewportHeight" Value="58" />
		
		
        <Setter Property="MoreButtonTitle" Value="More" />
        <Setter Property="UpDownButtonTitle" Value="Row " />
		
        <Setter Property="ItemWidth" Value="20"/>
        <Setter Property="ItemHeight" Value="20"/>
        <Setter Property="PopupLaunchButtonVisibility" Value="Visible" />
        <!--<Setter Property="PopupViewportHeight" Value="170" />-->
        <Setter Property="PopupViewportWidth" Value="237" />
        <Setter Property="Icon" Value="/Telerik.Windows.Controls.RibbonBar;component/RibbonGalleryCollapsedIcon.png" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik:RadWrapPanel 
                        
                        ItemWidth="{Binding RelativeSource={RelativeSource
FindAncestor, AncestorType={x:Type telerikRibbonBar:RadRibbonGallery}},
Path=ItemWidth}" ItemHeight="{Binding RelativeSource={RelativeSource
FindAncestor, AncestorType={x:Type telerikRibbonBar:RadRibbonGallery}},
Path=ItemHeight}"
                         />
                    
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonGallery">
                    <Grid>
                        
                        <Border Name="ExpandedBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="0,1,1,0">
                            <Grid >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="14" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <ScrollViewer Name="ScrollViewer"  Grid.RowSpan="3" VerticalScrollBarVisibility="Hidden" IsTabStop="False" BorderThickness="0" Height="{TemplateBinding ViewportHeight}" Padding="0,1,0,1">
                                    <Border Name="InRibbonHost" Width="{TemplateBinding ViewportWidth}" HorizontalAlignment="Left" >
                                        <ItemsPresenter Name="ItemsPresenter" />
                                    </Border>
                                </ScrollViewer>
                               
                                <telerikRibbonBar:RadRibbonButton telerik:StyleManager.Theme="{StaticResource Theme}" telerikRibbonBar:ScreenTip.Title="{TemplateBinding UpDownButtonTitle}"  HorizontalAlignment="Stretch" Name="ScrollUpButton" Grid.Column="1" Grid.Row="0" IsTabStop="False" BorderBrush="{TemplateBinding BorderBrush}" Margin="0,-1,-1,0" Background="{StaticResource RibbonGalleryItemBackgroundBrush}" Padding="0" >
                                    <Path Margin="4 1 0 0"  Data="M 0,3.5 L 3.5,0 L 7,3.5" Fill="{StaticResource RibbonGroupButtonArrow}" Stroke="{StaticResource RibbonGroupButtonArrowHighlight}" />
                                </telerikRibbonBar:RadRibbonButton>
                                <telerikRibbonBar:RadRibbonButton telerik:StyleManager.Theme="{StaticResource Theme}" telerikRibbonBar:ScreenTip.Title="{TemplateBinding UpDownButtonTitle}"   HorizontalAlignment="Stretch" Name="ScrollDownButton" Grid.Column="1" Grid.Row="1" IsTabStop="False" BorderBrush="{TemplateBinding BorderBrush}" Margin="0,-1,-1,-1" Background="{StaticResource RibbonGalleryItemBackgroundBrush}" Padding="0">
                                    <Path  Margin="4 2 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource RibbonGroupButtonArrow}" Stroke="{StaticResource RibbonGroupButtonArrowHighlight}" />
                                </telerikRibbonBar:RadRibbonButton>
                                <telerikRibbonBar:RadRibbonDropDownButton telerik:StyleManager.Theme="{StaticResource Theme}" telerikRibbonBar:ScreenTip.Title="{TemplateBinding MoreButtonTitle}" HorizontalAlignment="Stretch"   DropDownIndicatorVisibility="Collapsed" Visibility="{TemplateBinding PopupLaunchButtonVisibility}" x:Name="PopupButton" Grid.Column="1" Grid.Row="2" BorderBrush="{TemplateBinding BorderBrush}" Margin="0,0,-1,-1" Background="{StaticResource RibbonGalleryItemBackgroundBrush}" Padding="0,0,-1,0">
                                    <Path HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,4,0,0" Data="M 0,-2.5 L 0,-1.5 L 7,-1.5 L 7,-2.5 M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource RibbonGroupButtonArrow}" Stroke="{StaticResource RibbonGroupButtonArrowHighlight}" />
                                </telerikRibbonBar:RadRibbonDropDownButton>
                               
                            </Grid>
                        </Border>
                       
                        <telerikRibbonBar:RadRibbonDropDownButton telerik:StyleManager.Theme="{StaticResource Theme}" Name="CollapsedButton" Size="Large" LargeImage="{TemplateBinding Icon}" Text="{TemplateBinding Title}" Visibility="Collapsed">
                            <telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
                                <Grid Width="{TemplateBinding PopupViewportWidth}" >
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <ScrollViewer telerik:StyleManager.Theme="{StaticResource Theme}"
												  Grid.Row="0" 
												  IsTabStop="False" 
												  BorderThickness="0" Margin="0"  
												  Height="{TemplateBinding PopupViewportHeight}" Padding="0"
												VerticalScrollBarVisibility="Visible">
                                        <Border Name="PopupHost" HorizontalAlignment="Left" Margin="0" Width="{TemplateBinding PopupViewportWidth}" >
                                        </Border>
                                    </ScrollViewer>

                                    <telerikNavigation:RadContextMenu telerik:StyleManager.Theme="{StaticResource Theme}" 
                                         HorizontalContentAlignment="Stretch" x:Name="menu" BorderThickness="0,1,0,0" Grid.Row="1"  ItemsSource="{TemplateBinding PopupMenuItems}" />
                                   
                                </Grid>
                            </telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
                        </telerikRibbonBar:RadRibbonDropDownButton>
                        
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="ExpandedBorder" Property="Background" Value="{StaticResource RibbonGalleryOverBackgroundBrush}" />
                        </Trigger>
                        <Trigger Property="IsCompressed" Value="true">
                            <Setter TargetName="ExpandedBorder" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="CollapsedButton" Property="Visibility" Value="Visible" />
                        </Trigger>
                        <!--<Trigger Property="IsCompressed" Value="false">
                            <Setter TargetName="ExpandedBorder" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="CollapsedButton" Property="Visibility" Value="Collapsed" />
                        </Trigger>-->
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
	

	<Style TargetType="telerikRibbonBar:RadRibbonDropDownButton" x:Key="DropDownButtonGroup">
		<Setter Property="Padding" Value="3" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Background" Value="{StaticResource RadRibbonGroupNormalBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource RadRibbonGroupNormalBorder}" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="VerticalAlignment" Value="Stretch" />
		<Setter Property="MaxHeight" Value="999" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonDropDownButton">
                    <Grid SnapsToDevicePixels="True">
                       
                        <Border x:Name="buttonSurface"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								Margin="0,0,0,1"
								CornerRadius="3">
							<Border x:Name="buttonSurfaceInner"
									BorderBrush="{StaticResource RadRibbonGroupNormalBorderInner}"
									BorderThickness="1 0 0 1" CornerRadius="2"/>
						</Border>

						<Border x:Name="mouseOverIndicator" Opacity="0"
								BorderThickness="1"
								BorderBrush="{StaticResource RadRibbonGroupPressedBorder}"
								Background="{StaticResource RadRibbonGroupPressedBackground}"
								CornerRadius="3">
							<Border x:Name="mouseOverIndicatorInner"
									BorderBrush="{StaticResource RadRibbonGroupPressedBorderInner}"
									BorderThickness="1 0 0 1"
									Background="Transparent"
									CornerRadius="2" />

						</Border>


                        <Grid Margin="{TemplateBinding Padding}" x:Name="ContentGrid">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" MaxHeight="28" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<ContentPresenter Grid.ColumnSpan="3" Grid.RowSpan="2"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
									Content="{TemplateBinding Content}"
									ContentTemplate="{TemplateBinding ContentTemplate}"/>

							<Image Name="Image" />

							<TextBlock Name="textRow1" Grid.Row="1" Margin="0,2,0,0"
									Text="{TemplateBinding TextRow1}" TextAlignment="Center" />

							<StackPanel Name="DropDownPanel" Grid.Row="1" Margin="0,14,0,0"
									HorizontalAlignment="Center" Orientation="Horizontal"
									MinHeight="14" MaxHeight="14" Height="14">
								<TextBlock Name="textRow2" Text="{TemplateBinding TextRow2}" />
								<Path Name="DropDownIndicator" VerticalAlignment="Center"
										Data="M 0,0 L 3.5,3.5 L 7,0" Margin="2,0,0,0"
										Visibility="{TemplateBinding DropDownIndicatorVisibility}"
										Fill="{StaticResource RibbonButtonDropDownArrow}"
										Stroke="{StaticResource RibbonButtonDropDownArrowBorder}" />
							</StackPanel>
						</Grid>

						
						<Popup x:Name="DropDownPopup" 
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
							

							
                 
							<Grid>
								<!--<telerikRibbonBarPrimitives:DropShadow Margin="6,6,1,1" />-->
								
								<Border x:Name="DropDownPopupBorder"
									BorderBrush="Transparent"
									Background="Transparent"
									MinWidth="33" MinHeight="33">
									<ContentControl x:Name="DropDownPopupContent"
										Content="{TemplateBinding DropDownContent}"
										HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                                                    IsTabStop="False"/>
								</Border>
							</Grid>
								
						</Popup>
						
						

						<Rectangle x:Name="DisabledIndicator" Visibility="Collapsed" Fill="#99FFFFFF" />
					</Grid>
						
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface"
									Value="{StaticResource RadRibbonGroupOverBorder}" />
							<Setter Property="Background" TargetName="buttonSurface" 
									Value="{StaticResource RadRibbonGroupOverBackground}" />
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner" 
									Value="{StaticResource RadRibbonGroupOverBorderInner}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Opacity" TargetName="mouseOverIndicator" Value="1" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="ContentGrid" Property="Opacity" Value="0.5" />
                        </Trigger>
						
						<!--<Trigger Property="TextAlignmentState" Value="TextAtBottom" />
						<Trigger Property="TextAlignmentState" Value="TextAtRight">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="TextAlignmentState" Value="TextHide">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>-->
						<Trigger Property="IsFocused" Value="True" />
						<Trigger Property="IsOpen" Value="True">
							<Setter Property="Opacity" TargetName="mouseOverIndicator" Value="1"/>
						</Trigger>
						<Trigger Property="DropDownButtonPosition" Value="Top" />
						<Trigger Property="DropDownButtonPosition" Value="Left" />
						<Trigger Property="DropDownButtonPosition" Value="Bottom" />
						<Trigger Property="DropDownButtonPosition" Value="Right">
							<Setter TargetName="DropDownPanel" Property="Grid.Column" Value="2"/>
							<Setter TargetName="DropDownPanel" Property="Grid.Row" Value="0"/>
							<Setter TargetName="DropDownPanel" Property="Margin" Value="0,0,0,0"/>
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Large" />
						<Trigger Property="CurrentSize" Value="Medium">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Small">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="SeparatorStyle"  TargetType="telerikRibbonBar:Separator">
		<Setter Property="Background" Value="{StaticResource RibbonGroupSeparatorLightBrush}" />
		<Setter Property="BorderThickness" Value="0,0,1,0" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonGroupSeparatorDarkBrush}" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Width" Value="2" />
		<Setter Property="Margin" Value="0,5,0,6" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:Separator">
					<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ItemsPanelTemplate x:Key="RadRibbonGroupPanelTemplate">
		<telerikRibbonBarPrimitives:StripPanel />
	</ItemsPanelTemplate>
	
	<Style TargetType="telerikRibbonBar:RadRibbonGroup"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonGroup}"
        >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="SeparatorStyle" Value="{StaticResource SeparatorStyle}" />
		<Setter Property="ItemsPanel" Value="{StaticResource RadRibbonGroupPanelTemplate}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonGroup">
					<Grid SnapsToDevicePixels="True"  >
                        
                        <telerikRibbonBarPrimitives:GroupChrome telerik:StyleManager.Theme="{StaticResource Theme}"  Name="ExpandedChrome" Header="{TemplateBinding Header}" HeaderTemplate="{TemplateBinding HeaderTemplate}" DialogLauncherVisibility="{TemplateBinding DialogLauncherVisibility}"
                                                                IsTabStop="False">
							<ItemsPresenter Name="ItemsPresenter" />
						</telerikRibbonBarPrimitives:GroupChrome>
                        <!--
                        <telerikRibbonBarPrimitives:GroupChrome.Triggers>
                            <Trigger Property="IsPushed" Value="false">
                            <Setter Property="Background" TargetName="GroupImage" Value="{StaticResource RibbonGroupPushedButtonBackgroundBrush}" />
                            </Trigger>
                        </telerikRibbonBarPrimitives:GroupChrome.Triggers>
                        -->
                        <telerikRibbonBar:RadRibbonDropDownButton 
							
                            Opacity="0"
                            
							Visibility="Collapsed"
							Style="{StaticResource DropDownButtonGroup}" DropDownIndicatorVisibility="Collapsed" x:Name="CollapsedButton" DropDownButtonPosition="Right" HorizontalAlignment="Stretch">
							<telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
								<Border CornerRadius="2" Background="{StaticResource RibbonTabBackgroundBrush}">
									<telerikRibbonBarPrimitives:GroupChrome telerik:StyleManager.Theme="{StaticResource Theme}" Name="CollapsedChrome"/>
								</Border>
							</telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
						</telerikRibbonBar:RadRibbonDropDownButton>
                       
                        
                        <Grid Name="CollapsedDisplay"
							
							Opacity="0" 
							
							 
							Margin="2" VerticalAlignment="Top" IsHitTestVisible="False">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="Auto" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>
							<Border x:Name="GroupImage" BorderBrush="{StaticResource RibbonGroupButtonBorderBrush}" BorderThickness="1" CornerRadius="4" Width="31" Height="31" Background="{StaticResource RibbonGroupButtonBackgroundBrush}" Margin="3">
								<Grid>
									<Border VerticalAlignment="Bottom" Height="7" CornerRadius="0,0,3,3" Background="{StaticResource RibbonGroupButtonBottomBrush}" />
									<Image VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,7" Source="{TemplateBinding Icon}" Width="16" Height="16" />
								</Grid>
							</Border>
							<ContentControl Content="{TemplateBinding Header}"
                                            ContentTemplate="{TemplateBinding HeaderTemplate}"
                                            Foreground="{TemplateBinding Foreground}" 
                                            Grid.Row="1" 
                                            Margin="1,2,1,3" 
                                            HorizontalContentAlignment="Center" 
                                            IsTabStop="False"/>
							<Path Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Center" Fill="{StaticResource RibbonGroupButtonArrow}" Stroke="{StaticResource RibbonGroupButtonArrowHighlight}" Data="M 0,0 L 3.5,3.5 L 7,0" />
						</Grid>
					</Grid>
                    
                    <ControlTemplate.Triggers>
                       <Trigger Property="Variant" Value="Collapsed">
                            <Setter Property="Opacity" TargetName="CollapsedDisplay" Value="1" />
                            <Setter Property="Opacity" TargetName="CollapsedButton" Value="1" />
							<Setter Property="Visibility" TargetName="CollapsedButton" Value="Visible" />
                        </Trigger>
                        <Trigger Property="Variant" Value="Large">
                            <Setter Property="Opacity" TargetName="CollapsedDisplay" Value="0" />
                            <Setter Property="Opacity" TargetName="CollapsedButton" Value="0" />
							<Setter Property="Visibility" TargetName="CollapsedButton" Value="Collapsed" />
                        </Trigger>
                        <Trigger Property="Variant" Value="Medium">
							<Setter Property="Opacity" TargetName="CollapsedDisplay" Value="0" />
							<Setter Property="Opacity" TargetName="CollapsedButton" Value="0" />
							<Setter Property="Visibility" TargetName="CollapsedButton" Value="Collapsed" />
						</Trigger>
                        <Trigger Property="Variant" Value="Small">
							<Setter Property="Opacity" TargetName="CollapsedDisplay" Value="0" />
							<Setter Property="Opacity" TargetName="CollapsedButton" Value="0" />
							<Setter Property="Visibility" TargetName="CollapsedButton" Value="Collapsed" />
						</Trigger>
                        <Trigger Property="IsPushed" Value="True">
                            <Setter Property="Background" TargetName="GroupImage" Value="{StaticResource RibbonGroupPushedButtonBackgroundBrush}" />
                        </Trigger>
                        <Trigger Property="IsPushed" Value="False">
                            <Setter Property="Background" TargetName="GroupImage" Value="{StaticResource RibbonGroupButtonBackgroundBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

    <Style TargetType="telerikRibbonBar:RadRibbonRadioButton"
		
        x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonRadioButton}"
        
        >
        <Setter Property="Padding" Value="3" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonRadioButton">
                    <Grid>
                        

                        <Border x:Name="buttonSurface"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="2">
                            <Border x:Name="buttonSurfaceInner"
									BorderBrush="Transparent"
									BorderThickness="1"/>
                        </Border>
                        <Border x:Name="mouseOverIndicator" CornerRadius="2" Opacity="0"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{StaticResource RadRibbonBarButtonSelectedBorder}"
								Background="{StaticResource RadRibbonBarButtonSelectedBackground}">
                            <Border x:Name="mouseOverIndicatorInner"
									BorderBrush="{StaticResource RadRibbonBarButtonSelectedBorderInner}"
									BorderThickness="1"/>
                        </Border>

                        <Grid Margin="{TemplateBinding Padding}">
                            <ContentPresenter
								Name="ContentPresenter"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								RecognizesAccessKey="True"
                                 />

                                <Grid x:Name="ContentGrid">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" MaxHeight="28" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>

                                    <Image Name="Image" />

                                    <TextBlock Name="textRow1" Grid.Row="1" Margin="0,2,0,0"
										Text="{TemplateBinding TextRow1}" TextAlignment="Center" />
                                    <TextBlock Name="textRow2" Grid.Row="1" Margin="0,14,0,0"
										Text="{TemplateBinding TextRow2}" TextAlignment="Center" />
                                </Grid>
                        </Grid>

                    </Grid>

                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="BorderBrush" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonOverBorder}"/>
                            <Setter Property="Background" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonOverBackground}"/>
                            <Setter Property="BorderBrush" TargetName="buttonSurfaceInner" Value="{StaticResource RadRibbonBarButtonOverBorderInner}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="BorderBrush" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
                            <Setter Property="Background" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>
                            <Setter Property="BorderBrush" TargetName="buttonSurfaceInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="ContentGrid" Property="Opacity" Value="0.5" />
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Opacity" TargetName="mouseOverIndicator" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True" />

                        <Trigger Property="CurrentSize" Value="Large" />
                        <Trigger Property="CurrentSize" Value="Medium">
                            <Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
                            <Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
                            <Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
                            <Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
                            <Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
                            <Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                        <Trigger Property="CurrentSize" Value="Small">
                            <Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
                            <Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
	

	<ControlTemplate TargetType="telerik:RadButton" x:Key="RadSplitButton_ButtonStyle">
		<Grid>
			

			<Border x:Name="backgroundDecorator"
					BorderThickness="{TemplateBinding BorderThickness}"
					BorderBrush="{TemplateBinding BorderBrush}"
					Background="{x:Null}"
					CornerRadius="2">
				<Border x:Name="backgroundDecoratorInner" Margin="0,0,0,0"
						BorderThickness="{TemplateBinding BorderThickness}"
						BorderBrush="Transparent"
						Background="{TemplateBinding Background}"
						CornerRadius="1">
					<ContentPresenter x:Name="Content"
							Content="{TemplateBinding Content}"
							ContentTemplate="{TemplateBinding ContentTemplate}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							Margin="{TemplateBinding Padding}"
							RecognizesAccessKey="True" />
				</Border>
			</Border>
		</Grid>

		
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False" />
			<Trigger Property="IsDefault" Value="True" />
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="BorderBrush" TargetName="backgroundDecorator"
						Value="{StaticResource RadRibbonBarButtonOverBorder}" />
				<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonOverBorderInner}" />
				<Setter Property="Background" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonOverBackground}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter Property="BorderBrush" TargetName="backgroundDecorator"
						Value="{StaticResource RadRibbonBarButtonPressedBorder}" />
				<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonPressedBorderInner}" />
				<Setter Property="Background" TargetName="backgroundDecoratorInner"
						Value="{StaticResource RadRibbonBarButtonPressedBackground}" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<ControlTemplate TargetType="telerik:RadToggleButton" x:Key="RadSplitButton_DropDownStyle">
		<Grid>
			

			<Border x:Name="backgroundDecorator"
					BorderThickness="{TemplateBinding BorderThickness}" 
					BorderBrush="{TemplateBinding BorderBrush}" 
					Background="{x:Null}" 
					CornerRadius="2">
				<Border x:Name="backgroundDecoratorInner" Margin="0,0,0,0"
						BorderThickness="{TemplateBinding BorderThickness}"
						BorderBrush="Transparent"
						Background="{TemplateBinding Background}"
						CornerRadius="1">
				</Border>
			</Border>

			<Border Opacity="0" x:Name="mouseOverDecorator" Background="{x:Null}" 
					BorderThickness="{TemplateBinding BorderThickness}" 
					BorderBrush="{StaticResource RadRibbonBarButtonOverBorder}" 
					CornerRadius="2">
				<Border x:Name="mouseOverDecoratorInner" Margin="0,0,0,0" CornerRadius="1" 
						BorderThickness="{TemplateBinding BorderThickness}" 
						BorderBrush="{StaticResource RadRibbonBarButtonOverBorderInner}" 
						Background="{StaticResource RadRibbonBarButtonOverBackground}">
				</Border>
			</Border>
			<Border BorderThickness="{TemplateBinding BorderThickness}">
				<ContentPresenter x:Name="contentPresenter"
					Content="{TemplateBinding Content}"
					ContentTemplate="{TemplateBinding ContentTemplate}"
					VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
					HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
					Margin="{TemplateBinding Padding}"
					RecognizesAccessKey="True" />
			</Border>
		</Grid>

		
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False" />
			<Trigger Property="IsFocused" Value="True" />
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="Opacity" TargetName="mouseOverDecorator" Value="1"/>
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter Property="Opacity" TargetName="mouseOverDecorator" Value="1"/>
				<Setter Property="BorderBrush" TargetName="mouseOverDecorator" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
				<Setter Property="BorderBrush" TargetName="mouseOverDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
				<Setter Property="Background" TargetName="mouseOverDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="True">
				<Setter Property="BorderBrush" TargetName="backgroundDecorator" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
				<Setter Property="BorderBrush" TargetName="backgroundDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
				<Setter Property="Background" TargetName="backgroundDecoratorInner" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<Style TargetType="telerikRibbonBar:RadRibbonSplitButton"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=telerik:TransparentTheme, ElementType=telerikRibbonBar:RadRibbonSplitButton}"
		
		>
		<Setter Property="IsTabStop" Value="false" />
		<Setter Property="IsOpen" Value="false" />
		<Setter Property="Padding" Value="3" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonSplitButton">
					<Grid >
						

						<Border x:Name="backgroundDecorator"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{x:Null}"
								CornerRadius="2">
							<Border x:Name="backgroundDecoratorInner"
									BorderThickness="0"
									BorderBrush="{x:Null}"
									Background="{TemplateBinding Background}"/>
						</Border>

						<Border x:Name="mouseOverDecorator" Opacity="0"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{StaticResource RadRibbonBarDropDownButtonPressedBorder}"
								Background="{x:Null}"
								CornerRadius="2">
							<Border x:Name="mouseOverDecoratorInner"
									BorderThickness="{TemplateBinding BorderThickness}"
									BorderBrush="{StaticResource RadRibbonBarSplitButtonBorderInner_Over}"
									Background="{StaticResource RadRibbonBarSplitButtonBackgroundInner_Over}"/>
						</Border>

                        <Grid Margin="1" x:Name="ContentGrid">
							<Grid.RowDefinitions>
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" MaxHeight="28"/>
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<Border x:Name="isCheckedIndicator"
									Opacity="0"
									Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
									BorderThickness="0"
									BorderBrush="{x:Null}"
									Background="{StaticResource RadRibbonBarButtonPressedBackground}"
									CornerRadius="1" />

							<telerik:RadButton
								x:Name="ButtonPart"
								Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
								BorderThickness="0"
								Background="Transparent"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
								Template="{StaticResource RadSplitButton_ButtonStyle}"
								Padding="{TemplateBinding Padding}"
								/>
							<telerik:RadToggleButton
								x:Name="DropDownPart"
								Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
								BorderThickness="0" Margin="0"
								Background="Transparent"
								Visibility="{TemplateBinding DropDownIndicatorVisibility}"
								Template="{StaticResource RadSplitButton_DropDownStyle}"
								IsTabStop="false"                                
								MinWidth="11" MinHeight="7"
								HorizontalAlignment="Stretch"
								
								
								IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								 />
							<Rectangle
								x:Name="SeparatorPart"
								Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
								MinWidth="1" MinHeight="1"
								Visibility="Collapsed" IsHitTestVisible="False"
								HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
								Fill="{StaticResource RadRibbonBarDropDownButtonPressedBorder}"
								 SnapsToDevicePixels="True"  />

							<Image Name="Image" IsHitTestVisible="False" Margin="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" />

							<TextBlock Name="textRow1" Grid.Row="1" Grid.ColumnSpan="2" Margin="2,0,2,0" IsHitTestVisible="False"
									Text="{TemplateBinding TextRow1}" TextAlignment="Center" />

							<StackPanel Name="DropDownPanel" Grid.Row="1" Grid.ColumnSpan="2" Margin="2,12,0,2"
									HorizontalAlignment="Center"  Orientation="Horizontal"
									MinHeight="14" MaxHeight="14" VerticalAlignment="Center" Height="14"  IsHitTestVisible="False">
								<TextBlock Name="textRow2" Text="{TemplateBinding TextRow2}" Margin="0 -1 0 0" IsHitTestVisible="False"/>
								<Path
									Name="DropDownIndicator"
									IsHitTestVisible="False"
									Visibility="{TemplateBinding DropDownIndicatorVisibility}"
									Fill="{StaticResource RibbonButtonDropDownArrow}"
									Stroke="{StaticResource RibbonButtonDropDownArrowBorder}"
									Data="M 0,0 L 3.5,3.5 L 7,0"
									VerticalAlignment="Center"
									Margin="2,0,2,0"
									 SnapsToDevicePixels="True"  />
							</StackPanel>
						</Grid>
						
						<Popup x:Name="DropDownPopup" 
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
						

						

							<Grid>
								<!--<telerikRibbonBarPrimitives:DropShadow Margin="6,6,4,4" />-->
								<Border x:Name="DropDownPopupBorder"
										BorderBrush="{StaticResource DropDownPopupBorderBrush}"
										Background="{StaticResource DropDownPopupBackgroundBrush}"
										BorderThickness="1" Padding="1" 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>
						
						

						<Rectangle x:Name="disabledDecorator" Visibility="Collapsed" Opacity="0" Fill="#FFFFFFFF" />
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter TargetName="mouseOverDecorator" Property="Opacity" Value="1" />
							<Setter TargetName="SeparatorPart" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="ContentGrid" Property="Opacity" Value="0.5" />
                        </Trigger>
						<Trigger Property="IsFocused" Value="True" />
						<Trigger Property="IsOpen" Value="True">
							<Setter TargetName="mouseOverDecorator" Property="Opacity" Value="1" />
							<Setter TargetName="SeparatorPart" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="DropDownButtonPosition" Value="Top" />
						<Trigger Property="DropDownButtonPosition" Value="Left" />
						<Trigger Property="DropDownButtonPosition" Value="Bottom" />
						<Trigger Property="DropDownButtonPosition" Value="Right">
							<Setter TargetName="DropDownPanel" Property="Grid.Column" Value="2"/>
							<Setter TargetName="DropDownPanel" Property="Grid.Row" Value="0"/>
							<Setter TargetName="DropDownPanel" Property="Margin" Value="2,0,0,0"/>
							<Setter TargetName="SeparatorPart" Property="HorizontalAlignment" Value="Right"/>
							<Setter TargetName="SeparatorPart" Property="VerticalAlignment" Value="Stretch"/>
							<Setter TargetName="DropDownPart" Property="Grid.Column" Value="2"/>
							<Setter TargetName="DropDownPart" Property="Grid.Row" Value="0"/>
						</Trigger>
						<Trigger Property="CurrentSize" Value="Large">
							<Setter TargetName="Image" Property="Grid.ColumnSpan" Value="2" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Medium">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,3,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="HorizontalAlignment" Value="Left" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow1" Property="Grid.ColumnSpan" Value="1" />
							<Setter TargetName="Image" Property="Grid.ColumnSpan" Value="1" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Small">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow1" Property="Grid.ColumnSpan" Value="1" />
						</Trigger>
						<Trigger Property="DropDownPlacement" Value="Top" />
						<Trigger Property="DropDownPlacement" Value="Left" />
						<Trigger Property="DropDownPlacement" Value="Right" />
						<Trigger Property="DropDownPlacement" Value="Bottom" />
						<Trigger Property="DropDownPlacement" Value="Center" />
						<Trigger Property="DropDownPlacement" Value="Absolute" />
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsToggle" Value="True" />
								<Condition Property="IsChecked" Value="True" />
							</MultiTrigger.Conditions>
							<Setter TargetName="isCheckedIndicator" Property="Opacity" Value="1"/>
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="CurrentSize" Value="Medium" />
								<Condition Property="IsTextInMiddleButton" Value="False" />
							</MultiTrigger.Conditions>
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Visible" />
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="CurrentSize" Value="Medium" />
								<Condition Property="IsTextInMiddleButton" Value="True" />
							</MultiTrigger.Conditions>
							<Setter TargetName="textRow1" Property="Visibility" Value="Visible" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</MultiTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

    <ItemsPanelTemplate x:Key="RadRibbonTabItemsPanelKey">
        <telerikRibbonBarPrimitives:TabPanel />
    </ItemsPanelTemplate>

    <Style TargetType="telerikRibbonBar:RadRibbonTab"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:RadRibbonTab}"
         >
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Background" Value="{StaticResource RibbonTabBackgroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource RibbonTabOuterBorderBrush}" />
        <Setter Property="Padding" Value="1,1,1,0" />
        <Setter Property="ItemsPanel" Value="{StaticResource RadRibbonTabItemsPanelKey}" />
        <Setter Property="MinimizedBackground" Value="{StaticResource RibbonTabMinimizedBackgroundBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonTab">
                    <Grid>
                        
                        <Border Name="OuterBorder" CornerRadius="{StaticResource RibbonTabOuterCornerRadius}"
                                BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}">
                            <Border Name="InnerBorder" CornerRadius="{StaticResource RibbonTabInnerCornerRadius}"
                                    BorderThickness="1" BorderBrush="{StaticResource RibbonTabInnerBorderBrush}">
                                <telerikRibbonBarPrimitives:RibbonScrollViewer>
                                    <ItemsPresenter HorizontalAlignment="Left" Margin="{TemplateBinding Padding}" />
                                </telerikRibbonBarPrimitives:RibbonScrollViewer>
                            </Border>
                        </Border>
                    </Grid>
                    <!--
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsInitialized" Value="false">
                            <Setter Property="BorderBrush" TargetName="OuterBorder"
									Value="{StaticResource RibbonTabContextualOuterBorderBrush}" />
                            <Setter Property="BorderBrush" TargetName="InnerBorder"
									Value="{StaticResource RibbonTabContextualInnerBorderBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    -->
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
	

	<Style TargetType="telerikRibbonBar:RadRibbonToggleButton"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=telerik:TransparentTheme, ElementType=telerikRibbonBar:RadRibbonToggleButton}"
		
		>
		<Setter Property="Padding" Value="3" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonToggleButton">
					<Grid>
						
						<Border x:Name="buttonSurface"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="2">
							<Border x:Name="buttonSurfaceInner"
									BorderBrush="Transparent"
									BorderThickness="{TemplateBinding BorderThickness}" />
						</Border>
						<Border x:Name="mouseOverIndicator" CornerRadius="2" Opacity="0"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{StaticResource RadRibbonBarButtonSelectedBorder}"
								Background="{StaticResource RadRibbonBarButtonSelectedBackground}">
							<Border x:Name="mouseOverIndicatorInner"
									BorderBrush="{StaticResource RadRibbonBarButtonSelectedBorderInner}"
									BorderThickness="{TemplateBinding BorderThickness}" />
						</Border>

                        <Grid Margin="{TemplateBinding Padding}" x:Name="ContentGrid">
							<ContentPresenter
								Name="ContentPresenter"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								RecognizesAccessKey="True" />

							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" MaxHeight="28" />
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>

								<Image Name="Image" />

								<TextBlock Name="textRow1" Grid.Row="1" Margin="0,2,0,0"
										Text="{TemplateBinding TextRow1}" TextAlignment="Center" />
								<TextBlock Name="textRow2" Grid.Row="1" Margin="0,14,0,0"
										Text="{TemplateBinding TextRow2}" TextAlignment="Center" />
							</Grid>
						</Grid>

						<Rectangle x:Name="DisabledIndicator" Visibility="Collapsed" Fill="#99FFFFFF" />
					</Grid>

					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonOverBorder}"/>
							<Setter Property="Background" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonOverBackground}"/>
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner" Value="{StaticResource RadRibbonBarButtonOverBorderInner}"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="BorderBrush" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonPressedBorder}"/>
							<Setter Property="Background" TargetName="buttonSurface" Value="{StaticResource RadRibbonBarButtonPressedBackground}"/>
							<Setter Property="BorderBrush" TargetName="buttonSurfaceInner" Value="{StaticResource RadRibbonBarButtonPressedBorderInner}"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="ContentGrid" Property="Opacity" Value="0.5" />
                        </Trigger>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Opacity" TargetName="mouseOverIndicator" Value="1"/>
						</Trigger>
						<Trigger Property="IsFocused" Value="True" />
						
						<Trigger Property="CurrentSize" Value="Large" />
						<Trigger Property="CurrentSize" Value="Medium">
							<Setter TargetName="textRow1" Property="Grid.Row" Value="0" />
							<Setter TargetName="textRow1" Property="Grid.Column" Value="1" />
							<Setter TargetName="textRow1" Property="Margin" Value="4,0,1,0" />
							<Setter TargetName="textRow1" Property="VerticalAlignment" Value="Center" />
							<Setter TargetName="textRow1" Property="TextAlignment" Value="Left" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="CurrentSize" Value="Small">
							<Setter TargetName="textRow1" Property="Visibility" Value="Collapsed" />
							<Setter TargetName="textRow2" Property="Visibility" Value="Collapsed" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	
	

	<ControlTemplate x:Key="RibbonButtonTemplateVertical" TargetType="ButtonBase">
		<Grid x:Name="Root" Background="Transparent">
			
			<Border Name="OuterBorder" Background="{TemplateBinding Background}"
					BorderBrush="{TemplateBinding BorderBrush}"
					BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1">
				<Border Name="InnerBorder"
						BorderBrush="{StaticResource PageScrollViewerButtonInnerBorderBrush}"
						BorderThickness="1">
					<ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Content}"
							ContentTemplate="{TemplateBinding ContentTemplate}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							Margin="1" />
				</Border>
			</Border>
		</Grid>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="true">
				<Setter TargetName="OuterBorder" Property="Background"
						Value="{StaticResource ButtonHotBackgroundBrush}" />
				<Setter TargetName="OuterBorder" Property="BorderBrush"
						Value="{StaticResource ButtonHotOuterBorderBrush}" />
				<Setter TargetName="InnerBorder" Property="BorderBrush"
						Value="{StaticResource ButtonHotInnerBorderBrush}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="OuterBorder" Property="Background"
						Value="{StaticResource ButtonPushedBackgroundBrush}" />
				<Setter TargetName="OuterBorder" Property="BorderBrush"
						Value="{StaticResource ButtonPushedOuterBorderBrush}" />
				<Setter TargetName="InnerBorder" Property="BorderBrush"
						Value="{StaticResource ButtonPushedInnerBorderBrush}" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<ControlTemplate x:Key="RibbonButtonTemplateHorizontal" TargetType="ButtonBase">
		<Grid x:Name="Root" Background="Transparent">
			
			<Border Name="OuterBorder" Background="{TemplateBinding Background}"
					BorderBrush="{TemplateBinding BorderBrush}"
					BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3 0 0 3">
				<Border Name="InnerBorder"
						BorderBrush="{StaticResource PageScrollViewerButtonInnerBorderBrush}"
						BorderThickness="1" CornerRadius="2 0 0 2">
					<ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Content}"
							ContentTemplate="{TemplateBinding ContentTemplate}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							Margin="1" />
				</Border>
			</Border>
		</Grid>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="true">
				<Setter TargetName="OuterBorder" Property="Background"
						Value="{StaticResource PageScrollViewerHotButtonBackgroundBrush}" />
				<Setter TargetName="OuterBorder" Property="BorderBrush"
						Value="{StaticResource ButtonHotOuterBorderBrush}" />
				<Setter TargetName="InnerBorder" Property="BorderBrush"
						Value="{StaticResource ButtonHotInnerBorderBrush}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="OuterBorder" Property="Background"
						Value="{StaticResource PageScrollViewerPressedButtonBackgroundBrush}" />
				<Setter TargetName="OuterBorder" Property="BorderBrush"
						Value="{StaticResource ButtonPushedOuterBorderBrush}" />
				<Setter TargetName="InnerBorder" Property="BorderBrush"
						Value="{StaticResource ButtonPushedInnerBorderBrush}" />
			</Trigger>
			<Trigger Property="IsEnabled" Value="False">
				<Setter TargetName="OuterBorder" Property="Visibility" Value="Collapsed" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<Style TargetType="ScrollBar" x:Key="RibbonScrollViewerScrollBarStyle">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ScrollBar">
					<Grid x:Name="Root">
						

						<!-- Horizontal Template -->
						<Grid x:Name="HorizontalRoot">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<!-- Repeat Buttons + Thumb -->
							<RepeatButton  Grid.Column="0"
									Margin="-2 -2 -2 -1" Width="12" IsTabStop="False" Interval="50"
									Template="{StaticResource RibbonButtonTemplateHorizontal}"
									Background="{StaticResource PageScrollViewerButtonBackgroundBrush}"
									BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}"
									BorderThickness="1"
										   
									
								
									
									x:Name="DecreaseRepeat"
									Command="ScrollBar.LineLeftCommand"
									
								>
								<Path Stretch="Uniform" Height="5" Width="3"
										Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z"
										Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
							<RepeatButton
									RenderTransformOrigin="0.5,0.5" Grid.Column="2"
									Margin="-2 -2 -2 -1" Width="12" IsTabStop="False" Interval="50"
									Template="{StaticResource RibbonButtonTemplateHorizontal}"
									Background="{StaticResource PageScrollViewerButtonBackgroundBrush}"
									BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}"
									BorderThickness="1" 
									
									

									
									x:Name="IncreaseRepeat"
									Command="ScrollBar.LineRightCommand"
									

								>
								<RepeatButton.RenderTransform>
									<ScaleTransform ScaleX="-1" />
								</RepeatButton.RenderTransform>
								<Path Stretch="Uniform" Height="5" Width="3"
										Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z"
										Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
						</Grid>

						<!-- Vertical Template -->
						<Grid x:Name="VerticalRoot" Visibility="Collapsed">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>

							<!-- Repeat Buttons + Thumb -->
							<RepeatButton x:Name="VerticalLargeDecrease" Grid.Row="0" Height="12"
									Margin="-2" Interval="50" IsTabStop="False"
									Template="{StaticResource RibbonButtonTemplateVertical}"
									Background="{StaticResource PageScrollViewerButtonBackgroundBrush}"
									BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}"
									BorderThickness="1">
								<Path Stretch="Uniform" Height="3" Width="5"
										Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z"
										Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
							<RepeatButton x:Name="VerticalLargeIncrease" Grid.Row="2" Height="12"
									Margin="-2" Interval="50" IsTabStop="False"
									Template="{StaticResource RibbonButtonTemplateVertical}"
									Background="{StaticResource PageScrollViewerButtonBackgroundBrush}"
									BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}"
									BorderThickness="1">
								<Path Stretch="Uniform" Height="3" Width="5"
										Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z"
										Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
						</Grid>
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="Root" Property="Opacity" Value="0.5" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ScrollViewerStyle" TargetType="ScrollViewer">
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Padding" Value="0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ScrollViewer">
					<Border BorderBrush="{TemplateBinding BorderBrush}"
										BorderThickness="{TemplateBinding BorderThickness}">
						<Grid Background="{TemplateBinding Background}">

							<ScrollContentPresenter x:Name="ScrollContentPresenter"
												Cursor="{TemplateBinding Cursor}"
												Margin="{TemplateBinding Padding}"
												ContentTemplate="{TemplateBinding ContentTemplate}"
												
								Content="{TemplateBinding Content}"
												CanContentScroll="{TemplateBinding CanContentScroll}"
								 />


								<ScrollBar
												Width="Auto"
												Style="{StaticResource RibbonScrollViewerScrollBarStyle}"
												Orientation="Vertical"
												ViewportSize="{TemplateBinding ViewportHeight}"
												Maximum="{TemplateBinding ScrollableHeight}"
												Minimum="0" IsTabStop="False"
												
									
									x:Name="PART_VerticalScrollBar"
												Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
												Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
									
									/>


									<ScrollBar
												Height="Auto"
												Style="{StaticResource RibbonScrollViewerScrollBarStyle}"
												Orientation="Horizontal"
												ViewportSize="{TemplateBinding ViewportWidth}"
												Maximum="{TemplateBinding ScrollableWidth}"
												Minimum="0"
												IsTabStop="False"
												
										
										x:Name="PART_HorizontalScrollBar"
												Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
												Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
										
										/>

						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="telerikRibbonBarPrimitives:RibbonScrollViewer"
           x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:TransparentTheme , ElementType=telerikRibbonBarPrimitives:RibbonScrollViewer}"
		 >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="ScrollViewerStyle" Value="{StaticResource ScrollViewerStyle}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBarPrimitives:RibbonScrollViewer">
					<Grid>
						
						<ScrollViewer Name="ScrollViewer"
								Style="{TemplateBinding ScrollViewerStyle}"
								HorizontalScrollBarVisibility="Auto"
								VerticalScrollBarVisibility="Disabled" IsTabStop="False">
							<ScrollViewer.Content>
								<ContentControl Name="Content" Content="{TemplateBinding Content}"
										IsTabStop="False" HorizontalContentAlignment="Stretch"
										VerticalContentAlignment="Stretch" />
							</ScrollViewer.Content>
						</ScrollViewer>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
	

	<Style TargetType="telerikRibbonBar:ScreenTip"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikRibbonBar:ScreenTip}"
        >
		<Setter Property="Padding" Value="4,2,4,2" />
		<Setter Property="Background" Value="{StaticResource QuickAccessKeyHintBackgroundBrush}" />
		<Setter Property="Foreground" Value="{StaticResource QuickAccessKeyHintForegroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource QuickAccessKeyHintBorderBrush}" />
		<Setter Property="MinHeight" Value="50" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:ScreenTip">
					<Grid x:Name="RootElement">
                        
                        <Border Name="Border" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" >
							<Grid Margin="{TemplateBinding Padding}">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="Auto" />
								</Grid.RowDefinitions>
								<!-- Text -->
								<TextBlock Name="TitlePresenter" TextWrapping="Wrap" FontWeight="Bold" Grid.ColumnSpan="2" Text="{TemplateBinding Title}"/>

								<!-- Image -->
								<Image Name="Image" Grid.Row="1" Source="{TemplateBinding Icon}" Stretch="None" Margin="29,10,21,6" VerticalAlignment="Top" Visibility="Collapsed" />

								<!-- Description -->
								<TextBlock TextWrapping="Wrap"  Name="DescriptionPresenter" Grid.Row="1" Grid.Column="1" Text="{TemplateBinding Description}" VerticalAlignment="Top" Visibility="Collapsed" Margin="8,7,8,2" />
							</Grid>
						</Border>
					</Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="ScreenTipState" Value="TitleDescriptionImage">
                            <Setter TargetName="DescriptionPresenter" Property="Visibility" Value="Visible" />
                            <Setter TargetName="TitlePresenter" Property="Margin" Value="0,4,0,0" />
                            <Setter TargetName="Image" Property="Visibility" Value="Visible" />
                            <Setter TargetName="RootElement" Property="Width" Value="318" />
                        </Trigger>
                        <Trigger Property="ScreenTipState" Value="TitleDescription">
                            <Setter TargetName="DescriptionPresenter" Property="Visibility" Value="Visible" />
                            <Setter TargetName="TitlePresenter" Property="Margin" Value="0,4,0,0" />
                            <Setter TargetName="RootElement" Property="Width" Value="210" />
          
                        </Trigger>
                        <Trigger Property="ScreenTipState" Value="Title">
                            <Setter TargetName="RootElement" Property="Width" Value="210" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
       

    <Style TargetType="telerikKeyTips:KeyTipControl"
        x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:TransparentTheme , ElementType=telerikKeyTips:KeyTipControl}"
         >
        <Setter Property="MinWidth" Value="16" />
        <Setter Property="MinHeight" Value="16" />
        <Setter Property="IsHitTestVisible" Value="False" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="BorderBrush" Value="{StaticResource RibbonBarKeyTips_OuterBorderBrush}" />
        <Setter Property="Background" Value="{StaticResource RibbonBarKeyTips_Background}" />
        <Setter Property="Padding" Value="2 -2 2 -1" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikKeyTips:KeyTipControl">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" 
                            BorderThickness="{TemplateBinding BorderThickness}"  
                            Background="{TemplateBinding Background}"
                            CornerRadius="1">
                        <Border BorderThickness="1" BorderBrush="{StaticResource RibbonBarKeyTips_InnerBorderBrush}">
                            
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          Margin="{TemplateBinding Padding}" />
                            
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    

    

</ResourceDictionary>