<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:vistaCopy="clr-namespace:VistaThemeCopy"
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"


 >
	
	<LinearGradientBrush x:Key="ApplicationRibbonButtonOverBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF7ABBDA" Offset="1"/>
		<GradientStop Color="#FF6F9DB5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ApplicationRibbonButtonOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDFF0FB" Offset="0"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
	</LinearGradientBrush>
<SolidColorBrush Color="#FFFFFFFF" x:Key="ApplicationRibbonButtonOverBorderInner" />
<SolidColorBrush x:Key="RibbonButtonDropDownArrow" Color="#567DB1" />
<SolidColorBrush x:Key="RibbonButtonDropDownArrowBorder" Color="#EFF6FC" />
<SolidColorBrush x:Key="DropDownPopupBorderBrush" Color="#868686" />
<SolidColorBrush x:Key="DropDownPopupBackgroundBrush" Color="#FAFAFA" />
<LinearGradientBrush x:Key="RadRibbonBarButtonOverBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF7ABBDA" Offset="1"/>
		<GradientStop Color="#FF6F9DB5"/>
	</LinearGradientBrush>
<SolidColorBrush Color="#FFFFFFFF" x:Key="RadRibbonBarButtonOverBorderInner" />
<LinearGradientBrush x:Key="RadRibbonBarButtonOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDFF0FB" Offset="0"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonPressedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF0F577A" Offset="0"/>
		<GradientStop Color="#FF6A9AB3" Offset="0.151"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonPressedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.06"/>
		<GradientStop Color="#FFDEEFF8" Offset="0.06" />
		<GradientStop Color="#FFDEEFF8" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonPressedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.078"/>
		<GradientStop Color="#FFDFF0FB" Offset="0.1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarDropDownButtonPressedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF0F577A" Offset="0"/>
		<GradientStop Color="#FF6A9AB3" Offset="0.151"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonPopupBackgroundBrush" Color="#FAFAFA" />
<SolidColorBrush x:Key="ApplicationMenuOuterBorderBrush" Color="#9BAFCA" />
<SolidColorBrush x:Key="RibbonPopupForegroundBrush" Color="#00156E" />
<SolidColorBrush x:Key="ApplicationMenuBackgroundBrush" Color="#FAFAFA" />
<LinearGradientBrush x:Key="ApplicationMenuInnerBorderBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0.9" Color="#FFFFFF" />
		<GradientStop Offset="1" Color="#e1e2e3" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuTopBorderBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#f2f2f2" />
		<GradientStop Offset="0.45" Color="#e2e3e5" />
		<GradientStop Offset="0.45" Color="#d7d8da" />
		<GradientStop Offset="1" Color="#cececf" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuMiddleBorderBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#cececf" />
		<GradientStop Offset="1" Color="#efefef" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ApplicationMenuContentOuterBorderBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="ApplicationMenuContentInnerBorderBrush" Color="#a6a6a6" />
<SolidColorBrush x:Key="ApplicationMenuDividerLightBrush" Color="#F5F5F5" />
<SolidColorBrush x:Key="ApplicationMenuContentBackgroundBrush" Color="#f1f1f1" />
<LinearGradientBrush x:Key="ApplicationMenuFooterBorderBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#efefef" />
		<GradientStop Offset="0.45" Color="#e9e9ea" />
		<GradientStop Offset="0.45" Color="#d5d6d8" />
		<GradientStop Offset="1" Color="#c9cacc" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonForegroundBrush" Color="#15428B" />
<Color x:Key="RibbonGroupNormalInnerBorderColor1">#FFFFFFFF</Color>
<Color x:Key="RibbonGroupNormalInnerBorderColor2">#FFFFFFFF</Color>
<Color x:Key="RibbonGroupBackground1">#f3f9fc</Color>
<Color x:Key="RibbonGroupBackground2">#f4f9fc</Color>
<Color x:Key="RibbonGroupBackground3">#e0f0f9</Color>
<Color x:Key="RibbonGroupBackground4">#e9f5fb</Color>
<Color x:Key="RibbonGroupNormalOuterBorderColor1">#FFB4CFDA</Color>
<Color x:Key="RibbonGroupNormalOuterBorderColor2">#FFB4CFDA</Color>
<Color x:Key="RibbonGroupNormalTrayBackgroundColor1">#B2B2DEF7</Color>
<Color x:Key="RibbonGroupNormalTrayBackgroundColor2">#66B2DEF7</Color>
<SolidColorBrush x:Key="RibbonGroupHeaderBrush" Color="#3E6AAA" />
<ImageBrush ImageSource="/Telerik.Windows.Controls.RibbonBar;component/RibbonGroupDialogLauncherVista.png" x:Key="RibbonGroupDialogLauncher" Stretch="None" />
<Color x:Key="RibbonGroupHotInnerBorderColor1">#FFFFFF</Color>
<Color x:Key="RibbonGroupHotInnerBorderColor2">#FFFFFF</Color>
<Color x:Key="RibbonGroupHotOuterBorderColor1">#b4cfda</Color>
<Color x:Key="RibbonGroupHotOuterBorderColor2">#b4cfda</Color>
<Color x:Key="RibbonGroupHotTrayBackgroundColor1">#d8edf9</Color>
<Color x:Key="RibbonGroupHotTrayBackgroundColor2">#66ABF0FF</Color>
<Color x:Key="RibbonGroupPushedInnerBorderColor1">#FF69A3C5</Color>
<Color x:Key="RibbonGroupPushedInnerBorderColor2">#FFC4E9FA</Color>
<Color x:Key="RibbonGroupPushedOuterBorderColor1">#FF79BAD9</Color>
<Color x:Key="RibbonGroupPushedOuterBorderColor2">#FF79BAD9</Color>
<LinearGradientBrush x:Key="RibbonGroupPushedBackgroundBrush" EndPoint="0,1">
		<GradientStop Color="#FFB3DEF8" Offset="0.052"/>
		<GradientStop Color="#FFCFF0FC" Offset="1"/>
		<GradientStop Color="#FFC8EBFA" Offset="0.18"/>
		<GradientStop Color="#FFB3DEF8" Offset="0.18"/>
		<GradientStop Color="#FF7EB4D4" Offset="0"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ButtonGroupBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F8FB" Offset="0"/>
		<GradientStop Color="#FFDEEFF7" Offset="1"/>
		<GradientStop Color="#FFF6FBFE" Offset="0.435"/>
		<GradientStop Color="#FFDFF0F8" Offset="0.474"/>
	</LinearGradientBrush>
