<ResourceDictionary
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:primitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
		xmlns:calendar="clr-namespace:Telerik.Windows.Controls.Calendar;assembly=Telerik.Windows.Controls.Input"
		xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
		xmlns:sys="clr-namespace:System;assembly=mscorlib">

	<telerik:Expression_DarkTheme x:Key="Theme" />

	<telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverterInstance" />

	<SolidColorBrush x:Key="TextBoxBorder_Disabled" Color="#FF5D5C5C" />

	<SolidColorBrush x:Key="PickerForeground" Color="#FFDDDDDD" />
	<SolidColorBrush x:Key="PickerBackground" Color="#FF333333" />
	<LinearGradientBrush x:Key="PickerBorder_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="ButtonForeground_Normal" Color="#FFDDDDDD" />
	<SolidColorBrush x:Key="ButtonBackground_Normal" Color="#FF575859" />
	<LinearGradientBrush x:Key="ButtonBorder_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="ButtonForeground_MouseOver" Color="#FF262626" />
	<SolidColorBrush x:Key="ButtonBackground_MouseOver" Color="#FF878787"/>
	<LinearGradientBrush x:Key="ButtonBorder_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="ButtonForeground_Pressed" Color="#FFDDDDDD" />
	<LinearGradientBrush x:Key="ButtonBackground_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="ButtonBorder_Pressed" Color="#FF1A1A1A"/>
	<SolidColorBrush x:Key="ButtonBorder_Focus" Color="#FF789FC3"/>

	<SolidColorBrush x:Key="ButtonBackground_Disabled" Color="#FF666666"/>
	<SolidColorBrush x:Key="ButtonBorder_Disabled" Color="#FF5D5C5C"/>
	
	<SolidColorBrush x:Key="ControlBackground" Color="#FF3D3D3D" />
	<SolidColorBrush x:Key="ControlBorder" Color="#FF595959" />
	
	<SolidColorBrush x:Key="ItemBackground_MouseOver" Color="#FF878787"/>
	<LinearGradientBrush x:Key="ItemBorder_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="ItemBackground_Selected" Color="#FFCDCDCD"/>

	<LinearGradientBrush x:Key="ItemBorder_Selected" EndPoint="0.971000015735626,0.5" StartPoint="0.0399999991059303,0.5">
		<GradientStop Color="#FF595959" Offset="0"/>
		<GradientStop Color="#FF595959" Offset="1"/>
		<GradientStop Color="#FFA3A3A3" Offset="0.5"/>
	</LinearGradientBrush>
	
	<SolidColorBrush x:Key="CalendarButtonBorder_Today" Color="#FF789FC3" />
	
	<SolidColorBrush x:Key="HeaderBackground" Color="#FF2D2E32" />
	<SolidColorBrush x:Key="SubHeaderBackground" Color="#FF575859" />
	
	<LinearGradientBrush x:Key="HeaderBorder" StartPoint="0,0.5" EndPoint="1,0.5">
		<GradientStop Color="#FF707070" Offset="0"/>
		<GradientStop Color="#FFA3A3A3" Offset="0.5"/>
		<GradientStop Color="#FF707070" Offset="1"/>
	</LinearGradientBrush>
	
	<SolidColorBrush x:Key="CalendarButtonAnotherViewForeground" Color="#FF797878" />
	
	<SolidColorBrush x:Key="WeekNumbersBackground" Color="#FF8A8989" />
	<SolidColorBrush x:Key="WeekNumbersForeground" Color="#FF333333" />
	<SolidColorBrush x:Key="Icon_Normal" Color="#FFC5C2C2"/>
	<SolidColorBrush x:Key="Icon_MouseOver" Color="#FF262626"/>
	<SolidColorBrush x:Key="Icon_Pressed" Color="#FFC5C2C2"/>
	<SolidColorBrush x:Key="Icon_Disabled" Color="#FF868686"/>

	<!-- HeaderedContentControl -->
	<ControlTemplate x:Key="HeaderedContentControlControlTemplate" TargetType="telerik:HeaderedContentControl">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			
			<Border Grid.Row="0" BorderThickness="1" BorderBrush="{StaticResource HeaderBorder}" Background="{StaticResource HeaderBackground}">
				<ContentPresenter Margin="{TemplateBinding Padding}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
			</Border>
			<Border Grid.Row="1" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
				<ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
			</Border>
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="HeaderedContentControlStyle" TargetType="telerik:HeaderedContentControl">
		<Setter Property="BorderThickness" Value="1 0 1 1" />
		<Setter Property="Background" Value="{StaticResource ControlBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlBorder}" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Template" Value="{StaticResource HeaderedContentControlControlTemplate}" />
		<Setter Property="Padding" Value="0" />
	</Style>
	
    <!-- Clock -->
	<ControlTemplate x:Key="RadClockItemControlTemplate" TargetType="telerik:RadClockItem">
    	<Grid x:Name="LayoutRoot" Background="Transparent">
        	<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Unfocused" />
					<VisualState x:Name="Focused" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0.27" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RootElement" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="MouseOver" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="SelectionStates">
					<VisualState x:Name="Unselected" />
					<VisualState x:Name="Selected" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SelectedVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation To="0" Duration="0:0:0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverVisual" />
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>

			<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" />
			<Border x:Name="MouseOverVisual" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" Background="{StaticResource ItemBackground_MouseOver}" BorderBrush="{StaticResource ItemBorder_MouseOver}" />
			<Border x:Name="SelectedVisual" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" BorderBrush="{StaticResource ItemBorder_Selected}" Background="{StaticResource ItemBackground_Selected}" />
			<ContentControl x:Name="Content" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Foreground="{StaticResource ButtonForeground_Normal}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Padding="{TemplateBinding Padding}" />
			
		</Grid>
	</ControlTemplate>
				
    <Style x:Key="ClockItemStyle" TargetType="telerik:RadClockItem">
    	<Setter Property="Margin" Value="0 0 1 1" />
		<Setter Property="Padding" Value="3 3 3 2" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent" />
    	
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        
        <Setter Property="Template" Value="{StaticResource RadClockItemControlTemplate}" />
    </Style>
	
	<Style TargetType="telerik:RadClockItem" BasedOn="{StaticResource ClockItemStyle}" />

	<ControlTemplate x:Key="RadClockControlTemplate" TargetType="telerik:RadClock">
		<telerik:HeaderedContentControl
				Style="{StaticResource HeaderedContentControlStyle}"
				HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
				Padding="{TemplateBinding Padding}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"
				Header="{TemplateBinding Header}" HeaderTemplate="{TemplateBinding HeaderTemplate}">
			<ItemsPresenter Grid.Row="1" Margin="1 1 0 0" VerticalAlignment="Bottom" />
		</telerik:HeaderedContentControl>
	</ControlTemplate>
				
    <Style x:Key="RadClockStyle" TargetType="telerik:RadClock">

		<Setter Property="Foreground" Value="{StaticResource PickerForeground}" />
		<Setter Property="Padding" Value="8 7" />
		
		<Setter Property="BorderThickness" Value="1 0 1 1" />
		<Setter Property="Background" Value="{StaticResource ControlBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlBorder}" />
		
        <Setter Property="Header" Value="Clock" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
		
        <Setter Property="IsTabStop" Value="False" />

        <Setter Property="StartTime" Value="0:0:0" />
        <Setter Property="EndTime" Value="23:59:0" />
        <Setter Property="TimeInterval" Value="1:0:0" />
		
		<Setter Property="ItemContainerStyle" Value="{StaticResource ClockItemStyle}" />

        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <primitives:RadUniformGrid Columns="4" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding}" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" />
                </DataTemplate>
            </Setter.Value>
        </Setter>

        <Setter Property="Template" Value="{StaticResource RadClockControlTemplate}" />
    </Style>
	
	<Style TargetType="telerik:RadClock" BasedOn="{StaticResource RadClockStyle}" />
	
	<!-- Calendar -->
	<ControlTemplate x:Key="RepeatPathButtonControlTemplate" TargetType="RepeatButton">
		<Grid>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0.27" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Icon" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Icon" Storyboard.TargetProperty="Fill">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Border x:Name="Background" CornerRadius="1" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
			<Border x:Name="MouseOverVisual" CornerRadius="1" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ButtonBorder_MouseOver}" Background="{StaticResource ButtonBackground_MouseOver}" />
			<Path x:Name="Icon" Data="{TemplateBinding Content}" Fill="{StaticResource ButtonForeground_Normal}" Stretch="None" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="RepeatPathButtonStyle" TargetType="RepeatButton">
		<Setter Property="MinWidth" Value="22" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Template" Value="{StaticResource RepeatPathButtonControlTemplate}" />
	</Style>
	
	<ControlTemplate x:Key="CalendarHeaderButtonControlTemplate" TargetType="Button">
		<Grid>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0.27" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Content" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal"/>
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Background)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.BorderBrush)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Border x:Name="Background" CornerRadius="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
			<Border x:Name="MouseOverVisual" CornerRadius="1" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ButtonBorder_MouseOver}" Background="{StaticResource ButtonBackground_MouseOver}" />
			<ContentControl x:Name="Content" Foreground="{StaticResource ButtonForeground_Normal}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}"/>
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="CalendarHeaderButtonStyle" TargetType="Button">
		<Setter Property="Template" Value="{StaticResource CalendarHeaderButtonControlTemplate}"/>
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="Margin" Value="2"/>
	</Style>
	
	<ControlTemplate x:Key="CalendarButtonControlTemplate" TargetType="calendar:CalendarButton">
		<Grid x:Name="LayoutRoot">
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0.27" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Content" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="IsInAnotherView" />
					<VisualState x:Name="IsNotFromCurrentView">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CalendarButtonAnotherViewForeground}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="ButtonType">
					<VisualState x:Name="Year" />
					<VisualState x:Name="Decade" />
					<VisualState x:Name="Date" />
					<VisualState x:Name="WeekName" />
					<VisualState x:Name="WeekNumber">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground)">
								<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource WeekNumbersForeground}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="TodayDate" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Today">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Month" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Unfocused" />
					<VisualState x:Name="Focused" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="SelectionStates">
					<VisualState x:Name="Unselected" />
					<VisualState x:Name="Selected">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SelectedVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation To="0" Duration="0:0:0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverVisual" />
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>

			<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" />
			<Border x:Name="SelectedVisual" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" BorderBrush="{StaticResource ItemBorder_Selected}" Background="{StaticResource ItemBackground_Selected}" />
			<Border x:Name="MouseOverVisual" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" Background="{StaticResource ItemBackground_MouseOver}" BorderBrush="{StaticResource ItemBorder_MouseOver}" />
			<ContentControl x:Name="Content" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Foreground="{StaticResource ButtonForeground_Normal}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Padding="{TemplateBinding Padding}" />
			<Border x:Name="Today" BorderBrush="{StaticResource CalendarButtonBorder_Today}" BorderThickness="1" CornerRadius="1" Visibility="Collapsed"/>

		</Grid>
	</ControlTemplate>
				
	<Style x:Key="CalendarButtonStyle" TargetType="calendar:CalendarButton">
		<Setter Property="Margin" Value="0 0 1 1" />
		<Setter Property="Padding" Value="15 2" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent" />
		    	
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Padding" Value="2" />
				
		<Setter Property="Template" Value="{StaticResource CalendarButtonControlTemplate}" />
	</Style>
	
	<Style TargetType="calendar:CalendarButton" BasedOn="{StaticResource CalendarButtonStyle}" />
	
	<ItemsPanelTemplate x:Key="MonthViewItemsPanelTemplate">
		<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" FirstColumn="1" VerticalAlignment="Stretch" Rows="7" Columns="8" />
	</ItemsPanelTemplate>

	<ItemsPanelTemplate x:Key="YearViewPanelTemplate">
		<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
	</ItemsPanelTemplate>

	<ItemsPanelTemplate x:Key="DecadeViewPanelTemplate">
		<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
	</ItemsPanelTemplate>

	<ItemsPanelTemplate x:Key="CenturyViewPanelTemplate">
		<calendar:CalendarPanel PreserveSpaceForCollapsedChildren="True" VerticalAlignment="Stretch" Rows="3" Columns="4" />
	</ItemsPanelTemplate>
	
	<ControlTemplate x:Key="CalendarViewControlTemplate" TargetType="calendar:CalendarView">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			
			<Border Visibility="{TemplateBinding HeaderVisibility}" BorderThickness="0 0 0 1" Background="{StaticResource SubHeaderBackground}" BorderBrush="{StaticResource HeaderBorder}">
				<ContentPresenter Grid.Row="0" HorizontalAlignment="Center" Margin="5" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" />
			</Border>
			
			<ItemsPresenter Grid.Row="1" Margin="1 1 0 0" />
			<Rectangle Grid.Row="1" Width="241" Height="155" />
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="CalendarViewStyle" TargetType="calendar:CalendarView">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template" Value="{StaticResource CalendarViewControlTemplate}" />
	</Style>
	
	<Style TargetType="calendar:CalendarView" BasedOn="{StaticResource CalendarViewStyle}" />
	
	<ControlTemplate x:Key="MonthCalendarViewControlTemplate" TargetType="calendar:CalendarView">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			
			<Border Visibility="{TemplateBinding HeaderVisibility}" BorderThickness="0 0 0 1" Background="{StaticResource SubHeaderBackground}" BorderBrush="{StaticResource HeaderBorder}">
				<ContentPresenter Grid.Row="0" HorizontalAlignment="Center" Margin="5" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" />
			</Border>
			
			<Grid Grid.Row="1" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">
				<Grid.RowDefinitions>
					<RowDefinition Height="1*" />
					<RowDefinition Height="6*" />
				</Grid.RowDefinitions>
				
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="1*" />
					<ColumnDefinition Width="7*" />
				</Grid.ColumnDefinitions>
				
				<Rectangle Grid.ColumnSpan="2" VerticalAlignment="Bottom" Height="1" Margin="1 0" Fill="{StaticResource HeaderBorder}" Visibility="{Binding Path=HideRow, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
				<Rectangle Grid.RowSpan="2" Fill="{StaticResource WeekNumbersBackground}" Margin="1 1 0 1" Visibility="{Binding Path=HideColumn, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}" />
			</Grid>
			
			<ItemsPresenter Grid.Row="2" Margin="1 1 0 0" />
			
			<Rectangle Grid.Row="1" Width="241" Height="155" />
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="MonthCalendarViewStyle" TargetType="calendar:CalendarView">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template" Value="{StaticResource MonthCalendarViewControlTemplate}" />
	</Style>
	
	<ControlTemplate x:Key="RadCalendarControlTemplate" TargetType="telerik:RadCalendar">
		<telerik:HeaderedContentControl
				Style="{StaticResource HeaderedContentControlStyle}"
				HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
				Padding="{TemplateBinding Padding}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
			<telerik:HeaderedContentControl.Header>
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto" />
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="Auto" />
					</Grid.ColumnDefinitions>
					<RepeatButton x:Name="MoveLeft" Content="M5,0 L0,2.5 5,5Z" Style="{StaticResource RepeatPathButtonStyle}" Grid.Column="0" Margin="4" MinWidth="22" MinHeight="22" />
					<Button x:Name="Header" Grid.Column="1" Style="{StaticResource CalendarHeaderButtonStyle}" Margin="0 4" />
					<RepeatButton x:Name="MoveRight" Content="M0,0 L5,2.5 0,5Z" Style="{StaticResource RepeatPathButtonStyle}" Grid.Column="2" Margin="4" MinWidth="22" MinHeight="22" />
				</Grid>
			</telerik:HeaderedContentControl.Header>
			<telerik:HeaderedContentControl.Content>
				<calendar:TransitionPanel x:Name="TransitionPanel" Grid.Row="1" ClipToBounds="True">
					<primitives:RadUniformGrid x:Name="MonthViews" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" />
					<primitives:RadUniformGrid x:Name="YearViews" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" Visibility="Collapsed" />
					<primitives:RadUniformGrid x:Name="DecadeViews" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" Visibility="Collapsed" />
					<primitives:RadUniformGrid x:Name="CenturyViews" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" Visibility="Collapsed" />
				</calendar:TransitionPanel>
			</telerik:HeaderedContentControl.Content>
		</telerik:HeaderedContentControl>
	</ControlTemplate>

	<Style x:Key="RadCalendarStyle" TargetType="telerik:RadCalendar">
		
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		
		<Setter Property="Columns" Value="1" />
		<Setter Property="Rows" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource PickerForeground}" />

		<Setter Property="Background" Value="{StaticResource ControlBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlBorder}" />
		<Setter Property="BorderThickness" Value="1 0 1 1" />

		<Setter Property="ViewsHeaderVisibility" Value="Collapsed" />
		<Setter Property="IsTabStop" Value="False" />
		
		<Setter Property="MonthViewStyle" Value="{StaticResource MonthCalendarViewStyle}" />
		<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="MonthViewPanel" Value="{StaticResource MonthViewItemsPanelTemplate}" />
		<Setter Property="YearViewPanel" Value="{StaticResource YearViewPanelTemplate}" />
		<Setter Property="DecadeViewPanel" Value="{StaticResource DecadeViewPanelTemplate}" />
		<Setter Property="CenturyViewPanel" Value="{StaticResource CenturyViewPanelTemplate}" />
        
        <Setter Property="Template" Value="{StaticResource RadCalendarControlTemplate}" />
    </Style>
	
	<Style TargetType="telerik:RadCalendar" BasedOn="{StaticResource RadCalendarStyle}" />
	
	<ControlTemplate x:Key="DateTimePickerDropDownButtonControlTemplate" TargetType="telerik:RadDropDownButton">
		<Grid>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Disabled">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Disabled}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Disabled}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_Disabled}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Unfocused" />
					<VisualState x:Name="Focused" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="IsOpenedState">
					<VisualState x:Name="Closed" />
					<VisualState x:Name="Opened" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundChecked">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="IconChecked">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Icon">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Indeterminate" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="DropDownButtonPosition">
					<VisualState x:Name="DropDownButtonAtLeft" />
					<VisualState x:Name="DropDownButtonAtTop" />
					<VisualState x:Name="DropDownButtonAtRight" />
					<VisualState x:Name="DropDownButtonAtBottom" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="PopupPlacementState">
					<VisualState x:Name="PlacementBottom" />
					<VisualState x:Name="PlacementTop" />
					<VisualState x:Name="PlacementLeft" />
					<VisualState x:Name="PlacementRight"/>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>

			<Border x:Name="Background" CornerRadius="3" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
			<Border x:Name="BackgroundChecked" CornerRadius="3" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ButtonBorder_Pressed}" Background="{StaticResource ButtonBackground_Pressed}" Visibility="Collapsed" />
			
			<Path x:Name="Icon" Margin="4 0" Fill="{StaticResource Icon_Normal}" Width="8" Height="4" Data="M0,0 4,4 8,0 6,0 4,2 2,0Z" />
			<Path x:Name="IconChecked" Margin="4 0" Visibility="Collapsed" Fill="{StaticResource Icon_Pressed}" Width="8" Height="4" Data="M0,0 4,4 8,0 6,0 4,2 2,0Z" />
			
			<Popup x:Name="DropDownPopup">
				<Border x:Name="DropDownPopupBorder"
						Margin="0 1 0 0"
						Width="{TemplateBinding DropDownWidth}"
						Height="{TemplateBinding DropDownHeight}"
						MaxWidth="{TemplateBinding DropDownMaxWidth}"
						MaxHeight="{TemplateBinding DropDownMaxHeight}">
					<ContentPresenter
						x:Name="DropDownPopupContent"
						Content="{TemplateBinding DropDownContent}"
						ContentTemplate="{TemplateBinding DropDownContentTemplate}"
						HorizontalAlignment="Stretch"
						VerticalAlignment="Stretch"
						DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
				</Border>
			</Popup>
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="DateTimePickerDropDownButtonStyle" TargetType="telerik:RadDropDownButton">
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="IsTabStop" Value="True" />
		<Setter Property="Background" Value="{StaticResource ButtonBackground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource ButtonBorder_Normal}" />
		<Setter Property="Template" Value="{StaticResource DateTimePickerDropDownButtonControlTemplate}"/>
	</Style>
	
    <!-- DateTimePicker -->
	
	<ControlTemplate x:Key="DateTimePickerCloseButtonControlTemplate" TargetType="telerik:RadToggleButton">
		<Grid>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0.27" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Content" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal"/>
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Background)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.BorderBrush)" Storyboard.TargetName="MouseOverVisual">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ContentControl.Foreground)" Storyboard.TargetName="Content">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonForeground_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Border x:Name="Background" CornerRadius="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
			<Border x:Name="MouseOverVisual" CornerRadius="1" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ButtonBorder_MouseOver}" Background="{StaticResource ButtonBackground_MouseOver}" />
			<ContentControl x:Name="Content" Foreground="{StaticResource ButtonForeground_Normal}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}"/>
		</Grid>
	</ControlTemplate>
	
	<Style x:Key="DateTimePickerCloseButtonStyle" TargetType="telerik:RadToggleButton">
		<Setter Property="Template" Value="{StaticResource DateTimePickerCloseButtonControlTemplate}"/>
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="Margin" Value="2"/>
	</Style>
	
	<ControlTemplate x:Key="DateTimePickerControlTemplate" TargetType="telerik:RadDateTimePicker">
		<Grid>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownOpenBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownOpenBorder" Storyboard.TargetProperty="BorderBrush">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TextBoxBorder_Disabled}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver" />
					<VisualState x:Name="DropDownOpen">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Focus" />
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.BorderBrush)">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Pressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DropDownOpenBorder">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Focus">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unfocused"/>
				</VisualStateGroup>
				<VisualStateGroup x:Name="InputTypeStates">
					<VisualState x:Name="DateTimePicker" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="PART_Clock">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Thickness>-1,0,0,0</Thickness>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="DatePicker">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Clock" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CloseButtonContainer" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="TimePicker">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Calendar" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CloseButtonContainer" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="ValidationStates">
					<VisualState x:Name="Valid" />
					<VisualState x:Name="InvalidUnfocused">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationTooltip" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="InvalidFocused">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationTooltip" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationTooltip" Storyboard.TargetProperty="IsOpen">
								<DiscreteObjectKeyFrame KeyTime="0:0:0">
									<DiscreteObjectKeyFrame.Value>
										<sys:Boolean>True</sys:Boolean>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Focus" />
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
                        
			<Grid.ColumnDefinitions>
				<ColumnDefinition x:Name="TextColumn" Width="*" />
				<ColumnDefinition x:Name="ButtonsColumn" Width="Auto" />
			</Grid.ColumnDefinitions>
			
            <Border x:Name="Background" Grid.ColumnSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" CornerRadius="3" />
			<Border x:Name="DropDownOpenBorder" Visibility="Collapsed" Grid.ColumnSpan="2" IsHitTestVisible="False" BorderBrush="{StaticResource ButtonBorder_Pressed}" BorderThickness="{TemplateBinding BorderThickness}" Background="{StaticResource PickerBackground}" CornerRadius="3" />
			
			<telerik:RadWatermarkTextBox x:Name="PART_DateTimeInput"
					Grid.Column="0"
					Text="{Binding DateTimeText, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
					CurrentText="{Binding CurrentDateTimeText, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
					IsReadOnly="{TemplateBinding IsReadOnly}"
					VerticalAlignment="Stretch"
					Padding="{TemplateBinding Padding}"
					HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
					VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
					BorderThickness="0" Background="Transparent" BorderBrush="Transparent"					
					WatermarkContent="{TemplateBinding DateTimeWatermarkContent}"
					WatermarkTemplate="{TemplateBinding DateTimeWatermarkTemplate}"
					TextAlignment="{TemplateBinding TextAlignment}"
					TabIndex="0"
					telerik:StyleManager.Theme="{StaticResource Theme}" />

			<telerik:RadDropDownButton x:Name="DP"
					Grid.Column="1"
					TabIndex="1"
					PopupPlacementTarget="{Binding ElementName=PART_DateTimeInput}"
					IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
					CloseOnEnter="True"
					IsTabStop="False"
					telerik:StyleManager.Theme="{StaticResource Theme}" Style="{StaticResource DateTimePickerDropDownButtonStyle}">
								
				<telerik:RadDropDownButton.DropDownContent>
					<Grid Background="{StaticResource ControlBackground}">
						<Grid.RowDefinitions>
							<RowDefinition />
							<RowDefinition />
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>

						<telerik:RadCalendar x:Name="PART_Calendar"
								Grid.Row="0" Grid.Column="0"
								IsReadOnly="{TemplateBinding IsReadOnly}" 
								DateSelectionMode="{TemplateBinding DateSelectionMode}"
								Culture="{TemplateBinding Culture}"
								SelectionMode="Single"                                            
								Style="{TemplateBinding CalendarStyle}"
								DisplayDateStart="{TemplateBinding DisplayDateStart}"
								DisplayDateEnd="{TemplateBinding DisplayDateEnd}"
								SelectableDateStart="{TemplateBinding SelectableDateStart}"
								SelectableDateEnd="{TemplateBinding SelectableDateEnd}"                                                              
								DisplayDate="{Binding DisplayDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								SelectedDate="{Binding SelectedDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />

						<telerik:DateTimePickerClock x:Name="PART_Clock"
								Grid.Column="1" Grid.Row="0"
								ItemsSource="{TemplateBinding ClockItemsSource}"
								StartTime="{TemplateBinding StartTime}"
								EndTime="{TemplateBinding EndTime}"
								TimeInterval="{TemplateBinding TimeInterval}"
								IsReadOnly="{TemplateBinding IsReadOnly}"
								Style="{TemplateBinding ClockStyle}"
								SelectedTime="{Binding SelectedTime, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" />
						
						<Border x:Name="CloseButtonContainer" Grid.ColumnSpan="2" Grid.Row="1" Margin="0 -1 0 0" BorderThickness="1" BorderBrush="{StaticResource ControlBorder}">
							<telerik:RadToggleButton x:Name="PART_Close"
									HorizontalAlignment="Right" Padding="8 3"
									IsThreeState="False" Content="Close"
	                                IsChecked="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
									telerik:StyleManager.Theme="{StaticResource Theme}"
									Style="{StaticResource DateTimePickerCloseButtonStyle}" />
						</Border>
						
					</Grid>
				</telerik:RadDropDownButton.DropDownContent>
			</telerik:RadDropDownButton>
			
			<Border x:Name="Focus" Visibility="Collapsed" Grid.ColumnSpan="2" IsHitTestVisible="False" BorderBrush="{StaticResource ButtonBorder_Focus}" CornerRadius="3" BorderThickness="{TemplateBinding BorderThickness}" />
			
			<telerikChromes:ValidationTooltip x:Name="ValidationTooltip" Grid.ColumnSpan="2" Visibility="Collapsed" telerik:StyleManager.Theme="{StaticResource Theme}" TooltipPlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" TooltipContent="{Binding (Validation.Errors), RelativeSource={RelativeSource TemplatedParent}}" />

			<Popup x:Name="PART_InputPopup"
					telerik:PopupExtensions.IsOpen="{Binding IsTooltipOpen, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
					telerik:PopupExtensions.Placement="Top"
					telerik:PopupExtensions.PlacementTarget="{Binding ElementName=PART_DateTimeInput}"
					telerik:PopupExtensions.Owner="{Binding RelativeSource={RelativeSource TemplatedParent}}">
				<ContentPresenter Content="{TemplateBinding TooltipContent}" ContentTemplate="{TemplateBinding TooltipTemplate}" />
			</Popup>                       
		</Grid>
	</ControlTemplate>

	<DataTemplate x:Key="TooltipTemplate">
		<Grid VerticalAlignment="Center" Background="White">
			<ContentPresenter Margin="2 0" Content="{Binding}" />
		</Grid>
	</DataTemplate>
	
	<Style x:Key="DateTimePickerStyle" TargetType="telerik:RadDateTimePicker">

		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Background" Value="{StaticResource PickerBackground}" />
		<Setter Property="Foreground" Value="{StaticResource PickerForeground}" />
		<Setter Property="BorderBrush" Value="{StaticResource PickerBorder_Normal}" />

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

		<Setter Property="TabNavigation" Value="Once" />
		<Setter Property="IsTabStop" Value="False" />

		<Setter Property="CalendarStyle" Value="{StaticResource RadCalendarStyle}" />
		<Setter Property="ClockStyle" Value="{StaticResource RadClockStyle}" />
		
		<Setter Property="DateTimeWatermarkTemplate" Value="{x:Null}" />
		<Setter Property="TooltipTemplate" Value="{StaticResource TooltipTemplate}" />
		
        <Setter Property="Template" Value="{StaticResource DateTimePickerControlTemplate}" />
		
    </Style>
	
	<Style TargetType="telerik:RadDateTimePicker" BasedOn="{StaticResource DateTimePickerStyle}" />
	<Style TargetType="telerik:RadDatePicker" BasedOn="{StaticResource DateTimePickerStyle}">
		<Setter Property="InputMode" Value="DatePicker" />
	</Style>
	<Style TargetType="telerik:RadTimePicker" BasedOn="{StaticResource DateTimePickerStyle}">
		<Setter Property="InputMode" Value="TimePicker" />
	</Style>
	
</ResourceDictionary>
