<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
    xmlns:scheduler="clr-namespace:Telerik.Windows.Controls.Scheduler;assembly=Telerik.Windows.Controls.Scheduler"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls">


    <LinearGradientBrush x:Key="RadScheduler_Table_TopHeaderBorder" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#00ADBDD1" Offset="0" />
		<GradientStop Color="#7FADBDD1" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_Input_Background_Highlight" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FFFDFEFF" Offset="0" />
		<GradientStop Color="#FFDDE9F7" Offset="1" />
		<GradientStop Color="#FFE6F0FA" Offset="0.5" />
		<GradientStop Color="#FFDCE6F4" Offset="0.5" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadScheduler_Input_OuterBrush_Highlight" Color="#FFC0CBDF" />
<LinearGradientBrush x:Key="RadScheduler_Input_InnerBrush_Highlight" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#CCFAFCFD" Offset="0" />
		<GradientStop Color="#CCE4EFFB" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_Input_Background_Active" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FFC0CBD9" />
		<GradientStop Color="#4CC0CBD9" Offset="0.5" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadScheduler_Table_TextForeground" Color="#FF6685AE" />
<LinearGradientBrush x:Key="RadScheduler_Table_LeftHeaderBorder" EndPoint="1,0.5"
			StartPoint="0,0.5">
		<GradientStop Color="#00ADBDD1" Offset="0" />
		<GradientStop Color="#7FADBDD1" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_Input_Background_Highlight_Vertical" EndPoint="1,0.5"
			StartPoint="0,0.5">
		<GradientStop Color="#FFFDFEFF" Offset="0" />
		<GradientStop Color="#FFDDE9F7" Offset="1" />
		<GradientStop Color="#FFE6F0FA" Offset="0.5" />
		<GradientStop Color="#FFDCE6F4" Offset="0.5" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_Input_Background_Active_Vertical" EndPoint="1,0.5"
			StartPoint="0,0.5">
		<GradientStop Color="#FFC0CBD9" />
		<GradientStop Color="#4CC0CBD9" Offset="0.5" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_Apointment_CloseButtonFill" EndPoint="0.5,1"
			StartPoint="0.5,0">
		<GradientStop Color="#FF4F637C" Offset="0" />
		<GradientStop Color="#FF8CA0B9" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadScheduler_Table_BorderBrush" Color="#7FADBDD1" />
<telerik:Windows7Theme x:Key="Theme" />
<SolidColorBrush x:Key="DefaultButtonStyleOuterBackground" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="DefaultButtonStyleOuterBorderBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="DefaultButtonStyleInnerBorderBrush" Color="#FFA8BED7" />
<SolidColorBrush x:Key="DefaultButtonStyleInnerMostBorderBrush" Color="#00FFFFFF" />
<LinearGradientBrush x:Key="DefaultButtonStyleBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF0F8FE" Offset="0"/>
        <GradientStop Color="#FFD6EFFD" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="DefaultButtonStyleFocusVisualRectangleStroke" Color="#FF0092CD" />
<SolidColorBrush x:Key="DefaultButtonStyleFocusVisualRectangleFill" Color="#00FFFFFF" />
<SolidColorBrush x:Key="DefaultButtonStyleDisabledVisualRectangleFill" Color="#80FFFFFF" />
<LinearGradientBrush x:Key="DefaultButtonStyleIsMouseOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFECF2F5" Offset="0"/>
        <GradientStop Color="#FFB6E6FA" Offset="1"/>
        <GradientStop Color="#FFE2F7FE" Offset="0.5"/>
        <GradientStop Color="#FFBDEDFE" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="DefaultButtonStyleIsPressedInnerBorderBrush" Color="#FF14E1EA" />
<LinearGradientBrush x:Key="DefaultButtonStyleIsPressedInnerMostBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB8E0F5" Offset="0"/>
        <GradientStop Color="#FF89D1F4" Offset="1"/>
        <GradientStop Color="#FFB5E1F8" Offset="0.5"/>
        <GradientStop Color="#FF8CD5F7" Offset="0.51"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="DialogWindowBackground" Color="White" />
<LinearGradientBrush x:Key="RadToolBar_InnerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFDFEFF" Offset="0"/>
		<GradientStop Color="#FFDDE9F7" Offset="1"/>
		<GradientStop Color="#FFE6F0FA" Offset="0.5"/>
		<GradientStop Color="#FFDCE6F4" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ToolbarSeparatorDarkFill" Color="#50000000" />
<SolidColorBrush x:Key="ToolbarSeparatorLightFill" Color="#80FFFFFF" />
<SolidColorBrush x:Key="CategorySelectorBorderBrush" Color="#FFB1B1B1" />
<SolidColorBrush x:Key="GenericShallowBorderBrush" Color="#FF979994" />
<LinearGradientBrush x:Key="ShowMoreBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFAFBFD" Offset="0.004"/>
        <GradientStop Color="#FFEBF3FD" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ShowMoreBorderBrush_Normal" Color="#FFB8D6FB" />
<SolidColorBrush x:Key="ShowMoreForeground_Normal" Color="#FF000000" />
<LinearGradientBrush x:Key="ShowMoreBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFDCEBFC"/>
        <GradientStop Color="#FFC1DBFC" Offset="1"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="ShowMoreBorderBrush_Selected" Color="#FF7DA2CE" />
<SolidColorBrush x:Key="ShowMoreForeground_MouseOver" Color="#FF000000" />
<SolidColorBrush x:Key="ShowMoreForeground_Pressed" Color="#FF000000" />
<LinearGradientBrush x:Key="TodayHeaderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#19FFFFFF" Offset="0"/>
        <GradientStop Color="#4CFFFFFF" Offset="1"/>
        <GradientStop Color="#99FFFFFF" Offset="0.02"/>
        <GradientStop Color="#26FFFFFF" Offset="0.5"/>
        <GradientStop Color="#00FFFFFF" Offset="0.5"/>
    </LinearGradientBrush>
<Style x:Key="RadScheduler_TimelineView_CellBackgroundStyle" TargetType="Border">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush">
			<Setter.Value>
				<SolidColorBrush Color="#7FADBDD1" />
			</Setter.Value>
		</Setter>
		<Setter Property="Background">
			<Setter.Value>
				<SolidColorBrush Color="Transparent" />
			</Setter.Value>
		</Setter>
	</Style>
<Style x:Key="RadScheduler_TimelineView_CellBackgroundStyle_MouseOver" TargetType="Rectangle">
		<Setter Property="StrokeThickness" Value="1" />
		<Setter Property="Stroke">
			<Setter.Value>
				<SolidColorBrush Color="#FFB8D6FB" />
			</Setter.Value>
		</Setter>
		<Setter Property="Fill">
			<Setter.Value>
				<SolidColorBrush Color="#CCF5F9FF" />
			</Setter.Value>
		</Setter>
	</Style>
<Style x:Key="RadScheduler_TimelineView_CellBackgroundStyle_Selected" TargetType="Rectangle">
		<Setter Property="StrokeThickness" Value="1" />
		<Setter Property="Stroke">
			<Setter.Value>
				<SolidColorBrush Color="#FF839AB5" />
			</Setter.Value>
		</Setter>
		<Setter Property="Fill">
			<Setter.Value>
				<SolidColorBrush Color="#7FD9E3F0" />
			</Setter.Value>
		</Setter>
	</Style>
<Style x:Key="RadScheduler_MonthView_CellBackgroundStyle" TargetType="Border">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="#7FADBDD1" />
		<Setter Property="Background" Value="Transparent" />
	</Style>
<Style x:Key="RadScheduler_MonthView_CellBackgroundStyle_FromOtherMonth" TargetType="Rectangle">
		<Setter Property="StrokeThickness" Value="1" />
		<Setter Property="Stroke" Value="#7FADBDD1" />
		<Setter Property="Fill" Value="#7FD9E3F0" />
	</Style>
<Style x:Key="RadScheduler_MonthView_CellBackgroundStyle_MouseOver" TargetType="Rectangle">
		<Setter Property="StrokeThickness" Value="1" />
		<Setter Property="Stroke" Value="#FFB8D6FB" />
		<Setter Property="Fill" Value="#CCF5F9FF" />		
	</Style>
<Style x:Key="RadScheduler_MonthView_CellBackgroundStyle_Selected" TargetType="Rectangle">
		<Setter Property="StrokeThickness" Value="1" />
		<Setter Property="Stroke" Value="#FF839AB5" />
		<Setter Property="Fill" Value="#7FD9E3F0" />
	</Style>
<Style x:Key="RadScheduler_MonthView_CellBackgroundStyle_CurrentDay" TargetType="Rectangle">
		
	</Style>
<Style x:Key="RadScheduler_MonthView_CellHeaderBackgroundStyle" TargetType="Border">
		<Setter Property="Height" Value="22" />
	</Style>
<Style x:Key="RadScheduler_MonthView_CellHeaderStyle_CurrentDay" TargetType="Border">
	</Style>
<Style x:Key="RadScheduler_MonthView_CellHeader_MonthNameStyle" TargetType="TextBlock">
		<Setter Property="Grid.Column" Value="1" />
		<Setter Property="Margin" Value="4 2" />
		<Setter Property="TextAlignment" Value="Left" />
		<Setter Property="Foreground" Value="#FF6685AE" />
		<Setter Property="HorizontalAlignment" Value="Left" />
		<Setter Property="VerticalAlignment" Value="Center" />
	</Style>
<Style x:Key="RadScheduler_MonthView_CellHeader_CurrentDayEllipseWrapStyle" TargetType="Ellipse">
		<Setter Property="Grid.Column" Value="2" />
		<Setter Property="Margin" Value="0" />
		<Setter Property="Width" Value="18" />
		<Setter Property="Height" Value="18" />
		<Setter Property="Stroke" Value="#FF869EBB" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="VerticalAlignment" Value="Center" />
		<Setter Property="Fill" Value="Transparent" />
	</Style>
<Style x:Key="RadScheduler_MonthView_CellHeader_DayNameStyle" TargetType="TextBlock">
		<Setter Property="Grid.Column" Value="2" />
		<Setter Property="Margin" Value="4 2" />
		<Setter Property="TextAlignment" Value="Center" />
		<Setter Property="Foreground" Value="#FF6685AE" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="VerticalAlignment" Value="Center" />
	</Style>
<SolidColorBrush x:Key="AppointmentSubjectTextBoxBackground" Color="#00FFFFFF" />
<SolidColorBrush x:Key="DeleteButtonIcon" Color="#FF333333" />
<LinearGradientBrush x:Key="DeleteButton_Over" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE5F4FD" Offset="0"/>
        <GradientStop Color="#FFA6D9F4" Offset="1"/>
        <GradientStop Color="#FFD8EFFC" Offset="0.38"/>
        <GradientStop Color="#FFBEE6FD" Offset="0.38"/>
    </LinearGradientBrush>
<SolidColorBrush x:Key="DeleteButtonBorder_Over" Color="#FF3C7FB0" />
<SolidColorBrush x:Key="DeleteButtonBorder" Color="#FFB1B1B1" />
<LinearGradientBrush x:Key="DeleteButton" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE5F4FD" Offset="0"/>
        <GradientStop Color="#FFA6D9F4" Offset="1"/>
        <GradientStop Color="#FFD8EFFC" Offset="0.38"/>
        <GradientStop Color="#FFBEE6FD" Offset="0.38"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="DayViewAppointmentItemBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFCFDFE"/>
		<GradientStop Color="#FFF2F7FE" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="MonthViewAppointmentItemBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFCFDFE"/>
		<GradientStop Color="#FFF2F7FE" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="AppointmentTextBrush" Color="#FF000000" />
<ImageSource x:Key="reccurrImage" >
        Images/rec_black.png
    </ImageSource>
<SolidColorBrush x:Key="SelectedAppointmentItemBorderBrush" Color="#FF7DA2CE" />
<ImageSource x:Key="reccurrImageException" >
        Images/no_rec_black.png
    </ImageSource>
<LinearGradientBrush x:Key="MouseOverAppointmentItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDCEBFC"/>
		<GradientStop Color="#FFC1DBFC" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="SelectedAppointmentItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFDCEBFC"/>
		<GradientStop Color="#FFC1DBFC" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="AppointementBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFAFBFD" Offset="0.004"/>
		<GradientStop Color="#FFEBF3FD" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="AppointementBorderBrush" Color="#FFB8D6FB" />
<Thickness x:Key="RadScheduler_ViewModeButton_Padding">10 2 10 2</Thickness>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_Foreground_Normal" Color="#FF1E395B" />
<Thickness x:Key="RadScheduler_ViewModeButton_Margin">2</Thickness>
<CornerRadius x:Key="RadScheduler_ViewModeButton_OuterBorderCornerRadius">2</CornerRadius>
<Thickness x:Key="RadScheduler_ViewModeButton_OuterBorderThikness">1</Thickness>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_OuterBorderBrush_Normal" Color="Transparent" />
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_Background_Normal" Color="Transparent" />
<Thickness x:Key="RadScheduler_ViewModeButton_InnerBorderThikness">1</Thickness>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_InnerBorderBrush_Normal" Color="Transparent" />
<Thickness x:Key="RadScheduler_ViewModeButton_ContentMargin">2</Thickness>
<Style x:Key="RadScheduler_ViewModeButton_ContentStyle" TargetType="Label">
	</Style>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_OuterBorderBrush_MouseOver" Color="#FFC0CBDF" />
<LinearGradientBrush x:Key="RadScheduler_ViewModeButton_InnerBorderBrush_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#CCFAFCFD" Offset="0"/>
		<GradientStop Color="#CCE4EFFB" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_ViewModeButton_Background_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFDFEFF" Offset="0"/>
		<GradientStop Color="#FFDDE9F7" Offset="1"/>
		<GradientStop Color="#FFE6F0FA" Offset="0.5"/>
		<GradientStop Color="#FFDCE6F4" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_Foreground_MouseOver" Color="#FF1E395B" />
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_OuterBorderBrush_Pressed" Color="#FFC0CBD9" />
<LinearGradientBrush x:Key="RadScheduler_ViewModeButton_InnerBorderBrush_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC0CBD9"/>
		<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_ViewModeButton_Background_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC0CBD9"/>
		<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_Foreground_Pressed" Color="#FF1E395B" />
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_OuterBorderBrush_Disabled" Color="#FFC0CBD9" />
<LinearGradientBrush x:Key="RadScheduler_ViewModeButton_InnerBorderBrush_Disabled" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC0CBD9"/>
		<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadScheduler_ViewModeButton_Background_Disabled" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFC0CBD9"/>
		<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="RadScheduler_ViewModeButton_Foreground_Disabled" Color="#FF1E395B" />
<SolidColorBrush x:Key="RadScheduler_BorderBrush" Color="#FFA0AFC3" />
<SolidColorBrush x:Key="RadScheduler_MonthView_HeadersBackgroundBrush" Color="Transparent" />
<Style x:Key="RadScheduler_MonthView_HeadersCrossingStyle" TargetType="Rectangle" />
<Style x:Key="RadScheduler_MonthView_WeekHeadersStyle" TargetType="ItemsControl" />
<Style x:Key="RadScheduler_MonthView_DayHeadersStyle" TargetType="ItemsControl" />
<SolidColorBrush x:Key="RadSchedulerStackPanelSeparatorRectangleFill" Color="Transparent" />
<Style x:Key="RadScheduler_HeaderBackground_Layer1" TargetType="Rectangle">
		<Setter Property="Fill">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFFDFEFF" Offset="0"/>
					<GradientStop Color="#FFDDE9F7" Offset="1"/>
					<GradientStop Color="#FFE6F0FA" Offset="0.5"/>
					<GradientStop Color="#FFDCE6F4" Offset="0.5"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
	</Style>
<Style x:Key="RadScheduler_HeaderBackground_Layer2" TargetType="Rectangle">
	</Style>
<SolidColorBrush x:Key="CurrentIntervalTextBlockForeground" Color="#FF000000" />
<Style x:Key="RadScheduler_CurrentInterval_TextBlockStyle" TargetType="TextBlock">
		
		
		
	</Style>
<Style x:Key="RadScheduler_NavigationButtonStyle_Backward" TargetType="Button">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid Width="16" Height="16" >
						<Ellipse
							x:Name="OuterBorder"
							Stroke="{StaticResource RadScheduler_ViewModeButton_OuterBorderBrush_Normal}"
							Fill="{StaticResource RadScheduler_ViewModeButton_Background_Normal}" />
						<Ellipse
							x:Name="InnerBorder"
							Margin="1"
							Stroke="{StaticResource RadScheduler_ViewModeButton_InnerBorderBrush_Normal}" />
						
						<Path
							x:Name="Arrow"
							Width="5" Height="9"
							Fill="#FF1E395B"
							Data="F1 M1,0 L0,1 1,2 Z"
							Stretch="Uniform" />
						
						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="OuterBorder" Property="Stroke">
								<Setter.Value>
									<SolidColorBrush Color="#FFC0CBDF" />
								</Setter.Value>
							</Setter>
							<Setter TargetName="InnerBorder" Property="Stroke">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#CCFAFCFD" Offset="0"/>
										<GradientStop Color="#CCE4EFFB" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Fill">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFDFEFF" Offset="0"/>
										<GradientStop Color="#FFDDE9F7" Offset="1"/>
										<GradientStop Color="#FFE6F0FA" Offset="0.5"/>
										<GradientStop Color="#FFDCE6F4" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="OuterBorder" Property="Stroke">
								<Setter.Value>
									<SolidColorBrush Color="#FFC0CBD9" />
								</Setter.Value>
							</Setter>
							<Setter TargetName="InnerBorder" Property="Stroke">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Fill">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="OuterBorder" Property="Stroke">
								<Setter.Value>
									<SolidColorBrush Color="#FFC0CBD9" />
								</Setter.Value>
							</Setter>
							<Setter TargetName="InnerBorder" Property="Stroke">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Fill">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
<Style x:Key="RadScheduler_NavigationButtonStyle_Foreward" TargetType="Button">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid Width="16" Height="16" >
						<Ellipse
							x:Name="OuterBorder"
							Stroke="{StaticResource RadScheduler_ViewModeButton_OuterBorderBrush_Normal}"
							Fill="{StaticResource RadScheduler_ViewModeButton_Background_Normal}" />
						<Ellipse
							x:Name="InnerBorder"
							Margin="1"
							Stroke="{StaticResource RadScheduler_ViewModeButton_InnerBorderBrush_Normal}" />

						<Path
							x:Name="Arrow"
							Width="5" Height="9"
							Fill="#FF1E395B"
							Data="F1 M0,0 L1,1 0,2 Z"
							Stretch="Uniform" />
						
						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="OuterBorder" Property="Stroke">
								<Setter.Value>
									<SolidColorBrush Color="#FFC0CBDF" />
								</Setter.Value>
							</Setter>
							<Setter TargetName="InnerBorder" Property="Stroke">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#CCFAFCFD" Offset="0"/>
										<GradientStop Color="#CCE4EFFB" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Fill">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFDFEFF" Offset="0"/>
										<GradientStop Color="#FFDDE9F7" Offset="1"/>
										<GradientStop Color="#FFE6F0FA" Offset="0.5"/>
										<GradientStop Color="#FFDCE6F4" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="OuterBorder" Property="Stroke">
								<Setter.Value>
									<SolidColorBrush Color="#FFC0CBD9" />
								</Setter.Value>
							</Setter>
							<Setter TargetName="InnerBorder" Property="Stroke">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Fill">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="OuterBorder" Property="Stroke">
								<Setter.Value>
									<SolidColorBrush Color="#FFC0CBD9" />
								</Setter.Value>
							</Setter>
							<Setter TargetName="InnerBorder" Property="Stroke">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter TargetName="OuterBorder" Property="Fill">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFC0CBD9"/>
										<GradientStop Color="#4CC0CBD9" Offset="0.5"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
<LinearGradientBrush x:Key="RadScheduler_ContentBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFE6EEF8" Offset="0"/>
		<GradientStop Color="#FFE6EFF9" Offset="1"/>
		<GradientStop Color="White" Offset="0.25"/>
		<GradientStop Color="White" Offset="0.75"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="RadSchedulerTransitionImageOpacityMask" EndPoint="0,0.5" StartPoint="1,0.5">
        <GradientStop Color="#FFFFFFFF" Offset="0"/>
        <GradientStop Color="#FFFFFFFF" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="RadSchedulerPresenterOpacityMask" EndPoint="0,0.5" StartPoint="1,0.5">
        <GradientStop Color="#FFFFFFFF" Offset="0"/>
        <GradientStop Color="#FFFFFFFF" Offset="1"/>
    </LinearGradientBrush>