<SolidColorBrush Color="#CCB4CFDA" x:Key="ButtonGroupOuterBorderBrush" />
<SolidColorBrush Color="#FFFFFFFF" x:Key="ButtonGroupInnerBorderBrush" />
<SolidColorBrush x:Key="ButtonGroupDividerDarkBrush" Color="#359BB7E0" />
<SolidColorBrush x:Key="ButtonGroupDividerLightBrush" Color="#44FFFFFF" />
<vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<SolidColorBrush x:Key="RadGalleryItemOver_border" Color="#FF79BAD9" />
<LinearGradientBrush x:Key="RadGalleryItemOver_background" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFECF4F8" Offset="0"/>
		<GradientStop Color="#FFB5E0F8" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadGalleryItemOver_Innerborder" Color="Transparent" />
<SolidColorBrush x:Key="RadGalleryItemPressed_border" Color="#FF79BAD9" />
<LinearGradientBrush x:Key="RadGalleryItemPressed_background" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFEB85D" Offset="1" />
		<GradientStop Color="#FFFB933C" Offset="0" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadGalleryItemPressed_Innerborder" Color="Transparent" />
<SolidColorBrush x:Key="GroupHeaderBackgroundBrush" Color="#DDE7EE" />
<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>
<RadialGradientBrush x:Key="ApplicationMenuOverButtonBackground" Center="0.5,0.0" GradientOrigin="0.5,0.0" RadiusX="2.5" RadiusY="1">
		<GradientStop Offset="0" Color="#bcd8e8" />
		<GradientStop Offset="0.5" Color="#97bbcf" />
		<GradientStop Offset="0.5" Color="#7ba7bd" />
		<GradientStop Offset="1" Color="#c4deec" />
	</RadialGradientBrush>
<SolidColorBrush Color="#7da8bd" x:Key="ApplicationMenuOverButtonBorder" />
<RadialGradientBrush x:Key="ApplicationMenuOverButtonInnerBackground" GradientOrigin="0.25,0.25">
		<GradientStop Offset="0" Color="#AAFFFFFF" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<LinearGradientBrush x:Key="ApplicationMenuOverButtonInnerBorder" StartPoint="0,0" EndPoint="1,1">
		<GradientStop Offset="0" Color="#F2F2F2" />
		<GradientStop Offset="0.5" Color="#F2F2F2" />
		<GradientStop Offset="1" Color="#F2F2F2" />
	</LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuOverButtonMiddelBackground" Center="0.5,0.9" GradientOrigin="0.5,0.9">
		<GradientStop Offset="0" Color="#a7c7d9" />
		<GradientStop Offset="0.01" Color="#d4ebf8" />
		<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 Offset="0" Color="#86b7d1" />
		<GradientStop Offset="0.5" Color="#70a6c3" />
		<GradientStop Offset="0.5" Color="#5897ad" />
		<GradientStop Offset="1" Color="#83b5c8" />
	</RadialGradientBrush>
<SolidColorBrush Color="#5998ae" x:Key="ApplicationMenuPressedButtonBorder" />
<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 Offset="0" Color="#F2F2F2" />
		<GradientStop Offset="0.5" Color="#F2F2F2" />
		<GradientStop Offset="1" Color="#F2F2F2" />
	</LinearGradientBrush>
<RadialGradientBrush x:Key="ApplicationMenuPressedButtonMiddelBackground" Center="0.5,0.9" GradientOrigin="0.5,0.9">
		<GradientStop Offset="0.1" Color="#d4ebf8" />
		<GradientStop Offset="1" Color="Transparent" />
	</RadialGradientBrush>
