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


 >
	<LinearGradientBrush x:Key="TileView_Background" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFE6F5FE" Offset="0" />
		<GradientStop Color="#FFEFF7FC" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="TileView_OuterBorder" Color="#FF84ADC5" />
<CornerRadius x:Key="TileView_OuterBorder_CornerRadius">3</CornerRadius>
<SolidColorBrush x:Key="TileView_InneBorder" Color="#FFF1FAFF" />
<CornerRadius x:Key="TileView_InneBorder_CornerRadius">2</CornerRadius>
<Thickness x:Key="TileView_InneBorder_Thickness">1</Thickness>
<CornerRadius x:Key="TileView_HeaderBorder_CornerRadius">1</CornerRadius>
<SolidColorBrush x:Key="TileView_HeaderBorder" Color="Transparent" />
<Thickness x:Key="TileView_HeaderBorder_Thickness">0</Thickness>
<LinearGradientBrush x:Key="TileView_HeaderBackground" EndPoint="0.504032258064516,0.00625"
			StartPoint="0.504032258064516,0.9">
		<GradientStop Color="#FF9CDCFD" Offset="0" />
		<GradientStop Color="#FFB3E3FF" Offset="0.5" />
		<GradientStop Color="#FFD5F0FF" Offset="0.51" />
		<GradientStop Color="#FFE1F3FD" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="TileView_ButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD0D0D0" Offset="1" />
		<GradientStop Color="#FFF2F2F2" Offset="0" />
		<GradientStop Color="#FFDDDDDD" Offset="0.51" />
		<GradientStop Color="#FFECECEC" Offset="0.5" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="TileView_ButtonOuterBorder" Color="#FF898C95" />
<LinearGradientBrush x:Key="TileView_ButtonBackground_MouseOver" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FFB4D7EF" />
		<GradientStop Color="#FF32CBDF" Offset="1" />
		<GradientStop Color="#FF8FC1E2" Offset="0.51" />
		<GradientStop Color="#FF4195C7" Offset="0.51" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="TileView_ButtonBackground_Pressed" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FF96B2C4" />
		<GradientStop Color="#FF1C6D8B" Offset="1" />
		<GradientStop Color="#FF557A98" Offset="0.51" />
		<GradientStop Color="#FF104360" Offset="0.51" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="TileView_HeaderBorder_HorizontalSplitterOpacityMask"
			EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="Black" Offset="0" />
		<GradientStop Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="TileView_HeaderBorder_HorizontalSplitterBackground" Color="#FFBFBFBF" />
