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


 >

    <SolidColorBrush x:Key="TileView_Background" Color="#FF333333" />
<LinearGradientBrush x:Key="TileView_OuterBorder" EndPoint="0.971000015735626,0.5" StartPoint="0.0399999991059303,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
        <GradientStop Color="#FF707070" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ControlHeader_Foreground" Color="#FFDDDDDD" />
<CornerRadius x:Key="TileView_OuterBorder_CornerRadius">3</CornerRadius>
<CornerRadius x:Key="TileView_HeaderBorder_CornerRadius">2</CornerRadius>
<LinearGradientBrush x:Key="TileView_HeaderBorder" EndPoint="0.971000015735626,0.5" StartPoint="0.0399999991059303,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
        <GradientStop Color="#FF707070" Offset="1"/>
    </LinearGradientBrush>
<Thickness x:Key="TileView_HeaderBorder_Thickness">0 0 0 1</Thickness>
<SolidColorBrush x:Key="TileView_HeaderBackground" Color="#FF494A4D"/>
<LinearGradientBrush x:Key="ControlOuterBorder_Normal" EndPoint="0.971000015735626,0.5" StartPoint="0.0399999991059303,0.5">
        <GradientStop Color="#FF707070" Offset="0"/>
        <GradientStop Color="#FFA3A3A3" Offset="0.5"/>
        <GradientStop Color="#FF707070" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ControlBackground_Normal" Color="#FF575859" />
<SolidColorBrush x:Key="ControlBackground_MouseOver" Color="#FF878787" />
<LinearGradientBrush x:Key="ControlOuterBorder_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>
<LinearGradientBrush x:Key="ControlBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF2E2D2D" Offset="0"/>
        <GradientStop Color="#FF424242" Offset="1"/>
        <GradientStop Color="#FF424242" Offset="0.14"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ControlOuterBorder_Pressed" Color="#FF1A1A1A"/>