<LinearGradientBrush x:Key="SchedulerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFE6EEF8" Offset="0"/>
		<GradientStop Color="#FFE6EFF9" Offset="1"/>
		<GradientStop Color="White" Offset="0.25"/>
		<GradientStop Color="White" Offset="0.75"/>
	</LinearGradientBrush>

	
	
	<!-- Brushes -->
	

	<!-- End of Brushes -->
	
	<!-- Visual State Styles (replace with chromes) -->
	<Style x:Key="RadScheduler_DayView_AllDayCellBackgroundStyle" TargetType="Border">
		<Setter Property="BorderThickness" Value="1 0" />
		<Setter Property="BorderBrush" Value="#7FADBDD1" />
		<Setter Property="Background" Value="#99FFFFFF" />
	</Style>
	<Style x:Key="RadScheduler_DayView_AllDayCellBackgroundStyle_MouseOver" TargetType="Rectangle">
		<Setter Property="Margin" Value="1 0" />
		<Setter Property="Fill" Value="#CCF5F9FF" />
	</Style>
	<Style x:Key="RadScheduler_DayView_AllDayCellBackgroundStyle_Selected" TargetType="Rectangle">
		<Setter Property="Margin" Value="1 0" />
		<Setter Property="Fill" Value="#7FD9E3F0" />
	</Style>
	<Style x:Key="RadScheduler_DayView_AllDayCellBackgroundStyle_CurrentDay" TargetType="Rectangle">
	</Style>

	<Style x:Key="RadScheduler_DayView_CellBackgroundStyle" TargetType="Border">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush"  Value="#7FADBDD1" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Margin" Value="-1 -1 0 0" />
	</Style>
	<Style x:Key="RadScheduler_DayView_CellBackgroundStyle_MouseOver" TargetType="Rectangle">
		<Setter Property="Fill" Value="#CCF5F9FF" />
		<Setter Property="Margin" Value="0 0 1 1" />
	</Style>
	<Style x:Key="RadScheduler_DayView_CellBackgroundStyle_Selected" TargetType="Rectangle">
		<Setter Property="Fill" Value="#7FD9E3F0" />
		<Setter Property="Margin" Value="0 0 1 1" />
	</Style>
	<!-- End of visual state styles -->
	
	<!-- Templates -->
	<ControlTemplate x:Key="RadScheduler_TableHeaderTemplate" TargetType="telerik:RadButton">
		<Border
			x:Name="Background"
			BorderThickness="1"
			BorderBrush="{StaticResource RadScheduler_Table_TopHeaderBorder}"
			Background="Transparent">
			
			<Grid Margin="1">
				<Border
					x:Name="Visual_MouseOver"
					Visibility="Collapsed"
					CornerRadius="3"
					BorderThickness="1"
					Background="{StaticResource RadScheduler_Input_Background_Highlight}"
					BorderBrush="{StaticResource RadScheduler_Input_OuterBrush_Highlight}">
					<Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource RadScheduler_Input_InnerBrush_Highlight}" />
				</Border>
				<Border
					x:Name="Visual_Pressed"
					Visibility="Collapsed"
					CornerRadius="3"
					BorderThickness="1"
					BorderBrush="{StaticResource RadScheduler_Input_OuterBrush_Highlight}"
					Background="{StaticResource RadScheduler_Input_Background_Active}" />

				<ContentPresenter
					x:Name="Content"
					Margin="2 2.4 2 2"
					HorizontalAlignment="Center" VerticalAlignment="Top"
					
					TextBlock.Foreground="{StaticResource RadScheduler_Table_TextForeground}"
					 >
					
				</ContentPresenter>
					
			</Grid>
			
		</Border>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter TargetName="Visual_MouseOver" Property="Visibility" Value="Visible" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="Visual_Pressed" Property="Visibility" Value="Visible" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<ControlTemplate x:Key="RadScheduler_TableHeaderTemplate_Vertical" TargetType="telerik:RadButton">
		<Border
			x:Name="Background"
			BorderThickness="1"
			BorderBrush="{StaticResource RadScheduler_Table_LeftHeaderBorder}"
			Background="Transparent">

			<Grid Margin="1">
				<Border
					x:Name="Visual_MouseOver"
					Visibility="Collapsed"
					CornerRadius="3"
					BorderThickness="1"
					Background="{StaticResource RadScheduler_Input_Background_Highlight_Vertical}"
					BorderBrush="{StaticResource RadScheduler_Input_OuterBrush_Highlight}">
					<Rectangle RadiusX="2" RadiusY="2" Stroke="{StaticResource RadScheduler_Input_InnerBrush_Highlight}" />
				</Border>
				<Border
					x:Name="Visual_Pressed"
					Visibility="Collapsed"
					CornerRadius="3"
					BorderThickness="1"
					BorderBrush="{StaticResource RadScheduler_Input_OuterBrush_Highlight}"
					Background="{StaticResource RadScheduler_Input_Background_Active_Vertical}" />

				<telerikPrimitives:LayoutTransformControl>
					<telerikPrimitives:LayoutTransformControl.LayoutTransform>
						<RotateTransform Angle="-90" />
					</telerikPrimitives:LayoutTransformControl.LayoutTransform>
					<ContentPresenter
						x:Name="Content"
						Margin="2"
						HorizontalAlignment="Center" VerticalAlignment="Center"
						
						TextBlock.Foreground="{StaticResource RadScheduler_Table_TextForeground}"
						 >
					</ContentPresenter>
				</telerikPrimitives:LayoutTransformControl>
			</Grid>
			
		</Border>
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter TargetName="Visual_MouseOver" Property="Visibility" Value="Visible" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="Visual_Pressed" Property="Visibility" Value="Visible" />
			</Trigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<!-- Day View -->
	<Style x:Key="RadScheduler_DayView_TopHeader" TargetType="Button">
		<Setter Property="Template" Value="{StaticResource RadScheduler_TableHeaderTemplate}" />
	</Style>
	
	<!-- Month View -->
	<Style x:Key="RadScheduler_MonthView_TopHeader" TargetType="Button">
		<Setter Property="Template" Value="{StaticResource RadScheduler_TableHeaderTemplate}" />
	</Style>
	<Style x:Key="RadScheduler_MonthView_LeftHeader" TargetType="Button">
		<Setter Property="Template" Value="{StaticResource RadScheduler_TableHeaderTemplate_Vertical}" />
	</Style>
	
	<!-- Timeline View -->
	<Style x:Key="RadScheduler_TimelineView_TopHeader" TargetType="Button">
		<Setter Property="Template" Value="{StaticResource RadScheduler_TableHeaderTemplate}" />
	</Style>
	
	<!-- TimeRuler Mark -->
	<Style x:Key="RadScheduler_TimeRuler_Mark_Primary" TargetType="Border">
		<Setter Property="BorderThickness" Value="0 1 0 0" />
		<Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_LeftHeaderBorder}" />
	</Style>
	<Style x:Key="RadScheduler_TimeRuler_Mark_Secondary" TargetType="Border">
		<Setter Property="BorderThickness" Value="0 1 0 0" />
		<Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_LeftHeaderBorder}" />
	</Style>
	
	<Style x:Key="RadScheduler_TimeRuler_TextBlockStyle" TargetType="TextBlock">
		<Setter Property="TextAlignment" Value="Right" />
		<Setter Property="FontSize" Value="15" />
		<Setter Property="Foreground" Value="{StaticResource RadScheduler_Table_TextForeground}" />
		<Setter Property="Margin" Value="3 0" />
	</Style>

	<!-- Appointments -->
	<Style x:Key="RadScheduler_Appointment_DeleteButton" TargetType="telerik:RadButton">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid>
						<Border
							x:Name="Visual"
							CornerRadius="2"
							BorderThickness="1"
							BorderBrush="#FFB8D6FB"
							Background="#FFCEE3FC">
							<Rectangle RadiusX="1" RadiusY="1">
								<Rectangle.Stroke>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="White" Offset="0"/>
										<GradientStop Color="#FFFAFCFD" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Stroke>
							</Rectangle>
						</Border>
						<Border
							x:Name="Visual_MouseOver"
							Visibility="Collapsed"
							CornerRadius="2"
							BorderThickness="1"
							Background="{StaticResource RadScheduler_Input_Background_Highlight}"
							BorderBrush="{StaticResource RadScheduler_Input_OuterBrush_Highlight}">
							<Rectangle RadiusX="1" RadiusY="1" Stroke="{StaticResource RadScheduler_Input_InnerBrush_Highlight}" />
						</Border>
						<Border
							x:Name="Visual_Pressed"
							Visibility="Collapsed"
							CornerRadius="2"
							BorderBrush="{StaticResource RadScheduler_Input_OuterBrush_Highlight}"
							Background="{StaticResource RadScheduler_Input_Background_Active}" />

						<ContentPresenter
							x:Name="Content"
							HorizontalAlignment="Center" VerticalAlignment="Center"
							/>

						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="Visual_MouseOver" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="Visual_Pressed" Property="Visibility" Value="Visible" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="Content" Property="Opacity" Value="0.5" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Width" Value="13" />
		<Setter Property="Height" Value="13" />
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
					<Path
						Fill="{StaticResource RadScheduler_Apointment_CloseButtonFill}"
						HorizontalAlignment="Center" VerticalAlignment="Center"
						Margin="1.5" Data="M4,4 L5,4 5,5 4,5 z M0,4 L1,4 1,5 0,5 z M3,3 L4,3 4,4 3,4 z M1,3 L2,3 2,4 1,4 z M2,2 L3,2 3,3 2,3 z M4,0 L5,0 5,1 4,1 4,2 3,2 3,0.99999994 4,0.99999994 z M0,0 L1,0 1,0.99999994 2,0.99999994 2,2 1,2 1,1 0,1 z"/>
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="RadScheduler_View_BorderStyle" TargetType="Border">
		<Setter Property="Margin" Value="2" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_BorderBrush}" />		
	</Style>
	<Style x:Key="RadScheduler_View_BorderStyle_Vertical" TargetType="Border">
		<Setter Property="Margin" Value="-1 -1 -1 2" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_BorderBrush}" />
	</Style>
	<Style x:Key="RadScheduler_View_BorderStyle_TopPart" TargetType="Border">
		<Setter Property="Margin" Value="0 2 2 0" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_BorderBrush}" />
	</Style>
	<Style x:Key="RadScheduler_View_BorderStyle_BottomPart" TargetType="Border">
		<Setter Property="Margin" Value="0 0 2 2" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_BorderBrush}" />
		<Setter Property="Background" Value="Transparent" />
	</Style>
	
	<Style x:Key="RadScheduler_DayView_HeaderText" TargetType="TextBlock">
		<Setter Property="Foreground" Value="{StaticResource RadScheduler_Table_TextForeground}" />
	</Style>

	
    
    <telerikScheduler:EnumToBooleanConverter x:Key="EnumToBoolConverter" />
    <telerikScheduler:AppointmentToTitleConverter x:Key="AppointmentToTitleConverter" />
    <telerikScheduler:ImportanceToBooleanConverter x:Key="ImportanceToBooleanConverter" />
    <telerikScheduler:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
	<telerikScheduler:InvertedVisibilityConverter x:Key="InvertedVisibilityConverter"
