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


>
                    
<Thickness x:Key="ClockItemPadding">5 2 5 3</Thickness>
<CornerRadius x:Key="SplitButton_SpanCornerRadius">2</CornerRadius>
<Thickness x:Key="ClockButtonChromeMargin">0 0 1 1</Thickness>
<vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<SolidColorBrush x:Key="PanelBorderBrush" Color="#FFB0B0B0" />
<SolidColorBrush x:Key="ClockBackground" Color="#FFFFFFFF" />
<Thickness x:Key="ClockHeaderPadding">4</Thickness>
<CornerRadius x:Key="ClockOuterBorderCornerRadius">0</CornerRadius>
<CornerRadius x:Key="ClockInnerBorderCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="ClockInnerBorderBrush" Color="Transparent" />
<CornerRadius x:Key="ClockHeaderOuterCornerRadius">0</CornerRadius>
<LinearGradientBrush x:Key="ClockHeaderBackground" 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="ClockHeaderOuterBorder" Color="#FF3C7FB1" />
<Thickness x:Key="ClockHeaderBorderThickness">1</Thickness>
<CornerRadius x:Key="ClockHeaderInnerCornerRadius">0</CornerRadius>
<LinearGradientBrush x:Key="ClockHeaderInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="White"/>
		<GradientStop Color="#FFE8F5FC" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ClockHeaderForeground" Color="#FF000000" />
<Thickness x:Key="ClockItemsMargin">2 1 1 1</Thickness>
<SolidColorBrush x:Key="PickerForeground_Normal" Color="#FF000000" />
<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="ClockIcon" TargetType="ContentControl">
		
		
		<Image Margin="3" Width="16" Height="16" Source="/Telerik.Windows.Controls.Input;component/Themes/ClockIcon-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="ControlOuterBorder_Pressed" Color="#FF2C628B" />
<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" />

    

	<!--telerikInput:RadClockItem-->
	<Style TargetType="telerikInput:RadClockItem" x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme , ElementType=telerikInput:RadClockItem}">
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Padding" Value="{StaticResource ClockItemPadding}" />
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikInput:RadClockItem">
					<Grid x:Name="LayoutRoot" Background="Transparent">
						
						
						<telerikChromes:ButtonChrome x:Name="SelectionChrome" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" Margin="{StaticResource ClockButtonChromeMargin}" RenderNormal="False" telerik:StyleManager.Theme="{StaticResource Theme}" RenderSelected="{TemplateBinding IsSelected}" RenderHighlighted="{TemplateBinding IsMouseOver}" />
						
						<ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
								
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--telerikInput:RadClock-->
	<Style TargetType="telerikInput:RadClock" x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType=telerikInput:RadClock}">
	
		<Setter Property="Header" Value="Clock" />
		
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="BorderBrush" Value="{StaticResource PanelBorderBrush}" />
		<Setter Property="Background" Value="{StaticResource ClockBackground}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="{StaticResource ClockHeaderPadding}" />
		<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="SnapsToDevicePixels" Value="True" />
		
		
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<primitives:RadUniformGrid x:Name="uniformGrid" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ItemTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock x:Name="ContentText" Text="{Binding}" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikInput:RadClock">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>

						<Border x:Name="BackgroundVisual" Grid.RowSpan="2" Background="{TemplateBinding Background}" CornerRadius="{StaticResource ClockOuterBorderCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
							<Border CornerRadius="{StaticResource ClockInnerBorderCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ClockInnerBorderBrush}" />
						</Border>

						<Border x:Name="Header" CornerRadius="{StaticResource ClockHeaderOuterCornerRadius}"  Background="{StaticResource ClockHeaderBackground}" BorderBrush="{StaticResource ClockHeaderOuterBorder}" BorderThickness="{StaticResource ClockHeaderBorderThickness}" >
							<Border CornerRadius="{StaticResource ClockHeaderInnerCornerRadius}" BorderThickness="{StaticResource ClockHeaderBorderThickness}" BorderBrush="{StaticResource ClockHeaderInnerBorder}">
								<ContentControl Foreground="{StaticResource ClockHeaderForeground}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
							</Border>
						</Border>

						<ItemsPresenter Grid.Row="1" Margin="{StaticResource ClockItemsMargin}" />
						
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

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

		<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="ClockPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<primitives:RadUniformGrid x:Name="uniformGrid" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="EndTime" Value="23:59:0" />
		<Setter Property="TimeInterval" Value="1:0:0" />

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

		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikInput:RadTimePicker">
					<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"
								>
						</telerik:PickerTextBox>

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

						<!-- TODO: Binding: Style="{TemplateBinding IconButtonStyle}" -->
						<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}"
										RenderEnabled="{TemplateBinding IsEnabled}"
										RenderPressed="{Binding IsChecked, ElementName=ToggleButtonElement}"
										RenderMouseOver="{Binding IsMouseOver, ElementName=ToggleButtonElement}"
										
										RenderActive="{TemplateBinding IsMouseOver}"
										RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
										 />

								<ContentControl x:Name="ClockIcon" IsTabStop="False" Template="{StaticResource ClockIcon}" Background="{StaticResource ButtonIconBackground_Normal}" Foreground="{StaticResource ButtonIconForeground_Normal}"/>

							</Grid>
						</telerik:RadToggleButton>

						<Popup x:Name="PART_Popup"
								
								AllowsTransparency="True" StaysOpen="False"
								IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
								PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
								 >
								<Grid x:Name="DropDownRoot">
									<telerikChromes:ShadowChrome  />
									<telerikInput:RadClock 
											x:Name="ClockElement"
											Culture="{TemplateBinding Culture}"
											TimeInterval="{TemplateBinding TimeInterval}"
											StartTime="{TemplateBinding StartTime}"
											SelectedTime="{TemplateBinding SelectedTime}"
											EndTime="{TemplateBinding EndTime}"
											ItemsPanel="{TemplateBinding ClockPanel}"
											Header="{TemplateBinding HeaderContent}"
											 />
								</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="ClockIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_MouseOver}" />
							<Setter TargetName="ClockIcon" 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="ClockIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Pressed}" />
							<Setter TargetName="ClockIcon" 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="ClockIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Disabled}" />
							<Setter TargetName="ClockIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Disabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
</ResourceDictionary>
