<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:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
    xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"
    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"

	xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
	xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:telerikNavigationPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
	xmlns:telerikToolBar="clr-namespace:Telerik.Windows.Controls.ToolBar;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:treeView="clr-namespace:Telerik.Windows.Controls.TreeView;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
	xmlns:themes="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:mscorlib="clr-namespace:System;assembly=mscorlib"
	xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
	xmlns:telerikTabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:animationNavigation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:book="clr-namespace:Telerik.Windows.Controls.Book;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:outlookBarPrimitives="clr-namespace:Telerik.Windows.Controls.OutlookBar;assembly=Telerik.Windows.Controls.Navigation"
	xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows"


>
   <vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<LinearGradientBrush x:Key="ControlItem_InnerBorder_Normal" EndPoint="0.5,0" StartPoint="0.5,1">
		<GradientStop Color="White" Offset="0" />
		<GradientStop Color="#FFE8F5FC" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlItem_OuterBorder_MouseOver" Color="#FF3C7FB1" />
<LinearGradientBrush x:Key="ControlItem_InnerBorder_MouseOver" EndPoint="0.5,0" StartPoint="0.5,1">
		<GradientStop Color="White" Offset="0" />
		<GradientStop Color="#FFE8F5FC" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ControlItem_Background_MouseOver" EndPoint="0.5,0"
		StartPoint="0.5,1">
		<GradientStop Color="#FF81C3E5" Offset="0" />
		<GradientStop Color="#FF98D1EF" Offset="0.5" />
		<GradientStop Color="#FFB4E0F7" Offset="0.5" />
		<GradientStop Color="#FFBDE4F9" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlItem_OuterBorder_Selected" Color="#FF3C7FB1" />
<LinearGradientBrush x:Key="ControlItem_InnerBorder_Selected" EndPoint="0.5,0"
			StartPoint="0.5,1">
		<GradientStop Color="White" Offset="1" />
		<GradientStop Color="#FFE8F5FC" Offset="0" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ControlItem_Background_Selected" EndPoint="0.5,0"
			StartPoint="0.5,1">
		<GradientStop Color="#FFD9ECF6" Offset="0" />
		<GradientStop Color="#FFE1F1F9" Offset="0.5" />
		<GradientStop Color="#FFF2F9FC" Offset="0.51" />
		<GradientStop Color="#FFF2F9FC" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFA9A9A9" />
<SolidColorBrush x:Key="ControlInnerBorder_Disabled" Color="#FFF8F8F8" />
<LinearGradientBrush x:Key="ControlBackground_Disabled" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF7F7F7" Offset="0.004" />
		<GradientStop Color="#FFE3E3E3" Offset="1" />
		<GradientStop Color="#FFF3F3F3" Offset="0.5" />
		<GradientStop Color="#FFEAEAEA" Offset="0.5" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlElement_Normal" Color="#FF282828" />
<SolidColorBrush x:Key="FocusBrushBlack" Color="#FF000000" />
<CornerRadius x:Key="ControlSubItem_OuterCornerRadius">2</CornerRadius>
<SolidColorBrush x:Key="ControlSubItem_OuterBorder_MouseOver" Color="#FFA6D9F4" />
<Thickness x:Key="ControlSubItem_OuterBorderThickness">1</Thickness>
<SolidColorBrush x:Key="ControlSubItem_InnerBorder_MouseOver" Color="#FFE7F5FD" />
<CornerRadius x:Key="ControlSubItem_InnerCornerRadius">1</CornerRadius>
<Thickness x:Key="ControlSubItem_InnerBorderThickness">1</Thickness>
<LinearGradientBrush x:Key="ControlSubItem_Background_MouseOver" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FFF1F8FD" Offset="0" />
		<GradientStop Color="#FFD5EFFC" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlSubItem_OuterBorder_Selected" Color="#FFA6D9F4" />
<SolidColorBrush x:Key="ControlSubItem_InnerBorder_Selected" Color="#FFD7F0FC" />
<LinearGradientBrush x:Key="ControlSubItem_Background_Selected" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FFE3F4FC" Offset="0" />
		<GradientStop Color="#FFA6D9F4" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF3C7FB1" />