<SolidColorBrush Color="#FFb6b5b5" x:Key="TabStripTabDividerBrush" />
<Color x:Key="TabStripTabHotOuterBorderColor">#FFA7C2CD</Color>
<Color x:Key="TabStripTabHotInnerBorderColor">#ffffff</Color>
<Color x:Key="TabStripTabHotBackgroundColor1">#ffffff</Color>
<Color x:Key="TabStripTabHotBackgroundColor2">#FFEEF8FE</Color>
<Color x:Key="TabStripTabSelectedOuterBorderColor">#FF6F9CB4</Color>
<Color x:Key="TabStripTabSelectedLeftInnerBorderColor">#ffffff</Color>
<Color x:Key="TabStripTabSelectedRightInnerBorderColor">#ffffff</Color>
<Color x:Key="TabStripTabSelectedMiddleInnerBorderColor">#ffffff</Color>
<Color x:Key="TabStripTabSelectedBackgroundColor1">#FFEEF8FE</Color>
<Color x:Key="TabStripTabSelectedBackgroundColor2">#FFEEF8FE</Color>
<SolidColorBrush x:Key="TabStripTabSelectedForegroundBrush">#15428B</SolidColorBrush>
<SolidColorBrush x:Key="RibbonTitlebarTitleBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="RibbonTitlebarApplicationNameBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="PageScrollViewerButtonInnerBorderBrush" Color="#FFFFFF" />
<LinearGradientBrush x:Key="ButtonHotBackgroundBrush" EndPoint="0,1">
		<GradientStop Color="#EAF6FD" Offset="0" />
		<GradientStop Color="#D9F0FC" Offset=".5" />
		<GradientStop Color="#BEE6FD" Offset=".5" />
		<GradientStop Color="#A7D9F5" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ButtonPushedOuterBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF0F577A" Offset="0"/>
		<GradientStop Color="#FF6A9AB3" Offset="0.151"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ButtonHotInnerBorderBrush" Color="#FFFFFF" />
<LinearGradientBrush x:Key="ButtonPushedBackgroundBrush" EndPoint="0,1">
		<GradientStop Color="#FFDFF0FB" Offset="0"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.35"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.35"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ButtonPushedInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDFF0FB" Offset="0.0"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.5"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.5"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="PageScrollViewerButtonForegroundBrush" StartPoint="0,0" EndPoint="1,0">
		<GradientStop Offset="0" Color="#1A52AD" />
		<GradientStop Offset="1" Color="#0F3168" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="PageScrollViewerButtonOuterBorderBrush" Color="#8C8E94" />
<LinearGradientBrush x:Key="TabPageScrollViewerButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Color="#F3F3F3" Offset="0" />
		<GradientStop Color="#EBEBEB" Offset="0.35" />
		<GradientStop Color="#DDDDDD" Offset="0.35" />
		<GradientStop Color="#CDCDCD" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="QatBelowBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#cce4f1" />
		<GradientStop Offset="1" Color="#cae3f1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="QatBelowOuterBorderBrush" Color="#7ea6bb" />
<SolidColorBrush x:Key="QatBelowInnerBorderBrush" Color="#d8e4eb" />
<LinearGradientBrush x:Key="QatAboveHighlightBrush" EndPoint="0,1">
		<GradientStop Color="#7F70BEE5" Offset="0"/>
		<GradientStop Color="#0070BDE4" Offset="0.466"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="QatAboveBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="Transparent" />
		<GradientStop Offset="0.5" Color="Transparent" />
		<GradientStop Offset="1" Color="Transparent" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="QatAboveBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF347B95" Offset="0"/>
		<GradientStop Color="#FF74A0B7" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="QatButtonArrow" Color="#15428B" />
<SolidColorBrush x:Key="QatButtonArrowHighlight" Color="#CDCDCD" />
<SolidColorBrush x:Key="RibbonBackgroundBrush" Color="#FFF2F2F2" />
<SolidColorBrush x:Key="RibbonTitlebarBorderBrush" Color="#ffffff" />
<LinearGradientBrush x:Key="RibbonTitlebarBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF83ABC0" Offset="0"/>
		<GradientStop Color="#FF4E96AA" Offset="1"/>
		<GradientStop Color="#FF3F7E9D" Offset="0.44"/>
		<GradientStop Color="#FF0A5276" Offset="0.453"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonTabstripBorderBrush" Color="#f2f2f2" />
<LinearGradientBrush x:Key="RibbonLowerBackgroundBrush"  EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF2F2F2" Offset="0.849"/>
		<GradientStop Color="#FFD8D8D8" Offset="1"/>
	</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="#FF0F577A" Offset="0"/>
		<GradientStop Color="#FF6A9AB3" Offset="0.151"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ExpanderButtonPressed_Border" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.06"/>
		<GradientStop Color="#FFC7E4F5" Offset="0.06" />
		<GradientStop Color="#FFC7E4F5" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ExpanderButtonPressed_Background" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.078"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGroupButtonArrow" Color="#567DB1" />