<SolidColorBrush x:Key="DisabledBrush" Color="#99FFFFFF"></SolidColorBrush>

	
	<Style TargetType="telerikNavigation:RadTileViewItem"
           
		x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , 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="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}">
							<Border BorderBrush="{StaticResource  TileView_InneBorder}"
									CornerRadius="{StaticResource TileView_InneBorder_CornerRadius}"
									BorderThickness="{StaticResource TileView_InneBorder_Thickness}">
								<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>

								<!-- Content presenter for hosting the content -->
								
								<ContentPresenter Grid.Row="1" Content="{TemplateBinding Content}"
										ContentTemplate="{TemplateBinding ContentTemplate}"
										HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
										VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />

								<!-- 
								  Element named PART_GripBar for 
								  handling the dragging of the panel  
								-->
								<StackPanel>
									<Border
											CornerRadius="{StaticResource TileView_HeaderBorder_CornerRadius}"
											Padding="10 0 7 0"
											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"
														Content="{TemplateBinding Header}"
														ContentTemplate="{TemplateBinding HeaderTemplate}" />
											</Border>

											<ToggleButton x:Name="MaximizeToggleButton"
													VerticalAlignment="Center"
													HorizontalAlignment="Right" Width="17"
													Height="17">
												<ToggleButton.Template>
													<ControlTemplate TargetType="ToggleButton">
														<Grid  SnapsToDevicePixels="True" >
															

															<Grid Width="13" Height="13"
																	x:Name="Restore">
																<ToolTipService.ToolTip>
																	<ToolTip
																			telerik:LocalizationManager.ResourceKey="TileViewItemMaximizeText" />
																</ToolTipService.ToolTip>
																<Path x:Name="RestoreIcon"
																		Fill="{StaticResource TileView_ButtonBackground}"
																		Stretch="Fill"
																		Stroke="{x:Null}"
																		Margin="1"
																		Data="M2,5 L2,8.9999999 6,8.9999999 6,5 z M0,3 L8,3 8,5 8,8.9999999 8,11 0,11 0,8.9999999 0,5 z M3,0 L11,0 11,2 11,8.9999999 9,8.9999999 9,2 3,2 z"
																		StrokeThickness="0.5" />
																<Path
																		Fill="{StaticResource TileView_ButtonOuterBorder}"
																		Stretch="Fill"
																		Stroke="{x:Null}"
																		StrokeThickness="0.5"
																		Data="M1,12 L9,12 9,13 1,13 z M3.9999999,7 L3.9999999,9 6,9 6,7 z M3,6 L7,6 7,7 7,9 7,10 3,10 3,9 3,7 z M0,4 L1,4 1,12 0,12 z M12,1 L13,1 13,10 12,10 z M3,1 L3.9999999,1 3.9999999,3 10,3 10,4 10,10 12,10 12,11 10,11 10,12 9,12 9,4 1,4 1,3 3,3 z M3.9999999,0 L12,0 12,1 3.9999999,1 z" />
															</Grid>

															<Grid Width="12" Height="5"
																	x:Name="Collapse"
																	Opacity="0">
																<ToolTipService.ToolTip>
																	<ToolTip
																			telerik:LocalizationManager.ResourceKey="TileViewItemMinimizeText" />
																</ToolTipService.ToolTip>
																<Rectangle Stroke="{x:Null}"
																		StrokeThickness="0.5"
																		Fill="{StaticResource TileView_ButtonOuterBorder}" />
																<Rectangle x:Name="CollapseIcon"
																		Fill="{StaticResource TileView_ButtonBackground}"
																		Stroke="{x:Null}"
																		StrokeThickness="0.5"
																		Margin="1" />
															</Grid>

														</Grid>

														
														<ControlTemplate.Triggers>
															<Trigger Property="IsMouseOver"
																	Value="true">
																<Setter TargetName="RestoreIcon"
																		Property="Fill"
																		Value="{StaticResource TileView_ButtonBackground_MouseOver}" />
																<Setter
																		TargetName="CollapseIcon"
																		Property="Fill"
																		Value="{StaticResource TileView_ButtonBackground_MouseOver}" />
															</Trigger>
															<Trigger Property="IsPressed"
																	Value="true">
																<Setter TargetName="RestoreIcon"
																		Property="Fill"
																		Value="{StaticResource TileView_ButtonBackground_Pressed}" />
																<Setter
																		TargetName="CollapseIcon"
																		Property="Fill"
																		Value="{StaticResource TileView_ButtonBackground_Pressed}" />
															</Trigger>
															<Trigger Property="IsChecked"
																	Value="true">
																<Trigger.EnterActions>
																	<BeginStoryboard>
																		<Storyboard>
																			<DoubleAnimationUsingKeyFrames
																					BeginTime="00:00:00"
																					Storyboard.TargetName="Restore"
																					Storyboard.TargetProperty="(UIElement.Opacity)">
																				<SplineDoubleKeyFrame
																						KeyTime="00:00:01"
																						Value="0"
																						KeySpline="0,0,0,1" />
																			</DoubleAnimationUsingKeyFrames>
																			<DoubleAnimationUsingKeyFrames
																					BeginTime="00:00:00"
																					Storyboard.TargetName="Collapse"
																					Storyboard.TargetProperty="(UIElement.Opacity)">
																				<SplineDoubleKeyFrame
																						KeyTime="00:00:01"
																						Value="1"
																						KeySpline="0,0,0,1" />
																			</DoubleAnimationUsingKeyFrames>
																		</Storyboard>
																	</BeginStoryboard>
																</Trigger.EnterActions>
																<Trigger.ExitActions>
																	<BeginStoryboard>
																		<Storyboard>
																			<DoubleAnimationUsingKeyFrames
																					BeginTime="00:00:00"
																					Storyboard.TargetName="Restore"
																					Storyboard.TargetProperty="(UIElement.Opacity)">
																				<SplineDoubleKeyFrame
																						KeyTime="00:00:01"
																						Value="1"
																						KeySpline="0,0,0,1" />
																			</DoubleAnimationUsingKeyFrames>
																			<DoubleAnimationUsingKeyFrames
																					BeginTime="00:00:00"
																					Storyboard.TargetName="Collapse"
																					Storyboard.TargetProperty="(UIElement.Opacity)">
																				<SplineDoubleKeyFrame
																						KeyTime="00:00:01"
																						Value="0"
																						KeySpline="0,0,0,1" />
																			</DoubleAnimationUsingKeyFrames>
																		</Storyboard>
																	</BeginStoryboard>
																</Trigger.ExitActions>
															</Trigger>
															<Trigger Property="IsEnabled"
																	Value="false" />
														</ControlTemplate.Triggers>
														
													</ControlTemplate>
												</ToggleButton.Template>
											</ToggleButton>
										</Grid>

									</Border>
									
										<Border x:Name="Splitter" Height="4" BorderThickness="0"
												OpacityMask="{StaticResource TileView_HeaderBorder_HorizontalSplitterOpacityMask}"
												Background="{StaticResource TileView_HeaderBorder_HorizontalSplitterBackground}" />
									
						
							</StackPanel>
								<Rectangle x:Name="DisabledVisual" Grid.RowSpan="2" RadiusX="4"
										RadiusY="4" Fill="{StaticResource DisabledBrush}"
										Visibility="Collapsed" />
							</Grid>
							</Border>
						</Border>

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

	<Style TargetType="telerikNavigation:RadTileView"
           
		x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=telerikNavigation:RadTileView}"
		 >
		<Setter Property="Background" Value="Transparent" />
		<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}">
							<ItemsPresenter />
						</Border>

						<Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBrush}"
								Visibility="Collapsed" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
</ResourceDictionary>