<SolidColorBrush x:Key="DisabledBrush" Color="#99FFFFFF"></SolidColorBrush>
<telerik:Expression_DarkTheme x:Key="Theme" />

    
	<Style TargetType="telerikNavigation:RadTileViewItem"
           x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:ExpressionDarkTheme , ElementType=telerikNavigation:RadTileViewItem}"
		 >
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Background" Value="{StaticResource TileView_Background}" />
		<Setter Property="BorderBrush" Value="{StaticResource TileView_OuterBorder}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="7" />
        <Setter Property="Foreground" Value="{StaticResource ControlHeader_Foreground}" />
		<Setter Property="TileState" Value="Restored" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikNavigation:RadTileViewItem">
					<Grid SnapsToDevicePixels="True"
						 >
						
						<!-- Border with white background -->
						<Border CornerRadius="{StaticResource TileView_OuterBorder_CornerRadius}"
								Margin="{TemplateBinding Padding}"
								Background="{TemplateBinding Background}"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="Auto" />
										<RowDefinition Height="*" />
									</Grid.RowDefinitions>
									<!-- Content presenter for hosting the content -->
									<ContentPresenter x:Name="ContentElement" Grid.Row="1"
											Content="{TemplateBinding Content}"
											ContentTemplate="{TemplateBinding ContentTemplate}"
											
											ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
											 
											HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
											VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
									<Grid x:Name="ContentCacheHost" Grid.Row="1" />
									<!-- 
								  Element named PART_GripBar for 
								  handling the dragging of the panel  
								-->
								
                                    <Border Padding="10 0 7 0"
                                                CornerRadius="{StaticResource TileView_HeaderBorder_CornerRadius}"
												BorderBrush="{StaticResource TileView_HeaderBorder}"
												BorderThickness="{StaticResource TileView_HeaderBorder_Thickness}"
												Background="{StaticResource TileView_HeaderBackground}">
											<Grid MinHeight="28">
												<!--IsHitTestVisible="{TemplateBinding DraggingEnabled}"-->
												<Border x:Name="GripBarElement"
														Background="Transparent">
													<ContentPresenter x:Name="HeaderElement"
															HorizontalAlignment="Left"
															VerticalAlignment="Center"
															Margin="0,0,10,0"
															ContentTemplate="{TemplateBinding HeaderTemplate}" 
															
															ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
															 />
												</Border>
												<ToggleButton x:Name="MaximizeToggleButton"
														VerticalAlignment="Center"
														HorizontalAlignment="Right" Width="17"
														Height="17">
													<ToggleButton.Template>
														<ControlTemplate TargetType="ToggleButton">
															<Grid SnapsToDevicePixels="True"
																 >
																
																<Grid Width="14" Height="14"
																		x:Name="Restore"
																		Background="Transparent">
																	<ToolTipService.ToolTip>
																		<ToolTip
																				telerik:LocalizationManager.ResourceKey="TileViewItemMaximizeText" />
																	</ToolTipService.ToolTip>
                                                                    <Rectangle x:Name="RestoreIcon" Stroke="{StaticResource ControlOuterBorder_Normal}"
																			        StrokeThickness="1" Width="10" Height="10"
																			        Fill="{StaticResource ControlBackground_Normal}" />
                                                                    <Rectangle x:Name="RestoreIcon1" Stroke="{StaticResource ControlOuterBorder_Normal}"
																			            StrokeThickness="1" Width="10" Height="10" Margin="0 4 4 0"
																			            Fill="{StaticResource ControlBackground_Normal}" />
                                                               
																</Grid>
																<Grid Width="12" Height="5"
																		x:Name="Collapse"
																		Visibility="Collapsed"
																		Background="Transparent">
																	<ToolTipService.ToolTip>
																		<ToolTip
																				telerik:LocalizationManager.ResourceKey="TileViewItemMinimizeText" />
																	</ToolTipService.ToolTip>
                                                                    <Rectangle StrokeThickness="1" x:Name="CollapseIcon"
                                                                               Stroke="{StaticResource ControlOuterBorder_Normal}"
																			   Fill="{StaticResource ControlBackground_Normal}" />
																</Grid>
															</Grid>
															
															<ControlTemplate.Triggers>
																<Trigger Property="IsMouseOver"
																		Value="true">
																	<Setter TargetName="RestoreIcon" Property="Fill"
																			Value="{StaticResource ControlBackground_MouseOver}" />
                                                                    <Setter TargetName="RestoreIcon" Property="Stroke"
																			Value="{StaticResource ControlOuterBorder_MouseOver}" />
                                                                    <Setter TargetName="RestoreIcon1" Property="Fill"
																			Value="{StaticResource ControlBackground_MouseOver}" />
                                                                    <Setter TargetName="RestoreIcon1" Property="Stroke"
																			Value="{StaticResource ControlOuterBorder_MouseOver}" />
                                                                    <Setter TargetName="CollapseIcon" Property="Fill"
																			Value="{StaticResource ControlBackground_MouseOver}" />
                                                                    <Setter TargetName="CollapseIcon" Property="Stroke"
																			Value="{StaticResource ControlOuterBorder_MouseOver}" />
                                                                </Trigger>
																<Trigger Property="IsPressed"
																		Value="true">
																	<Setter TargetName="RestoreIcon" Property="Fill"
																			Value="{StaticResource ControlBackground_Pressed}" />
                                                                    <Setter TargetName="RestoreIcon" Property="Stroke"
																			 Value="{StaticResource ControlOuterBorder_Pressed}" />
                                                                    <Setter TargetName="RestoreIcon1" Property="Fill"
																			Value="{StaticResource ControlBackground_Pressed}" />
                                                                    <Setter TargetName="RestoreIcon1" Property="Stroke"
																			Value="{StaticResource ControlOuterBorder_Pressed}" />
                                                                    <Setter TargetName="CollapseIcon" Property="Fill"
																			Value="{StaticResource ControlBackground_Pressed}" />
                                                                    <Setter TargetName="CollapseIcon" Property="Stroke"
																			Value="{StaticResource ControlOuterBorder_Pressed}" />
                                                                </Trigger>
																<Trigger Property="IsChecked"
																		Value="true">
																	<Trigger.EnterActions>
																		<BeginStoryboard>
																			<Storyboard>
																				<ObjectAnimationUsingKeyFrames
																						Storyboard.TargetName="Restore"
																						Storyboard.TargetProperty="Visibility">
																					<DiscreteObjectKeyFrame
																							KeyTime="0">
																						<DiscreteObjectKeyFrame.Value>
																							<Visibility>Collapsed</Visibility>
																						</DiscreteObjectKeyFrame.Value>
																					</DiscreteObjectKeyFrame>
																				</ObjectAnimationUsingKeyFrames>
																				<ObjectAnimationUsingKeyFrames
																						Storyboard.TargetName="Collapse"
																						Storyboard.TargetProperty="Visibility">
																					<DiscreteObjectKeyFrame
																							KeyTime="0">
																						<DiscreteObjectKeyFrame.Value>
																							<Visibility>Visible</Visibility>
																						</DiscreteObjectKeyFrame.Value>
																					</DiscreteObjectKeyFrame>
																				</ObjectAnimationUsingKeyFrames>
																			</Storyboard>
																		</BeginStoryboard>
																	</Trigger.EnterActions>
																	<Trigger.ExitActions>
																		<BeginStoryboard>
																			<Storyboard>
																				<ObjectAnimationUsingKeyFrames
																						Storyboard.TargetName="Restore"
																						Storyboard.TargetProperty="Visibility">
																					<DiscreteObjectKeyFrame
																							KeyTime="0">
																						<DiscreteObjectKeyFrame.Value>
																							<Visibility>Visible</Visibility>
																						</DiscreteObjectKeyFrame.Value>
																					</DiscreteObjectKeyFrame>
																				</ObjectAnimationUsingKeyFrames>
																				<ObjectAnimationUsingKeyFrames
																						Storyboard.TargetName="Collapse"
																						Storyboard.TargetProperty="Visibility">
																					<DiscreteObjectKeyFrame
																							KeyTime="0">
																						<DiscreteObjectKeyFrame.Value>
																							<Visibility>Collapsed</Visibility>
																						</DiscreteObjectKeyFrame.Value>
																					</DiscreteObjectKeyFrame>
																				</ObjectAnimationUsingKeyFrames>
																			</Storyboard>
																		</BeginStoryboard>
																	</Trigger.ExitActions>
																</Trigger>
																<Trigger Property="IsEnabled"
																		Value="false" />
															</ControlTemplate.Triggers>
															
														</ControlTemplate>
													</ToggleButton.Template>
												</ToggleButton>
											</Grid>
										</Border>
									<Rectangle x:Name="DisabledVisual" Grid.RowSpan="2" RadiusX="4"
											RadiusY="4" Fill="{StaticResource DisabledBrush}"
											Visibility="Collapsed" />
								</Grid>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="telerikNavigation:RadTileView"
           x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:ExpressionDarkTheme , ElementType=telerikNavigation:RadTileView}"
		 >
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="ScrollBarVisibility" Value="Auto" />
		<Setter Property="IsAnimationOptimized" Value="False" />
		<Setter Property="Padding" Value="7" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<Canvas Background="Transparent" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikNavigation:RadTileView">
					<Grid>
						
						<Border Background="{TemplateBinding Background}"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
									<RowDefinition Height="Auto" />
								</Grid.RowDefinitions>
								<ItemsPresenter x:Name="ItemsPresenter" Grid.Column="1" Grid.Row="1" />
								<ScrollBar x:Name="LeftScrollBar" Grid.Row="0" Grid.Column="0"
										Grid.RowSpan="3" Orientation="Vertical" Maximum="0"
										Visibility="Collapsed" Margin="0 7"
										telerik:StyleManager.Theme="{StaticResource Theme}" />
								<ScrollBar x:Name="TopScrollBar" Grid.Row="0" Grid.Column="0"
										Grid.ColumnSpan="3" Orientation="Horizontal" Maximum="0"
										Visibility="Collapsed" Margin="7 0"
										telerik:StyleManager.Theme="{StaticResource Theme}" />
								<ScrollBar x:Name="RightScrollBar" Grid.Column="2" Grid.Row="0"
										Grid.RowSpan="3" Orientation="Vertical" Maximum="0"
										Visibility="Collapsed" Margin="0 7"
										telerik:StyleManager.Theme="{StaticResource Theme}" />
								<ScrollBar x:Name="BottomScrollBar" Grid.Row="2" Grid.Column="0"
										Grid.ColumnSpan="3" Orientation="Horizontal" Maximum="0"
										Visibility="Collapsed" Margin="7 0"
										telerik:StyleManager.Theme="{StaticResource Theme}" />
							</Grid>
						</Border>
						<Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBrush}"
								Visibility="Collapsed" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	
</ResourceDictionary>