<LinearGradientBrush x:Key="ExpandButtonOver_OuterBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF7ABBDA" Offset="1"/>
		<GradientStop Color="#FF6F9DB5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ExpanderButtonOver_Border" Color="#B2FFFFFF"></SolidColorBrush>
<LinearGradientBrush x:Key="ExpanderButtonOver_Background" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDFF0FB" Offset="0"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
	</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="#FFFFFF" />
<SolidColorBrush x:Key="RibbonComboBoxHotBorderBrush" Color="#CCB4CFDA" />
<LinearGradientBrush x:Key="RibbonComboBoxButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Color="#FFF0F7FA"/>
		<GradientStop Color="#FFE3F3FC" Offset="1"/>
		<GradientStop Color="#FFEEF6FA" Offset="0.491"/>
		<GradientStop Color="#FFDDEEF6" Offset="0.509"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonComboBoxBorderBrush" Color="#CCB4CFDA" />
<SolidColorBrush x:Key="RibbonComboBoxBackgroundBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="RibbonComboBoxForegroundBrush" Color="#000000" />
<CornerRadius x:Key="ComboboxItemCornerRadius">3</CornerRadius>
<CornerRadius x:Key="ComboboxItemInnerCornerRadius">2</CornerRadius>
<SolidColorBrush x:Key="ComboboxItemHotOuterBorderBrush" Color="#FF95D5EE" />
<SolidColorBrush x:Key="ComboboxItemHotInnerBorderBrush" Color="Transparent" />
<LinearGradientBrush x:Key="ComboboxItemHotBackgroundBrush" StartPoint="0.5,0" EndPoint="0.5,1">
		<GradientStop Color="#33FFFFFF" Offset="0"/>
		<GradientStop Color="#9995D5EE" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarDropDownButtonPressedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDEF0FB" Offset="0"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
		<GradientStop Color="#FFA3D3EC" Offset="0.552"/>
		<GradientStop Color="#FF77BBDE" Offset="0.573"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarDropDownButtonPressedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.06"/>
		<GradientStop Color="#FFDEEFF8" Offset="0.06" />
		<GradientStop Color="#FFDEEFF8" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGalleryBorderBrush" Color="#FFB4CFDA" />
<SolidColorBrush x:Key="RibbonGalleryBackgroundBrush" Color="#4CC1E4F7" />
<LinearGradientBrush x:Key="RibbonGalleryItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF0F7FA" Offset="1"/>
		<GradientStop Color="#FFE3F3FC"/>
		<GradientStop Color="#FFEEF6FA" Offset="0.509"/>
		<GradientStop Color="#FFDDEEF6" Offset="0.491"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGroupButtonArrowHighlight" Color="#EFF6FC" />
<SolidColorBrush x:Key="RibbonGalleryOverBackgroundBrush" Color="#FFECF3FB" />
<SolidColorBrush x:Key="RadRibbonGroupNormalBackground" Color="#00FFFFFF" />
<SolidColorBrush x:Key="RadRibbonGroupNormalBorder" Color="#00FFFFFF" />
<SolidColorBrush x:Key="RadRibbonGroupNormalBorderInner" Color="#00FFFFFF" />
<SolidColorBrush x:Key="RadRibbonGroupPressedBorder" Color="#FF79BAD9" />
<LinearGradientBrush x:Key="RadRibbonGroupPressedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFB3DEF8" Offset="0.052"/>
		<GradientStop Color="#FFCFF0FC" Offset="1"/>
		<GradientStop Color="#FFC8EBFA" Offset="0.18"/>
		<GradientStop Color="#FFB3DEF8" Offset="0.18"/>
		<GradientStop Color="#FF7EB4D4" Offset="0"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonGroupPressedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF69A3C5" Offset="0"/>
		<GradientStop Color="#FFC4E9FA" Offset="0.07"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadRibbonGroupOverBorder" Color="#FFB4CFDA" />
<LinearGradientBrush x:Key="RadRibbonGroupOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFDFDFD" Offset="0"/>
		<GradientStop Color="#FFE4F3FA" Offset="1"/>
		<GradientStop Color="White" Offset="0.18"/>
		<GradientStop Color="#FFF7FBFE" Offset="0.18"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadRibbonGroupOverBorderInner" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="RibbonGroupSeparatorLightBrush" Color="#F8FAFC" />
<SolidColorBrush x:Key="RibbonGroupSeparatorDarkBrush" Color="#8DACD3" />
<LinearGradientBrush x:Key="RibbonGroupPushedButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Color="#FFB3DEF8" Offset="0"/>
		<GradientStop Color="#FFCFF0FC" Offset="1"/>
		<GradientStop Color="#FFC8EBFA" Offset="0.2"/>
		<GradientStop Color="#FFB3DEF8" Offset="0.2"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RibbonTabBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF2F9FC" Offset="0"/>
		<GradientStop Color="#FFE8F5FC" Offset="1"/>
		<GradientStop Color="#FFF4F9FC" Offset="0.185"/>
		<GradientStop Color="#FFDFF0F9" Offset="0.194"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RibbonGroupButtonBorderBrush" Color="#FF79BAD9" />
