<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:sys="clr-namespace:System;assembly=mscorlib"
							xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
							xmlns:calendar="clr-namespace:Telerik.Windows.Controls.Calendar;assembly=Telerik.Windows.Controls.Input"
							xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
							xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
							xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
							xmlns:primitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
							xmlns:telerikMaskedTextBox="clr-namespace:Telerik.Windows.Controls.MaskedTextBox;assembly=Telerik.Windows.Controls.Input"


>
	
<vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<Thickness x:Key="CalendarButtonButtonChromeMargin">0 0 1 1</Thickness>
<CornerRadius x:Key="SplitButton_SpanCornerRadius">2</CornerRadius>
<Thickness x:Key="CalendarButtonTodayVisualMargin">0 0 1 1</Thickness>
<SolidColorBrush x:Key="ControlOuterBorder_Pressed" Color="#FF2C628B" />
<SolidColorBrush x:Key="CalendarOuterBorder" Color="#FF9CB6C5" />
<SolidColorBrush x:Key="CalendarViewBackground" Color="#FFFFFFFF" />
<Thickness x:Key="CalendarViewBorderThickness">1</Thickness>
<Thickness x:Key="CalendarViewHeaderPadding">3</Thickness>
<Thickness x:Key="CalendarViewMargin">-1 -1 0 0</Thickness>
<Thickness x:Key="CalendarViewHeaderMargin">0</Thickness>
<LinearGradientBrush x:Key="CalendarSubHeaderBackground" EndPoint="0.5,0.0" StartPoint="0.5,1">
		<GradientStop Color="#FFA6D9F4" Offset="0"/>
		<GradientStop Color="#FFBEE6FD" Offset="0.5"/>
		<GradientStop Color="#FFD8EFFC" Offset="0.51"/>
		<GradientStop Color="#FFE5F4FD" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="CalendarSubHeaderOuterBorder" Color="#FF3C7FB1" />
<LinearGradientBrush x:Key="CalendarSubHeaderInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="White"/>
		<GradientStop Color="#FFE8F5FC" Offset="1"/>
	</LinearGradientBrush>
<Thickness x:Key="CalendarItemsMargin">2 1 1 1</Thickness>
<sys:Int32 x:Key="CalendarWeekHeaderVerticalOuterBorderZIndex">0</sys:Int32>
<SolidColorBrush x:Key="CalendarWeekHeaderVerticalOuterBorder" Color="Transparent" />
<Thickness x:Key="CalendarWeekHeaderVerticalOuterBorderThickness">0</Thickness>
<Thickness x:Key="CalendarWeekHeaderVerticalOuterBorderMargin">0 1 -2 0</Thickness>
<sys:Int32 x:Key="CalendarWeekHeaderHorizontalOuterBorderZIndex">3</sys:Int32>
<SolidColorBrush x:Key="CalendarWeekHeaderHorizontalOuterBorder" Color="White" />
<Thickness x:Key="CalendarWeekHeaderHorizontalOuterBorderThickness">0 0 0 1</Thickness>
<Thickness x:Key="CalendarWeekHeaderHorizontalOuterBorderMargin">1 1 1 -1</Thickness>
<sys:Int32 x:Key="CalendarWeekHeaderVerticalInnerBorderZIndex">0</sys:Int32>
<SolidColorBrush x:Key="CalendarWeekHeaderVerticalInnerBorder" Color="Transparent" />
<Thickness x:Key="CalendarWeekHeaderVerticalInnerBorderThickness">0</Thickness>
<Thickness x:Key="CalendarWeekHeaderVerticalInnerBorderMargin">0 1 -2 0</Thickness>
<sys:Int32 x:Key="CalendarWeekHeaderHorizontalInnerBorderZIndex">3</sys:Int32>
<SolidColorBrush x:Key="CalendarWeekHeaderHorizontalInnerBorder" Color="#FFE0E0E0" />
<Thickness x:Key="CalendarWeekHeaderHorizontalInnerBorderThickness">0 0 0 1</Thickness>
<Thickness x:Key="CalendarWeekHeaderHorizontalInnerBorderMargin">1 1 1 0</Thickness>
<sys:Int32 x:Key="CalendarWeekHeaderVerticalBackgroundZIndex">2</sys:Int32>
<SolidColorBrush x:Key="CalendarWeekHeaderVerticalBackground" Color="#FFE7EBF6" />
<Thickness x:Key="CalendarWeekHeaderVerticalBackgroundMargin">1 1 -1 1</Thickness>
<sys:Int32 x:Key="CalendarWeekHeaderHorizontalBackgroundZIndex">1</sys:Int32>
<SolidColorBrush x:Key="CalendarWeekHeaderHorizontalBackground" Color="White" />
<Thickness x:Key="CalendarWeekHeaderHorizontalBackgroundMargin">1 1 1 1</Thickness>
<SolidColorBrush x:Key="HeaderButtonOuterBorder_Normal" Color="Transparent" />
<SolidColorBrush x:Key="HeaderButtonBackground_Normal" Color="Transparent" />
<SolidColorBrush x:Key="HeaderButtonInnerBorder_Normal" Color="Transparent" />
<LinearGradientBrush x:Key="HeaderButtonOuterBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF516F7F" Offset="0"/>
		<GradientStop Color="#FF2A5468" Offset="1"/>
		<GradientStop Color="#FF2D576D" Offset="0.5"/>
		<GradientStop Color="#FF0E3C55" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="HeaderButtonInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF9FBECE" Offset="0"/>
		<GradientStop Color="#FF6D9AAF" Offset="1"/>
		<GradientStop Color="#FF79A5BB" Offset="0.5"/>
		<GradientStop Color="#FF54869F" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="HeaderButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFA6C4D2" Offset="0"/>
		<GradientStop Color="#FF4884A2" Offset="0.5"/>
		<GradientStop Color="#004884A2" Offset="1"/>
		<GradientStop Color="#004884A2" Offset="0.586"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="HeaderButtonOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF283842"/>
		<GradientStop Color="#FF1B2F3B" Offset="1"/>
		<GradientStop Color="#FF1A2D3A" Offset="0.5"/>
		<GradientStop Color="#FF102432" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="HeaderButtonInnerBorder_Pressed" Color="Transparent" />