<LinearGradientBrush x:Key="ControlItem_Background_Normal" EndPoint="0.5,0"
			StartPoint="0.5,1">
		<GradientStop Color="#FF9CDCFD" Offset="0" />
		<GradientStop Color="#FFB3E3FF" Offset="0.5" />
		<GradientStop Color="#FFD5F0FF" Offset="0.51" />
		<GradientStop Color="#FFE1F3FD" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlItem_OuterBorder_Normal" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF000000" />

    
	<Style TargetType="telerikNavigation:RadPanelBar"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=telerikNavigation:RadPanelBar}"
		 >
		
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<telerikNavigation:PanelBarPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikNavigation:RadPanelBar">
					<Grid>
						
						<telerikPrimitives:LayoutTransformControl x:Name="transformationRoot">
							<Border BorderThickness="{TemplateBinding BorderThickness}"
									BorderBrush="{TemplateBinding BorderBrush}"
									Background="{TemplateBinding Background}">
								<ScrollViewer Padding="{TemplateBinding Padding}" IsTabStop="False"
										HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
										VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
										telerik:StyleManager.Theme="{StaticResource Theme}"
										x:Name="ScrollViewer"
									
									HorizontalScrollBarVisibility="Auto"
									VerticalScrollBarVisibility="Auto">

									<ItemsPresenter />
								</ScrollViewer>
							</Border>
						</telerikPrimitives:LayoutTransformControl>
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="Orientation" Value="Vertical">
							<Trigger.EnterActions>
								<BeginStoryboard x:Name="VerticalStoryboard">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Duration="00:00:00"
												Storyboard.TargetName="transformationRoot"
												Storyboard.TargetProperty="LayoutTransform">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<RotateTransform Angle="0" />
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</BeginStoryboard>
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<StopStoryboard BeginStoryboardName="VerticalStoryboard" />
							</Trigger.ExitActions>
						</Trigger>
						<Trigger Property="Orientation" Value="Horizontal">
							<Trigger.EnterActions>
								<BeginStoryboard x:Name="HorizontalStoryboard">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Duration="00:00:00"
												Storyboard.TargetName="transformationRoot"
												Storyboard.TargetProperty="LayoutTransform">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<RotateTransform Angle="-90" />
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</BeginStoryboard>
							</Trigger.EnterActions>
							<Trigger.ExitActions>
								<StopStoryboard BeginStoryboardName="HorizontalStoryboard" />
							</Trigger.ExitActions>
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Orientation" Value="Vertical" />
	</Style>

	<!-- RadPanelBarItem Top Level Control Template -->
	<ControlTemplate TargetType="telerikNavigation:RadPanelBarItem"
			x:Key="PanelBarItemTopLevelTemplate">
		<Grid x:Name="RootElement" SnapsToDevicePixels="True" >
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			
			<Grid x:Name="HeaderRow">
				<Grid.ColumnDefinitions>
					<!-- indent -->
					<ColumnDefinition Width="Auto" />

					<!-- collapse/expand -->
					<ColumnDefinition Width="Auto" />

					<!-- left image -->
					<ColumnDefinition Width="Auto" />

					<!-- selection, text, edit element -->
					<ColumnDefinition Width="*" />

					<!-- empty -->
					<ColumnDefinition Width="Auto" />

				</Grid.ColumnDefinitions>

				<!-- normal-->
				<Border Grid.ColumnSpan="5" BorderBrush="{TemplateBinding BorderBrush}"
						BorderThickness="{TemplateBinding BorderThickness}">
					<Border BorderBrush="{StaticResource ControlItem_InnerBorder_Normal}"
							BorderThickness="1" Background="{TemplateBinding Background}" />
				</Border>

				<!-- Hover -->
				<Border x:Name="MouseOverVisual" Opacity="0" Grid.ColumnSpan="5"
						BorderBrush="{StaticResource ControlItem_OuterBorder_MouseOver}"
						BorderThickness="1">
					<Border BorderBrush="{StaticResource ControlItem_InnerBorder_MouseOver}"
							BorderThickness="1"
							Background="{StaticResource ControlItem_Background_MouseOver}" />
				</Border>

				<!-- Select -->
				<Border x:Name="SelectVisual" Opacity="0" Grid.ColumnSpan="5"
						BorderBrush="{StaticResource ControlItem_OuterBorder_Selected}"
						BorderThickness="1">
					<Border BorderBrush="{StaticResource ControlItem_InnerBorder_Selected}"
							BorderThickness="1"
							Background="{StaticResource ControlItem_Background_Selected}" />
				</Border>

				<!-- Disabled -->
				<Border x:Name="DisabledVisual" Opacity="0" Grid.ColumnSpan="5"
						BorderBrush="{StaticResource ControlOuterBorder_Disabled}"
						BorderThickness="1">
					<Border BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
							BorderThickness="1" Background="{StaticResource ControlBackground_Disabled}" />
				</Border>

				<!-- Arrow-->
				<Path x:Name="arrow" Opacity="1" Margin="7 0" HorizontalAlignment="Right"
						Grid.Column="5" VerticalAlignment="Center" Stretch="None"
						Stroke="{StaticResource ControlElement_Normal}" StrokeThickness="2"
						RenderTransformOrigin="0.5 0.5"
						Data="M 1,1.5 L 4.5,5 L 8,1.5" >
					<Path.RenderTransform>
						<RotateTransform x:Name="directionRotation" Angle="0" />
					</Path.RenderTransform>
				</Path>

				
				<ContentControl x:Name="Header" Margin="{TemplateBinding Padding}"
						Grid.ColumnSpan="4" Content="{TemplateBinding Header}"
						ContentTemplate="{TemplateBinding HeaderTemplate}"
						ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
						FontSize="{TemplateBinding FontSize}"
						Foreground="{TemplateBinding Foreground}"
						HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
						VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
				
				
					
				<!-- Focus -->
				<Rectangle x:Name="FocusVisual" Visibility="Collapsed" Grid.Column="0" Grid.ColumnSpan="5"
						   Stroke="{StaticResource FocusBrushBlack}" StrokeThickness="1"
						StrokeDashArray="1 2" IsHitTestVisible="False"  />

			</Grid>

			<Grid Grid.Row="1" Visibility="Collapsed" x:Name="ItemsContainer">
				<telerikPrimitives:LayoutTransformControl x:Name="transformationRoot">
					<ItemsPresenter />
				</telerikPrimitives:LayoutTransformControl>
			</Grid>

		</Grid>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsSelected" Value="True">
				<Setter Property="Opacity" Value="1" TargetName="SelectVisual" />
			</Trigger>
			<Trigger Property="IsFocused" Value="True">
				<Setter Property="Visibility" Value="Visible" TargetName="FocusVisual" />
			</Trigger>
			<Trigger Property="IsExpanded" Value="True">
				<Setter Property="Opacity" Value="1" TargetName="SelectVisual" />
				<Setter TargetName="arrow" Property="LayoutTransform">
					<Setter.Value>
						<TransformGroup>
							<RotateTransform Angle="180" />
						</TransformGroup>
					</Setter.Value>
				</Setter>
				<Setter Property="Visibility" Value="Visible" TargetName="ItemsContainer" />
				
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="ItemsContainer"
									Storyboard.TargetProperty="Opacity" From="0.0" To="1.0"
									Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="arrow" To="1.0" Duration="0" />
							<DoubleAnimation Storyboard.TargetName="ItemsContainer"
									Storyboard.TargetProperty="Opacity" From="0.0" To="0.0"
									Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Opacity" Value="1" TargetName="DisabledVisual" />
			</Trigger>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="Opacity" Value="1" TargetName="MouseOverVisual" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<!-- RadPanelBarItem Second Level Control Template -->
	<ControlTemplate TargetType="telerikNavigation:RadPanelBarItem"
			x:Key="PanelBarItemSecondLevelTemplate">

		<Grid x:Name="RootElement">

			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			
			<Grid x:Name="HeaderRow" Background="Transparent">
				
				<!-- Hover -->
				<Border x:Name="MouseOverVisual" Opacity="0" 
						CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
						BorderBrush="{StaticResource ControlSubItem_OuterBorder_MouseOver}"
						BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
					<Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_MouseOver}"
							CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}"
							BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}"
							Background="{StaticResource ControlSubItem_Background_MouseOver}" />
				</Border>

				

				<!-- Select -->
				<Border x:Name="SelectionVisual" Opacity="0"
						CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
						BorderBrush="{StaticResource ControlSubItem_OuterBorder_Selected}"
						BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
					<Border BorderBrush="{StaticResource ControlSubItem_InnerBorder_Selected}"
							CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}"
							BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}"
							Background="{StaticResource ControlSubItem_Background_Selected}" />
				</Border>

				<!-- Disabled -->
				<Border x:Name="DisabledVisual" Opacity="0"
						BorderBrush="{StaticResource ControlOuterBorder_Disabled}"
						CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
						BorderThickness="{StaticResource ControlSubItem_OuterBorderThickness}">
					<Border BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
							CornerRadius="{StaticResource ControlSubItem_InnerCornerRadius}"
							BorderThickness="{StaticResource ControlSubItem_InnerBorderThickness}"
							Background="{StaticResource ControlBackground_Disabled}" />
				</Border>

				<!-- Header -->
				
				
				<ContentControl x:Name="Header" Margin="{TemplateBinding Padding}"
						Content="{TemplateBinding Header}"
						ContentTemplate="{TemplateBinding HeaderTemplate}"
						ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
						Foreground="{TemplateBinding Foreground}"
						HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
						VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
				


				<!-- Focus -->
				<!--<Border x:Name="FocusVisual" Visibility="Collapsed" BorderThickness="1"
						BorderBrush="{StaticResource ControlOuterBorder_Focused}"
						CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"/>-->
				<Rectangle x:Name="FocusVisual" Visibility="Collapsed" 
						   Stroke="{StaticResource FocusBrushBlack}"
						   StrokeThickness="1" StrokeDashArray="1 2" IsHitTestVisible="False"
						   RadiusX="2" RadiusY="2" />

			</Grid>

			<!-- Content -->
			<Grid Visibility="Collapsed" Grid.Row="1" x:Name="ItemsContainer">
				<telerikPrimitives:LayoutTransformControl x:Name="transformationRoot">
					<ItemsPresenter />
				</telerikPrimitives:LayoutTransformControl>
			</Grid>

		</Grid>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsSelected" Value="True">
				<Setter Property="Opacity" Value="1" TargetName="SelectionVisual" />
			</Trigger>

			<Trigger Property="IsFocused" Value="True">
				<Setter Property="Visibility" Value="Visible" TargetName="FocusVisual" />
			</Trigger>

			<Trigger Property="IsExpanded" Value="True">
				<Setter Property="Visibility" Value="Visible" TargetName="ItemsContainer" />
			</Trigger>

			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Opacity" Value="1" TargetName="DisabledVisual" />
			</Trigger>
			<EventTrigger RoutedEvent="UIElement.MouseEnter" SourceName="HeaderRow">
				<BeginStoryboard>
					<Storyboard>
						<DoubleAnimation Storyboard.TargetProperty="Opacity"
								Storyboard.TargetName="MouseOverVisual" To="1.0" Duration="0:0:0.2" />
					</Storyboard>
				</BeginStoryboard>
			</EventTrigger>
			<EventTrigger RoutedEvent="UIElement.MouseLeave" SourceName="HeaderRow">
				<BeginStoryboard>
					<Storyboard>
						<DoubleAnimation Storyboard.TargetProperty="Opacity"
								Storyboard.TargetName="MouseOverVisual" To="0" Duration="0:0:0.2" />
					</Storyboard>
				</BeginStoryboard>
			</EventTrigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<Style TargetType="telerikNavigation:RadPanelBarItem"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=telerikNavigation:RadPanelBarItem}"
		 >
		<Setter Property="Background" Value="{StaticResource ControlItem_Background_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlItem_OuterBorder_Normal}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />

		
		<Setter Property="Padding" Value="3" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="ChildItemsTemplate"
				Value="{StaticResource PanelBarItemSecondLevelTemplate}" />
		
		<Setter Property="Template" Value="{StaticResource PanelBarItemSecondLevelTemplate}" />
		
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<telerikNavigation:PanelBarPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		
		<Style.Triggers>
			<Trigger Property="Level" Value="1">
				<Setter Property="Template" Value="{StaticResource PanelBarItemTopLevelTemplate}" />
			</Trigger>
		</Style.Triggers>
		
	</Style>
	
</ResourceDictionary>