<SolidColorBrush x:Key="RibbonGroupButtonBackgroundBrush" Color="#55FFFFFF" />
<SolidColorBrush x:Key="RibbonGroupButtonBottomBrush" Color="#66B2DEF7" />
<LinearGradientBrush x:Key="RadRibbonBarButtonSelectedBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF0F577A" Offset="0"/>
		<GradientStop Color="#FF6A9AB3" Offset="0.151"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.078"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarButtonSelectedBorderInner" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FD407F9D" Offset="0"/>
		<GradientStop Color="#19407F9D" Offset="0.06"/>
		<GradientStop Color="#FFC7E4F5" Offset="0.06" />
		<GradientStop Color="#FFC7E4F5" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarSplitButtonBorderInner_Over" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF7ABBDA" Offset="1"/>
		<GradientStop Color="#FF6F9DB5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadRibbonBarSplitButtonBackgroundInner_Over" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDFF0FB" Offset="0"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.578"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.595"/>
	</LinearGradientBrush>
<LinearGradientBrush  x:Key="RibbonTabOuterBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFA8C3CE" Offset="0"/>
		<GradientStop Color="#FF96B6C3" Offset="1"/>
	</LinearGradientBrush>
<CornerRadius x:Key="RibbonTabOuterCornerRadius">3.5</CornerRadius>
<CornerRadius x:Key="RibbonTabInnerCornerRadius">2.5</CornerRadius>
<LinearGradientBrush x:Key="RibbonTabInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFEFF9FF" Offset="0"/>
		<GradientStop Color="White" Offset="1"/>
	</LinearGradientBrush>
<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="#8C8E94" />
<LinearGradientBrush x:Key="PageScrollViewerHotButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Color="#EAF6FD" Offset="0" />
		<GradientStop Color="#D9F0FC" Offset=".2" />
		<GradientStop Color="#BEE6FD" Offset=".2" />
		<GradientStop Color="#A7D9F5" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="PageScrollViewerPressedButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Color="#FFDFF0FB" Offset="0"/>
		<GradientStop Color="#FFD2ECFA" Offset="0.2"/>
		<GradientStop Color="#FFB5E0F9" Offset="0.2"/>
		<GradientStop Color="#FFA6D7F2" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="PageScrollViewerButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Color="#F3F3F3" Offset="0" />
		<GradientStop Color="#EBEBEB" Offset="0.2" />
		<GradientStop Color="#DDDDDD" Offset="0.2" />
		<GradientStop Color="#CDCDCD" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="QuickAccessKeyHintBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Color="White" Offset="0"/>
		<GradientStop Color="#FFDDEEF6" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="QuickAccessKeyHintForegroundBrush" Color="#4C4C4C" />