<LinearGradientBrush x:Key="HeaderButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF556E7C" Offset="0"/>
		<GradientStop Color="#FF2B6586" Offset="1"/>
		<GradientStop Color="#FF587F96" Offset="0.109"/>
		<GradientStop Color="#FF387294" Offset="0.5"/>
		<GradientStop Color="#FF05456C" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="HeaderButtonIconBackground_Normal" Color="Transparent" />
<SolidColorBrush x:Key="HeaderButtonIconForeground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="HeaderButtonIconBackground_MouseOver" Color="Transparent" />
<SolidColorBrush x:Key="HeaderButtonIconForeground_MouseOver" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="HeaderButtonIconBackground_Pressed" Color="Transparent" />
<SolidColorBrush x:Key="HeaderButtonIconForeground_Pressed" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="HeaderButtonIconBackground_Disabled" Color="Transparent" />
<SolidColorBrush x:Key="HeaderButtonIconForeground_Disabled" Color="#88FFFFFF" />
<FontWeight x:Key="HeaderTextFontWeight">Normal</FontWeight>
<SolidColorBrush x:Key="HeaderTextBackground" Color="Transparent" />
<SolidColorBrush x:Key="HeaderTextForeground" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="PickerForeground_Normal" Color="#FF000000" />
<SolidColorBrush x:Key="PanelBackground" Color="#FFFFFFFF" />
<Thickness x:Key="CalendarHeaderPadding">0</Thickness>
<Thickness x:Key="CalendarTransitionPanelMargin">0 1 0 0</Thickness>
<CornerRadius x:Key="CalendarOuterBorderCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="CalendarInnerBorder" Color="Transparent" />
<CornerRadius x:Key="CalendarInnerBorderCornerRadius">0</CornerRadius>
<Thickness x:Key="CalendarHeaderBorderThickness">1</Thickness>
<CornerRadius x:Key="CalendarHeaderOuterCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="HeaderOuterBorder" Color="#FF131C24" />
<LinearGradientBrush x:Key="HeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF83ABC0" Offset="0"/>
		<GradientStop Color="#FF4D95A9" Offset="1"/>
		<GradientStop Color="#FF3F7E9D" Offset="0.5"/>
		<GradientStop Color="#FF0A5276" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="HeaderInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFB2CCD8" Offset="0"/>
		<GradientStop Color="#FF96C3CE" Offset="1"/>
		<GradientStop Color="#FF87B2C3" Offset="0.5"/>
		<GradientStop Color="#FF75A4B7" Offset="0.5"/>
	</LinearGradientBrush>
<CornerRadius x:Key="CalendarHeaderInnerCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="PickerBackground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF898C95" />
<SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="#FF99DEFD" />
<CornerRadius x:Key="SplitButton_RightPartCornerRadius">0 2 2 0</CornerRadius>
<ControlTemplate x:Key="CalendarIcon" TargetType="ContentControl">
		
		
		<Image Margin="3" Width="16" Height="15" Source="/Telerik.Windows.Controls.Input;component/Themes/CalendarIcon-Blue.png" />
		
	</ControlTemplate>
<SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="Transparent" />
<SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF282828" />
<SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_MouseOver" Color="Transparent" />
<SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_Pressed" Color="Transparent" />
<SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFA9A9A9" />
<SolidColorBrush x:Key="TextBlock_Foreground_Disabled" Color="#FF999999" />
<SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_Disabled" Color="Transparent" />


	
	<telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverterInstance" />
	
	<!-- CalendarButtonStyle -->
	<Style x:Key="CalendarButtonStyle" TargetType="calendar:CalendarButton">
		<Setter Property="Padding" Value="0" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="calendar:CalendarButton">
					<Grid x:Name="LayoutRoot">
						
						<telerikChromes:ButtonChrome x:Name="SelectionChrome" telerik:StyleManager.Theme="{StaticResource Theme}" Margin="{StaticResource CalendarButtonButtonChromeMargin}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderNormal="False" RenderFocused="{TemplateBinding IsFocused}" RenderSelected="{TemplateBinding IsSelected}" RenderHighlighted="{TemplateBinding IsMouseOver}" />
						<Border x:Name="TodayVisual" Margin="{StaticResource CalendarButtonTodayVisualMargin}" Visibility="Collapsed" BorderThickness="1" CornerRadius="2" BorderBrush="{StaticResource ControlOuterBorder_Pressed}" />
						<ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsFromCurrentView" Value="False">
							<Setter TargetName="Content" Property="Opacity" Value="0.5" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="LayoutRoot" Property="Opacity" Value="0.75" />
						</Trigger>
						<Trigger Property="ButtonType" Value="TodayDate">
							<Setter TargetName="TodayVisual" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="ButtonType" Value="WeekNumber">
							<Setter TargetName="SelectionChrome" Property="Visibility" Value="Collapsed" />
						</Trigger>
						<Trigger Property="ButtonType" Value="WeekName">
							<Setter TargetName="SelectionChrome" Property="Visibility" Value="Collapsed" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- calendar:CalendarButton -->
	<Style BasedOn="{StaticResource CalendarButtonStyle}" TargetType="calendar:CalendarButton" x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme , ElementType=calendar:CalendarButton}" >
	</Style>
	
	<!--CalendarViewStyle-->
	<Style TargetType="calendar:CalendarView" x:Key="CalendarViewStyle">
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="BorderBrush" Value="{StaticResource CalendarOuterBorder}" />
		<Setter Property="Background" Value="{StaticResource CalendarViewBackground}" />
		<Setter Property="BorderThickness" Value="{StaticResource CalendarViewBorderThickness}" />
		<Setter Property="Padding" Value="{StaticResource CalendarViewHeaderPadding}" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="calendar:CalendarView">
					<Grid Margin="{StaticResource CalendarViewMargin}">
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>

						<Border x:Name="BackgroundVisual" Grid.RowSpan="2" Background="{TemplateBinding Background}" />

						<Border x:Name="Header" Visibility="{TemplateBinding HeaderVisibility}" Margin="{StaticResource CalendarViewHeaderMargin}" Background="{StaticResource CalendarSubHeaderBackground}" BorderBrush="{StaticResource CalendarSubHeaderOuterBorder}" BorderThickness="{TemplateBinding BorderThickness}" >
							<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource CalendarSubHeaderInnerBorder}">
								<ContentPresenter Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
							</Border>
						</Border>

						<ItemsPresenter Grid.Row="1" Margin="{StaticResource CalendarItemsMargin}" />

						<Border x:Name="BorderBrush" Grid.RowSpan="2" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" />

						<Rectangle x:Name="MinDesiredSize" Grid.Row="1" Width="240" Height="155" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Margin" Value="0" />
	</Style>

	<!--MonthViewStyle-->
	<Style x:Key="MonthViewStyle" TargetType="calendar:CalendarView">
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="BorderBrush" Value="{StaticResource CalendarOuterBorder}" />
		<Setter Property="Background" Value="{StaticResource CalendarViewBackground}" />
		<Setter Property="BorderThickness" Value="{StaticResource CalendarViewBorderThickness}" />
		<Setter Property="Padding" Value="{StaticResource CalendarViewHeaderPadding}" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="calendar:CalendarView">
					<Grid Margin="{StaticResource CalendarViewMargin}">
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						
						<Border x:Name="BackgroundVisual" Grid.RowSpan="2" Background="{TemplateBinding Background}" />
						
						<Border x:Name="Header" Visibility="{TemplateBinding HeaderVisibility}" Margin="{StaticResource CalendarViewHeaderMargin}" Background="{StaticResource CalendarSubHeaderBackground}" BorderBrush="{StaticResource CalendarSubHeaderOuterBorder}" BorderThickness="{TemplateBinding BorderThickness}" >
							<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource CalendarSubHeaderInnerBorder}">
								<ContentPresenter Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
							</Border>
						</Border>
						
						<Grid x:Name="WeekHeaders" Grid.Row="1" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">
							<Grid.RowDefinitions>
								<RowDefinition Height="*" />
								<RowDefinition Height="6*" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="7*" />
							</Grid.ColumnDefinitions>

							<Border x:Name="VerticalOuterBorder" Grid.RowSpan="2"	
									Canvas.ZIndex="{StaticResource CalendarWeekHeaderVerticalOuterBorderZIndex}"
									BorderBrush="{StaticResource CalendarWeekHeaderVerticalOuterBorder}"
									BorderThickness="{StaticResource CalendarWeekHeaderVerticalOuterBorderThickness}"
									Margin="{StaticResource CalendarWeekHeaderVerticalOuterBorderMargin}"
									Visibility="{Binding Path=HideColumn, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
							<Border x:Name="HorizontalOuterBorder" Grid.ColumnSpan="2"
									Canvas.ZIndex="{StaticResource CalendarWeekHeaderHorizontalOuterBorderZIndex}"
									BorderBrush="{StaticResource CalendarWeekHeaderHorizontalOuterBorder}"
									BorderThickness="{StaticResource CalendarWeekHeaderHorizontalOuterBorderThickness}"
									Margin="{StaticResource CalendarWeekHeaderHorizontalOuterBorderMargin}"
									Visibility="{Binding Path=HideRow, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
							<Border x:Name="VerticalInnerBorder" Grid.RowSpan="2" 
									Canvas.ZIndex="{StaticResource CalendarWeekHeaderVerticalInnerBorderZIndex}"
									BorderBrush="{StaticResource CalendarWeekHeaderVerticalInnerBorder}"
									BorderThickness="{StaticResource CalendarWeekHeaderVerticalInnerBorderThickness}"
									Margin="{StaticResource CalendarWeekHeaderVerticalInnerBorderMargin}"
									Visibility="{Binding Path=HideColumn, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
							<Border x:Name="HorizontalInnerBorder" Grid.ColumnSpan="2"
									Canvas.ZIndex="{StaticResource CalendarWeekHeaderHorizontalInnerBorderZIndex}"
									BorderBrush="{StaticResource CalendarWeekHeaderHorizontalInnerBorder}"
									BorderThickness="{StaticResource CalendarWeekHeaderHorizontalInnerBorderThickness}"
									Margin="{StaticResource CalendarWeekHeaderHorizontalInnerBorderMargin}"
									Visibility="{Binding Path=HideRow, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
							<Rectangle x:Name="VerticalBackground" Grid.RowSpan="2" 
									Canvas.ZIndex="{StaticResource CalendarWeekHeaderVerticalBackgroundZIndex}"
									Fill="{StaticResource CalendarWeekHeaderVerticalBackground}"
									Margin="{StaticResource CalendarWeekHeaderVerticalBackgroundMargin}"
									Visibility="{Binding Path=HideColumn, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
							<Rectangle x:Name="HorizontalBackground" Grid.ColumnSpan="2" 
									Canvas.ZIndex="{StaticResource CalendarWeekHeaderHorizontalBackgroundZIndex}"
									Fill="{StaticResource CalendarWeekHeaderHorizontalBackground}"
									Margin="{StaticResource CalendarWeekHeaderHorizontalBackgroundMargin}"
									Visibility="{Binding Path=HideRow, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
							
						</Grid>
						
						<ItemsPresenter Grid.Row="1" Margin="{StaticResource CalendarItemsMargin}" />
						
						<Border x:Name="BorderBrush" Grid.RowSpan="2" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" />
						
						<Rectangle x:Name="MinDesiredSize" Grid.Row="1" Width="240" Height="155" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Margin" Value="0" />
	</Style>

	<!--calendar:CalendarView-->
	<Style TargetType="calendar:CalendarView" BasedOn="{StaticResource MonthViewStyle}" x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme , ElementType=calendar:CalendarView}" >
	</Style>

	<!-- HeaderButtonChrome -->
	<Style x:Key="HeaderButtonChrome" TargetType="telerikChromes:ButtonChrome">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource HeaderButtonOuterBorder_Normal}" />
		<Setter Property="Background" Value="{StaticResource HeaderButtonBackground_Normal}" />
		<Setter Property="CornerRadius" Value="{StaticResource SplitButton_SpanCornerRadius}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikChromes:ButtonChrome">
					<Grid>
						
						<Border x:Name="OuterBorder" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
							<Border x:Name="InnerBorder" CornerRadius="{TemplateBinding InnerCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource HeaderButtonInnerBorder_Normal}" />
						</Border>
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="RenderMouseOver" Value="True">
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource HeaderButtonOuterBorder_MouseOver}" />
							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource HeaderButtonInnerBorder_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource HeaderButtonBackground_MouseOver}" />
						</Trigger>
						<Trigger Property="RenderPressed" Value="True">
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource HeaderButtonOuterBorder_Pressed}" />
							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource HeaderButtonInnerBorder_Pressed}" />
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource HeaderButtonBackground_Pressed}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--MoveLeftButtonStyle-->
	<Style x:Key="MoveLeftButtonStyle" TargetType="RepeatButton">
		<Setter Property="Width" Value="22" />
		<Setter Property="Height" Value="22" />
		<Setter Property="Margin" Value="3" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="RepeatButton">
					<Grid>
						
						<telerikChromes:ButtonChrome Style="{StaticResource HeaderButtonChrome}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderFocused="{TemplateBinding IsFocused}" />
						<Path x:Name="BackgroundIcon" Fill="{StaticResource HeaderButtonIconBackground_Normal}" Margin="0 2 0 0" Width="4" Height="7" Data="M4,0 L4,7 3,7 3,6 2,6 2,5 1,5 1,4 0,4 0,3 1,3 1,2 2,2 2,1 3,1 3,0 z" />
						<Path x:Name="ForegroundIcon" Fill="{StaticResource HeaderButtonIconForeground_Normal}" Margin="0 1 0 1" Width="4" Height="7" Data="M4,0 L4,7 3,7 3,6 2,6 2,5 1,5 1,4 0,4 0,3 1,3 1,2 2,2 2,1 3,1 3,0 z" />
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="BackgroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconBackground_MouseOver}" />
							<Setter TargetName="ForegroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconForeground_MouseOver}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="BackgroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconBackground_Pressed}" />
							<Setter TargetName="ForegroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconForeground_Pressed}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackgroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconBackground_Disabled}" />
							<Setter TargetName="ForegroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconForeground_Disabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--MoveRightButtonStyle-->
	<Style x:Key="MoveRightButtonStyle" TargetType="RepeatButton">
		<Setter Property="Width" Value="22" />
		<Setter Property="Height" Value="22" />
		<Setter Property="Margin" Value="3" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="RepeatButton">
					<Grid>
						
						<telerikChromes:ButtonChrome Style="{StaticResource HeaderButtonChrome}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderFocused="{TemplateBinding IsFocused}"/>
						<Path x:Name="BackgroundIcon" Fill="{StaticResource HeaderButtonIconBackground_Normal}" Margin="0 2 0 0" Width="4" Height="7" Data="M0,0 L0,7 1,7 1,6 2,6 2,5 3,5 3,4 4,4 4,3 3,3 3,2 2,2 2,1 1,1 1,0 z" />
						<Path x:Name="ForegroundIcon" Fill="{StaticResource HeaderButtonIconForeground_Normal}" Margin="0 1 0 1" Width="4" Height="7" Data="M0,0 L0,7 1,7 1,6 2,6 2,5 3,5 3,4 4,4 4,3 3,3 3,2 2,2 2,1 1,1 1,0 z" />
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="BackgroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconBackground_MouseOver}" />
							<Setter TargetName="ForegroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconForeground_MouseOver}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="BackgroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconBackground_Pressed}" />
							<Setter TargetName="ForegroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconForeground_Pressed}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackgroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconBackground_Disabled}" />
							<Setter TargetName="ForegroundIcon" Property="Fill" Value="{StaticResource HeaderButtonIconForeground_Disabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--CalendarHeaderButton-->
	<Style x:Key="CalendarHeaderButton" TargetType="Button">
		<Setter Property="Height" Value="22" />
		<Setter Property="Margin" Value="3" />
		<Setter Property="Cursor" Value="Hand" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid x:Name="LayoutRoot">
						
						<TextBlock x:Name="BackgroundText" Text="{TemplateBinding Content}" Margin="0 2 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="{StaticResource HeaderTextFontWeight}" Foreground="{StaticResource HeaderTextBackground}" />
						<TextBlock x:Name="ForegroundText" Text="{TemplateBinding Content}" Margin="0 1 0 1" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="{StaticResource HeaderTextFontWeight}" Foreground="{StaticResource HeaderTextForeground}" />
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="BackgroundText" Property="TextDecorations" Value="Underline" />
							<Setter TargetName="ForegroundText" Property="TextDecorations" Value="Underline" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="BackgroundText" Property="TextDecorations" Value="Underline" />
							<Setter TargetName="ForegroundText" Property="TextDecorations" Value="Underline" />
						</Trigger>
						<Trigger Property="IsFocused" Value="True">
							<Setter TargetName="BackgroundText" Property="TextDecorations" Value="Underline" />
							<Setter TargetName="ForegroundText" Property="TextDecorations" Value="Underline" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="LayoutRoot" Property="Opacity" Value="0.75" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--telerikInput:RadCalendar-->
	<Style TargetType="telerikInput:RadCalendar" x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme,  ElementType=telerikInput:RadCalendar}">
		<Setter Property="Columns" Value="1" />
		<Setter Property="Rows" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource PickerForeground_Normal}" />
		<Setter Property="MonthViewStyle" Value="{StaticResource MonthViewStyle}" />
		<Setter Property="YearViewStyle" Value="{StaticResource CalendarViewStyle}" />
		<Setter Property="DecadeViewStyle" Value="{StaticResource CalendarViewStyle}" />
		<Setter Property="CenturyViewStyle" Value="{StaticResource CalendarViewStyle}" />
		<Setter Property="DayButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="MonthButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="YearButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="DecadeButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="Background" Value="{StaticResource PanelBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource CalendarOuterBorder}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="{StaticResource CalendarHeaderPadding}" />
		<Setter Property="ViewsHeaderVisibility" Value="Collapsed" />
		<Setter Property="IsTabStop" Value="False" />
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikInput:RadCalendar">
					<Grid>
						
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						
						<Border x:Name="Background" Grid.RowSpan="2" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" />

						<calendar:TransitionPanel x:Name="TransitionPanel" Grid.Row="1" ClipToBounds="True" Margin="{StaticResource CalendarTransitionPanelMargin}">
							<primitives:RadUniformGrid x:Name="MonthViews" Margin="1 1 0 0" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" />
							<primitives:RadUniformGrid x:Name="YearViews" Margin="1 1 0 0" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" Visibility="Collapsed" />
							<primitives:RadUniformGrid x:Name="DecadeViews" Margin="1 1 0 0" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" Visibility="Collapsed" />
							<primitives:RadUniformGrid x:Name="CenturyViews" Margin="1 1 0 0" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" Visibility="Collapsed" />
						</calendar:TransitionPanel>

						<Border x:Name="OuterBorder" Grid.RowSpan="2" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource CalendarOuterBorderCornerRadius}" BorderBrush="{TemplateBinding BorderBrush}">
							<Border x:Name="InnerBorder" BorderBrush="{StaticResource CalendarInnerBorder}" CornerRadius="{StaticResource CalendarInnerBorderCornerRadius}" BorderThickness="1" />
						</Border>
						
						<Border x:Name="Navigation" Margin="0 0 0 -1" Canvas.ZIndex="2" Visibility="{TemplateBinding HeaderVisibility}" BorderThickness="{StaticResource CalendarHeaderBorderThickness}" CornerRadius="{StaticResource CalendarHeaderOuterCornerRadius}" BorderBrush="{StaticResource HeaderOuterBorder}" Background="{StaticResource HeaderBackground}">
							<Border BorderThickness="{StaticResource CalendarHeaderBorderThickness}" BorderBrush="{StaticResource HeaderInnerBorder}"  CornerRadius="{StaticResource CalendarHeaderInnerCornerRadius}" Padding="{TemplateBinding Padding}">
								<Grid>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="Auto" />
										<ColumnDefinition Width="*" />
										<ColumnDefinition Width="Auto" />
									</Grid.ColumnDefinitions>
									
									<RepeatButton x:Name="MoveLeft" Grid.Column="0" Style="{StaticResource MoveLeftButtonStyle}" />
									<Button x:Name="Header" Grid.Column="1" Style="{StaticResource CalendarHeaderButton}" />
									<RepeatButton x:Name="MoveRight" Grid.Column="2" Style="{StaticResource MoveRightButtonStyle}" />
									
								</Grid>
							</Border>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="MonthViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" FirstColumn="1" VerticalAlignment="Stretch" Rows="7" Columns="8" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="YearViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="DecadeViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="CenturyViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="DayTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="MonthTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="DecadeTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="YearTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--telerikInput:RadDatePicker-->
	<Style TargetType="telerikInput:RadDatePicker" x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType=telerikInput:RadDatePicker}">

		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Padding" Value="5 0" />
		
		<Setter Property="Foreground" Value="{StaticResource PickerForeground_Normal}" />
		<Setter Property="Background" Value="{StaticResource PickerBackground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
		<Setter Property="BorderThickness" Value="1" />

		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Center" />

		<Setter Property="Columns" Value="1" />
		<Setter Property="Rows" Value="1" />
		
		<Setter Property="ViewsHeaderVisibility" Value="Collapsed" />

		<Setter Property="MonthViewStyle" Value="{StaticResource MonthViewStyle}" />
		<Setter Property="YearViewStyle" Value="{StaticResource CalendarViewStyle}" />
		<Setter Property="DecadeViewStyle" Value="{StaticResource CalendarViewStyle}" />
		<Setter Property="CenturyViewStyle" Value="{StaticResource CalendarViewStyle}" />

		<Setter Property="DayButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="MonthButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="YearButtonStyle" Value="{StaticResource CalendarButtonStyle}" />
		<Setter Property="DecadeButtonStyle" Value="{StaticResource CalendarButtonStyle}" />

		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		

		

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadDatePicker">
                    <Grid x:Name="LayoutRoot">
						
						
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>

                        <Border x:Name="Border" Grid.ColumnSpan="2"
                                IsHitTestVisible="False"
				                BorderBrush="{TemplateBinding BorderBrush}"
				                Background="{TemplateBinding Background}"
				                CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
				                BorderThickness="{TemplateBinding BorderThickness}" />

                        <telerik:PickerTextBox x:Name="InputBox"
								Padding="{TemplateBinding Padding}"
								IsReadOnly="{TemplateBinding IsReadOnly}"
								TabIndex="{TemplateBinding TabIndex}"
								HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
								telerik:StyleManager.Theme="{StaticResource Theme}"
                                
                                AcceptsReturn="False"
                                 />

							<Border x:Name="FocusVisual" Visibility="Collapsed" Grid.ColumnSpan="2" IsHitTestVisible="False" BorderBrush="{StaticResource ControlOuterBorder_Focused}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}">
								<Border CornerRadius="1" BorderBrush="{StaticResource ControlInnerBorder_Focused}" BorderThickness="{TemplateBinding BorderThickness}" />
							</Border>

							<telerik:RadToggleButton x:Name="ToggleButtonElement" MinWidth="15"
								Grid.Column="1" IsTabStop="False"
								
								IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}"
								>

							<telerik:RadToggleButton.Template>
								<ControlTemplate TargetType="telerik:RadToggleButton">
									<ContentPresenter />
								</ControlTemplate>
							</telerik:RadToggleButton.Template>

							<Grid>
								<telerikChromes:ButtonChrome x:Name="ButtonChrome"
										CornerRadius="{StaticResource SplitButton_RightPartCornerRadius}"
										telerik:StyleManager.Theme="{StaticResource Theme}"
										BorderBrush="{TemplateBinding BorderBrush}"
										BorderThickness="{TemplateBinding BorderThickness}"
										RenderActive="{TemplateBinding IsMouseOver}"
										RenderEnabled="{TemplateBinding IsEnabled}"
										RenderPressed="{Binding IsChecked, ElementName=ToggleButtonElement}"
										RenderMouseOver="{Binding IsMouseOver, ElementName=ToggleButtonElement}"
										
										
										RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
										 />

								<ContentControl x:Name="CalendarIcon" IsTabStop="False" Template="{StaticResource CalendarIcon}" Background="{StaticResource ButtonIconBackground_Normal}" Foreground="{StaticResource ButtonIconForeground_Normal}"/>
								
							</Grid>
						</telerik:RadToggleButton>

						
						
						<Popup x:Name="PART_Popup"
								
								AllowsTransparency="true"
								Placement="Bottom"
								StaysOpen="False"
								IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
								PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
								 >

							<Grid x:Name="DropDownRoot">
								
								<telerikInput:RadCalendar
										x:Name="CalendarElement"
										telerik:StyleManager.Theme="{StaticResource Theme}" 
										
										AreWeekNumbersVisible="{TemplateBinding AreWeekNumbersVisible}"
										AreWeekNamesVisible="{TemplateBinding AreWeekNamesVisible}"
										Background="{StaticResource PanelBackground}"
										CalendarWeekRule="{TemplateBinding CalendarWeekRule}"
										CenturyViewHeaderFormat="{TemplateBinding CenturyViewHeaderFormat}"
										CenturyViewPanel="{TemplateBinding CenturyViewPanel}"
										CenturyViewStyle="{TemplateBinding CenturyViewStyle}"
										Columns="{TemplateBinding Columns}"
										Culture="{TemplateBinding Culture}"
										DayButtonStyle="{TemplateBinding DayButtonStyle}"
										DayButtonStyleSelector="{TemplateBinding DayButtonStyleSelector}"
										DayTemplate="{TemplateBinding DayTemplate}"
										DayTemplateSelector="{TemplateBinding DayTemplateSelector}"
										DecadeButtonStyle="{TemplateBinding DecadeButtonStyle}"
										DecadeButtonStyleSelector="{TemplateBinding DecadeButtonStyleSelector}"
										DecadeTemplate="{TemplateBinding DecadeTemplate}"
										DecadeTemplateSelector="{TemplateBinding DecadeTemplateSelector}"
										DecadeViewHeaderFormat="{TemplateBinding DecadeViewHeaderFormat}"
										DecadeViewPanel="{TemplateBinding DecadeViewPanel}"
										DecadeViewStyle="{TemplateBinding DecadeViewStyle}"
										DisplayDate="{TemplateBinding DisplayDate}"
										DisplayDateEnd="{TemplateBinding DisplayDateEnd}"
										DisplayDateStart="{TemplateBinding DisplayDateStart}"
										DisplayMode="{TemplateBinding DisplayMode}"
										FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
										HeaderVisibility="{TemplateBinding HeaderVisibility}"
										IsEnabled="{TemplateBinding IsEnabled}"
										IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}"
										MonthButtonStyle="{TemplateBinding MonthButtonStyle}"
										MonthButtonStyleSelector="{TemplateBinding MonthButtonStyleSelector}"
										MonthTemplate="{TemplateBinding MonthTemplate}"
										MonthTemplateSelector="{TemplateBinding MonthTemplateSelector}"
										MonthViewHeaderFormat="{TemplateBinding MonthViewHeaderFormat}"
										MonthViewPanel="{TemplateBinding MonthViewPanel}"
										MonthViewStyle="{TemplateBinding MonthViewStyle}"
										Orientation="{TemplateBinding Orientation}"
										Rows="{TemplateBinding Rows}"
										SelectableDateEnd="{TemplateBinding SelectableDateEnd}"
										SelectableDateStart="{TemplateBinding SelectableDateStart}"
										SelectedDate="{TemplateBinding SelectedDate}"
										SelectionMode="Single"
										ViewsHeaderVisibility="{TemplateBinding ViewsHeaderVisibility}"
										YearButtonStyle="{TemplateBinding YearButtonStyle}"
										YearButtonStyleSelector="{TemplateBinding YearButtonStyleSelector}"
										YearTemplate="{TemplateBinding YearTemplate}"
										YearTemplateSelector="{TemplateBinding YearTemplateSelector}"
										YearViewHeaderFormat="{TemplateBinding YearViewHeaderFormat}"
										YearViewPanel="{TemplateBinding YearViewPanel}"
										YearViewStyle="{TemplateBinding YearViewStyle}" />
							</Grid>
						</Popup>
						
						
					</Grid>
					
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsKeyboardFocusWithin" Value="True">
							<Setter TargetName="FocusVisual" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ControlOuterBorder_MouseOver}" />
							<Setter TargetName="CalendarIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_MouseOver}" />
							<Setter TargetName="CalendarIcon" Property="Background" Value="{StaticResource ButtonIconBackground_MouseOver}" />
						</Trigger>
						<Trigger Property="IsDropDownOpen" Value="True">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Pressed}" />
							<Setter TargetName="FocusVisual" Property="Opacity" Value="0" />
							<Setter TargetName="CalendarIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Pressed}" />
							<Setter TargetName="CalendarIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Pressed}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Disabled}" />
							<Setter TargetName="InputBox" Property="Foreground" Value="{StaticResource TextBlock_Foreground_Disabled}" />
							<Setter TargetName="CalendarIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Disabled}" />
							<Setter TargetName="CalendarIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Disabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
            </Setter.Value>
        </Setter>

		<Setter Property="MonthViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel ChildrenFlow="Horizontal" PreserveSpaceForCollapsedChildren="True" Rows="7" Columns="8" FirstColumn="1" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="YearViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="DecadeViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="CenturyViewPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="DayTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="MonthTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="DecadeTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="YearTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Text}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		
	</Style>
	
	
</ResourceDictionary>