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

	xmlns:telerik="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"
	xmlns:sys="clr-namespace:System;assembly=mscorlib"


>

    <telerik:Expression_DarkTheme x:Key="Theme" />
<SolidColorBrush x:Key="ControlForeground_Normal" Color="#FFDDDDDD" />
<SolidColorBrush x:Key="ControlOuterBorder" Color="#FF595959" />
<SolidColorBrush x:Key="ControlBackground" Color="#FF3D3D3D" />
<LinearGradientBrush x:Key="ControlItem_OuterBorder_MouseOver" EndPoint="0.971000015735626,0.5" StartPoint="0.0399999991059303,0.5">
        <GradientStop Color="#FFB0B0B0" Offset="0"/>
        <GradientStop Color="#FFB0B0B0" Offset="1"/>
        <GradientStop Color="#FFE0E1E2" Offset="0.5"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ControlItem_Background_MouseOver" Color="#FF878787"/>
<LinearGradientBrush x:Key="ControlItem_OuterBorder_Selected" EndPoint="0.972,0.5" StartPoint="0.042,0.5">
        <GradientStop Color="#FF595959" Offset="0"/>
        <GradientStop Color="#FF595959" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="ControlItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616060" Offset="0"/>
        <GradientStop Color="#FFCDCDCD" Offset="1"/>
        <GradientStop Color="#FFCDCDCD" Offset="0.14"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FF5D5C5C" />
<SolidColorBrush x:Key="ControlBackground_Disabled" Color="#FF666666" />
<SolidColorBrush x:Key="ControlElement_Normal" Color="#FFC5C2C2" />
<SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF789FC3" />
<CornerRadius x:Key="ControlSubItem_OuterCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="ControlForeground_Active" Color="#FF262626" />
<SolidColorBrush x:Key="ControlElement_Active" Color="#FF262626" />
<SolidColorBrush x:Key="ControlElement_Disabled" Color="#FF868686" />
<SolidColorBrush x:Key="ControlElement_MouseOver" Color="#FF262626" />
<SolidColorBrush x:Key="ControlForeground_MouseOver" Color="#FF262626" />
<SolidColorBrush x:Key="ControlSubItem_Background_MouseOver" Color="#FF878787" />
<SolidColorBrush x:Key="ControlSubItem_Background_Selected" Color="#FFCDCDCD" />
<SolidColorBrush x:Key="ControlItem_Background_Normal" Color="#FF575859" />
<LinearGradientBrush x:Key="ControlItem_OuterBorder_Normal"  EndPoint="0.972,0.5" StartPoint="0.042,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FF707070" Offset="1"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
    </LinearGradientBrush>

    
    <Style TargetType="telerikNavigation:RadPanelBar"
		
        x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:ExpressionDarkTheme , ElementType=telerikNavigation:RadPanelBar}"
         >
        
		
		<Setter Property="KeyboardNavigation.TabNavigation" Value="Local" />
		
		<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" Margin="0 -1 0 0"
									
                                    HorizontalScrollBarVisibility="Auto"
									VerticalScrollBarVisibility="Auto">

                                    <ItemsPresenter />
                                </ScrollViewer>
                            </Border>
                        </telerikPrimitives:LayoutTransformControl>
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="Orientation" Value="Horizontal">
                            <Setter TargetName="transformationRoot" Property="LayoutTransform">
                                <Setter.Value>
                                    <RotateTransform Angle="-90" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Orientation" Value="Vertical" />
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}" />
        <Setter Property="Background" Value="{StaticResource ControlBackground}" />
        <Setter Property="BorderThickness" Value="1" />
    </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 x:Name="NormalVisual" Grid.ColumnSpan="5" BorderBrush="{TemplateBinding BorderBrush}"
						BorderThickness="{TemplateBinding BorderThickness}"
                        Background="{TemplateBinding Background}" Margin="-1 0 -1 -1"/>

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

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

                
                <ContentControl x:Name="Header" Margin="{TemplateBinding Padding}"
						Grid.ColumnSpan="4" 
						ContentTemplate="{TemplateBinding HeaderTemplate}"
						ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
						FontSize="{TemplateBinding FontSize}"
						Foreground="{TemplateBinding Foreground}"
						HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
						VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                
                

                <!-- Focus -->
                <Border x:Name="FocusVisual" Visibility="Collapsed" BorderThickness="1" Grid.ColumnSpan="5" 
						BorderBrush="{StaticResource ControlOuterBorder_Focused}"
						CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}" Margin="0 1 0 0"/>

            </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" />
                <Setter TargetName="Header" Property="Foreground" Value="{StaticResource ControlForeground_Active}" />
                <Setter TargetName="arrow" Property="Stroke"  Value="{StaticResource ControlElement_Active}" />
            </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="Header" Property="Foreground" Value="{StaticResource ControlForeground_Active}" />
                <Setter TargetName="arrow" Property="Stroke"  Value="{StaticResource ControlElement_Active}" />
                <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" />
                <Setter Property="Opacity" Value="0" TargetName="NormalVisual" />
                <Setter TargetName="arrow" Property="Stroke"  Value="{StaticResource ControlElement_Disabled}" />
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Opacity" Value="1" TargetName="MouseOverVisual" />
                <Setter TargetName="arrow" Property="Stroke"  Value="{StaticResource ControlElement_MouseOver}" />
                <Setter TargetName="Header" Property="Foreground" Value="{StaticResource ControlForeground_MouseOver}" />
            </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" 
						Background="{StaticResource ControlSubItem_Background_MouseOver}" />
                
                <!-- Select -->
                <Border x:Name="SelectionVisual" Opacity="0"
						Background="{StaticResource ControlSubItem_Background_Selected}" />

                <!-- Disabled -->
                <Border x:Name="DisabledVisual" Opacity="0"
                        Background="{StaticResource ControlBackground_Disabled}" />
                
                <!-- Header -->
                
                
                <ContentControl x:Name="Header" Margin="{TemplateBinding Padding}"
						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}"/>
               

            </Grid>

            <!-- Content -->
            <Grid Visibility="Collapsed" Grid.Row="1" x:Name="ItemsContainer">

                <ItemsPresenter />

            </Grid>

        </Grid>
        
        <ControlTemplate.Triggers>
            <!--<EventTrigger RoutedEvent="UIElement.MouseEnter" SourceName="HeaderRow">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetProperty="Opacity"
								Storyboard.TargetName="MouseOverVisual" To="1.0" Duration="0:0:0.2" />
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header"
									Storyboard.TargetProperty="Foreground" Duration="0">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlForeground_Normal}" />
                        </ObjectAnimationUsingKeyFrames>
                    </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" />
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header"
									Storyboard.TargetProperty="Foreground" Duration="0">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlForeground_MouseOver}" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>-->
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Opacity" Value="1" TargetName="MouseOverVisual" />
                <Setter TargetName="Header" Property="Foreground" Value="{StaticResource ControlForeground_MouseOver}" />
            </Trigger>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Opacity" Value="1" TargetName="SelectionVisual" />
                <Setter TargetName="Header" Property="Foreground" Value="{StaticResource ControlForeground_Active}" />
            </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" />
                <Setter TargetName="Header" Property="Foreground" Value="{StaticResource ControlForeground_Active}" />
            </Trigger>

            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" Value="1" TargetName="DisabledVisual" />
            </Trigger>
            
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <Style TargetType="telerikNavigation:RadPanelBarItem"
		
        x:Key="{telerik:ThemeResourceKey ThemeType=
        telerik:ExpressionDarkTheme , 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="KeyboardNavigation.TabNavigation" Value="Local" />
        
        <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>