/>
	<ControlTemplate x:Key="TimePickerTemplate" TargetType="telerikScheduler:SchedulerTimePicker">
		<telerikInput:RadComboBox x:Name="PART_ComboBox" IsEditable="True"
            Width="{TemplateBinding Width}"
            Height="{TemplateBinding Height}" IsEnabled="{TemplateBinding IsEnabled}" telerik:StyleManager.Theme="{StaticResource Theme}">
		</telerikInput:RadComboBox>
	</ControlTemplate>

	<ControlTemplate x:Key="DateTimePickerTemplate" TargetType="telerikScheduler:DateTimePicker">
		<StackPanel Orientation="Horizontal">
			<telerikInput:RadDatePicker x:Name="PART_DatePicker" Width="100"  Margin="0, 0, 5, 0" 
					Visibility="{TemplateBinding DatePickerVisibility}" IsEnabled="{TemplateBinding IsEnabled}"
					telerik:StyleManager.Theme="{StaticResource Theme}"
					
					 SnapsToDevicePixels="True"
					 />

				<telerikScheduler:SchedulerTimePicker x:Name="PART_TimePicker" Width="100" 
					Height="22"
					TimeSpanItems="{TemplateBinding TimeItems}"
					Visibility="{TemplateBinding TimePickerVisibility}" IsEnabled="{TemplateBinding IsEnabled}" 
					telerik:StyleManager.Theme="{StaticResource Theme}"
					
					 SnapsToDevicePixels="True"
					 />
		</StackPanel>
	</ControlTemplate>

    <telerikScheduler:InvertedNullToVisibilityConverter x:Key="InvertedNullToVisibilityConverter" />
    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>

	<LinearGradientBrush x:Key="FreeMarkerBrush"  EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF00C800" Offset="0"/>
        <GradientStop Color="#FF1E841E" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="9,9" x:Key="TentativeMarkerBrush" StartPoint="2,2" SpreadMethod="Repeat" MappingMode="Absolute">
        <GradientStop Color="#FF05529D" Offset="0"/>
        <GradientStop Color="#FF05529D" Offset="1"/>
        <GradientStop Color="White" Offset="0.25"/>
        <GradientStop Color="#FF05529D" Offset="0.5"/>
        <GradientStop Color="White" Offset="0.741"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="OutOfOfficeMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF1A202" Offset="1"/>
        <GradientStop Color="#FFFFF502"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="BusyMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFF0606" />
        <GradientStop Color="#FFBF0303" Offset="1"/>
    </LinearGradientBrush>

    <telerikScheduler:TimeMarkerCollection x:Key="timeMarkerList">

        <telerikScheduler:TimeMarker TimeMarkerName="Free"  TimeMarkerBrush="{StaticResource FreeMarkerBrush}"/>
        <telerikScheduler:TimeMarker TimeMarkerName="Tentative" TimeMarkerBrush="{StaticResource TentativeMarkerBrush}"/>
        <telerikScheduler:TimeMarker TimeMarkerName="Busy"  TimeMarkerBrush="{StaticResource BusyMarkerBrush}"/>
        <telerikScheduler:TimeMarker TimeMarkerName="Out Of Office"  TimeMarkerBrush="{StaticResource OutOfOfficeMarkerBrush}"/>
    </telerikScheduler:TimeMarkerCollection>
    <Style x:Key="FormElementStyle" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="10, 10, 0, 2" />
    </Style>

    <Style x:Key="FormNumberElementStyle" TargetType="TextBox">
        <Setter Property="MinWidth" Value="30" />
        <Setter Property="MaxLength" Value="3" />
        <Setter Property="Margin" Value="10, 10, 0, 2" />
    </Style>
    <Style x:Key="FormElementTextBlockStyle" TargetType="TextBlock">
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Margin" Value="15, 15, 0, 2" />
    </Style>
    <Style x:Key="ContentGroupStyle" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="5,0" />
        <Setter Property="Control.Padding" Value="5,3" />
        <Setter Property="Border.Padding" Value="5,3" />
    </Style>


    
    <Style x:Key="DefaultButtonStyle"  TargetType="Button">
        <Setter Property="MinWidth" Value="5" />
        <Setter Property="MinHeight" Value="21" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Cursor" Value="Arrow" />
        <Setter Property="FontSize" Value="11" />
        <Setter Property="Padding" Value="20 0 20 0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <Border x:Name="outer"
                                    Background="{StaticResource DefaultButtonStyleOuterBackground}"
                                    CornerRadius="3,3,3,3"
                                    BorderThickness="1"
                                    BorderBrush="{StaticResource DefaultButtonStyleOuterBorderBrush}">
                            <Border x:Name="inner"
                                        CornerRadius="2,2,2,2"
                                        BorderThickness="1"
                                        BorderBrush="{StaticResource DefaultButtonStyleInnerBorderBrush}">
                                <Border x:Name="innerMost"
                                            BorderBrush="{StaticResource DefaultButtonStyleInnerMostBorderBrush}"
                                            CornerRadius="1,1,1,1"
                                            Background="{StaticResource DefaultButtonStyleBackground}">
                                    <ContentPresenter Content="{TemplateBinding Content}" 
                                                      ContentTemplate="{TemplateBinding ContentTemplate}"
                                                      Margin="{TemplateBinding Padding}" />
                                </Border>
                            </Border>
                        </Border>
                        <Rectangle Stroke="{StaticResource DefaultButtonStyleFocusVisualRectangleStroke}"
                                       StrokeThickness="1"
                                       Margin="0"
                                       RadiusX="3"
                                       RadiusY="3"
                                       Fill="{StaticResource DefaultButtonStyleFocusVisualRectangleFill}"
                                       x:Name="FocusVisual"
                                       Visibility="Collapsed" />
                        <Rectangle x:Name="DisabledVisual"
                                       Visibility="Collapsed"
                                       RadiusX="3"
                                       RadiusY="3"
                                       Fill="{StaticResource DefaultButtonStyleDisabledVisualRectangleFill}"
                                       IsHitTestVisible="false" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Background" TargetName="innerMost" Value="{StaticResource DefaultButtonStyleIsMouseOverBackground}" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="BorderBrush" TargetName="inner" Value="{StaticResource DefaultButtonStyleIsPressedInnerBorderBrush}" />
                            <Setter Property="Background" TargetName="innerMost" Value="{StaticResource DefaultButtonStyleIsPressedInnerMostBackground}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    

    <DataTemplate x:Key="IconDataReccTemplate">
        <Image Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/recc.png" Margin="3" Width="16" Height="16"/>
    </DataTemplate>
    <ControlTemplate x:Key="RecurrenceTemplate" TargetType="telerikScheduler:RecurrenceDialogWindow">
        
        <ControlTemplate.Resources>
            <Style TargetType="RadioButton" BasedOn="{StaticResource FormElementStyle}">
                <Style.Triggers>
                    <Trigger Property="IsChecked" Value="False">
                        <Setter Property="IsTabStop" Value="False" />
                    </Trigger>
                </Style.Triggers>
            </Style>
            <Style TargetType="{x:Type Label}" BasedOn="{StaticResource FormElementStyle}">
                <Setter Property="HorizontalAlignment" Value="Right" />
            </Style>
        </ControlTemplate.Resources>

        <Grid
            MinWidth="550"
            HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
            Background="{TemplateBinding Background}" 
            DataContext="{Binding Path=ViewModel, RelativeSource={RelativeSource AncestorType={x:Type telerikScheduler:RecurrenceDialogWindow}}}">

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <GroupBox
                x:Name="whenGroup"
                Grid.Row="0"
                telerik:LocalizationManager.ResourceKey="AppointmentTime"
                Style="{StaticResource ContentGroupStyle}">

                <GroupBox.Content>
                    

                    
                            <Grid >
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition Height="4"  />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" MinWidth="96" />
                                    <ColumnDefinition Width="Auto" MinWidth="130" />
                                    <ColumnDefinition Width="Auto" MinWidth="80" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                
                                
                                <Label
                                    Grid.Row="0" Grid.Column="0"
                                    Target="{Binding ElementName=StartTimePicker}"
                                    HorizontalAlignment="Right" VerticalAlignment="Top"
                                    Margin="0 12 2 0"
                                    Padding="0"
                                    telerik:LocalizationManager.ResourceKey="StartColon" />
                                <telerikScheduler:DateTimePicker
                                    x:Name="StartTimePicker"
                                    Grid.Row="0" Grid.Column="1"
                                    Margin="8 8 0 0"
                                    VerticalAlignment="Top"
                                    HorizontalAlignment="Left"
                                    SelectedDateTime="{Binding Start, Mode=TwoWay}" 
                                    DatePickerVisibility="Collapsed" 
                                    telerikScheduler:StartEndDatePicker.EndPicker="{Binding ElementName=EndTimePicker}" 
                                    telerik:StyleManager.Theme="{StaticResource Theme}" />

                                <Label
                                    Grid.Row="1" Grid.Column="0"
                                    Target="{Binding ElementName=EndTimePicker}"
                                    VerticalAlignment="Top"
                                    HorizontalAlignment="Right"
                                    Margin="0 12 2 0"
                                    Padding="0"
                                    telerik:LocalizationManager.ResourceKey="EndColon" />
                                <telerikScheduler:DateTimePicker
                                    x:Name="EndTimePicker"
                                    Grid.Row="1" Grid.Column="1"
                                    Margin="8 8 0 0"
                                    VerticalAlignment="Top"
                                    HorizontalAlignment="Left"
                                    SelectedDateTime="{Binding End, Mode=TwoWay}"
                                    DatePickerVisibility="Collapsed"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" />

                                <Label
                                    Grid.Row="0" Grid.Column="2" Grid.RowSpan="2"
                                    HorizontalAlignment="Right" VerticalAlignment="Center"
                                    Margin="0 12 2 0"
                                    Padding="0 0 0 4"
                                    Target="{Binding ElementName=DurationPicker}"
                                    telerik:LocalizationManager.ResourceKey="DurationColon" />
                                <telerikScheduler:DurationPicker
                                    x:Name="DurationPicker"
                                    Width="90"
                                    Grid.Row="0" Grid.Column="3" Grid.RowSpan="2"
                                    Margin="8 8 0 0"
                                    HorizontalAlignment="Left" VerticalAlignment="Center"
                                    SelectedDuration="{Binding Path=Duration, Mode=TwoWay}"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" />

                                
                            </Grid>
                            
                        
                </GroupBox.Content>
            </GroupBox>
            <GroupBox x:Name="Repeats" telerik:LocalizationManager.ResourceKey="RecurrencePattern"
                      Grid.Row="1" Style="{StaticResource ContentGroupStyle}">
                <GroupBox.Resources>
                    <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource FormElementStyle}" />
                </GroupBox.Resources>
                <GroupBox.Content>
                    
                    
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition Height="4" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" MinWidth="100" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>

                            <Border BorderBrush="#FFD5DFE5" BorderThickness="0 0 1 0" Margin="0 7 0 0" />

                            <StackPanel>
                                <RadioButton
                                    x:Name="DailyGroupRB"
                                    telerik:StyleManager.Theme="{StaticResource Theme}"
                                    telerik:LocalizationManager.ResourceKey="Daily" 
                                    IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily;WeekDays}"
                                    Margin="10 7 0 2">

                                    
                                </RadioButton>

                                <RadioButton
                                    x:Name="WeeklyGroupRB"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                                    telerik:LocalizationManager.ResourceKey="Weekly"
                                    IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Weekly}"
                                    Margin="10 7 0 2">

                                    
                                </RadioButton>

                                <RadioButton
                                    x:Name="MonthlyGroupRB"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                                    telerik:LocalizationManager.ResourceKey="Monthly"
                                    IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly;MonthlyNth}"
                                    Margin="10, 7, 0, 2">

                                    
                                </RadioButton>

                                <RadioButton
                                    x:Name="YearlyGroupRB"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                                    telerik:LocalizationManager.ResourceKey="Yearly"
                                    IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly;YearlyNth}"
                                    Margin="10, 7, 0, 2">

                                    
                                </RadioButton>
                            </StackPanel>

                            <Border Name="DailyDetails" Grid.Column="1" Visibility="Collapsed">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="50*" />
                                        <RowDefinition Height="50*" />
                                    </Grid.RowDefinitions>
                                    <StackPanel
                                        Grid.Row="0"
                                        Orientation="Horizontal"
                                        VerticalAlignment="Center">

                                        <RadioButton
                                            x:Name="DailyRB"
                                            GroupName="DailyGroup"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" 
                                            VerticalAlignment="Center"
                                            telerik:LocalizationManager.ResourceKey="Every"
                                            IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily}"
                                             >

                                            
                                        </RadioButton>

                                        <telerikInput:RadNumericUpDown
                                            Name="DailyDetailsUpDown"
                                            Value="{Binding Interval, Mode=TwoWay}"
                                            Maximum="999"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            MinWidth="50"
                                            Height="22"
                                            HorizontalAlignment="Left"
                                            Margin="5, 10, 0, 2"
                                            IsInteger="True"
											
											
											SnapsToDevicePixels="True"
											 />

											<TextBlock telerik:LocalizationManager.ResourceKey="Days" Margin="5, 10, 0, 2" VerticalAlignment="Center"/>
                                    </StackPanel>
                                    <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center">
                                        <RadioButton
                                            x:Name="WorkdaysRB"
                                            Grid.Row="1"
                                            GroupName="DailyGroup"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            telerik:LocalizationManager.ResourceKey="EveryWeekday"
                                            IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=WeekDays}"
                                             >

                                            
                                        </RadioButton>
                                    </StackPanel>
                                </Grid>
                            </Border>
                            <Border Name="WeeklyDetails" Grid.Column="1" Visibility="Collapsed">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <StackPanel
                                        Grid.Row="0"
                                        Orientation="Horizontal"
                                        VerticalAlignment="Center">
                                        
                                        
                                        <Label
                                            Margin="10, 0, 0, 0"
                                            Padding="0 4 0 0"
                                            Target="{Binding ElementName=EveryWeekUpDown}" 
                                            telerik:LocalizationManager.ResourceKey="RecurEvery" />
                                        
                                        <telerikInput:RadNumericUpDown
                                            x:Name="EveryWeekUpDown"
                                            Margin="5, 0, 0, 2"
                                           Maximum="99"
                                             HorizontalAlignment="Left"
                                            Value="{Binding Interval, Mode=TwoWay}"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            MinWidth="50" Height="22"

                                            IsInteger="True"
											
											
											SnapsToDevicePixels="True"
											 />

											<TextBlock
                                            Margin="10 0 0 0"
                                            Padding="0 4 0 0"
                                            telerik:LocalizationManager.ResourceKey="WeeksOn" />
                                    </StackPanel>
                                    <ItemsControl Grid.Row="1" ItemsSource="{Binding WeekDays}" IsTabStop="False">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                
                                                <UniformGrid Rows="2" />
                                                
                                                
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                        <ItemsControl.ItemTemplate>
                                            <DataTemplate>
                                                <CheckBox
                                                    Content="{Binding  Name}"
                                                    IsChecked="{Binding  IsSelected, Mode=TwoWay}"
                                                    telerik:StyleManager.Theme="{StaticResource Theme}"
                                                    Margin="10 8 0 2" />
                                            </DataTemplate>
                                        </ItemsControl.ItemTemplate>
                                    </ItemsControl>
                                </Grid>
                            </Border>
                            <Border Name="MonthlyDetails" Grid.Column="1" Visibility="Collapsed">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="50*" />
                                        <RowDefinition Height="50*" />
                                    </Grid.RowDefinitions>
                                    <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
                                        <RadioButton
                                            x:Name="MonthlyRB"
                                            GroupName="MonthlyButtons"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" 
                                            VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Day"
                                            IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly}"
                                             >

                                            
                                        </RadioButton>

                                        <telerikInput:RadNumericUpDown Name="MonthlyDetailsUpDown1" IsInteger="True"
                                            Maximum="31" Value="{Binding DayOfMonth, Mode=TwoWay}"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22" 
                                             HorizontalAlignment="Left" Margin="5, 10, 0, 2"
											
											
											SnapsToDevicePixels="True"
											 />
											<TextBlock Margin="5, 10, 0, 2" VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="OfEvery"/>
                                            <telerikInput:RadNumericUpDown Name="MonthlyDetailsUpDown2" IsInteger="True"
                                                Maximum="99"  Value="{Binding Interval, Mode=TwoWay}"  
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22" 
                                             HorizontalAlignment="Left" Margin="5, 10, 0, 2"
												
												
												SnapsToDevicePixels="True"
												 />
												<TextBlock Margin="5,10,0,2" Style="{StaticResource FormElementStyle}" VerticalAlignment="Center"
                                            telerik:LocalizationManager.ResourceKey="Months" />
                                    </StackPanel>
                                    <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center">
                                        <RadioButton
                                            x:Name="MonthlyNthRB"
                                            GroupName="MonthlyButtons"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            VerticalAlignment="Center"
                                            telerik:LocalizationManager.ResourceKey="The"
                                            IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MonthlyNth}"
                                             >

                                            
                                        </RadioButton>
                                        <telerikInput:RadComboBox ItemsSource="{Binding WeekOfMonths}"
                                      DisplayMemberPath="Name" SelectedValuePath="Value" Height="22"
                                      SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}" Margin="5, 10, 0, 2" telerik:StyleManager.Theme="{StaticResource Theme}" Width="80"/>
                                        <telerikInput:RadComboBox ItemsSource="{Binding NthRecurrenceDays}"
                                      DisplayMemberPath="Name" SelectedValuePath="Value" Height="22"
												SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}" 
                                      telerik:StyleManager.Theme="{StaticResource Theme}"  Margin="5, 10, 0, 2" Width="100"/>
                                        <TextBlock Margin="5, 10, 0, 2" VerticalAlignment="Center"
                                           telerik:LocalizationManager.ResourceKey="OfEvery" />
                                        <telerikInput:RadNumericUpDown Name="MonthlyDetailsUpDown3" IsInteger="True"
                                            Maximum="99" Value="{Binding Interval, Mode=TwoWay}"  
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22"
                                             HorizontalAlignment="Left" Margin="5, 10, 0, 2"
											
											
											SnapsToDevicePixels="True"
											 />
                                            <TextBlock Margin="5, 10, 0, 2" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months"/>
                                    </StackPanel>
                                </Grid>
                            </Border>
                            <Border Name="YearlyDetails" Grid.Column="1" Visibility="Collapsed">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="50*" />
                                        <RowDefinition Height="50*" />
                                    </Grid.RowDefinitions>
                                    <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
                                        <RadioButton
                                            x:Name="YearlyRB"
                                            GroupName="YearlyGroup"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" 
                                            VerticalAlignment="Center"   
                                            telerik:LocalizationManager.ResourceKey="Every"
                                            IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly}"
                                             >

                                            
                                        </RadioButton>
                                        <telerikInput:RadComboBox
                                            x:Name="YearlyDetails12" ItemsSource="{Binding NamesOfMonths}"
                                            DisplayMemberPath="Value" SelectedValuePath="Key" Height="22"
                                            SelectedValue="{Binding MonthOfYear, Mode=TwoWay}"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" 
                                            Margin="5, 10, 0, 2" Width="90"/>
                                        <telerikInput:RadNumericUpDown
                                            x:Name="YearlyDetailsUpDown3"
                                            Minimum="1" Maximum="31"
                                            Value="{Binding DayOfMonth, Mode=TwoWay}"
                                            IsInteger="True"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22"
                                         HorizontalAlignment="Left" Margin="5, 10, 0, 2"
											
											
											SnapsToDevicePixels="True"
											 />
									</StackPanel>
                                    <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" >
                                        <RadioButton Name="YearlyNthRB" GroupName="YearlyGroup" telerik:StyleManager.Theme="{StaticResource Theme}" 
                                        VerticalAlignment="Center"  
									    telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=YearlyNth}"
                                         >
                                            
                                        </RadioButton>
                                        <telerikInput:RadComboBox  Name="YearlyDetails21" ItemsSource="{Binding WeekOfMonths}"
                                          DisplayMemberPath="Name" SelectedValuePath="Value"
                                          SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}" Margin="5, 10, 0, 2" telerik:StyleManager.Theme="{StaticResource Theme}" Width="80"/>
                                        <telerikInput:RadComboBox  Name="YearlyDetails22" ItemsSource="{Binding NthRecurrenceDays}"
                                          DisplayMemberPath="Name" SelectedValuePath="Value"
                                          SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}" Margin="5, 10, 0, 2" telerik:StyleManager.Theme="{StaticResource Theme}" Width="100"/>
                                        <TextBlock Style="{StaticResource FormElementStyle}"
                                               telerik:LocalizationManager.ResourceKey="Of" Margin="5,15,0,2" />
                                        <telerikInput:RadComboBox Name="YearlyDetails23" ItemsSource="{Binding NamesOfMonths}"
                                          DisplayMemberPath="Value" SelectedValuePath="Key"
                                          SelectedValue="{Binding MonthOfYear, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}"  Margin="5, 10, 0, 2" Width="90"/>
                                    </StackPanel>
                                </Grid>
                            </Border>
                        </Grid>
                        
                    
                </GroupBox.Content>
            </GroupBox>
            <GroupBox x:Name="rangeGroup" Grid.Row="2" Style="{StaticResource ContentGroupStyle}"
                      telerik:LocalizationManager.ResourceKey="RangeOfRecurrence">
                <GroupBox.Content>
                    
                    
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" MinWidth="207" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="32" />
                                <RowDefinition Height="32" />
                                <RowDefinition Height="32" />
                                <RowDefinition Height="4" />
                            </Grid.RowDefinitions>
                            <StackPanel
                                Grid.Row="1" Grid.Column="0"
                                Orientation="Horizontal" VerticalAlignment="Top">

                                

                                
                                <Label
                                    Margin="10 11 2 0"
                                    Padding="0"
                                    VerticalAlignment="Top"
                                    Style="{StaticResource FormElementStyle}"
                                    Target="{Binding ElementName=StartDate}"
                                    telerik:LocalizationManager.ResourceKey="StartColon" />
                                

                                <telerikScheduler:DateTimePicker
                                    x:Name="StartDate"
                                    Margin="5, 7, 0, 2"
									Height="22"
                                    Style="{StaticResource FormElementStyle}"
                                    SelectedDateTime="{Binding Start, Mode=TwoWay}"
                                    TimePickerVisibility="Collapsed"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" />

                            </StackPanel>
                            <StackPanel
                                Grid.Row="0" Grid.Column="1"
                                Orientation="Horizontal"
                                VerticalAlignment="Top">

                                <RadioButton Name="noEndDate" telerik:StyleManager.Theme="{StaticResource Theme}"
                                    
                                    telerik:LocalizationManager.ResourceKey="NoEndDate"
                                    IsChecked="{Binding RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=NoEndDate, Mode=TwoWay}" />
                            </StackPanel>

                            <StackPanel
                                Grid.Row="1" Grid.Column="1"
                                Orientation="Horizontal"
                                VerticalAlignment="Top">

                                <RadioButton
                                    x:Name="endAfter"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                                    telerik:LocalizationManager.ResourceKey="EndAfter"
                                    IsChecked="{Binding Path=RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MaxOccurrences, Mode=TwoWay}"
                                     />

                                    <telerikInput:RadNumericUpDown
                                    x:Name="OccurencesUpDown"
                                    Maximum="9999"
                                    Value="{Binding MaxOccurrences, Mode=TwoWay}" 
                                    telerik:StyleManager.Theme="{StaticResource Theme}"
                                    MinWidth="50" Height="22"
                                     HorizontalAlignment="Left"
                                    Margin="5, 7, 0, 2" 
                                    IsInteger="True"
									
									
									SnapsToDevicePixels="True"
									 />
										<TextBlock
                                        
                                        Padding="0 2 0 0" Style="{StaticResource FormElementStyle}" telerik:LocalizationManager.ResourceKey="Occurrences" />
                            </StackPanel>

                            <StackPanel
                                Grid.Row="2" Grid.Column="1"
                                Orientation="Horizontal"
                                VerticalAlignment="Center">

                                <RadioButton
                                    x:Name="endBy"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                                    telerik:LocalizationManager.ResourceKey="EndBy"
                                    IsChecked="{Binding Path=RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=RepeatUntil, Mode=TwoWay}"
                                     />

                                    <telerikScheduler:DateTimePicker
                                    Margin="5, 7, 0, 2"
									Height="22"
                                    SelectedDateTime="{Binding RecursUntil, Mode=TwoWay}"
                                    TimePickerVisibility="Collapsed"
                                    telerik:StyleManager.Theme="{StaticResource Theme}"/>

                            </StackPanel>
                        </Grid>
                        
                    
                </GroupBox.Content>
            </GroupBox>
            

            <StackPanel
                Grid.Row="3"
                Orientation="Horizontal"
                Margin="10"
                HorizontalAlignment="Center">

                <telerik:RadButton
                    x:Name="OKButton"
                    Margin="5" Height="22"
                    Padding="10 0"
                    MinWidth="80"
                    telerikNavigation:RadWindow.ResponseButton="Accept"
                    telerik:LocalizationManager.ResourceKey="Ok"
                    HorizontalContentAlignment="Center"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    Command="telerikScheduler:RadSchedulerCommands.SaveRecurrenceRule"/>

                <telerik:RadButton
                    x:Name="CancelButton"
                    Margin="5" Height="22"
                    Padding="10 0"
                    MinWidth="80"
                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                    HorizontalContentAlignment="Center"
                    telerik:LocalizationManager.ResourceKey="Cancel"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    Command="telerik:WindowCommands.Close"/>

                <telerik:RadButton
                    x:Name="RemoveRecurrenceBtn"
                    Margin="5" Height="22"
                    Padding="10 0"
                    MinWidth="80"
                    HorizontalContentAlignment="Center"
                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                    telerik:LocalizationManager.ResourceKey="RemoveRecurrence"
                    Command="telerikScheduler:RadSchedulerCommands.DeleteRecurrenceRule"/>

            </StackPanel>

            
            
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger SourceName="DailyGroupRB" Property="IsChecked" Value="true">
                <Setter TargetName="DailyDetails" Property="Visibility" Value="Visible" />
            </Trigger>
            <Trigger SourceName="WeeklyGroupRB" Property="IsChecked" Value="true">
                <Setter TargetName="WeeklyDetails" Property="Visibility" Value="Visible" />
            </Trigger>
            <Trigger SourceName="MonthlyGroupRB" Property="IsChecked" Value="true">
                <Setter TargetName="MonthlyDetails" Property="Visibility" Value="Visible" />
            </Trigger>
            <Trigger SourceName="YearlyGroupRB" Property="IsChecked" Value="true">
                <Setter TargetName="YearlyDetails" Property="Visibility" Value="Visible" />
            </Trigger>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <Style TargetType="telerikScheduler:RecurrenceDialogWindow" x:Key="RecurrenceDialogWindowStyle"
         >
        <Setter Property="Template" Value="{StaticResource RecurrenceTemplate}" />
        <Setter Property="IconTemplate" Value="{StaticResource IconDataReccTemplate}"  />
        <Setter Property="Background" Value="{StaticResource DialogWindowBackground}" />
        <Setter Property="Title"  Value="AppointmentRecurrence" />
        <Setter Property="telerik:LocalizationManager.ResourceKey"  Value="AppointmentRecurrence" />
    </Style>

    <DataTemplate x:Key="IconDataEditTemplate">
        <Image Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/cal.png" Margin="3,3,0,0" Width="16" Height="16" />
    </DataTemplate>

    <ControlTemplate x:Key="RecurrenceChoiceTemplate" TargetType="telerikScheduler:RecurrenceChoiceDialogWindow">
        <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"
			
			
			DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type telerikScheduler:RecurrenceChoiceDialogWindow}}}"
             >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="350" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Image x:Name="TriangleIcon"  Margin="10,0,0,0" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/att_big.png" />
            <Image x:Name="CircleIcon" Margin="10,0,0,0" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/del_big.png" Visibility="Collapsed"/>
            <StackPanel Grid.Column="1" Margin="5">
                <TextBlock Name="WindowMessage" TextWrapping="Wrap" Style="{StaticResource FormElementStyle}">
                
                    <TextBlock.Text>
                       <Binding Path="Occurrence.Appointment.Subject" Converter="{x:Static telerikScheduler:StringFormatConverter.Instance}" ConverterParameter="OpenRecurringItemQuestion" />
                    </TextBlock.Text> 
                
                </TextBlock>
                <RadioButton GroupName="EditAppointment" Name="OccurrenceRB" telerik:StyleManager.Theme="{StaticResource Theme}" Margin="80, 10, 0, 2" 
                    telerik:LocalizationManager.ResourceKey="OpenOccurrence"
                    IsChecked="{Binding SelectedMode, Mode=TwoWay, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Occurrence}"
                     />
                    <RadioButton GroupName="EditAppointment" Name="SeriesRB" telerik:LocalizationManager.ResourceKey="OpenSeries" telerik:StyleManager.Theme="{StaticResource Theme}" 
                    Margin="80, 10, 0, 2"
                    IsChecked="{Binding SelectedMode, Mode=TwoWay, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Series}"
                         />
            </StackPanel>
            <StackPanel
                Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                Margin="10"
                HorizontalAlignment="Center"
                Orientation="Horizontal">

                <telerik:RadButton
                    Margin="5" Height="22"
                    MinWidth="80"
                    telerik:LocalizationManager.ResourceKey="Ok"
                    HorizontalContentAlignment="Center"
                    telerikNavigation:RadWindow.ResponseButton="Accept"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    Command="telerik:WindowCommands.Confirm"/>
                <telerik:RadButton
                    Margin="5" Height="22"
                    Padding="10 0"
                    MinWidth="80"
                    HorizontalContentAlignment="Center"
                    telerik:LocalizationManager.ResourceKey="Cancel"
                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                    telerik:StyleManager.Theme="{StaticResource Theme}" 
                    Command="telerik:WindowCommands.Close"/>
            </StackPanel>
        </Grid>
        
        <ControlTemplate.Triggers>
            <Trigger Property="IsDeleting" Value="true">
                <Setter TargetName="OccurrenceRB" Property="telerik:LocalizationManager.ResourceKey" 
                        Value="DeleteOccurrence"  />
                <Setter TargetName="CircleIcon" Property="Visibility" 
                        Value="Visible"  />
                <Setter TargetName="TriangleIcon" Property="Visibility" 
                        Value="Collapsed"  />
                <Setter TargetName="SeriesRB" Property="telerik:LocalizationManager.ResourceKey" 
                        Value="DeleteSeries"  />
                <Setter TargetName="WindowMessage" Property="Text" >
                    <Setter.Value>
                        <Binding Path="Occurrence.Appointment.Subject" Converter="{x:Static telerikScheduler:StringFormatConverter.Instance}" ConverterParameter="DeleteRecurringItemQuestion"/>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <Style TargetType="telerikScheduler:RecurrenceChoiceDialogWindow" x:Key="RecurrenceChoiceDialogWindowStyle"
         >
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceTemplate}" />
        <Setter Property="Title" Value="OpenRecurringItem"  />
        <Setter Property="telerik:LocalizationManager.ResourceKey" Value="OpenRecurringItem"  />
        <Setter Property="Background" Value="{StaticResource DialogWindowBackground}" />
        
        <Style.Triggers>
            <Trigger Property="IsDeleting" Value="true">
                <Setter Property="Title" Value="DeleteRecurringItem"  />
            </Trigger>
        </Style.Triggers>
        
    </Style>

    <ControlTemplate
        x:Key="AppointmentDeleteTemplate"
        TargetType="telerikScheduler:AppointmentDeleteDialogWindow">

        <Grid
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch"
            Background="{TemplateBinding Background}">

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <StackPanel Orientation="Horizontal">
                <Image
                    x:Name="CircleIcon"
                    Margin="15"
                    Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/del_big.png" />
                <TextBlock
                    x:Name="WindowMessage"
                    TextWrapping="Wrap"
                    Width="200"
                    Margin="0,20,0,0"
                    Style="{StaticResource FormElementStyle}"
                    telerik:LocalizationManager.ResourceKey="DeleteItemQuestion" >
                </TextBlock>
            </StackPanel>
            <StackPanel
                x:Name="FooterControls"
                Grid.Row="1"
                Margin="10"
                HorizontalAlignment="Center"
                Orientation="Horizontal">

                <telerik:RadButton
                    MinWidth="80" 
                    HorizontalContentAlignment="Center"
                    Margin="5" Height="22"
                    Padding="10 0"
                    telerik:LocalizationManager.ResourceKey="Ok"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    telerikNavigation:RadWindow.ResponseButton="Accept"
                    Command="telerik:WindowCommands.Confirm"/>
                <telerik:RadButton
                    MinWidth="80"
                    HorizontalContentAlignment="Center"
                    Margin="5" Height="22"
                    Padding="10 0"
                    telerik:LocalizationManager.ResourceKey="Cancel" 
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                    Command="telerik:WindowCommands.Close"
                    
                    IsCancel="true"
                     />
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <ControlTemplate
        x:Key="AppointmentClosingTemplate"
        TargetType="telerikScheduler:AppointmentClosingDialogWindow">

        <Grid
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch"
            Background="{TemplateBinding Background}">

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <StackPanel Orientation="Horizontal">
                <Image
                    x:Name="CircleIcon"
                    Margin="15"
                    Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/del_big.png" />
                <TextBlock
                    x:Name="WindowMessage"
                    TextWrapping="Wrap"
                    Width="200"
                    Margin="0,20,0,0"
                    Style="{StaticResource FormElementStyle}"
                    Text="Do you really want to close the window without saving the changes?">
                </TextBlock>
            </StackPanel>
            <StackPanel
                x:Name="FooterControls"
                Grid.Row="1"
                Margin="10"
                HorizontalAlignment="Center"
                Orientation="Horizontal">

                <telerik:RadButton
                    MinWidth="80" 
                    HorizontalContentAlignment="Center"
                    Margin="5" Height="22"
                    Padding="10 0"
                    telerik:LocalizationManager.ResourceKey="Ok"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    telerikNavigation:RadWindow.ResponseButton="Accept"
                    Command="telerik:WindowCommands.Confirm"/>
                <telerik:RadButton
                    MinWidth="80"
                    HorizontalContentAlignment="Center"
                    Margin="5" Height="22"
                    Padding="10 0"
                    telerik:LocalizationManager.ResourceKey="Cancel" 
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                    Command="telerik:WindowCommands.Close"
                    
                    IsCancel="true"
                     />
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerikScheduler:AppointmentDeleteDialogWindow" x:Key="AppointmentDeleteDialogWindowStyle"
         >
        <Setter Property="telerik:LocalizationManager.ResourceKey" Value="DeleteItem"  />
        <Setter Property="Template" Value="{StaticResource AppointmentDeleteTemplate}" />
        <Setter Property="Background" Value="{StaticResource DialogWindowBackground}" />
        
    </Style>

    <Style TargetType="telerikScheduler:AppointmentClosingDialogWindow" x:Key="AppointmentClosingDialogWindowStyle"
         >
        <Setter Property="telerik:LocalizationManager.ResourceKey" Value="DeleteItem"  />
        <Setter Property="Template" Value="{StaticResource AppointmentClosingTemplate}" />
        <Setter Property="Background" Value="{StaticResource DialogWindowBackground}" />
        
    </Style>
    <scheduler:ResourcesSeparatorConverter x:Key="ResourcesSeparatorConverter" />

    <DataTemplate x:Key="SingleSelectionTemplate">
        <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" MinWidth="84" />
                <ColumnDefinition Width="Auto" MinWidth="200"/>
            </Grid.ColumnDefinitions>
            <TextBlock
                x:Name="SelectionNameLabel"
                Margin="0,13,4,2"
                Text="{Binding ResourceType.DisplayName}"
                Style="{StaticResource FormElementTextBlockStyle}"
                Grid.Column="0"/>
            <telerikInput:RadComboBox
                ItemsSource="{Binding ResourceItems}"
                Width="185"
                Margin="5,10,20,2"
                HorizontalAlignment="Left"
                Grid.Column="1"
                ClearSelectionButtonVisibility="Visible"
                 ClearSelectionButtonContent="{Binding ClearAllButtonContent}"
                DisplayMemberPath="Resource.DisplayName"
                telerik:StyleManager.Theme="{StaticResource Theme}"
                SelectedItem="{Binding SelectedItem, Mode=TwoWay}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="MultipleSelectionTemplate">
        <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" MinWidth="84" />
                <ColumnDefinition Width="Auto" MinWidth="200" />
            </Grid.ColumnDefinitions>

            <TextBlock
                x:Name="SelectionNameLabel"
                Grid.Column="0"
                Text="{Binding ResourceType.DisplayName}"
                Margin="0,13,4,2"
                Style="{StaticResource FormElementTextBlockStyle}" />

            <telerikInput:RadComboBox
                Grid.Column="1"
                Width="185"
                HorizontalAlignment="Left"
                Margin="5,10,20,2"
                ItemsSource="{Binding ResourceItems}"
                SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
                ClearSelectionButtonVisibility="Visible"
                ClearSelectionButtonContent="{Binding ClearAllButtonContent}"
                telerik:StyleManager.Theme="{StaticResource Theme}">

                <telerikInput:RadComboBox.ItemTemplate>
                    <DataTemplate >
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <CheckBox
                                VerticalAlignment="Center"
                                HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center"
                                IsChecked="{Binding IsChecked, Mode=TwoWay}"
                                Content="{Binding Resource.DisplayName}">

                                <CheckBox.ContentTemplate>
                                    <DataTemplate>
                                        <TextBlock
                                            HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                            Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" />
                                    </DataTemplate>
                                </CheckBox.ContentTemplate>
                            </CheckBox>
                        </Grid>
                    </DataTemplate>
                </telerikInput:RadComboBox.ItemTemplate>

                <telerikInput:RadComboBox.SelectionBoxTemplate>
                    <DataTemplate >
                        <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ResourcesSeparatorConverter}}" />
                    </DataTemplate>
                </telerikInput:RadComboBox.SelectionBoxTemplate>

            </telerikInput:RadComboBox>
        </Grid>
    </DataTemplate>

    <scheduler:ResourceTypeTemplateSelector
        x:Key="ItemTemplateSelector"
        MultipleSelectionTemplate ="{StaticResource MultipleSelectionTemplate}"
        SingleSelectionTemplate ="{StaticResource SingleSelectionTemplate}" />


	<Style x:Key="ToolBarButtonStyle" TargetType="telerik:RadButton">
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid>
						<telerikChromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}" RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderEnabled="{TemplateBinding IsEnabled}" RenderFocused="{TemplateBinding IsFocused}" />
						<ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ToolBarToggleButtonStyle" TargetType="telerik:RadToggleButton">
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadToggleButton">
					<Grid>
						<telerikChromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}" RenderNormal="False" RenderPressed="{TemplateBinding IsChecked}" />
						<telerikChromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}" RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderEnabled="{TemplateBinding IsEnabled}" RenderFocused="{TemplateBinding IsFocused}" />
						<ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerikScheduler:AppointmentDialogWindow">
        <StackPanel Background="{TemplateBinding Background}"
			
			SnapsToDevicePixels="True"
			
			 >
			
            <StackPanel Grid.Row="0" Orientation="Horizontal" Background="{StaticResource RadToolBar_InnerBackground}"  Grid.ColumnSpan="2" Height="28" >
                <!-- Recurrence buttons -->
				<telerik:RadButton
					x:Name="EditRecurrenceRuleBtn"
					Grid.Row="5" Grid.Column="1"
					Margin="2"
					BorderThickness="0"
					BorderBrush="Transparent"
					Background="Transparent"
					Style="{StaticResource ToolBarButtonStyle}"
					Command="telerikScheduler:RadSchedulerCommands.EditRecurrenceRule">

					<telerik:RadButton.Content>
						<StackPanel Orientation="Horizontal">
							<Image Height="16" Width="16" HorizontalAlignment="Center"
									Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/recc16x16.png" />
							<TextBlock telerik:LocalizationManager.ResourceKey="EditRecurrence"
									VerticalAlignment="Center" Margin="5,0,0,0" />
						</StackPanel>
					</telerik:RadButton.Content>

					
					<telerik:RadButton.ToolTip>
						<TextBlock telerik:LocalizationManager.ResourceKey="EditRecurrence" />
					</telerik:RadButton.ToolTip>
					
				</telerik:RadButton>
				
				<telerik:RadButton
					x:Name="EditParentAppointmentBtn"
					Grid.Row="5" Grid.Column="1"
					Margin="2"
					BorderThickness="0"
					BorderBrush="Transparent"
					Background="Transparent"
					Style="{StaticResource ToolBarButtonStyle}"
					Command="telerikScheduler:RadSchedulerCommands.EditParentAppointment"
					 >

					
					<AccessText telerik:LocalizationManager.ResourceKey="EditParentAppointment" />

					<telerik:RadButton.ToolTip>
						<TextBlock telerik:LocalizationManager.ResourceKey="EditParentAppointment" />
					</telerik:RadButton.ToolTip>
					
				</telerik:RadButton>

                <Border Margin="1,1,0,0" Background="{StaticResource ToolbarSeparatorDarkFill}" HorizontalAlignment="Left"  
                        VerticalAlignment="Center" Width="2" Height="16">
                    <Border Margin="0,0,1,1" Background="{StaticResource ToolbarSeparatorLightFill}" HorizontalAlignment="Left" Width="1"/>
                </Border>

                <telerik:RadToggleButton
					x:Name="categoryButton"
					Margin="2,2,0,2"
					BorderThickness="0"
					BorderBrush="Transparent"
					Background="Transparent"
					Style="{StaticResource ToolBarToggleButtonStyle}"
					IsChecked="{Binding IsOpen, ElementName=PART_categoryMenu, Mode=TwoWay}">
					
                    <StackPanel Orientation="Horizontal" Margin="2,0,2,0">
                        <Image  Height="16"  Width="16"  HorizontalAlignment="Center"  
                            Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/categorize.png"
                            ToolTipService.ToolTip="Categorize" />
                        <TextBlock telerik:LocalizationManager.ResourceKey="Categorize" VerticalAlignment="Center" Margin="5,0,0,0"  />
                    </StackPanel>
                    <telerikNavigation:RadContextMenu.ContextMenu >
                        <telerikNavigation:RadContextMenu x:Name="PART_categoryMenu" ItemsSource="{TemplateBinding Categories}" Placement="Bottom" telerik:StyleManager.Theme="{StaticResource Theme}">
                            <telerikNavigation:RadContextMenu.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <Grid>
                                            <Border Background="{StaticResource CategorySelectorBorderBrush}" Margin="-32,2,2,2" Width="14" Height="14"  Visibility="{Binding IsChecked,Converter={StaticResource BooleanToVisibilityConverter},Mode=TwoWay}"/>
                                            <Rectangle Fill="{Binding CategoryBrush}" Margin="-32,2,2,2" Width="12" Height="12"/>
                                        </Grid>
                                        <TextBlock Text="{Binding DisplayName}"  Margin="2"/>
                                    </StackPanel>
                                </DataTemplate>
                            </telerikNavigation:RadContextMenu.ItemTemplate>

                        </telerikNavigation:RadContextMenu>
                    </telerikNavigation:RadContextMenu.ContextMenu>
                </telerik:RadToggleButton>

                <Border Margin="1,1,0,0" Background="{StaticResource ToolbarSeparatorDarkFill}" HorizontalAlignment="Left"  
                        VerticalAlignment="Center" Width="2" Height="16">
                    <Border Margin="0,0,1,1" Background="{StaticResource ToolbarSeparatorLightFill}" HorizontalAlignment="Left" Width="1"/>
                </Border>
                <TextBlock telerik:LocalizationManager.ResourceKey="ShowAs" VerticalAlignment="Center" Margin="5,0,0,0"  />
                <telerikInput:RadComboBox
					x:Name="PART_TimeMarkers"
                    ItemsSource="{TemplateBinding TimeMarkers}"
                    Width="100"
                    Height="20"  VerticalAlignment="Center" Margin="5,0,0,0" 
                    ClearSelectionButtonVisibility="Visible"
                    ClearSelectionButtonContent="Clear"            
                    SelectedItem ="{Binding TimeMarker,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}"
                    telerik:StyleManager.Theme="{StaticResource Theme}" >
                        <telerikInput:RadComboBox.ItemTemplate>
                            <DataTemplate >
                                <StackPanel Orientation="Horizontal">
                                    <Rectangle Fill="{Binding TimeMarkerBrush}" Margin="2" Width="12" Height="12"/>
                                    <TextBlock Text="{Binding TimeMarkerName}"  Margin="2"/>
                                </StackPanel>
                            </DataTemplate>
                        </telerikInput:RadComboBox.ItemTemplate>

                        <telerikInput:RadComboBox.SelectionBoxTemplate>
                            <DataTemplate >
                                <StackPanel Orientation="Horizontal">
                                    <Rectangle Fill="{Binding TimeMarkerBrush}" Margin="2" Width="12" Height="12"/>
                                    <TextBlock Text="{Binding TimeMarkerName}"  Margin="2"/>
                                </StackPanel>
                            </DataTemplate>
                        </telerikInput:RadComboBox.SelectionBoxTemplate>
                </telerikInput:RadComboBox>
                <telerik:RadToggleButton x:Name="High" BorderThickness="0"  
                      Background="{StaticResource RadToolBar_InnerBackground}"  
                      DataContext="{TemplateBinding EditedAppointment}"
                      Style="{StaticResource ToolBarToggleButtonStyle}"
                      IsChecked="{Binding Importance,Mode=TwoWay, Converter={StaticResource ImportanceToBooleanConverter},ConverterParameter=High}" 
                      Margin="2,2,0,2" Width="23" Height="23" HorizontalContentAlignment="Center"  >
                    <StackPanel HorizontalAlignment="Center" >
                        <Path Stretch="Fill" Height="10" HorizontalAlignment="Center"  VerticalAlignment="Top" Width="5.451"  Data="M200.39647,58.840393 C200.39337,58.336426 201.14566,57.683922 202.56244,57.684292 C204.06589,57.684685 204.73764,58.357765 204.72783,58.992363 C205.04649,61.795574 203.04713,64.181099 202.47388,66.133446 C201.93753,64.154961 199.9471,61.560352 200.39647,58.840393 z">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                    <GradientStop Color="#FFFF0606" Offset="0.609"/>
                                    <GradientStop Color="#FFBF0303" Offset="0.927"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Ellipse Height="3" HorizontalAlignment="Center" Margin="0,-1,0,0"  VerticalAlignment="Top" Width="3" >
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFF0606" Offset="0"/>
                                    <GradientStop Color="#FFBF0303" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                    </StackPanel>
					<ToolTipService.ToolTip>
						<TextBlock telerik:LocalizationManager.ResourceKey="HighImportance"/>
					</ToolTipService.ToolTip>
				</telerik:RadToggleButton>
                <telerik:RadToggleButton x:Name="Low" HorizontalContentAlignment="Center" 
                       BorderThickness="0" 
                       Background="{StaticResource RadToolBar_InnerBackground}" 
                       DataContext="{TemplateBinding EditedAppointment}"    
                        IsChecked="{Binding Importance,Mode=TwoWay, Converter={StaticResource ImportanceToBooleanConverter},ConverterParameter=Low}" Margin="0,2,0,2" Width="23" Height="23"   
                
                       Style="{StaticResource ToolBarToggleButtonStyle}">
					<ToolTipService.ToolTip>
						<TextBlock telerik:LocalizationManager.ResourceKey="LowImportance"/>
					</ToolTipService.ToolTip>
					<Path Stretch="Fill" Height="12" HorizontalAlignment="Center"  VerticalAlignment="Top" Width="9" Data="M222.40353,60.139881 L226.65768,60.139843 L226.63687,67.240196 L229.15347,67.240196 L224.37816,71.394943 L219.65274,67.240196 L222.37572,67.219345 z" Stroke="#FF0365A7">
                        <Path.Fill>
                            <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                <GradientStop Color="#FFBBE4FF"/>
                                <GradientStop Color="#FF024572" Offset="0.836"/>
                                <GradientStop Color="#FF43ADF4" Offset="0.466"/>
                            </LinearGradientBrush>
                        </Path.Fill>
                    </Path>
                </telerik:RadToggleButton>
            </StackPanel >
            <Border DataContext="{TemplateBinding EditedAppointment}"
                    Background="{Binding Category.CategoryBrush}" Visibility="{Binding Category,Converter={StaticResource NullToVisibilityConverter}}" 
                    CornerRadius="3" Height="20" Margin="5,10,5,0">
                <TextBlock Text="{Binding Category.DisplayName}" VerticalAlignment="Center" Margin="5,0,0,0"/>
            </Border>
            <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"   
                DataContext="{TemplateBinding EditedAppointment}"
                Background="{TemplateBinding Background}">
                
                <Grid.Resources>
                    <Style TargetType="{x:Type Label}">
                        <Setter Property="HorizontalAlignment" Value="Right" />
                        <Setter Property="VerticalAlignment" Value="Top" />
                        <Setter Property="Margin" Value="0,10,0,2" />
                    </Style>
                </Grid.Resources>
                

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" MinWidth="100" />
                    <ColumnDefinition Width="Auto" MinWidth="200" />
                </Grid.ColumnDefinitions>

                <!-- Subject -->
                
                <Label x:Name="SubjectLabel" VerticalAlignment="Bottom"
                    Grid.Row="0" Grid.Column="0"
                    Target="{Binding ElementName=Subject}"
                    telerik:LocalizationManager.ResourceKey="Subject" />
                

                

                <TextBox x:Name="Subject"
                    Grid.Row="0" Grid.Column="1"
					MinHeight="22" Padding="4 2"
					Width="340" HorizontalAlignment="Left"
                    Text="{Binding Subject, Mode=TwoWay}"
                    MaxLength="255"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    
                    
                    Margin="10,12,20,2"
                    
                     />

                    <!-- Description -->
                    
                    <Label
                    x:Name="DescriptionLabel"
                    Margin="0,8,0,2"
                    Grid.Row="1" Grid.Column="0"
                    telerik:LocalizationManager.ResourceKey="Body" />
                    
                    

                <TextBox
                    x:Name="Body" VerticalAlignment="top"
                    Grid.Row="1" Grid.Column="1"
                    Height="Auto" MaxHeight="82"
                    Width="340" HorizontalAlignment="Left"
					MinHeight="22" Padding="4 2"
                    TextWrapping="Wrap"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    Text="{Binding Body, Mode=TwoWay}"
                    AcceptsReturn="true"
                    
                    
						Margin="10,10,20,2"
                    SnapsToDevicePixels="true"
                    ScrollViewer.HorizontalScrollBarVisibility="Auto"
                    ScrollViewer.VerticalScrollBarVisibility="Auto"
                        
                         />

                        <!-- Start/End date -->
                        

                        
                        <Label
                            x:Name="StartDateLabel"
                            Grid.Row="2" Grid.Column="0"
                            Target="{Binding ElementName=StartDateTime}"
                            telerik:LocalizationManager.ResourceKey="StartTime" />
                        <telerikScheduler:DateTimePicker
							Height="22"
                            x:Name="StartDateTime"
                            Grid.Row="2" Grid.Column="1"
                            Margin="10,10,20,2"
                            Style="{StaticResource FormElementStyle}"
                            SelectedDateTime="{Binding Path=Start, Mode=TwoWay}"
                            IsTabStop="False"
                            IsEnabled="False"
                            telerikScheduler:StartEndDatePicker.EndPicker="{Binding ElementName=EndDateTime}"
                            telerik:StyleManager.Theme="{StaticResource Theme}" />
                        <Label
                            x:Name="EndDateLabel"
                            Grid.Row="3" Grid.Column="0"
                            Target="{Binding ElementName=EndDateTime}"
                            telerik:LocalizationManager.ResourceKey="EndTime" />
						<telerikScheduler:DateTimePicker
                            x:Name="EndDateTime"
							Height="22"
                            Grid.Row="3" Grid.Column="1"
                            Margin="10,10,20,2"
                            Style="{StaticResource FormElementStyle}"
                            IsTabStop="False"
                            IsEnabled="False"
                            SelectedDateTime="{Binding Path=End, Mode=TwoWay}"
                            telerik:StyleManager.Theme="{StaticResource Theme}" />
                        

                        <!-- Is-all-day selector -->
                        <CheckBox
                    x:Name="AllDayEventCheckbox"
                    IsChecked="{Binding IsAllDayEvent, Mode=TwoWay}"
                    Grid.Row="4" Grid.Column="1"
                    Margin="10,10,20,2"
                    HorizontalAlignment="Left"
                    telerik:StyleManager.Theme="{StaticResource Theme}"
                    telerik:LocalizationManager.ResourceKey="AllDayEvent"
                    
                            IsEnabled="False"
                             >

                            
                        </CheckBox>



                        <!-- Resources -->
                        <Grid
							x:Name="ResourcesLayout"
							Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2"
							MaxHeight="130"
							Margin="20,5,20,0">

                            <Border
								Margin="0"
								BorderThickness="1"
								BorderBrush="{StaticResource GenericShallowBorderBrush}"
								Visibility="{Binding ElementName=ResourcesScrollViewer, Path=ComputedVerticalScrollBarVisibility}"></Border>

                            <ScrollViewer
								x:Name="ResourcesScrollViewer"
								IsTabStop="false"
								Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2"
								Margin="1"
								telerik:StyleManager.Theme="{StaticResource Theme}"
								VerticalScrollBarVisibility="Auto"   >


                                <scheduler:ResourcesItemsControl
                            x:Name="PART_Resources"
                            HorizontalAlignment="Left"
                            Padding="0,2,0,5"
                            IsTabStop="false"
                            ItemsSource="{TemplateBinding ResourceTypeModels}"
                            ItemTemplateSelector="{StaticResource ItemTemplateSelector}" Visibility="{TemplateBinding ResourceTypesVisibility}" />

                            </ScrollViewer>
							<Border 	Margin="0"
								BorderThickness="1"  
								CornerRadius="2"
								BorderBrush="{StaticResource GenericShallowBorderBrush}"
										DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
								Visibility="{Binding ResourceTypesVisibility, Converter={StaticResource InvertedVisibilityConverter}}" >
								<TextBlock HorizontalAlignment="Center"  Text="You can only change the resources by opening the series" Margin="5"/>
							</Border>
                        </Grid>


                        <StackPanel
								x:Name="FooterControls"
								Margin="5 10 10 10"
								Grid.Row="7" Grid.Column="1"
								HorizontalAlignment="Left"
								Orientation="Horizontal">

                           
                            <telerik:RadButton
								x:Name="OKButton"
								Margin="5" Height="22"
								Padding="10 0"
								MinWidth="80"
								Command="telerikScheduler:RadSchedulerCommands.SaveAppointment"
								telerik:StyleManager.Theme="{StaticResource Theme}" 
								telerikNavigation:RadWindow.ResponseButton="Accept"
								 >
								
								
								<TextBlock>
									<AccessText telerik:LocalizationManager.ResourceKey="SaveAndCloseCommandText" />
                                </TextBlock>

								<telerik:RadButton.ToolTip>
									<TextBlock telerik:LocalizationManager.ResourceKey="SaveAndClose" />
								</telerik:RadButton.ToolTip>
								
                            </telerik:RadButton>

                            <telerik:RadButton
								x:Name="CancelButton"
								Margin="5" Height="22"
								Padding="10 0"
								MinWidth="80"
								telerik:LocalizationManager.ResourceKey="Cancel"
								telerik:StyleManager.Theme="{StaticResource Theme}"
								telerikNavigation:RadWindow.ResponseButton="Cancel"
								Command="telerik:WindowCommands.Close"
								
                                IsCancel="true"
                                 >

                            </telerik:RadButton>
                        </StackPanel>
            </Grid>

            
        </StackPanel>

        
        <ControlTemplate.Triggers>
            <Trigger SourceName="AllDayEventCheckbox" Property="IsChecked" Value="true">
                <Setter TargetName="StartDateTime" Property="TimePickerVisibility" Value="Collapsed" />
                <Setter TargetName="EndDateTime" Property="TimePickerVisibility" Value="Collapsed" />
            </Trigger>
            <DataTrigger Binding="{Binding EditedAppointment.RecurrenceRule}" Value="{x:Null}">
                <Setter TargetName="StartDateTime" Property="IsEnabled" Value="True" />
                <Setter TargetName="EndDateTime" Property="IsEnabled" Value="True" />
                <Setter TargetName="AllDayEventCheckbox" Property="IsEnabled" Value="True" />
            </DataTrigger>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <DataTemplate x:Key="AppointmentDialogWindowHeaderDataTemplate">
        <StackPanel Orientation="Horizontal" MaxWidth="400">
            <TextBlock telerik:LocalizationManager.ResourceKey="Event" 
                            Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource BooleanToVisibilityConverter}}" />
            <TextBlock telerik:LocalizationManager.ResourceKey="Appointment"
                            Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" />
            <TextBlock Text=" - " />
            <TextBlock x:Name="SubjectTextBlock" Visibility="{Binding Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}" 
                            Text="{Binding Appointment.Subject}" />
            <TextBlock telerik:LocalizationManager.ResourceKey="Untitled" 
                            Visibility="{Binding Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
        </StackPanel>
    </DataTemplate>

    <Style x:Key="EditAppointmentStyle" TargetType="telerikScheduler:AppointmentDialogWindow">
        <Setter Property="IconTemplate" Value="{StaticResource IconDataEditTemplate}" />
        <Setter Property="HeaderTemplate" Value="{StaticResource AppointmentDialogWindowHeaderDataTemplate}"/>    
        <Setter Property="Background" Value="{StaticResource DialogWindowBackground}" />
        <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}" />
        <Setter Property="IsTabStop" Value="False" />
    </Style>
    
    

    <telerikScheduler:DateTimeToMonthNameConverter x:Key="DateTimeToMonthNameConverter" />
    <telerikScheduler:TooltipConverter x:Key="TooltipConverter" />
    <telerikScheduler:MouseWheelGesture x:Key="MouseWheelUpGesture" MouseWheelAction="WheelUp" />
    <telerikScheduler:MouseWheelGesture x:Key="MouseWheelDownGesture" MouseWheelAction="WheelDown" />
    <telerikScheduler:ImportanceToVisibilityConverter x:Key="ImportanceToVisibilityConverter" />
    <telerikScheduler:AvailableViewModesToVisibilityConverter x:Key="AvailableViewModesToVisibilityConverter" />
    <telerik:InvertedBooleanToOpacityConverter x:Key="InvertedBooleanToOpacityConverter"/>
    <telerikScheduler:TimeSlotToStringConverter x:Key="TimeSlotToStringConverter" />
    <telerikScheduler:TimeSlotToWeekConverter x:Key="TimeSlotToWeekConverter"/>

    <DataTemplate x:Key="DragVisualCueTemplate">
        <Grid>
            <Grid Opacity="0.8">
                <telerikChromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}" RenderHighlighted="True" />
                <TextBlock Margin="4 0" Text="{Binding Appointment.Subject}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
            </Grid>
            <Image Height="18" Width="18" Visibility="{Binding IsDraggingPossible, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"  Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/stop.png"/>
        </Grid>
    </DataTemplate>
    
    <!-- ShowMoreButton Chrome-->
    <Style x:Key="ShowMoreChromeStyle" TargetType="telerikChromes:ButtonChrome">
        <Setter Property="Width" Value="11" />
        <Setter Property="Height" Value="11" />
        <Setter Property="Background" Value="{StaticResource ShowMoreBackground_Normal}" />
        <Setter Property="BorderBrush" Value="{StaticResource ShowMoreBorderBrush_Normal}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="CornerRadius" Value="2" />
        
        
        <Setter Property="SnapsToDevicePixels" Value="True" />
        
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikChromes:ButtonChrome">
                    <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" 
                            BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                        <Path x:Name="Triangle" Margin="1" 
								Fill="{StaticResource ShowMoreForeground_Normal}"
								Stretch="Fill" Width="5" Height="3" VerticalAlignment="Center"
								HorizontalAlignment="Center" Data="M0,0L5,0 2.5,5z" />

                        
                    </Border>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="RenderMouseOver" Value="true">
                            <Setter Property="Background" TargetName="Border" Value="{StaticResource ShowMoreBackground_Selected}" />
                            <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ShowMoreBorderBrush_Selected}" />
                            <Setter Property="Fill" TargetName="Triangle"
									Value="{StaticResource ShowMoreForeground_MouseOver}" />
                        </Trigger>
                        <Trigger Property="RenderSelected" Value="True">
                            <Setter Property="Background" TargetName="Border" Value="{StaticResource ShowMoreBackground_Selected}" />
                            <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ShowMoreBorderBrush_Selected}" />
                            <Setter Property="Fill" TargetName="Triangle"
									Value="{StaticResource ShowMoreForeground_Pressed}" />
                        </Trigger>
                        <Trigger Property="RenderPressed" Value="True">
                            <Setter Property="Background" TargetName="Border" Value="{StaticResource ShowMoreBackground_Selected}" />
                            <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ShowMoreBorderBrush_Selected}" />
                            <Setter Property="Fill" TargetName="Triangle"
									Value="{StaticResource ShowMoreForeground_Pressed}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <!--ShowMoreButtonStyle-->
    <Style x:Key="ShowMoreButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Margin" Value="3 3 4 3" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <telerikChromes:ButtonChrome  CornerRadius="{TemplateBinding CornerRadius}" RenderNormal="True"  telerik:StyleManager.Theme="{StaticResource Theme}"                                             
                                                     RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderSelected="{TemplateBinding IsPressed}"
                                                     Style="{StaticResource ShowMoreChromeStyle}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
    <!--ICwoPaddingStyle-->
    <Style x:Key="ICwoPaddingStyle" TargetType="{x:Type ItemsControl}">
        <Style.Resources>
            <Style TargetType="{x:Type GroupItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type GroupItem}">
                            <VirtualizingStackPanel x:Name="StackPanel">
                                <ContentPresenter x:Name="ContentPresenter"
										Content="{TemplateBinding Content}"
										ContentTemplate="{TemplateBinding ContentTemplate}" />
                                <ItemsPresenter x:Name="ItemsPresenter" />
                            </VirtualizingStackPanel>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Style.Resources>
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ItemsControl}">
                    <Border Background="{TemplateBinding Background}" x:Name="Bd"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}"
							SnapsToDevicePixels="True">
                        <ItemsPresenter x:Name="ItemsPresenter" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background"
									Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
									TargetName="Bd" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--ItemsControl-->
    <Style TargetType="{x:Type ItemsControl}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ItemsControl}">
                    <ItemsPresenter />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--GroupItem-->
    <Style TargetType="{x:Type GroupItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupItem}">
                    <VirtualizingStackPanel x:Name="StackPanel">
                        <ContentPresenter x:Name="ContentPresenter"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}" />
                        <ItemsPresenter x:Name="ItemsPresenter" />
                    </VirtualizingStackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--LBwoPaddingStyle-->
    <Style x:Key="LBwoPaddingStyle" TargetType="{x:Type ListBox}"
			BasedOn="{StaticResource ICwoPaddingStyle}">
        <Style.Resources>
            <Style TargetType="{x:Type ListBoxItem}">
                <Setter Property="Padding" Value="0" />
            </Style>
        </Style.Resources>
    </Style>

    <!-- EmptyFocusVisual -->
    <Style x:Key="EmptyFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Control}">
                    <Border Name="border" Width="{TemplateBinding ActualWidth}"
							Height="{TemplateBinding ActualHeight}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TimeSlotItem-->
    <Style TargetType="{x:Type telerikScheduler:TimeSlotItem}">
        <Setter Property="Background" Value="Green" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="FocusVisualStyle" Value="{StaticResource EmptyFocusVisual}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerikScheduler:TimeSlotItem}">
                    <Border x:Name="PART_ContentHost"
                            Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}"
							Padding="{TemplateBinding Padding}"
							SnapsToDevicePixels="True">
                        <ContentPresenter Name="TimeSlotContentPresenter" HorizontalAlignment="Stretch"
										  VerticalAlignment="Stretch" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TimeSlot-->
    <DataTemplate DataType="{x:Type scheduler:TimeSlot}" />
    

    <!--DayHeaderStyle-->
    <Style x:Key="DayHeaderStyle" TargetType="ContentControl">
        
        <Setter Property="FocusVisualStyle" Value="{StaticResource EmptyFocusVisual}" />
        
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border x:Name="DayHeaderBorder"
						BorderThickness="{TemplateBinding BorderThickness}"
						BorderBrush="{TemplateBinding BorderBrush}"
						Background="{TemplateBinding Background}"
                        
                        
                        SnapsToDevicePixels="True"
                         >

                        <ContentPresenter
                            Content="{TemplateBinding Content}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
						    
                            TextBlock.Foreground="{TemplateBinding Foreground}"
                             />
                    </Border>
                    
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding ., Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
                            <Setter TargetName="DayHeaderBorder" Property="Background" Value="{StaticResource TodayHeaderBrush}" />
                        </DataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" />
                                <Condition Binding="{Binding ., Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="true"/>
                            </MultiDataTrigger.Conditions>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    

    <!-- Day view resources -->

    <!--DayHeaderListItemTemplate-->
    <DataTemplate x:Key="DayHeaderListItemTemplate">
        <telerik:RadButton
			x:Name="Root"
			Margin="-1 -1 0 0"
			Style="{StaticResource RadScheduler_DayView_TopHeader}"
            
            Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode">

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                
                
                <TextBlock Style="{StaticResource RadScheduler_DayView_HeaderText}" Grid.Column="0" Padding="0,0,2,0" >
                  	<TextBlock.Text>
						<MultiBinding
									Converter="{StaticResource TimeSlotToStringConverter}">
								<Binding
										RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}"
										Path="DayHeaderFormat" />
								<Binding />
							</MultiBinding>
						</TextBlock.Text>
                </TextBlock>
                <TextBlock Style="{StaticResource RadScheduler_DayView_HeaderText}" Grid.Column="1" FontWeight="Bold" Padding="2,0,0,0" >
                    <TextBlock.Text>
					<MultiBinding
								Converter="{StaticResource TimeSlotToStringConverter}">
							<Binding
									RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}"
									Path="MonthViewDayHeaderDayFormat" />
							<Binding />
						</MultiBinding>
					</TextBlock.Text>
                </TextBlock>
                
            </Grid>

        </telerik:RadButton>
    </DataTemplate>

    <!--TimelineHeaderListItemTemplate-->
    <DataTemplate x:Key="TimelineHeaderListItemTemplate">

        <telerik:RadButton
			x:Name="Root"
			Margin="-1 -1 0 0"
			Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode"
			Style="{StaticResource RadScheduler_TimelineView_TopHeader}">

            <telerik:RadButton.Content>
                <TextBlock Foreground="{StaticResource RadScheduler_Table_TextForeground}">
					<TextBlock.Text>
						
						
						<MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
							<Binding
								RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" 
								Path="TimelineHeaderFormat" />
							<Binding  />
						</MultiBinding>
						
					</TextBlock.Text>
                </TextBlock>
            </telerik:RadButton.Content>

        </telerik:RadButton>
    </DataTemplate>

    <!--AllDayStyle-->
    <Style x:Key="AllDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="Padding" Value="1 1 0 0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Border x:Name="PART_ContentHost" Margin="-1 -1 0 0">

                        
                        <Border.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" />
                        </Border.InputBindings>
                        
                        

                        <Grid>
                            <Border
								x:Name="Border"
								Style="{StaticResource RadScheduler_DayView_AllDayCellBackgroundStyle}">
                            </Border>

                            <Rectangle
								x:Name="Border_MouseOver"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False" 
								Style="{StaticResource RadScheduler_DayView_AllDayCellBackgroundStyle_MouseOver}" />
                            <Rectangle
								x:Name="Border_Selected"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False" 
								Style="{StaticResource RadScheduler_DayView_AllDayCellBackgroundStyle_Selected}" />
                            <Rectangle
								x:Name="Border_CurrentDay"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False"
								Style="{StaticResource RadScheduler_DayView_AllDayCellBackgroundStyle_CurrentDay}" />

                            <Rectangle Width="{Binding ActualWidth, ElementName=PART_ContentHost}" />
                            
                            <ContentPresenter
								Margin="{TemplateBinding Padding}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            
                        </Grid>
                        
                    </Border>

                    
                    <ControlTemplate.Triggers>
                        <!-- CurrentDay -->
                        <DataTrigger Binding="{Binding ., Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
                            <Setter Property="Panel.ZIndex" Value="1" />
                            <Setter TargetName="Border_CurrentDay" Property="Visibility" Value="Visible" />
                            <Setter TargetName="Border_CurrentDay" Property="Opacity" Value="1" />
                        </DataTrigger>
                        <Trigger Property="IsDropPossible" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <!-- Mouse Over -->
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <!-- Selected -->
                        <Trigger Property="IsSelected" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Panel.ZIndex" Value="2" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TimelineDayStyle-->
    <Style x:Key="TimelineDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">

                    <Grid x:Name="Root" Margin="-1 -1 0 0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>

                        <Border
							x:Name="contentBorder"
							Grid.RowSpan="2"
							Style="{StaticResource RadScheduler_TimelineView_CellBackgroundStyle}">

                            
                            <Border.InputBindings>
                                <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" />
                            </Border.InputBindings>
                            

                            

                            <ContentPresenter Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            
                        </Border>

                        <Rectangle
							x:Name="Background_MouseOver"
							Grid.RowSpan="2"
							Opacity="0"
							Visibility="Collapsed"
							IsHitTestVisible="False"
							Style="{StaticResource RadScheduler_TimelineView_CellBackgroundStyle_MouseOver}" />

                        <Rectangle
							x:Name="Background_Selected"
							Grid.RowSpan="2"
							Opacity="0"
							Visibility="Collapsed"
							IsHitTestVisible="False"
							Style="{StaticResource RadScheduler_TimelineView_CellBackgroundStyle_Selected}" />
                        
                        <Border x:Name="PART_ContentHost" Grid.Row="0" BorderThickness="0">
                            <Rectangle Height="{Binding Path=ActualHeight, ElementName=PART_ContentHost}" />
                        </Border>

                        <telerik:RadButton
							x:Name="PART_ShowMoreButton"
							Grid.Row="1" 
							Opacity="0"
							IsEnabled="False"
							Background="Transparent"						
							HorizontalAlignment="Right" VerticalAlignment="Bottom"							
							Style="{StaticResource ShowMoreButtonStyle}" 
							Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode"
							/>

                        

                    </Grid>

                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsDropPossible" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Background_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Background_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Background_Selected"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Background_Selected"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Background_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Panel.ZIndex" Value="1" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    

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

    <!--OneWeekDayStyle-->
    <Style x:Key="OneWeekDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="Padding" Value="0" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="Control.Template"
            
             >
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Grid MinHeight="22">
                        <Border Style="{StaticResource RadScheduler_DayView_CellBackgroundStyle}">
                            
                            <Border.InputBindings>
                                <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" />
                            </Border.InputBindings>
                            
                            

                            <Border x:Name="PART_ContentHost">
                                <Grid>
                                    
                                    <Rectangle Width="{Binding ActualWidth, ElementName=PART_ContentHost}" />
                                    
                                    <ContentPresenter
                                        Margin="{TemplateBinding Padding}"
								        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								        VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                </Grid>
                            </Border>
                        </Border>

                        <Rectangle
							x:Name="Border_MouseOver"
							Grid.RowSpan="3"
							Opacity="0"
							Visibility="Collapsed"
							IsHitTestVisible="False" 
							Style="{StaticResource RadScheduler_DayView_CellBackgroundStyle_MouseOver}" />

                        <Rectangle
							x:Name="Border_Selected"
							Grid.RowSpan="3"
							Opacity="0"
							Visibility="Collapsed"
							IsHitTestVisible="False" 
							Style="{StaticResource RadScheduler_DayView_CellBackgroundStyle_Selected}" />

                        
                    </Grid>

                    
                    <ControlTemplate.Triggers>
                        <!-- Mouse Over -->
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Panel.ZIndex" Value="1" />
                        </Trigger>
                        <Trigger Property="IsDropPossible" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Panel.ZIndex" Value="1" />
                        </Trigger>
                        <!-- Selected -->
                        <Trigger Property="IsSelected" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Panel.ZIndex" Value="2" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!-- Month view resources -->

    <!--MonthDayHeaderTemplate-->
    <DataTemplate x:Key="MonthDayHeaderTemplate">
        <telerik:RadButton
			x:Name="Root"
			Margin="-1 -1 0 0"
			Command="telerikScheduler:RadSchedulerCommands.SetWeekViewMode"
			Style="{StaticResource RadScheduler_MonthView_TopHeader}">

            <TextBlock Foreground="{StaticResource RadScheduler_Table_TextForeground}" Text="{Binding MonthFormattedStart}" />
        </telerik:RadButton>
    </DataTemplate>

    <!--MonthWeekHeaderTemplate-->
    <DataTemplate x:Key="MonthWeekHeaderTemplate">
        <telerik:RadButton
            x:Name="Root"
			Margin="-1 -1 0 0"
			Command="telerikScheduler:RadSchedulerCommands.SetWeekViewMode"
			Style="{StaticResource RadScheduler_MonthView_LeftHeader}">

            <TextBlock Foreground="{StaticResource RadScheduler_Table_TextForeground}" Text="{Binding DateTimePeriod}"/>
        </telerik:RadButton>
    </DataTemplate>

    <!--MonthDayStyle-->
    <Style x:Key="MonthDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="Padding" Value="1 1 0 0" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Border x:Name="Root" Margin="-1 -1 0 0">
                        
                        <Border.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" />
                        </Border.InputBindings>
                        
                        

                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <!-- Border -->
                            <Border
								x:Name="Border"
								Grid.RowSpan="3"
								Style="{StaticResource RadScheduler_MonthView_CellBackgroundStyle}">
                            </Border>

                            <Rectangle
								x:Name="Border_FromOtherMonth"
								Grid.RowSpan="3"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False" 
								Style="{StaticResource RadScheduler_MonthView_CellBackgroundStyle_FromOtherMonth}" />

                            <Rectangle
								x:Name="Border_MouseOver"
								Grid.RowSpan="3"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False" 
								Style="{StaticResource RadScheduler_MonthView_CellBackgroundStyle_MouseOver}" />

                            <Rectangle
								x:Name="Border_Selected"
								Grid.RowSpan="3"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False" 
								Style="{StaticResource RadScheduler_MonthView_CellBackgroundStyle_Selected}" />

                            <Rectangle
								x:Name="Border_CurrentDay"
								Grid.RowSpan="3"
								Opacity="0"
								Visibility="Collapsed"
								IsHitTestVisible="False" 
								Style="{StaticResource RadScheduler_MonthView_CellBackgroundStyle_CurrentDay}" />

                            <ContentPresenter 
                                    Grid.RowSpan="3"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                
                            <!-- Header -->
                            <Border
								x:Name="Header"
								Grid.Row="0"
								Cursor="Hand">

                                
                                <Border.InputBindings>
                                    <MouseBinding MouseAction="LeftClick" Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" />
                                </Border.InputBindings>
                                

                                <Grid x:Name="Titles">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>

                                    <Border
										x:Name="HeaderBackground"
										Grid.ColumnSpan="3"
										Style="{StaticResource RadScheduler_MonthView_CellHeaderBackgroundStyle}" />

                                    <Border
										x:Name="HeaderBackground_CurrentDay"
										Grid.ColumnSpan="3"
										Style="{StaticResource RadScheduler_MonthView_CellHeaderStyle_CurrentDay}"
										Opacity="0"
										Visibility="Collapsed" />

                                    
                                    <TextBlock
										x:Name="MonthName"
										Style="{StaticResource RadScheduler_MonthView_CellHeader_MonthNameStyle}"
										Visibility="Collapsed">
									
										<TextBlock.Text>
											<MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
												<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="MonthViewDayHeaderMonthFormat" />
												<Binding />
											</MultiBinding>
										</TextBlock.Text>
                                    </TextBlock>
                                    <Ellipse
										x:Name="CurrentDayNameElipseWrap"
										Visibility="Collapsed"
										Style="{StaticResource RadScheduler_MonthView_CellHeader_CurrentDayEllipseWrapStyle}" />
                                    <TextBlock
										x:Name="DayName"
										Style="{StaticResource RadScheduler_MonthView_CellHeader_DayNameStyle}">
									
										<TextBlock.Text>
											<MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
												<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="MonthViewDayHeaderDayFormat" />
												<Binding />
											</MultiBinding>
										</TextBlock.Text>
                                    </TextBlock>
                                    
                                    
                                </Grid>
                            </Border>

                            <!-- PART_ContentHost -->
                            <Border
								x:Name="PART_ContentHost"
								Grid.Row="1">
                                
                                <Rectangle
                                    Width="{Binding Path=ActualWidth, ElementName=PART_ContentHost}" 
									Height="{Binding Path=ActualHeight, ElementName=PART_ContentHost}" />
                            </Border>

                            <telerik:RadButton
								x:Name="PART_ShowMoreButton"
								Grid.Row="2"
								Opacity="0"
								IsEnabled="False"								
								Style="{StaticResource ShowMoreButtonStyle}"
								HorizontalAlignment="Right" Background="Transparent"
								Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode"/>
                        </Grid>

                        
                    </Border>

                    
                    <ControlTemplate.Triggers>
                        <!-- CurrentDay -->
                        <DataTrigger Binding="{Binding ., Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
                            <Setter Property="Panel.ZIndex" Value="1" />
                            <Setter TargetName="Border_CurrentDay" Property="Visibility" Value="Visible" />
                            <Setter TargetName="Border_CurrentDay" Property="Opacity" Value="1" />
                            <Setter TargetName="CurrentDayNameElipseWrap" Property="Visibility" Value="Visible" />
                            <Setter TargetName="HeaderBackground_CurrentDay" Property="Visibility" Value="Visible" />
                            <Setter TargetName="HeaderBackground_CurrentDay" Property="Opacity" Value="1" />
                        </DataTrigger>
                        <!-- From Other Month -->
                        <DataTrigger Value="False">
                            <DataTrigger.Binding>
                                <MultiBinding Converter="{x:Static telerikScheduler:DateTimeIsFromSelectedMonthConverter.Instance}">
                                    <Binding  />
                                    <Binding Path="SelectedTimeSlot" RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" />
                                </MultiBinding>
                            </DataTrigger.Binding>

                            <DataTrigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_FromOtherMonth"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_FromOtherMonth"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </DataTrigger.EnterActions>
                            <DataTrigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_FromOtherMonth"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_FromOtherMonth"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </DataTrigger.ExitActions>
                        </DataTrigger>
                        <!-- Mouse Over -->
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsDropPossible" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_MouseOver"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <!-- Show month name if first day of month -->
                        <DataTrigger Value="1" >
                            <DataTrigger.Binding>
                                <MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
                                    <Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}"
										 Path="MonthViewDayHeaderDayFormat" />
                                    <Binding />
                                </MultiBinding>
                            </DataTrigger.Binding>
                            <Setter TargetName="MonthName" Property="Visibility" Value="Visible" />

                        </DataTrigger>
                        <!-- Selected -->
                        <Trigger Property="IsSelected" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Opacity"
											To="1" Duration="0:0:0.05">
                                        </DoubleAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Opacity"
											To="0" Duration="0:0:0.25">
                                        </DoubleAnimation>
                                        <ObjectAnimationUsingKeyFrames
											Storyboard.TargetName="Border_Selected"
											Storyboard.TargetProperty="Visibility"
											Duration="0:0:0.25">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Panel.ZIndex" Value="2" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TODO-->

    <!--AppointmentSubjectTextBox-->
    <Style x:Key="AppointmentSubjectTextBox" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}"
         >
        <Setter Property="BorderThickness" Value="0" />
        
        
        <Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
        <Setter Property="VerticalScrollBarVisibility" Value="Disabled" />
        
        <Setter Property="Background" Value="{StaticResource AppointmentSubjectTextBoxBackground}" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="Template">
            <Setter.Value>
                
                <ControlTemplate TargetType="TextBoxBase">
                    <Border Background="{TemplateBinding Panel.Background}" 
                            BorderBrush="{TemplateBinding Border.BorderBrush}" 
                            BorderThickness="{TemplateBinding Border.BorderThickness}" 
                          SnapsToDevicePixels="True">
                        <ScrollViewer Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
                    </Border>
                    
                    
                    </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DeleteButtonTemplate-->
    <ControlTemplate x:Key="DeleteButtonTemplate" TargetType="Button">
        <Grid Width="10" Height="10">
            <Border x:Name="CloseButton" BorderBrush="{TemplateBinding BorderBrush}" 
					BorderThickness="1" CornerRadius="1"
					Background="{TemplateBinding Background}" VerticalAlignment="Center"
			    

                 SnapsToDevicePixels="True"
                
                >
                <Path Fill="{StaticResource DeleteButtonIcon}"
					Stretch="Fill"
					Margin="1" Data="M4,4 L5,4 5,5 4,5 z M0,4 L1,4 1,5 0,5 z M3,3 L4,3 4,4 3,4 z M1,3 L2,3 2,4 1,4 z M2,2 L3,2 3,3 2,3 z M4,0 L5,0 5,1 4,1 4,2 3,2 3,0.99999994 4,0.99999994 z M0,0 L1,0 1,0.99999994 2,0.99999994 2,2 1,2 1,1 0,1 z"/>
            </Border>
            
        </Grid>
        
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="CloseButton" Property="Background" Value="{StaticResource DeleteButton_Over}" />
                <Setter TargetName="CloseButton" Property="BorderBrush" Value="{StaticResource DeleteButtonBorder_Over}" />
            </Trigger>
            <Trigger Property="IsFocused" Value="True"/>
            <Trigger Property="IsDefaulted" Value="True"/>
            <Trigger Property="IsPressed" Value="True"/>
            <Trigger Property="IsEnabled" Value="False"/>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <!--DeleteButtonStyle-->
    <Style x:Key="DeleteButtonStyle" TargetType="Button">
        <Setter Property="BorderBrush" Value="{StaticResource DeleteButtonBorder}" />
        <Setter Property="Background" Value="{StaticResource DeleteButton}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Template" Value="{StaticResource DeleteButtonTemplate}" />
    </Style>

    <Style x:Key="chromeAppointmentStyle" TargetType="telerikScheduler:ChromeControl">
        <Setter Property="BorderBrush" Value="{StaticResource DayViewAppointmentItemBorderBrush}" />
        <Setter Property="BorderThickness" Value="1" />
        
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="ClipToBounds" Value="True" />
        
        

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:ChromeControl">
                    <Grid>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"
								x:Name="border2" />

                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"
								Visibility="Collapsed" />

                        <ContentPresenter />
                        
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick"
									Command="telerikScheduler:RadSchedulerCommands.EditAppointment" />
                        </Grid.InputBindings>
                        

                        
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" TargetName="border"
									Value="{Binding Path=MouseOverBackground, RelativeSource={RelativeSource AncestorType={x:Type telerikScheduler:ChromeControl}}}" />
                            <Setter Property="Visibility" TargetName="border" Value="Visible" />

                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Visibility" TargetName="border" Value="Visible" />
                            <Setter Property="Background" TargetName="border"
									Value="{Binding Path=SelectedBackground, RelativeSource={RelativeSource AncestorType={x:Type telerikScheduler:ChromeControl}}}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--chromeMonthAppointmentStyle-->
    <Style  x:Key="chromeMonthAppointmentStyle"  TargetType="telerikScheduler:ChromeControl">

        <Setter Property="BorderBrush" Value="{StaticResource MonthViewAppointmentItemBorderBrush}" />
        <Setter Property="BorderThickness" Value="1" />
        
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="ClipToBounds" Value="True" />
        
        

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:ChromeControl">
                    <Grid>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"
								x:Name="border2" />

                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"
								Visibility="Collapsed" />

                        <ContentPresenter />
                        
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick"
									Command="telerikScheduler:RadSchedulerCommands.EditAppointment" />
                        </Grid.InputBindings>
                        

                        
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" TargetName="border"
									Value="{Binding Path=MouseOverBackground, RelativeSource={RelativeSource AncestorType={x:Type telerikScheduler:ChromeControl}}}" />
                            <Setter Property="Visibility" TargetName="border" Value="Visible" />

                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Visibility" TargetName="border" Value="Visible" />
                            <Setter Property="Background" TargetName="border"
									Value="{Binding Path=SelectedBackground, RelativeSource={RelativeSource AncestorType={x:Type telerikScheduler:ChromeControl}}}" />
                        </Trigger>

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

    <!--AppointmentTemplate-->
    <DataTemplate x:Key="AppointmentTemplate">
        <Grid Background="Transparent" >
            <ToolTipService.ToolTip>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
					<TextBlock  Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Path=Occurrence.Appointment, Converter={StaticResource TooltipConverter},Mode=OneTime}"/>
                    <StackPanel  Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Visibility="{Binding Occurrence.Appointment.Importance, Converter={StaticResource ImportanceToVisibilityConverter},ConverterParameter=High}" Margin="5,0,0,0" >
                        <Path Stretch="Fill" Height="10" HorizontalAlignment="Center"  VerticalAlignment="Top" Width="5.451"  Data="M200.39647,58.840393 C200.39337,58.336426 201.14566,57.683922 202.56244,57.684292 C204.06589,57.684685 204.73764,58.357765 204.72783,58.992363 C205.04649,61.795574 203.04713,64.181099 202.47388,66.133446 C201.93753,64.154961 199.9471,61.560352 200.39647,58.840393 z">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                    <GradientStop Color="#FFFF0606" Offset="0.609"/>
                                    <GradientStop Color="#FFBF0303" Offset="0.927"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Ellipse Height="3" HorizontalAlignment="Center" Margin="0,-1,0,0"  VerticalAlignment="Top" Width="3" >
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFF0606" Offset="0"/>
                                    <GradientStop Color="#FFBF0303" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                    </StackPanel>
                    <Path Stretch="Fill" Grid.Column="1" Height="12" VerticalAlignment="Center" HorizontalAlignment="Right" Visibility="{Binding Occurrence.Appointment.Importance, Converter={StaticResource ImportanceToVisibilityConverter},ConverterParameter=Low}"  Width="9" Data="M222.40353,60.139881 L226.65768,60.139843 L226.63687,67.240196 L229.15347,67.240196 L224.37816,71.394943 L219.65274,67.240196 L222.37572,67.219345 z" Stroke="#FF0365A7">
                        <Path.Fill>
                            <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                <GradientStop Color="#FFBBE4FF"/>
                                <GradientStop Color="#FF024572" Offset="0.836"/>
                                <GradientStop Color="#FF43ADF4" Offset="0.466"/>
                            </LinearGradientBrush>
                        </Path.Fill>
                    </Path>
                </Grid>
            </ToolTipService.ToolTip>

            <TextBox x:Name="PART_SubjectTextBox"  
                     HorizontalAlignment="Stretch" Style="{StaticResource AppointmentSubjectTextBox}" 
                    VerticalAlignment="Top"
                    IsHitTestVisible="False" 
						  Text="{Binding Occurrence.Appointment.Subject, Mode=TwoWay}"
                    Foreground="{StaticResource AppointmentTextBrush}" TextWrapping="Wrap"
                    
                 Margin="0 -1 18 0"
                 />
        </Grid>
    </DataTemplate>

    <!--AppointmentItemTemplate-->
    <ControlTemplate x:Key="AppointmentItemTemplate" TargetType="telerikScheduler:AppointmentItem">
        <Grid>
            
            <theme:SystemDropShadowChrome CornerRadius="1" Color="#66000000" Margin="-8 -6 2 2" IsHitTestVisible="False"/>
            


            <Border 
				x:Name="outMostBorder"
				Margin="0"
				BorderThickness="1"
				CornerRadius="3"
				BorderBrush="{TemplateBinding BorderBrush}"
				
                
                SnapsToDevicePixels="True"
                 >

                <telerikScheduler:ChromeControl
					Cursor="Hand" BorderBrush="{TemplateBinding BorderBrush}"
					Style="{StaticResource chromeAppointmentStyle}"
					MouseOverBackground="{TemplateBinding MouseOverBackground}"
					IsSelected="{TemplateBinding IsSelected}"
					SelectedBackground="{TemplateBinding SelectedBackground}"
					Background="{TemplateBinding Background}"
					
                    ClipToBounds="True"
                    
                     >

                    <Grid>

                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <telerikScheduler:AppointmentSlotPresenter
							Margin="1 0 0 0" Grid.Column="1"/>

                        <Image
							x:Name="recurrenceMark"
							Grid.Column="1"
							Margin="2 2 14 2"
							Visibility="Collapsed"
							Width="10" Height="10"
							HorizontalAlignment="Right" VerticalAlignment="Top"
							
                            Source="{StaticResource reccurrImage}"
                            
                             >
                        </Image>

                        <telerik:RadButton
							x:Name="PART_DeleteButton"
							Grid.Column="1"
							Margin="1"
							Style="{StaticResource RadScheduler_Appointment_DeleteButton}"
							HorizontalAlignment="Right" VerticalAlignment="Top"
							Visibility="Collapsed"
                            Content="{TemplateBinding Content}" 
                            Opacity="{Binding Scheduler.IsReadOnly,Converter={StaticResource InvertedBooleanToOpacityConverter}, RelativeSource={RelativeSource TemplatedParent}}"
							
							Command="telerikScheduler:RadSchedulerCommands.DeleteAppointment"
							CommandParameter="{Binding Path=Occurrence,Mode=OneTime}" />

                        <Rectangle
							x:Name="PART_TimeMarker"
							Grid.Column="0"
							HorizontalAlignment="Left"
							Fill="{Binding Path=Occurrence.Appointment.TimeMarker.TimeMarkerBrush,Mode=OneTime}"
							Width="3" />

                        <Rectangle
							x:Name="PART_ResizeEnd"
							Grid.Column="1"
							Fill="Transparent"
							Height="6"
							VerticalAlignment="Bottom"
							Cursor="SizeNS"/>

                        <Rectangle
							x:Name="PART_ResizeStart"
							Grid.Column="1"
							Fill="Transparent"
							Height="6"
							VerticalAlignment="Top"
							Cursor="SizeNS"/>
                    </Grid>

                </telerikScheduler:ChromeControl>
            </Border>

            
        </Grid>
        
        <ControlTemplate.Triggers>
            <Trigger Property="UIElement.IsMouseOver" Value="True">
                <Setter  TargetName="PART_DeleteButton" Property="Visibility" Value="Visible" />
            </Trigger>
            <Trigger Property="Selector.IsSelected" Value="True">
                <Setter Property="BorderBrush" Value="{StaticResource SelectedAppointmentItemBorderBrush}" />
            </Trigger>
			<DataTrigger Binding="{Binding Path=Occurrence.State,Mode=OneTime}" Value="Occurrence">
                <Setter TargetName="recurrenceMark" Property="Visibility" Value="Visible" />
            </DataTrigger>
			<DataTrigger Binding="{Binding Path=Occurrence.State,Mode=OneTime}" Value="Exception">
                <Setter TargetName="recurrenceMark" Property="Visibility" Value="Visible" />
                <Setter TargetName="recurrenceMark" Property="Source" Value="{StaticResource reccurrImageException}" />
            </DataTrigger>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>


    <ControlTemplate x:Key="MonthAppointmentItemTemplate" TargetType="telerikScheduler:AppointmentItem">
        <Grid>
            
            <theme:SystemDropShadowChrome CornerRadius="1" Color="#66000000" Margin="-8 -1 2 1" IsHitTestVisible="False"/>
            


            <Border 
				x:Name="outMostBorder"
				Margin="0"
				BorderThickness="1"
				CornerRadius="3"
				BorderBrush="{TemplateBinding BorderBrush}"
				
                
                SnapsToDevicePixels="True"
                 >

                <telerikScheduler:ChromeControl
					Cursor="Hand"
					Style="{StaticResource chromeAppointmentStyle}"
					MouseOverBackground="{TemplateBinding MouseOverBackground}"
					IsSelected="{TemplateBinding IsSelected}"
					SelectedBackground="{TemplateBinding SelectedBackground}"
					Background="{TemplateBinding Background}"
					
                    ClipToBounds="True"
                    
                     >

                    <Grid>

                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <telerikScheduler:AppointmentSlotPresenter
							Margin="1 0 0 0" Grid.Column="1"/>

                        <Image
							x:Name="recurrenceMark"
							Margin="2 2 14 2"
							Grid.Column="1"
							Visibility="Collapsed"
							Width="10" Height="10"
							HorizontalAlignment="Right" VerticalAlignment="Top"
							
                            Source="{StaticResource reccurrImage}"
                            
                             >
                        </Image>

                        <telerik:RadButton
							x:Name="PART_DeleteButton"
							Margin="1"
							Grid.Column="1"
							Style="{StaticResource RadScheduler_Appointment_DeleteButton}"
							HorizontalAlignment="Right" VerticalAlignment="Top"
							Visibility="Collapsed"
                       
						    Content="{TemplateBinding Content}"
                            Opacity="{Binding Scheduler.IsReadOnly,Converter={StaticResource InvertedBooleanToOpacityConverter}, RelativeSource={RelativeSource TemplatedParent}}"
							Command="telerikScheduler:RadSchedulerCommands.DeleteAppointment"
							CommandParameter="{Binding Path=Occurrence,Mode=OneTime}" />

                        <Rectangle
							x:Name="PART_TimeMarker"
							Grid.Column="0"
							HorizontalAlignment="Left"
							Fill="{Binding Path=Occurrence.Appointment.TimeMarker.TimeMarkerBrush,Mode=OneTime}"
							Width="3" />

                        <Rectangle
							x:Name="PART_ResizeEnd"
							Grid.ColumnSpan="2"
							Fill="Transparent"
							Width="6"
							HorizontalAlignment="Right"
							Cursor="SizeWE"/>

                        <Rectangle
							x:Name="PART_ResizeStart"
							Grid.ColumnSpan="2"
							Fill="Transparent"
							Width="6"
							HorizontalAlignment="Left"
							Cursor="SizeWE"/>
                    </Grid>

                </telerikScheduler:ChromeControl>
            </Border>

            
        </Grid>
        
        <ControlTemplate.Triggers>
            <Trigger Property="UIElement.IsMouseOver" Value="True">
                <Setter  TargetName="PART_DeleteButton" Property="Visibility" Value="Visible" />
            </Trigger>
            <Trigger Property="Selector.IsSelected" Value="True">
                <Setter Property="BorderBrush" Value="{StaticResource SelectedAppointmentItemBorderBrush}" />
            </Trigger>
            <Trigger Property="UIElement.IsEnabled" Value="False">
                <Setter Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
            </Trigger>
			<DataTrigger Binding="{Binding Path=Occurrence.State,Mode=OneTime}" Value="Occurrence">
                <Setter TargetName="recurrenceMark" Property="Visibility" Value="Visible" />
            </DataTrigger>
			<DataTrigger Binding="{Binding Path=Occurrence.State,Mode=OneTime}" Value="Exception">
                <Setter TargetName="recurrenceMark" Property="Visibility" Value="Visible" />
                <Setter TargetName="recurrenceMark" Property="Source" Value="{StaticResource reccurrImageException}" />
            </DataTrigger>
        </ControlTemplate.Triggers>
        
    </ControlTemplate>

    <!--AllDayAppointmentItemStyle-->
    <Style x:Key="AllDayAppointmentItemStyle" TargetType="telerikScheduler:AppointmentItem">
        
        <Setter Property="AllowDrop" Value="True" />
        <Setter Property="Border.CornerRadius" Value="3" />
        <Setter Property="SnapsToDevicePixels" Value="True" />
        

        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Template" Value="{StaticResource MonthAppointmentItemTemplate}" />
        <Setter Property="MouseOverBackground" Value="{StaticResource MouseOverAppointmentItemBackgroundBrush}"/>
        <Setter Property="SelectedBackground" Value="{StaticResource SelectedAppointmentItemBackgroundBrush}"/>
        <Setter Property="Background" Value="{StaticResource AppointementBackground}" />
        <Setter Property="BorderBrush" Value="{StaticResource AppointementBorderBrush}" />
        <Setter Property="Height" Value="19" />
        <Setter Property="Margin" Value="3 2 3 0" />
    </Style>

    <!--MonthAppointmentItemStyle-->
    <Style x:Key="MonthAppointmentItemStyle" TargetType="telerikScheduler:AppointmentItem">
        
        <Setter Property="AllowDrop" Value="True" />
        <Setter Property="Border.CornerRadius" Value="3" />
        <Setter Property="SnapsToDevicePixels" Value="True" />
        

        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Template" Value="{StaticResource MonthAppointmentItemTemplate}" />
        <Setter Property="MouseOverBackground" Value="{StaticResource MouseOverAppointmentItemBackgroundBrush}"/>
        <Setter Property="SelectedBackground" Value="{StaticResource SelectedAppointmentItemBackgroundBrush}"/>
        <Setter Property="Background" Value="{StaticResource AppointementBackground}" />
        <Setter Property="BorderBrush" Value="{StaticResource AppointementBorderBrush}" />
        <Setter Property="Height" Value="19" />
        <Setter Property="Margin" Value="3 2" />
    </Style>

    <!--AppointmentItemStyle-->
    <Style x:Key="AppointmentItemStyle" TargetType="telerikScheduler:AppointmentItem">
        
        <Setter Property="AllowDrop" Value="True" />
        <Setter Property="Border.CornerRadius" Value="3" />
        
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Template" Value="{StaticResource AppointmentItemTemplate}" />
        <Setter Property="Background" Value="{StaticResource AppointementBackground}" />
        <Setter Property="MouseOverBackground" Value="{StaticResource MouseOverAppointmentItemBackgroundBrush}"/>
        <Setter Property="SelectedBackground" Value="{StaticResource SelectedAppointmentItemBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource AppointementBorderBrush}" />
        <Setter Property="Margin" Value="2 1 2 1" />
    </Style>

    <!--ViewModeButtonStyle-->
    <Style x:Key="ViewModeButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Padding" Value="{StaticResource RadScheduler_ViewModeButton_Padding}" />
        <Setter Property="Foreground" Value="{StaticResource RadScheduler_ViewModeButton_Foreground_Normal}" />
        <Setter Property="Margin" Value="{StaticResource RadScheduler_ViewModeButton_Margin}" />

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

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        

                        <Border
							x:Name="OuterBorder"
							CornerRadius="{StaticResource RadScheduler_ViewModeButton_OuterBorderCornerRadius}"
							BorderThickness="{StaticResource RadScheduler_ViewModeButton_OuterBorderThikness}"
							BorderBrush="{StaticResource RadScheduler_ViewModeButton_OuterBorderBrush_Normal}"
							Background="{StaticResource RadScheduler_ViewModeButton_Background_Normal}">

                            <Border
								x:Name="InnerBorder"
								CornerRadius="{StaticResource RadScheduler_ViewModeButton_OuterBorderCornerRadius}"
								BorderThickness="{StaticResource RadScheduler_ViewModeButton_InnerBorderThikness}"
								BorderBrush="{StaticResource RadScheduler_ViewModeButton_InnerBorderBrush_Normal}">
                            </Border>
                        </Border>

                        
                        
                        <Label
							x:Name="Content"
							Margin="{StaticResource RadScheduler_ViewModeButton_ContentMargin}"
							Padding="{TemplateBinding Padding}"
							Content="{TemplateBinding Content}"
							FontStretch="{TemplateBinding FontStretch}"
							FontStyle="{TemplateBinding FontStyle}"
							FontWeight="{TemplateBinding FontWeight}"
							Foreground="{TemplateBinding Foreground}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							Style="{StaticResource RadScheduler_ViewModeButton_ContentStyle}"/>
                        
                    </Grid>

                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource RadScheduler_ViewModeButton_OuterBorderBrush_MouseOver}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource RadScheduler_ViewModeButton_InnerBorderBrush_MouseOver}" />
                            <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource RadScheduler_ViewModeButton_Background_MouseOver}" />
                            <Setter TargetName="Content" Property="Foreground" Value="{StaticResource RadScheduler_ViewModeButton_Foreground_MouseOver}" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource RadScheduler_ViewModeButton_OuterBorderBrush_Pressed}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource RadScheduler_ViewModeButton_InnerBorderBrush_Pressed}" />
                            <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource RadScheduler_ViewModeButton_Background_Pressed}" />
                            <Setter TargetName="Content" Property="Foreground" Value="{StaticResource RadScheduler_ViewModeButton_Foreground_Pressed}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource RadScheduler_ViewModeButton_OuterBorderBrush_Disabled}" />
                            <Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource RadScheduler_ViewModeButton_InnerBorderBrush_Disabled}" />
                            <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource RadScheduler_ViewModeButton_Background_Disabled}" />
                            <Setter TargetName="Content" Property="Foreground" Value="{StaticResource RadScheduler_ViewModeButton_Foreground_Disabled}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--VerticalSchedulerScrollBarTemplate-->
    <ControlTemplate x:Key="VerticalSchedulerScrollBarTemplate" TargetType="telerikScheduler:SchedulerScrollBar">
        <ScrollBar x:Name="PART_ScrollBar" telerik:StyleManager.Theme="{StaticResource Theme}"
           Width="16" Orientation="Vertical" />
    </ControlTemplate>

    <!--HorizontalSchedulerScrollBarTemplate-->
    <ControlTemplate x:Key="HorizontalSchedulerScrollBarTemplate" TargetType="telerikScheduler:SchedulerScrollBar">
        <ScrollBar x:Name="PART_ScrollBar" telerik:StyleManager.Theme="{StaticResource Theme}"
             Width="16" 
            Orientation="Horizontal" />
    </ControlTemplate>

    <!--AllDaysAppointmentsControlTemplate-->
    <ControlTemplate x:Key="AllDaysAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Grid>
            <telerikScheduler:TimeSlotItemsControl
				x:Name="PART_TimeSlotItemsControl"
				ItemContainerStyle="{StaticResource AllDayStyle}">

                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikPrimitives:RadUniformGrid
                            Rows="{Binding Path=ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}"
                            
                            
                            SnapsToDevicePixels="True"
                             >
                        </telerikPrimitives:RadUniformGrid>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
            </telerikScheduler:TimeSlotItemsControl>

            <telerikScheduler:AppointmentItemsControl
				x:Name="PART_AppointmentItemsControl"
				ItemContainerStyle="{StaticResource AllDayAppointmentItemStyle}" >

                <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikScheduler:AppointmentPanel
							Orientation="Vertical" 
							MinHeight="{Binding Path=Scheduler.AllDayAreaHeight, RelativeSource={RelativeSource TemplatedParent}}" 
							AppointmentsRightPadding="5" />
                    </ItemsPanelTemplate>
                </telerikScheduler:AppointmentItemsControl.ItemsPanel>
            </telerikScheduler:AppointmentItemsControl>
        </Grid>
    </ControlTemplate>

    <!--TimelineAppointmentsControlTemplate-->
    <ControlTemplate x:Key="TimelineAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Grid>

            <telerikScheduler:TimeSlotItemsControl
				x:Name="PART_TimeSlotItemsControl"
				HorizontalAlignment="Stretch"  
                ItemContainerStyle="{StaticResource TimelineDayStyle}">

                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikPrimitives:RadUniformGrid Rows="{Binding Path=ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}"/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>

            </telerikScheduler:TimeSlotItemsControl>

            <telerikScheduler:AppointmentItemsControl
				x:Name="PART_AppointmentItemsControl"
				ItemContainerStyle="{StaticResource MonthAppointmentItemStyle}" >

                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate >
                        <telerikScheduler:VirtualizedAppointmentPanel Orientation="Vertical" AppointmentsRightPadding="5" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>

            </telerikScheduler:AppointmentItemsControl>

        </Grid>
    </ControlTemplate>

    <!--NotAllDaysAppointmentsControlTemplate-->
    <ControlTemplate x:Key="NotAllDaysAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Border
			x:Name="Root"
			Style="{StaticResource RadScheduler_View_BorderStyle_BottomPart}"
			
            SnapsToDevicePixels="True"
            
             >

            <Grid>
                <Border 
					Opacity="0.15"
					Background="{Binding ResourceStyleMapping.ResourceBrush}" />

                <telerikScheduler:TimeSlotItemsControl
					x:Name="PART_TimeSlotItemsControl" 
					Margin="0 0 -1 -1"
					ItemContainerStyle="{StaticResource OneWeekDayStyle}">

                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimitives:RadUniformGrid
								ChildrenFlow="Vertical"
								Columns="{Binding Path=ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}"
								
                                SnapsToDevicePixels="True"
                                
                                 />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </telerikScheduler:TimeSlotItemsControl>
                <telerikScheduler:AppointmentItemsControl
					x:Name="PART_AppointmentItemsControl" 
					Margin="0 0 -1 -1"
					ItemContainerStyle="{StaticResource AppointmentItemStyle}">

                    <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikScheduler:VirtualizedAppointmentPanel Orientation="Horizontal" AppointmentsRightPadding="5" />
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentItemsControl.ItemsPanel>
                </telerikScheduler:AppointmentItemsControl>
            </Grid>
        </Border>
    </ControlTemplate>

    <!--MonthAppointmentsControlTemplate-->
    <ControlTemplate x:Key="MonthAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Grid Background="{TemplateBinding Background}">
            <telerikScheduler:TimeSlotItemsControl
				x:Name="PART_TimeSlotItemsControl"
				ItemContainerStyle="{StaticResource MonthDayStyle}">

                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        
                        <telerikPrimitives:RadUniformGrid Rows="{Binding Path=ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}" SnapsToDevicePixels="True"/>
                        
                        
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
            </telerikScheduler:TimeSlotItemsControl>


            <telerikScheduler:AppointmentItemsControl
				x:Name="PART_AppointmentItemsControl"
				ItemContainerStyle="{StaticResource MonthAppointmentItemStyle}">

                <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikScheduler:VirtualizedAppointmentPanel />
                    </ItemsPanelTemplate>
                </telerikScheduler:AppointmentItemsControl.ItemsPanel>
            </telerikScheduler:AppointmentItemsControl>
        </Grid>
    </ControlTemplate>

    <!--MonthAppointmentsControl-->
    <Style TargetType="telerikScheduler:AppointmentsControl" x:Key="MonthAppointmentsControl">
        <Setter Property="Template" Value="{StaticResource MonthAppointmentsControlTemplate}" />
    </Style>

    <!--NotAllDayAppointmentsControl-->
    <Style TargetType="telerikScheduler:AppointmentsControl" x:Key="NotAllDayAppointmentsControl">
        <Setter Property="Template" Value="{StaticResource NotAllDaysAppointmentsControlTemplate}" />
    </Style>

    <!--AllDayAppointmentsControl-->
    <Style TargetType="telerikScheduler:AppointmentsControl" x:Key="AllDayAppointmentsControl">
        <Setter Property="Template" Value="{StaticResource AllDaysAppointmentsControlTemplate}" />
    </Style>

    <!--TimelineAppointmentsControl-->
    <Style TargetType="telerikScheduler:AppointmentsControl" x:Key="TimelineAppointmentsControl">
        <Setter Property="Template" Value="{StaticResource TimelineAppointmentsControlTemplate}" />
    </Style>

    <!--NavigationHeaderStyle-->
    <Style TargetType="Border" x:Key="NavigationHeaderStyle">
        <Setter Property="Padding" Value="23 0 0 0" />
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="BorderBrush" Value="{StaticResource RadScheduler_BorderBrush}" />
        <Setter Property="BorderThickness" Value="0 0 0 1" />
    </Style>

    <!--TimeRulerItemControlTemplate-->
    <ControlTemplate x:Key="TimeRulerItemControlTemplate" TargetType="telerikScheduler:TimeRulerItem">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition
					MinWidth="20"
					
                    SharedSizeGroup="Minutes"
                     />
            </Grid.ColumnDefinitions>

            <Border x:Name="MainMark" Style="{StaticResource RadScheduler_TimeRuler_Mark_Primary}" Grid.ColumnSpan="2"/>

            <TextBlock
				Grid.ColumnSpan="2" 
				Style="{StaticResource RadScheduler_TimeRuler_TextBlockStyle}"
                Text="{TemplateBinding TimeIndicator}">
            </TextBlock>

            <ItemsControl
				x:Name="IntervalMarkersList"
				Grid.Column="1"
				ItemsSource="{TemplateBinding TimeSlots}">

                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Border x:Name="SecondaryMark" Style="{StaticResource RadScheduler_TimeRuler_Mark_Secondary}" />
                    </DataTemplate>
                </ItemsControl.ItemTemplate>

                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikPrimitives:RadUniformGrid
                            Columns="1"
                            
                            SnapsToDevicePixels="True"
                            
                             />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>

            </ItemsControl>
        </Grid>
    </ControlTemplate>

    <!--MonthAppointmentsControlsContainerItemContainerStyle-->
    <Style x:Key="MonthAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template" >
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <Border
						x:Name="Root"
						Style="{StaticResource RadScheduler_View_BorderStyle}"
						
                        SnapsToDevicePixels="True"
                        
                         >
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>

                            <Border
								x:Name="ResourceStyleBackground"
								Grid.ColumnSpan="2" Grid.RowSpan="3"
								Background="{Binding ResourceStyleMapping.ResourceBrush,Mode=OneTime}"
								Opacity="0.15" />

                            <Rectangle
								x:Name="WeekHeadersBackground"
								Grid.Row="2" Grid.Column="0"
								Fill="{StaticResource RadScheduler_MonthView_HeadersBackgroundBrush}"
								
                                Panel.ZIndex="-5"
                                 />
                                <Rectangle
								x:Name="DayHeadersBackground"
								Grid.Column="1" Grid.Row="1"
								Fill="{StaticResource RadScheduler_MonthView_HeadersBackgroundBrush}"
								
                                    Panel.ZIndex="-5"
                                     />

                                    <Rectangle
								x:Name="HeadersCrossing"
								Grid.Row="1" Grid.Column="0"
								Style="{StaticResource RadScheduler_MonthView_HeadersCrossingStyle}"
								Fill="{StaticResource RadScheduler_MonthView_HeadersBackgroundBrush}"
								
                                        Panel.ZIndex="-5"
                                         />

                                        <Border
								Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"
								Background="{Binding ResourceStyleMapping.ResourceBrush,Mode=OneTime}">
											<scheduler:ResourceHeaderControl Content="{Binding Resource,Mode=OneTime}" Grid.Row="0" Grid.Column="1" Visibility="{Binding ShowHeaders,RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                                <scheduler:ResourceHeaderControl.ContentTemplate>
                                                    <DataTemplate>
														<TextBlock Text="{Binding DisplayName,Mode=OneTime}" Height="22" Padding="34,0,1,0" />
                                                    </DataTemplate>
                                                </scheduler:ResourceHeaderControl.ContentTemplate>
                                            </scheduler:ResourceHeaderControl>
                                        </Border>

                                        <ItemsControl 
								x:Name="WeekHeaders"
								Grid.Row="2" Grid.Column="0"
								Margin="0 0 0 -1"
								DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlots}"
								ItemTemplate="{StaticResource MonthWeekHeaderTemplate}"
								ItemsSource="{Binding Groups,Mode=OneTime}"
								Style="{StaticResource RadScheduler_MonthView_WeekHeadersStyle}">

                                            <ItemsControl.ItemsPanel>
                                                <ItemsPanelTemplate>
                                                    <telerikPrimitives:RadUniformGrid
											Columns="1"
											
                                                        SnapsToDevicePixels="True"
                                                        
                                                         />
                                                </ItemsPanelTemplate>
                                            </ItemsControl.ItemsPanel>
                                        </ItemsControl>

                                        <ItemsControl
								x:Name="DayHeaders"
								Grid.Column="1" Grid.Row="1"
								Margin="0 0 -1 0"
								DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlots}"
								ItemTemplate="{StaticResource MonthDayHeaderTemplate}"
								ItemsSource="{Binding FirstGroupItems,Mode=OneTime}"
								Style="{StaticResource RadScheduler_MonthView_DayHeadersStyle}">

                                            <ItemsControl.ItemsPanel>
                                                <ItemsPanelTemplate>
                                                    <telerikPrimitives:RadUniformGrid
											Rows="1"
											
                                                        SnapsToDevicePixels="True"
                                                        
                                                         />
                                                </ItemsPanelTemplate>
                                            </ItemsControl.ItemsPanel>
                                        </ItemsControl>

                                        <telerikScheduler:AppointmentsControl
								x:Name="MonthAppointmentsControl"
								Grid.Row="2" Grid.Column="1"
								Margin="0 0 -1 -1"
								Style="{StaticResource MonthAppointmentsControl}"
                                TimeSlots="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlots}"
								Appointments="{Binding Appointments,Mode=OneTime}">
                                        </telerikScheduler:AppointmentsControl>

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

    <!--NotAllDayAppointmentsControlsContainerItemContainerStyle-->
    <Style x:Key="NotAllDayAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template" >
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <telerikScheduler:AppointmentsControl
						x:Name="NotAllDayAppointmentsControl"
                        Style="{StaticResource NotAllDayAppointmentsControl}"  
                        TimeSlots="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlots}"
                        Appointments="{Binding Appointments.NotAllDayAppointmentsView}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TimelineAppointmentsControlsContainerItemContainerStyle-->
    <Style x:Key="TimelineAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template" >
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <Border x:Name="Root" Style="{StaticResource RadScheduler_View_BorderStyle_Vertical}">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>

                            <Border
								x:Name="ResourceBackground"
								Grid.Column="0"
								Width="59"
								HorizontalAlignment="Stretch" 
								Background="{Binding ResourceStyleMapping.ResourceBrush,Mode=OneTime}"
								Visibility="{Binding ShowHeaders,RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}">

								<scheduler:ResourceHeaderControl Content="{Binding Resource,Mode=OneTime}" HorizontalContentAlignment="Center"  VerticalContentAlignment="Center" >
                                    <scheduler:ResourceHeaderControl.ContentTemplate>
                                        <DataTemplate>
											<TextBlock Text="{Binding DisplayName,Mode=OneTime}"  TextWrapping="Wrap"
                              HorizontalAlignment="Center" VerticalAlignment="Center" 
                              
                               TextAlignment="Center" />

                                        </DataTemplate>
                                    </scheduler:ResourceHeaderControl.ContentTemplate>
                                </scheduler:ResourceHeaderControl>

                            </Border>

                            <Border
								x:Name="AppointmentsResourceBackground"
								Grid.Column="1"
								Opacity="0.15"
								Background="{Binding ResourceStyleMapping.ResourceBrush,Mode=OneTime}" />

                            <telerikScheduler:AppointmentsControl
								x:Name="Appointments"
								Grid.Column="1"
								Margin="0 0 0 -1"
								Style="{StaticResource TimelineAppointmentsControl}" 
                                TimeSlots="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlots}"
								Appointments="{Binding Appointments,Mode=OneTime}" />

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

    <!--AllDayAppointmentsControlsContainerItemContainerStyle-->
    <Style x:Key="AllDayAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template" >

            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">

                    <Border
						x:Name="Root"
						Style="{StaticResource RadScheduler_View_BorderStyle_TopPart}"
						
                        SnapsToDevicePixels="True"
                        
                         >

                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <Border
								x:Name="ResourceStyleBackground"
								Grid.RowSpan="3"
								Background="{Binding ResourceStyleMapping.ResourceBrush}"
								Opacity="0.15" />

							<Border Grid.Row="0" Background="{Binding ResourceStyleMapping.ResourceBrush,Mode=OneTime}" Visibility="{Binding ShowHeaders, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}">
								<scheduler:ResourceHeaderControl Content="{Binding Resource,Mode=OneTime}">
                                    <scheduler:ResourceHeaderControl.ContentTemplate>
                                        <DataTemplate>
											<TextBlock Text="{Binding DisplayName,Mode=OneTime}" Padding="22,3,0,0" Height="20" Margin="10,0,0,0" />
                                        </DataTemplate>
                                    </scheduler:ResourceHeaderControl.ContentTemplate>
                                </scheduler:ResourceHeaderControl>
                            </Border>

                            <ItemsControl
								x:Name="DayHeaderList"
								Grid.Row="1"
								Margin="0 0 -1 0"
								ItemsSource="{Binding TimeSlots.Groups, RelativeSource={RelativeSource TemplatedParent}}"
								ItemTemplate="{StaticResource DayHeaderListItemTemplate}"  
								
                                Focusable="False"
                                 >

                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerikPrimitives:RadUniformGrid
											Rows="1"
											
                                            SnapsToDevicePixels="True"
                                            
                                             />
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                            </ItemsControl>

                            <ScrollViewer
								x:Name="PART_AllDayScrollViewer"
								Grid.Row="2" Margin="-1 0 -1 0"
								VerticalScrollBarVisibility="Hidden" 
								telerik:StyleManager.Theme="{StaticResource Theme}"
								 >


                                <telerikScheduler:AppointmentsControl
									x:Name="AllDayAppointmentsControl" Margin="1 0 0 0"
									Style="{StaticResource AllDayAppointmentsControl}"  
                                    TimeSlots="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=AllDayTimeSlots}"
									Appointments="{Binding Appointments.AllDayAppointmentsView,Mode=OneTime}" />

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

    <!--DayTemplate-->

    <ControlTemplate x:Key="DayTemplate" TargetType="telerikScheduler:SchedulerPresenter">

        <Grid x:Name="Root">
            <Grid.RowDefinitions>
                <RowDefinition x:Name="AllDayAppointmentsRow" Height="Auto" />
                <RowDefinition x:Name="AppointmentsRow" Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition x:Name="TimeRulerColumn" Width="Auto" />
                <ColumnDefinition x:Name="AppointmentsColumn" Width="*" />
                <ColumnDefinition x:Name="ScrollBarColumn" Width="16" />
            </Grid.ColumnDefinitions>

            <Border x:Name="AboveTimeRulerBorder" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" 
                Style="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Scheduler.TimeRulerHostStyle}" />

            <!-- Appointments -->
            <ScrollViewer
				x:Name="scrollViewer"
				Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
				telerik:StyleManager.Theme="{StaticResource Theme}"
				HorizontalScrollBarVisibility="Disabled"
				 >


                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Border Width="75"
						x:Name="TimeRulerBorder"
						Grid.Row="1" Grid.Column="0"
						Margin="0 0 -1 3">

                        <telerikScheduler:TimeRuler ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlotsView.GroupedFirstGroupItems}">
                            <telerikScheduler:TimeRuler.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <telerikPrimitives:RadUniformGrid
										Columns="1"
										
                                        SnapsToDevicePixels="True"
                                        
                                         />
                                </ItemsPanelTemplate>
                            </telerikScheduler:TimeRuler.ItemsPanel>
                        </telerikScheduler:TimeRuler>
                    </Border>

                    <TextBlock
						x:Name="MonthName"
						Grid.Row="1" Grid.Column="1"
						Foreground="#7FD1DEEF"
						HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
						Margin="20 0 0 0"
						TextAlignment="Right" FontSize="192"
						>
						
						<TextBlock.Text>
							<MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
								<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="MonthViewDayHeaderMonthFormat" />
								<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="SelectedTimeSlot" />
							</MultiBinding>
						</TextBlock.Text>
						
                    </TextBlock>

                    <telerikScheduler:AppointmentsControlsContainer
						Grid.Row="1" Grid.Column="1"
						ItemContainerStyle="{StaticResource NotAllDayAppointmentsControlsContainerItemContainerStyle}"
						
                        Focusable="False"
						SnapsToDevicePixels="True"
                        
                         >

                        <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                            <ItemsPanelTemplate>
                                <telerikPrimitives:RadUniformGrid
									Rows="1"
									
                                    SnapsToDevicePixels="True"
                                    
                                     />
                            </ItemsPanelTemplate>
                        </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                    </telerikScheduler:AppointmentsControlsContainer>

                </Grid>
            </ScrollViewer>



            <!-- AllDayAppointments -->
            <telerikScheduler:AppointmentsControlsContainer
				x:Name="AllDayAppointments"
				Grid.Row="0" Grid.Column="1"
				IsTabStop="False"
				AttachedScrollBar="{Binding ElementName=AllDayAreaScrollBar}"
				ItemContainerStyle="{StaticResource AllDayAppointmentsControlsContainerItemContainerStyle}"
				
                Margin="0 0 0 -1"
				SnapsToDevicePixels="True"
				Focusable="False"
                
                 >

                <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikPrimitives:RadUniformGrid Rows="1" HorizontalAlignment="Stretch"/>
                    </ItemsPanelTemplate>
                </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
            </telerikScheduler:AppointmentsControlsContainer>

            <ScrollBar
				x:Name="AllDayAreaScrollBar"
				Grid.Row="0" Grid.Column="2"
				telerik:StyleManager.Theme="{StaticResource Theme}" />
        </Grid>
    </ControlTemplate>

    <!--MonthTemplate-->
    <ControlTemplate x:Key="MonthTemplate" TargetType="telerikScheduler:SchedulerPresenter">
        <Border BorderBrush="{TemplateBinding BorderBrush}" 
                BorderThickness="{TemplateBinding BorderThickness}">
            
            <Border.InputBindings>
                <MouseBinding Gesture="{StaticResource MouseWheelDownGesture}"  Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateSmall" />
                <MouseBinding Gesture="{StaticResource MouseWheelUpGesture}"  Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateSmall" />
            </Border.InputBindings>
            
            

            <Grid
                x:Name="monthViewGrid"
                
                Focusable="False"
                 >

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <TextBlock
					x:Name="MonthName"
					Foreground="#7FD1DEEF"
					HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
					Margin="20 0 0 0"
					TextAlignment="Right" FontSize="192"
					>
					
					<TextBlock.Text>
						<MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
							<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="MonthViewDayHeaderMonthFormat" />
							<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="SelectedTimeSlot" />
						</MultiBinding>
					</TextBlock.Text>
					
                </TextBlock>


                <telerikScheduler:AppointmentsControlsContainer
                    x:Name="appointmentsControl"
                    Grid.Column="0"
                    ItemContainerStyle="{StaticResource MonthAppointmentsControlsContainerItemContainerStyle}"
                    
                    Focusable="False"
                     >

                    <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimitives:RadUniformGrid Rows="1" HorizontalAlignment="Stretch"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                </telerikScheduler:AppointmentsControlsContainer>

                <telerikScheduler:SchedulerScrollBar
                    x:Name="PART_MonthViewScrollBar"
                    Grid.Column="1"
                    Template="{StaticResource VerticalSchedulerScrollBarTemplate}"
                    Scheduler="{TemplateBinding Scheduler}"
                    Visibility="{Binding Scheduler.MonthViewScrollBarVisibility, RelativeSource={RelativeSource TemplatedParent}}" />

            </Grid>
        </Border>
    </ControlTemplate>

    <!--TimelineTemplate-->
    <ControlTemplate x:Key="TimelineTemplate" TargetType="telerikScheduler:SchedulerPresenter">
        <ScrollViewer
			x:Name="timelineScrollViewer"
			MinHeight="150"
			HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
			HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled" 
			telerik:StyleManager.Theme="{StaticResource Theme}"
			
            Focusable="False"
			SnapsToDevicePixels="True"
            
             >

            
            <ScrollViewer.InputBindings>
                <MouseBinding Gesture="{StaticResource MouseWheelDownGesture}" Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateSmall" />
                <MouseBinding Gesture="{StaticResource MouseWheelUpGesture}" Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateSmall" />
            </ScrollViewer.InputBindings>
            
            

            <Grid
				HorizontalAlignment="Stretch"
				
                Height="{Binding ActualHeight, ElementName=timelineScrollViewer}"
                 >

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    
                    <RowDefinition Height="16" />
                    
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <TextBlock
					x:Name="MonthName"
					Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
					Foreground="#7FD1DEEF"
					HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
					Margin="100 0 0 0"
					TextAlignment="Right" FontSize="192"
					 >
					
					<TextBlock.Text>
						<MultiBinding Converter="{StaticResource TimeSlotToStringConverter}">
							<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="MonthViewDayHeaderMonthFormat" />
							<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="SelectedTimeSlot" />
						</MultiBinding>
					</TextBlock.Text>
					
                </TextBlock>

                <Border
					x:Name="resourceNamesBorder"
					Grid.Row="0" Grid.Column="0"
					BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}"
					BorderThickness="0,0,0,1"
					DataContext="{TemplateBinding Scheduler}"
					Visibility="{Binding View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}"
					Width="59" />

                <ItemsControl
					x:Name="DayHeaderList"
					Grid.Row="0" Grid.Column="1"
					Padding="1 0 0 0"
					ItemTemplate="{StaticResource TimelineHeaderListItemTemplate}"
					ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlotsView.FirstGroupItems}"
					
                    
                    Focusable="False"
                     >

                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimitives:RadUniformGrid Rows="1" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>

                <telerikScheduler:AppointmentsControlsContainer
					x:Name="appointmentsControl"
					Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
					Padding="1 0 0 0"
					ItemContainerStyle="{StaticResource TimelineAppointmentsControlsContainerItemContainerStyle}"
					
                    Focusable="False"
                     >

                    <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimitives:RadUniformGrid Columns="1" />
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                </telerikScheduler:AppointmentsControlsContainer>
            </Grid>
        </ScrollViewer>
    </ControlTemplate>

    <!--RadSchedulerTemplate-->
    <ControlTemplate x:Key="RadSchedulerTemplate" TargetType="telerikScheduler:RadScheduler">
        <Border Background="{TemplateBinding Background}"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}">
            <Grid Background="Transparent">

                <Grid.Resources>
                    
                    
                    <Storyboard x:Key="Fade" FillBehavior="Stop">
                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="presenter" Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.3" Value="White"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.7" Value="White"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="presenter" Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.3" Value="Transparent"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.7" Value="White"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.3" Value="Transparent"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                            <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.3" Value="White"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.7" Value="Transparent"/>
                        </ColorAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}" />
                            <DiscreteObjectKeyFrame KeyTime="00:00:00.7" Value="{x:Static Visibility.Collapsed}" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="SlideLeft" FillBehavior="Stop">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="presenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="{Binding ActualWidth, ElementName=presenter}" />
                            <SplineDoubleKeyFrame KeySpline="0,0.5,0,1" KeyTime="00:00:00.7" Value="0" />
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                            <SplineDoubleKeyFrame KeySpline="0,0.5,0,1" KeyTime="00:00:00.7" Value="{Binding ActualWidth, ElementName=presenter, Converter={x:Static telerikScheduler:NegatingConverter.Instance}}" />
                        </DoubleAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}" />
                            <DiscreteObjectKeyFrame KeyTime="00:00:00.7" Value="{x:Static Visibility.Collapsed}" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="SlideRight" FillBehavior="Stop">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="presenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="{Binding ActualWidth, ElementName=presenter, Converter={x:Static telerikScheduler:NegatingConverter.Instance}}" />
                            <SplineDoubleKeyFrame KeySpline="0,1,0.5,1" KeyTime="00:00:00.7" Value="0" />
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                            <SplineDoubleKeyFrame KeySpline="0,1,0.5,1" KeyTime="00:00:00.7" Value="{Binding ActualWidth, ElementName=presenter}" />
                        </DoubleAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TransitionImage" Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}" />
                            <DiscreteObjectKeyFrame KeyTime="00:00:00.7" Value="{x:Static Visibility.Collapsed}" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                    
                </Grid.Resources>

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <!-- PART_header -->

                <Rectangle
					x:Name="HeaderBackgroundLayer1"
					Grid.Row="0" 
					Style="{StaticResource RadScheduler_HeaderBackground_Layer1}" />

                <Rectangle
					x:Name="HeaderBackgroundLayer2"
					Grid.Row="0" 
					Style="{StaticResource RadScheduler_HeaderBackground_Layer2}" />

                <Border
					x:Name="PART_Header"
					
                    SnapsToDevicePixels="True"
                    
                     >

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <StackPanel
							Grid.Column="0"
							Orientation="Horizontal"
                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
							Visibility="{Binding  Path=IsViewModeNavigationEnabled,Converter={StaticResource BooleanToVisibilityConverter}}">

                            <telerik:RadButton
								x:Name="DayBtn"
                                Visibility="{Binding AvailableViewModes, Converter={StaticResource AvailableViewModesToVisibilityConverter}, ConverterParameter=Day}"
								telerik:LocalizationManager.ResourceKey="Day"
								Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode"
								Style="{StaticResource ViewModeButtonStyle}" />
                            <telerik:RadButton
								x:Name="WeekBtn"
                                Visibility="{Binding AvailableViewModes, Converter={StaticResource AvailableViewModesToVisibilityConverter}, ConverterParameter=Week}"
								telerik:LocalizationManager.ResourceKey="Week"
								Command="telerikScheduler:RadSchedulerCommands.SetWeekViewMode"
								Style="{StaticResource ViewModeButtonStyle}" />
                            <telerik:RadButton
								x:Name="MonthBtn"
                                Visibility="{Binding AvailableViewModes, Converter={StaticResource AvailableViewModesToVisibilityConverter}, ConverterParameter=Month}"
								telerik:LocalizationManager.ResourceKey="Month"
								Command="telerikScheduler:RadSchedulerCommands.SetMonthViewMode"
								Style="{StaticResource ViewModeButtonStyle}" />
                            <telerik:RadButton
								x:Name="TimelineBtn"
                                Visibility="{Binding AvailableViewModes, Converter={StaticResource AvailableViewModesToVisibilityConverter}, ConverterParameter=Timeline}"
								telerik:LocalizationManager.ResourceKey="Timeline"
								Command="telerikScheduler:RadSchedulerCommands.SetTimelineViewMode"
								Style="{StaticResource ViewModeButtonStyle}" />
                        </StackPanel>
                        <StackPanel
							Grid.Column="1"
							Orientation="Horizontal"
							HorizontalAlignment="Right"
							Margin="2 0"
							Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsBackAndForwardNavigationEnabled, Converter={StaticResource BooleanToVisibilityConverter}}">

                            <TextBlock
								Foreground="{StaticResource CurrentIntervalTextBlockForeground}"
								Margin="5 0 5 0"
								VerticalAlignment="Center"
								Style="{StaticResource RadScheduler_CurrentInterval_TextBlockStyle}"
								Text="{Binding View.DisplayInterval, RelativeSource={RelativeSource TemplatedParent}}"/>

                            <telerik:RadButton
								x:Name="Back"
								Style="{StaticResource RadScheduler_NavigationButtonStyle_Backward}"
								
                                ToolTip="Back"
                                
                                Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateLarge"
								CommandTarget="{Binding ElementName=presenter}"
								/>
                                <telerikInput:RadDatePicker
								    x:Name="PART_navigationDatePicker"
								    Width="14" MinHeight="20" Height="20"
								    Margin="2 0"
                                    SelectedValue="{Binding SelectedTimeSlot.Start, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								    telerik:StyleManager.Theme="{StaticResource Theme}"
								    Visibility="{TemplateBinding CalendarVisibility}" />
                                    <telerik:RadButton
								    x:Name="Forward"
								    Style="{StaticResource RadScheduler_NavigationButtonStyle_Foreward}"
								    
                                    ToolTip="Forward"
                                     Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateLarge" CommandTarget="{Binding ElementName=presenter}"
								 />
                        </StackPanel>
                    </Grid>
                </Border>

                <!-- Content -->
                <Grid
					Grid.Row="1"
					Background="{StaticResource RadScheduler_ContentBackgroundBrush}"
					
                    ClipToBounds="True"
                    
                     >

                    
                    <Image x:Name="TransitionImage" Stretch="Fill" IsHitTestVisible="False" Visibility="Collapsed" UIElement.OpacityMask="{StaticResource RadSchedulerTransitionImageOpacityMask}">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>
                    </Image>
                    

                    <telerikScheduler:SchedulerPresenter
						x:Name="presenter" 
						Scheduler="{Binding RelativeSource={RelativeSource TemplatedParent}}"
						OpacityMask="{StaticResource RadSchedulerPresenterOpacityMask}">

                        <UIElement.RenderTransform>
                            
                            
                            <TranslateTransform />
                            
                        </UIElement.RenderTransform>
                    </telerikScheduler:SchedulerPresenter>
                </Grid>
            </Grid>
        </Border>
    </ControlTemplate>

 

    <!--TimeRulerStyle-->
    <Style TargetType="telerikScheduler:TimeRuler" BasedOn="{StaticResource {x:Type ItemsControl}}"
         x:Key="TimeRulerStyle">
    </Style>

    <!--TimeRulerHostStyle-->
    <Style TargetType="Border" x:Key="TimeRulerHostStyle">
        <Setter Property="Width" Value="74" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="BorderBrush" Value="{StaticResource RadScheduler_Table_BorderBrush}" />
    </Style>

    <!--RadSchedulerStyle-->
    <Style TargetType="telerikScheduler:RadScheduler" x:Key="RadSchedulerStyle"
         >
        <Setter Property="Background" Value="{StaticResource SchedulerBackground}" />
        <Setter Property="Template" Value="{StaticResource RadSchedulerTemplate}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="BorderBrush" Value="{StaticResource RadScheduler_BorderBrush}" />
        <Setter Property="FontSize" Value="11" />
        <Setter Property="NavigationHeaderStyle" Value="{StaticResource NavigationHeaderStyle}" />
        <Setter Property="EditAppointmentStyle" Value="{StaticResource EditAppointmentStyle}" />
        <Setter Property="TimeRulerHostStyle" Value="{StaticResource TimeRulerHostStyle}" />
        <Setter Property="AppointmentTemplate" Value="{StaticResource AppointmentTemplate}" />
        <Setter Property="DayTemplate" Value="{StaticResource DayTemplate}" />
        <Setter Property="MonthTemplate" Value="{StaticResource MonthTemplate}" />
        <Setter Property="TimelineTemplate" Value="{StaticResource TimelineTemplate}" />
        <Setter Property="DragVisualCueTemplate" Value="{StaticResource DragVisualCueTemplate}"/>
    </Style>

    <!--TimePickerControlStyle-->
    <Style TargetType="telerikScheduler:SchedulerTimePicker" x:Key="TimePickerControlStyle"
         >
        <Setter Property="Template" Value="{StaticResource TimePickerTemplate}" />
    </Style>

    <!--DateTimePickerControlStyle-->
    <Style TargetType="telerikScheduler:DateTimePicker" x:Key="DateTimePickerControlStyle"
         >
        <Setter Property="Template" Value="{StaticResource DateTimePickerTemplate}" />
    </Style>

    <!--TimeRulerItemControlTemplate-->
    <Style TargetType="telerikScheduler:TimeRulerItem" x:Key="TimeRulerItemStyle"
         >
        <Setter Property="Template" Value="{StaticResource TimeRulerItemControlTemplate}" />
    </Style>


    
    <!--AppointmentItemsControlStyle-->
    <Style TargetType="{x:Type telerikScheduler:AppointmentItemsControl}" BasedOn="{StaticResource {x:Type ItemsControl}}"  x:Key="AppointmentItemsControlStyle">
        <!--<Setter Property="Background" Value="{x:Null}" />-->
    </Style>

    <!--AppointmentsControlStyle-->
    <Style TargetType="{x:Type telerikScheduler:AppointmentsControl}" x:Key="AppointmentsControlStyle">
        <Setter Property="Template" Value="{StaticResource NotAllDaysAppointmentsControlTemplate}" />
    </Style>

    <!--SchedulerPresenterStyle-->
    <Style TargetType="{x:Type telerikScheduler:SchedulerPresenter}" x:Key="SchedulerPresenterStyle">
        <Setter Property="Template" Value="{StaticResource DayTemplate}" />
    </Style>

    <!--TimeSlotItemStyle-->
    <Style TargetType="{x:Type telerikScheduler:TimeSlotItem}" x:Key="TimeSlotItemStyle"
        BasedOn="{StaticResource OneWeekDayStyle}" />

    <!--TimeSlotItemsControlStyle-->
    <Style TargetType="{x:Type telerikScheduler:TimeSlotItemsControl}" x:Key="TimeSlotItemsControlStyle"
	    BasedOn="{StaticResource LBwoPaddingStyle}">
        <Setter Property="FocusVisualStyle" Value="{StaticResource EmptyFocusVisual}" />
    </Style>

    <!--SchedulerScrollBarStyle-->
    <Style TargetType="{x:Type telerikScheduler:SchedulerScrollBar}" x:Key="SchedulerScrollBarStyle">
    </Style>

    <!--RadScheduler-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:RadScheduler}}"
		TargetType="{x:Type telerikScheduler:RadScheduler}"
		BasedOn="{StaticResource RadSchedulerStyle}">
    </Style>

    <!--RecurrenceDialogWindowStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:RecurrenceDialogWindow}}"
		TargetType="{x:Type telerikScheduler:RecurrenceDialogWindow}"
		BasedOn="{StaticResource RecurrenceDialogWindowStyle}">
    </Style>

    <!--RecurrenceChoiceDialogWindowStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:RecurrenceChoiceDialogWindow}}"
		TargetType="{x:Type telerikScheduler:RecurrenceChoiceDialogWindow}"
		BasedOn="{StaticResource RecurrenceChoiceDialogWindowStyle}">
    </Style>

    <!--AppointmentDeleteDialogWindowStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:AppointmentDeleteDialogWindow}}"
		TargetType="{x:Type telerikScheduler:AppointmentDeleteDialogWindow}"
		BasedOn="{StaticResource AppointmentDeleteDialogWindowStyle}">
    </Style>
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:AppointmentClosingDialogWindow}}"
		TargetType="{x:Type telerikScheduler:AppointmentClosingDialogWindow}"
		BasedOn="{StaticResource AppointmentClosingDialogWindowStyle}">
    </Style>
    <!--AppointmentItemStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:AppointmentItem}}"
		TargetType="{x:Type telerikScheduler:AppointmentItem}"
		BasedOn="{StaticResource AppointmentItemStyle}">
    </Style>

    <!--AppointmentItemsControlStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:AppointmentItemsControl}}"
		TargetType="{x:Type telerikScheduler:AppointmentItemsControl}"
		BasedOn="{StaticResource AppointmentItemsControlStyle}">
    </Style>

    <!--AppointmentsControlStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:AppointmentsControl}}"
		TargetType="{x:Type telerikScheduler:AppointmentsControl}"
		BasedOn="{StaticResource AppointmentsControlStyle}">
    </Style>

    <!--SchedulerPresenterStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:SchedulerPresenter}}"
		TargetType="{x:Type telerikScheduler:SchedulerPresenter}"
		BasedOn="{StaticResource SchedulerPresenterStyle}">
    </Style>

    <!--TimeSlotItemStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:TimeSlotItem}}"
		TargetType="{x:Type telerikScheduler:TimeSlotItem}"
		BasedOn="{StaticResource TimeSlotItemStyle}">
    </Style>

    <!--TimeSlotItemsControlStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:TimeSlotItemsControl}}"
		TargetType="{x:Type telerikScheduler:TimeSlotItemsControl}"
		BasedOn="{StaticResource TimeSlotItemsControlStyle}">
    </Style>

    <!--TimePickerControlStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:SchedulerTimePicker}}"
		TargetType="{x:Type telerikScheduler:SchedulerTimePicker}"
		BasedOn="{StaticResource TimePickerControlStyle}">
    </Style>

    <!--DateTimePickerControlStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:DateTimePicker}}"
		TargetType="{x:Type telerikScheduler:DateTimePicker}"
		BasedOn="{StaticResource DateTimePickerControlStyle}">
    </Style>

    <!--TimeRulerStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:TimeRuler}}"
		TargetType="{x:Type telerikScheduler:TimeRuler}" BasedOn="{StaticResource TimeRulerStyle}">
    </Style>

    <!--TimeRulerItemStyle-->
    <Style
        x:Key="{telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType={x:Type telerikScheduler:TimeRulerItem}}"
		TargetType="{x:Type telerikScheduler:TimeRulerItem}" BasedOn="{StaticResource TimeRulerItemStyle}">
    </Style>

    
    
</ResourceDictionary>