<SolidColorBrush x:Key="QuickAccessKeyHintBorderBrush" Color="#FF6F9BB3" />

	
	
	<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>
						
						<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" 
							
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}"
							
							>
							<!--PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">-->
							<Grid>
								<telerikRibbonBarPrimitives:DropShadow Margin="6,6,4,4" />
								<Border x:Name="DropDownPopupBorder"
										BorderBrush="{StaticResource DropDownPopupBorderBrush}"
										Background="{StaticResource DropDownPopupBackgroundBrush}"
										BorderThickness="1" CornerRadius="2" Margin="0,1,4,4"
										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 >
						

						<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"
							
							AllowsTransparency="True" StaysOpen="False" Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}"
							
							>
							<!--PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">-->
							<Grid>
								<telerikRibbonBarPrimitives:DropShadow Margin="6,6,4,4" />
								<Border x:Name="DropDownPopupBorder"
										BorderBrush="{StaticResource DropDownPopupBorderBrush}"
										Background="{StaticResource DropDownPopupBackgroundBrush}"
										BorderThickness="1" CornerRadius="2" Margin="0,1,4,4"
										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=
		vistaCopy:VistaThemeCopyTheme , 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">
						
						
						<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></ColumnDefinition>
													</Grid.ColumnDefinitions>
													<Border Name="LeftPane" BorderBrush="#c5c5c5" Background="{TemplateBinding Background}" BorderThickness="0,0,1,0">
														<ItemsPresenter />
													</Border>
													<Border Name="RightPane" 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=
        vistaCopy:VistaThemeCopyTheme , 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=
		vistaCopy:VistaThemeCopyTheme , ElementType=telerikRibbonBarPrimitives:GroupChrome}"
		 >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBarPrimitives:GroupChrome">
					<Grid 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}" Margin="3,0,3,0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{StaticResource RibbonGroupHeaderBrush}" />

								<telerikRibbonBar:RadRibbonButton Visibility="{TemplateBinding DialogLauncherVisibility}" Name="DialogLauncher" Grid.Column="1" IsAutoSize="False" VerticalAlignment="Top" Padding="4,3,3,3" TabIndex="1" >
									<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=
        vistaCopy:VistaThemeCopyTheme , 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=
        vistaCopy:VistaThemeCopyTheme , 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=
        vistaCopy:VistaThemeCopyTheme , 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="BorderBrush" Value="{StaticResource RadGalleryItemOver_border}" />
                            <Setter TargetName="mouseOverIndicator" Property="Background" Value="{StaticResource RadGalleryItemOver_background}" />
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="buttonSurface" Property="BorderBrush" Value="{StaticResource RadRibbonBarButtonPressedBorder}" />
                            <Setter TargetName="buttonSurface" Property="Background" Value="{StaticResource RadRibbonBarButtonPressedBackground}" />
                            <!--<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=
        vistaCopy:VistaThemeCopyTheme , 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="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"
							
                            AllowsTransparency="True" StaysOpen="False"
							Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}"
							HorizontalOffset="-5" VerticalOffset="-15"
                            
                            >
                            <!--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" />
                            </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>

    <!-- TabItem  Style -->
    <Style TargetType="telerikNavigation:RadTabItem" x:Key="RibbonRadTabItemStyle">
        <Setter Property="Padding" Value="0,1,0,1" />
        <Setter Property="Margin" Value="0"/>
        <Setter Property="BorderThickness" Value="1,0,0,0"/>
        <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>
                        
                        <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>

                            <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}"
				            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>

                    </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="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=" - " telerik:LocalizationManager.ResourceKey="RibbonBarWindowTitleDivider" Foreground="{StaticResource RibbonTitlebarApplicationNameBrush}" />
                        <TextBlock x:Name="ApplicationName" Text="{TemplateBinding ApplicationName}" Foreground="{StaticResource RibbonTitlebarApplicationNameBrush}" />
                    </StackPanel>

                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="WindowTitleState" Value="Both">
                        </Trigger>
                        <Trigger Property="WindowTitleState" Value="TitleOnly">
                            <Setter  Property="Visibility" TargetName="ApplicationName" Value="Collapsed" />
                            <Setter  Property="Visibility" TargetName="Divider" Value="Collapsed" />
                        </Trigger>
                        <Trigger Property="WindowTitleState" Value="ApplicationNameOnly">
                            <Setter  Property="Visibility" TargetName="Title" Value="Collapsed" />
                            <Setter  Property="Visibility" TargetName="Divider" Value="Collapsed" />
                        </Trigger>
                        <Trigger Property="WindowTitleState" Value="None">
                            <Setter  Property="Visibility" TargetName="ApplicationName" Value="Collapsed" />
                            <Setter  Property="Visibility" TargetName="Title" Value="Collapsed" />
                            <Setter  Property="Visibility" TargetName="Divider" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Empty ScrollViewer -->
    <Style x:Key="EmptyScrollViewerStyle" TargetType="ScrollViewer">
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Top" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ScrollViewer">
                    <Border CornerRadius="2" BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid Background="{TemplateBinding Background}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <ScrollContentPresenter x:Name="ScrollContentPresenter"
                                        Cursor="{TemplateBinding Cursor}"
                                        Margin="{TemplateBinding Padding}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Scroll Button:-->
    <Style x:Key="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}"
                        Background="{TemplateBinding Background}" 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="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=
        vistaCopy:VistaThemeCopyTheme , 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, 0, 0, 1" />
        <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="24">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="14" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="10" />
                                    <ColumnDefinition Width="15" />
                                </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="M 0,0.5 A 9,11 180 1 1 0,23.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>

                            <!--<telerikPrimitives:LayoutTransformControl Grid.Column="2" x:Name="DropdownButtonHolder">
                            <telerikPrimitives:LayoutTransformControl.Content>
                                <ToggleButton
                                    x:Name="PART_DropdownButton"
									IsEnabled="{TemplateBinding HasOverflowItems}"
									IsChecked="{TemplateBinding IsOverflowOpen}" />
                            </telerikPrimitives:LayoutTransformControl.Content>
                        </telerikPrimitives:LayoutTransformControl>-->
                            <!--
							<Popup
							Grid.Column="1" x:Name="PART_Overflow" AllowsTransparency="True" StaysOpen="False"
							Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
								
								-->

                            <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 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 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>

    <!-- RibbonBar -->
    <Style TargetType="telerikRibbonBar:RadRibbonBar"
		x:Key="{telerik:ThemeResourceKey ThemeType=
        vistaCopy:VistaThemeCopyTheme , 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="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="ApplicationButtonStyle" Value="{StaticResource ApplicationButtonStyle}" />

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikRibbonBar:RadRibbonBar">
                    <Grid x:Name="RootElement" SnapsToDevicePixels="True"  >
                        
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" MaxHeight="28" />
                            <RowDefinition Height="24" 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" BorderThickness="0,0,0,1" BorderBrush="{StaticResource RibbonTitlebarBorderBrush}" Background="{StaticResource RibbonTitlebarBackgroundBrush}" />
                        <!-- Tabstrip background -->
                        <Rectangle Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Top" Height="1" Fill="{StaticResource RibbonTabstripBorderBrush}" />

                        <Grid x:Name="TitleAligner" Grid.Row="0" 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,0" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                            <telerikRibbonBarPrimitives:WindowTitle Grid.Column="1" x:Name="PART_ActualWindowTitle" HorizontalAlignment="Center" IsActive="True" Title="{TemplateBinding Title}" ApplicationName="{TemplateBinding ApplicationName}" Style="{StaticResource WindowTitleStyle}" />
                        </Grid>
                        <!-- Tabstrip and help button -->
                        <Grid Grid.Row="1" Grid.Column="1" Canvas.ZIndex="1" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <telerikNavigation:RadTabControl BackgroundVisibility="Collapsed"
                            
                                x:Name="TabControl" Margin="10,-4,0,0" 
															 ItemContainerStyle="{StaticResource RibbonRadTabItemStyle}"
															 Style="{StaticResource customType}"   
															 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:RadRibbonButton Visibility="{TemplateBinding HelpButtonVisibility}" x:Name="HelpButton" Size="Small" SmallImage="{TemplateBinding HelpButtonImageSource}" VerticalAlignment="Center" />

                                <ContentPresenter Margin="0"  Content="{TemplateBinding TabStripAdditionalContent}" />
                            </StackPanel>
                        </Grid>


                        <!-- Application button -->
                        <telerikRibbonBar:RadRibbonDropDownButton x:Name="ApplicationButton" Grid.RowSpan="2" Margin="4,4,0,5" DropDownIndicatorVisibility="Collapsed"
                            SmallImage="{TemplateBinding ApplicationButtonImageSource}" 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" AllowsTransparency="True" StaysOpen="False"
							Focusable="false" Placement="Bottom"
							IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
							-->

                        <Popup x:Name="TabContentPopup">

                        </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>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>



    
	

	<Style TargetType="telerikRibbonBar:RadRibbonButton"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , 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}">
							<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="Image" Property="Opacity"  Value="0.3" />
							<Setter TargetName="textRow1" Property="Opacity" Value="0.3" />
							<Setter TargetName="textRow2" Property="Opacity" Value="0.3" />
						</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" >
				<Border x:Name="DropDownBorder"
						HorizontalAlignment="Stretch"
						MinWidth="{TemplateBinding MinDropDownWidth}"
						MaxHeight="{TemplateBinding MaxDropDownHeight}">
					<Grid>
						<Border Background="{StaticResource RibbonPopupBackgroundBrush}" 
									BorderThickness="1" BorderBrush="{StaticResource RibbonPopupOuterBorderBrush}" 
									CornerRadius="2">
							<Border BorderBrush="{StaticResource RibbonPopupInnerBorderBrush}" BorderThickness="1" CornerRadius="1">

								<ScrollViewer x:Name="PART_ScrollViewer" Padding="0 1"
											VerticalScrollBarVisibility="Auto" BorderThickness="0"	
                                              >
									<ItemsPresenter />
								</ScrollViewer>
							</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}" />
				</Grid>
			</Border>

			<Popup x:Name="PART_Popup" >
				<Border x:Name="DropDownBorder"
						HorizontalAlignment="Stretch"
						MinWidth="{TemplateBinding MinDropDownWidth}"
						MaxHeight="{TemplateBinding MaxDropDownHeight}">
					<Grid>
						<Border Background="{StaticResource RibbonPopupBackgroundBrush}" 
									BorderThickness="1" BorderBrush="{StaticResource RibbonPopupOuterBorderBrush}" 
									CornerRadius="2">
							<Border BorderBrush="{StaticResource RibbonPopupInnerBorderBrush}" BorderThickness="1" CornerRadius="1">
								<ScrollViewer x:Name="PART_ScrollViewer" Padding="0 1"
											VerticalScrollBarVisibility="Auto" BorderThickness="0"	
                                              >

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

			<Rectangle x:Name="DisabledVisual" RadiusX="3" RadiusY="3" 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="IsKeyboardFocusWithin" Value="True" />
			<Trigger Property="IsEnabled" Value="False" />
		</ControlTemplate.Triggers>
		
	</ControlTemplate>
	<!-- RadComboBox -->
	<Style TargetType="telerikRibbonBar:RadRibbonComboBox"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        vistaCopy:VistaThemeCopyTheme , 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="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=
        vistaCopy:VistaThemeCopyTheme , 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=vistaCopy:VistaThemeCopyTheme, 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}">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" MaxHeight="28" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<ContentPresenter
								Name="ContentPresenter"
								Grid.ColumnSpan="2" Grid.RowSpan="9"
								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" CornerRadius="2" Padding="1" Margin="0,1,4,4"
										MinWidth="3"
										MinHeight="3"
										Width="{TemplateBinding DropDownWidth}"
										Height="{TemplateBinding DropDownHeight}"
										MaxWidth="{TemplateBinding DropDownMaxWidth}"
										MaxHeight="{TemplateBinding DropDownMaxHeight}">
									<ContentPresenter
										x:Name="DropDownPopupContent"
										Content="{TemplateBinding DropDownContent}"
										ContentTemplate="{TemplateBinding DropDownContentTemplate}"
										HorizontalAlignment="Stretch"
										VerticalAlignment="Stretch"
										DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
								</Border>
							</Grid>
						</Popup>

					</Grid>

					
					<ControlTemplate.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="Image" Property="Opacity"  Value="0.3" />
							<Setter TargetName="textRow1" Property="Opacity" Value="0.3" />
							<Setter TargetName="textRow2" Property="Opacity" Value="0.3" />
							<Setter TargetName="DropDownIndicator" Property="Opacity" Value="0.3"/>
						</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.Row" Value="0"/>
							<Setter TargetName="DropDownPanel" Property="Margin" Value="2,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,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=
        vistaCopy:VistaThemeCopyTheme , 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 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 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 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  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 
                                         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>
                       
                        <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}">
							<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}}">
                            <!--PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">-->
                            
                            
                         
							<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" />
								</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="Image" Property="Opacity"  Value="0.3" />
							<Setter TargetName="textRow1" Property="Opacity" Value="0.3" />
							<Setter TargetName="textRow2" Property="Opacity" Value="0.3" />
							<Setter TargetName="DropDownIndicator" Property="Opacity" Value="0.3"/>
						</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 TargetType="telerikRibbonBar:RadRibbonGroup"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        vistaCopy:VistaThemeCopyTheme , ElementType=telerikRibbonBar:RadRibbonGroup}"
        >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style 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>
			</Setter.Value>
		</Setter>
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<telerikRibbonBarPrimitives:StripPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikRibbonBar:RadRibbonGroup">
					<Grid SnapsToDevicePixels="True"  >
                        
                        <telerikRibbonBarPrimitives:GroupChrome Name="ExpandedChrome" Header="{TemplateBinding Header}" DialogLauncherVisibility="{TemplateBinding DialogLauncherVisibility}">
							<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" Name="CollapsedButton" DropDownButtonPosition="Right" HorizontalAlignment="Stretch">
							<telerikRibbonBar:RadRibbonDropDownButton.DropDownContent>
								<Border CornerRadius="2" Background="{StaticResource RibbonTabBackgroundBrush}">
									<telerikRibbonBarPrimitives:GroupChrome Name="CollapsedChrome" Header="{TemplateBinding Header}" DialogLauncherVisibility="{TemplateBinding DialogLauncherVisibility}"/>
								</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}" Foreground="{TemplateBinding Foreground}" Grid.Row="1" Margin="1,2,1,3" HorizontalContentAlignment="Center" />
							<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=vistaCopy:VistaThemeCopyTheme, 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>
								<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="Image" Property="Opacity"  Value="0.3" />
							<Setter TargetName="textRow1" Property="Opacity" Value="0.3" />
							<Setter TargetName="textRow2" Property="Opacity" Value="0.3" />
							<Setter TargetName="ContentPresenter" Property="Opacity" Value="0.3" />
						</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=vistaCopy:VistaThemeCopyTheme, 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">
							<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,2,2,0" IsHitTestVisible="False"
									Text="{TemplateBinding TextRow1}" TextAlignment="Center" />

							<StackPanel Name="DropDownPanel" Grid.Row="1" Grid.ColumnSpan="2" Margin="2,14,0,0"
									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" CornerRadius="2" Padding="1" Margin="0,1,4,4"
										MinWidth="3"
										MinHeight="3"
										Width="{TemplateBinding DropDownWidth}"
										Height="{TemplateBinding DropDownHeight}"
										MaxWidth="{TemplateBinding DropDownMaxWidth}"
										MaxHeight="{TemplateBinding DropDownMaxHeight}">
									<ContentPresenter
										x:Name="DropDownPopupContent"
										Content="{TemplateBinding DropDownContent}"
										ContentTemplate="{TemplateBinding DropDownContentTemplate}"
										HorizontalAlignment="Stretch"
										VerticalAlignment="Stretch"
										DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}" />
								</Border>
							</Grid>
						</Popup>

						<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="ButtonPart" Property="Opacity" Value="0.3" />
							<Setter TargetName="Image" Property="Opacity" Value="0.3"/>
							<Setter TargetName="textRow1" Property="Opacity" Value="0.3" />
							<Setter TargetName="textRow2" Property="Opacity" Value="0.3" />
							<Setter TargetName="DropDownIndicator" Property="Opacity" Value="0.3" />
						</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>

	
	

	<Style TargetType="telerikRibbonBar:RadRibbonTab"
            x:Key="{telerik:ThemeResourceKey ThemeType=
        vistaCopy:VistaThemeCopyTheme , 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">
			<Setter.Value>
				<ItemsPanelTemplate>
					<telerikRibbonBarPrimitives:TabPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<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=vistaCopy:VistaThemeCopyTheme, 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}">
							<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="Image" Property="Opacity"  Value="0.3" />
							<Setter TargetName="textRow1" Property="Opacity" Value="0.3" />
							<Setter TargetName="textRow2" Property="Opacity" Value="0.3" />
						</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 TargetType="telerikRibbonBarPrimitives:RibbonScrollViewer"
           x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=telerikRibbonBarPrimitives:RibbonScrollViewer}"
		 >
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="ScrollViewerStyle">
			<Setter.Value>
				<Style 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>
			</Setter.Value>
		</Setter>
		<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=
        vistaCopy:VistaThemeCopyTheme , 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}" CornerRadius="2.5">
							<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>

	
	

</ResourceDictionary>