<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:vistaCopy="clr-namespace:VistaThemeCopy"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"
    xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
    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:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls">

    <vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<SolidColorBrush x:Key="DefaultButtonStyleOuterBackground" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="DefaultButtonStyleOuterBorderBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="DefaultButtonStyleInnerBorderBrush" Color="#FFB3B3B3" />
<SolidColorBrush x:Key="DefaultButtonStyleInnerMostBorderBrush" Color="#00FFFFFF" />
<LinearGradientBrush x:Key="DefaultButtonStyleBackground" EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="Absolute">
		<GradientStop Color="#FFF8F8F9" Offset="0"/>
		<GradientStop Color="#FFD9DBE0" 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="#FFB8B8B8" Offset="0"/>
		<GradientStop Color="#FFDBDEE1" Offset="1"/>
		<GradientStop Color="#FFF8F8F9" Offset="0.02"/>
		<GradientStop Color="#FFDFE2E5" Offset="0.4"/>
		<GradientStop Color="#FFC7CBD1" Offset="0.41"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="DefaultButtonStyleIsPressedInnerBorderBrush" Color="#FFFEAE46" />
<LinearGradientBrush x:Key="DefaultButtonStyleIsPressedInnerMostBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFFFD9AA" Offset="0"/>
		<GradientStop Color="#FFFEE07A" Offset="1"/>
		<GradientStop Color="#FFFFBC6F" Offset="0.5"/>
		<GradientStop Color="#FFFFAB3F" Offset="0.512"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="DialogWindowBackground" Color="#FFF6F7F8" />
<LinearGradientBrush x:Key="RadToolBar_InnerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD5E2EC" Offset="0"/>
		<GradientStop Color="#FF8BB8DE" Offset="1"/>
		<GradientStop Color="#FF95BADD" Offset="0.43"/>
		<GradientStop Color="#FFBAD2E4" Offset="0.42"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="CategorySelectorBorderBrush" Color="#FFFFAB3F" />
<SolidColorBrush x:Key="GenericShallowBorderBrush" Color="#FF979994" />
<SolidColorBrush x:Key="SchedulerHeaderOuterBorder_Normal" Color="#FFB0B0B0" />
<LinearGradientBrush x:Key="SchedulerHeaderBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD0D0D0" Offset="1" />
		<GradientStop Color="#FFF2F2F2" Offset="0" />
		<GradientStop Color="#FFDDDDDD" Offset="0.51" />
		<GradientStop Color="#FFECECEC" Offset="0.5" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="SchedulerHeaderInnerBorder_Normal" Color="#FFFCFCFC" />
<SolidColorBrush x:Key="SchedulerHeaderOuterBorder_Pressed" Color="#FF2C628B" />
<SolidColorBrush x:Key="SchedulerHeaderInnerBorder_Pressed" Color="#FF9EB0BA" />
<LinearGradientBrush x:Key="SchedulerHeaderBackground_Pressed" EndPoint="0.5,0" StartPoint="0.5,1">
		<GradientStop Color="#FF6AB6DE" Offset="0" />
		<GradientStop Color="#FF82C2E4" Offset="0.5" />
		<GradientStop Color="#FF98D0ED" Offset="0.5" />
		<GradientStop Color="#FFA9DEFB" Offset="1" />
	</LinearGradientBrush>
<SolidColorBrush x:Key="SchedulerHeaderOuterBorder_MouseOver" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="SchedulerHeaderInnerBorder_MouseOver" Color="#FFE9F6FD" />
<LinearGradientBrush x:Key="SchedulerHeaderBackground_MouseOver" EndPoint="0.5,0" StartPoint="0.5,1">
		<GradientStop Color="#FF81C3E5" Offset="0" />
		<GradientStop Color="#FF98D1EF" Offset="0.5" />
		<GradientStop Color="#FFB4E0F7" Offset="0.5" />
		<GradientStop Color="#FFBDE4F9" Offset="1" />
	</LinearGradientBrush>
<LinearGradientBrush x:Key="InnerHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F1F1" Offset="0"/>
		<GradientStop Color="#FFCFCFCF" Offset="1"/>
		<GradientStop Color="#FFEBEBEB" Offset="0.5"/>
		<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="InnerHeaderBorderBrush" Color="#FF848484" />
<LinearGradientBrush x:Key="OuterHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F1F1" Offset="0"/>
		<GradientStop Color="#FFCFCFCF" Offset="1"/>
		<GradientStop Color="#FFEBEBEB" Offset="0.5"/>
		<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="OuterHeaderBorderBrush" Color="#FFB0B0B0" />
<SolidColorBrush x:Key="ShowMoreButtonBackground" Color="#FF282828"/>
<SolidColorBrush x:Key="ShowMoreButtonSelectedBackground" Color="#FF99DEFD"/>
<SolidColorBrush x:Key="AppointmentSubjectTextBoxBackground" Color="#00FFFFFF" />
<SolidColorBrush x:Key="AppointmentTextBrush" Color="#FF000000" />
<SolidColorBrush x:Key="ButtonDeleteBorderBrush" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="ButtonDeleteBackground" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="DayViewAppointmentItemBorderBrush" Color="#FFFFFFFF" />
<ImageSource x:Key="reccurrImage" >
		/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/rec_black.png
	</ImageSource>
<SolidColorBrush x:Key="DayViewAppointmentItemResizeStartPartRectangleFill" Color="#00FFFFFF" />
<SolidColorBrush x:Key="DayViewAppointmentItemResizeEndPartRectangleFill" Color="#00FFFFFF" />
<SolidColorBrush x:Key="SelectedAppointmentItemBorderBrush" Color="#FF246982" />
<ImageSource x:Key="reccurrImageException" >
		/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/no_rec_black.png
	</ImageSource>
<SolidColorBrush x:Key="RadSchedulerStackPanelSeparatorRectangleFill" Color="#FF99DEFD" />
<LinearGradientBrush x:Key="AppointementBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFEFF7FD" Offset="0"/>
		<GradientStop Color="#FFBCE4FB" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="MouseOverAppointmentItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFE2F2FC" Offset="0"/>
		<GradientStop Color="#FFAADBF5" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="SelectedAppointmentItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD9EEF9" Offset="0"/>
		<GradientStop Color="#FFAAD9F2" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="TimeRulerBackground" Color="#FFFFFFFF" />
<LinearGradientBrush x:Key="TimeSlotHeaderBackground_Today" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF99C8E0" Offset="0"/>
		<GradientStop Color="#FF70C0D8" Offset="1"/>
		<GradientStop Color="#FF55A4CC" Offset="0.5"/>
		<GradientStop Color="#FF2C738F" Offset="0.51"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="HorizontalHeaderInnerBorderBrush_Today" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF99C8E0" Offset="0"/>
		<GradientStop Color="#FF70C0D8" Offset="1"/>
		<GradientStop Color="#FF55A4CC" Offset="0.5"/>
		<GradientStop Color="#FF2C738F" Offset="0.51"/>
	</LinearGradientBrush>
<HorizontalAlignment x:Key="DayHorizontalHeaderAlignment">Center</HorizontalAlignment>
<SolidColorBrush x:Key="HeaderSelectedForeground" Color="#FF003399" />
<SolidColorBrush x:Key="HeaderTodayForeground" Color="White" />
<SolidColorBrush x:Key="TimeSlotItemBackground_AllDay" Color="#FFE4E4E4" />
<SolidColorBrush x:Key="TimeSlotItemOuterBorder_AllDay" Color="#FFCBCBCB" />
<SolidColorBrush x:Key="TimeSlotItemInnerBorder_AllDay" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="TimeSlotItemFrame_Today" Color="#FF246982" />
<SolidColorBrush x:Key="TimeSlotItemOuterBorder_MouseOver" Color="#FF3C7FB0" />
<LinearGradientBrush x:Key="TimeSlotItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F8FD" Offset="0"/>
		<GradientStop Color="#FFD5EFFC" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="TimeSlotItemInnerBorder_MouseOver" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="TimeSlotItemOuterBorder_Selected" Color="#FF3C7FB0" />
<LinearGradientBrush x:Key="TimeSlotItemBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F8FD" Offset="0"/>
		<GradientStop Color="#FFD5EFFC" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="TimeSlotItemInnerBorder_Selected" Color="Transparent" />
<SolidColorBrush x:Key="TimeSlotItemBackground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="TimeSlotItemOuterBorder_Normal" Color="#FFB0B0B0" />
<SolidColorBrush x:Key="TimeRulerItem_Foreground" Color="#FF000000" />
<SolidColorBrush x:Key="TimeRulerItem_HourMarkBrush" Color="#FFCBCBCB" />
<SolidColorBrush x:Key="TimeRulerItem_MinuteMarkBrush" Color="#FFCBCBCB" />
<SolidColorBrush x:Key="ResourceInnerBorder" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ScrollBarSeparatorStroke" Color="#FFCBCBCB" />
<Thickness x:Key="MonthVerticalHeaderMargin">0 20 0 0</Thickness>
<SolidColorBrush x:Key="MonthWeekHeaderForegroundBrush" Color="Black" />
<SolidColorBrush x:Key="TimeSlotItemBorderBrush_OtherMonth" Color="#FFCBCBCB" />
<SolidColorBrush x:Key="TimeSlotItemBackground_OtherMonth" Color="#FFF0F0F0" />
<SolidColorBrush x:Key="TimeSlotHeaderOuterBorder_Normal" Color="#FFB0B0B0" />
<LinearGradientBrush x:Key="TimeSlotHeaderBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F1F1" Offset="0"/>
		<GradientStop Color="#FFCFCFCF" Offset="1"/>
		<GradientStop Color="#FFEBEBEB" Offset="0.5"/>
		<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="TimeSlotHeaderInnerBorder_Normal" Color="Transparent" />
<SolidColorBrush x:Key="TimeSlotHeaderOuterBorder_Selected" Color="#FF3C7FB0" />
<LinearGradientBrush  x:Key="TimeSlotHeaderBackground_Selected" EndPoint="0.5,0" StartPoint="0.5,1">
		<GradientStop Color="#FF90CBEA"/>
		<GradientStop Color="#FFC2E4F6" Offset="1"/>
		<GradientStop Color="#FFABDAF3" Offset="0.54"/>
		<GradientStop Color="#FFC2E4F6" Offset="0.54"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="TimeSlotHeaderInnerBorder_Selected" Color="#FF3C7FB0" />
<SolidColorBrush x:Key="TimeSlotHeaderOuterBorderBrush_Today" Color="#FF246982" />
<SolidColorBrush x:Key="TimeSlotHeaderInnerBorderBrush_Today" Color="#FF246982" />
<SolidColorBrush x:Key="TimeSlotHeaderOuterBorder_OtherMonth" Color="#FFB0B0B0" />
<LinearGradientBrush x:Key="TimeSlotHeaderBackground_OtherMonth" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F1F1" Offset="0"/>
		<GradientStop Color="#FFCFCFCF" Offset="1"/>
		<GradientStop Color="#FFEBEBEB" Offset="0.5"/>
		<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="TimeSlotHeaderInnerBorder_OtherMonth" Color="Transparent" />
<SolidColorBrush x:Key="AllDayAreaBrush" Color="#FFECECED" />
<SolidColorBrush x:Key="TimeSlotItemBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="TimeSlotItemBorderBrush" Color="#FFB3B3B3"/>
<SolidColorBrush x:Key="AppointmentsControl_Background" Color="#FFB3B3B3"/>
<SolidColorBrush x:Key="ViewModeButtonForeground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ViewModeButtonOuterBorder_Unchecked" Color="Transparent" />
<SolidColorBrush x:Key="ViewModeButtonBackground_Unchecked" Color="#00000000" />
<SolidColorBrush x:Key="ViewModeButtonInnerBorder_Unchecked" Color="#00000000" />
<SolidColorBrush x:Key="ViewModeButtonForeground_MouseOver" Color="#FFFFFFFF" />
<LinearGradientBrush x:Key="ViewModeButtonOuterBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF516F7F" Offset="0"/>
		<GradientStop Color="#FF2A5468" Offset="1"/>
		<GradientStop Color="#FF2D576D" Offset="0.5"/>
		<GradientStop Color="#FF0E3C55" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ViewModeButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFA6C4D2" Offset="0"/>
		<GradientStop Color="#FF4884A2" Offset="0.5"/>
		<GradientStop Color="#004884A2" Offset="1"/>
		<GradientStop Color="#004884A2" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ViewModeButtonInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF9FBECE" Offset="0"/>
		<GradientStop Color="#FF6D9AAF" Offset="1"/>
		<GradientStop Color="#FF79A5BB" Offset="0.5"/>
		<GradientStop Color="#FF54869F" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ViewModeButtonForeground_Pressed" Color="#FFFFFFFF" />
<LinearGradientBrush x:Key="ViewModeButtonOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF283842"/>
		<GradientStop Color="#FF1B2F3B" Offset="1"/>
		<GradientStop Color="#FF1A2D3A" Offset="0.5"/>
		<GradientStop Color="#FF102432" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ViewModeButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF556E7C" Offset="0"/>
		<GradientStop Color="#FF2B6586" Offset="1"/>
		<GradientStop Color="#FF587F96" Offset="0.109"/>
		<GradientStop Color="#FF387294" Offset="0.5"/>
		<GradientStop Color="#FF05456C" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ViewModeButtonInnerBorder_Pressed"  Color="#00000000"/>
<LinearGradientBrush x:Key="ViewModeButtonOuterBorder_Checked" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF516F7F" Offset="0"/>
		<GradientStop Color="#FF2A5468" Offset="1"/>
		<GradientStop Color="#FF2D576D" Offset="0.5"/>
		<GradientStop Color="#FF0E3C55" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ViewModeButtonBackground_Checked" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF83ABC0" Offset="0"/>
		<GradientStop Color="#FF4D95A9" Offset="1"/>
		<GradientStop Color="#FF3F7E9D" Offset="0.5"/>
		<GradientStop Color="#FF0A5276" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="ViewModeButtonInnerBorder_Checked" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF9FBECE" Offset="0"/>
		<GradientStop Color="#FF6D9AAF" Offset="1"/>
		<GradientStop Color="#FF79A5BB" Offset="0.5"/>
		<GradientStop Color="#FF54869F" Offset="0.5"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ViewModeButtonForeground_Checked" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="NavigationIconBackground_Normal" Color="#FF000000" />
<SolidColorBrush x:Key="NavigationIconForeground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="NavigationIconForeground_Highlighted" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="NavigationIconBackground_Highlighted" Color="#FF000000" />
<ControlTemplate x:Key="CalendarIcon" TargetType="ContentControl">
		
		
		<Image Margin="3" Width="16" Height="15" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Vista/CalendarIcon-Blue.png" />
		
	</ControlTemplate>
<SolidColorBrush x:Key="NavigationTextIntervalShadow" Color="#FF000000" />
<SolidColorBrush x:Key="NavigationTextIntervalForeground" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="HeaderTopSeparatorBrush" Color="#FFA7A7A7" />
<LinearGradientBrush x:Key="ChangeViewHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF83ABC0" Offset="0"/>
		<GradientStop Color="#FF4D95A9" Offset="1"/>
		<GradientStop Color="#FF3F7E9D" Offset="0.5"/>
		<GradientStop Color="#FF0A5276" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="NavigationHeaderBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFB2CCD8" Offset="0"/>
		<GradientStop Color="#FF96C3CE" Offset="1"/>
		<GradientStop Color="#FF87B2C3" Offset="0.5"/>
		<GradientStop Color="#FF75A4B7" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="NavigationHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF83ABC0" Offset="0"/>
		<GradientStop Color="#FF4D95A9" Offset="1"/>
		<GradientStop Color="#FF3F7E9D" Offset="0.5"/>
		<GradientStop Color="#FF0A5276" Offset="0.5"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="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>
<SolidColorBrush x:Key="RadSchedulerBackground" Color="#FFF8F8F8" />

    
    <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="92"  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="90" 
                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}"
                                            Minimum="1" Maximum="999"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            MinWidth="50"
                                            Height="22"
                                            Delay="100"
                                            RepeatInterval="100"
                                            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"
                                            Minimum="1" Maximum="99"
                                             HorizontalAlignment="Left"
                                            Value="{Binding Interval, Mode=TwoWay}"
                                            telerik:StyleManager.Theme="{StaticResource Theme}"
                                            MinWidth="50" Height="22"
                                            Delay="100" RepeatInterval="100"
                                            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}">
                                        <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" Minimum="1" Value="{Binding DayOfMonth, Mode=TwoWay}"
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22" Delay="100" RepeatInterval="100"
                                             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" Minimum="1" Value="{Binding Interval, Mode=TwoWay}"  
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22" Delay="100" RepeatInterval="100"
                                             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" Minimum="1" Value="{Binding Interval, Mode=TwoWay}"  
                                            telerik:StyleManager.Theme="{StaticResource Theme}" MinWidth="40" Height="22" Delay="100" RepeatInterval="100"
                                             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" Delay="100" RepeatInterval="100"
                                         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"
                                    Minimum="1" Maximum="9999"
                                    Value="{Binding MaxOccurrences, Mode=TwoWay}" 
                                    telerik:StyleManager.Theme="{StaticResource Theme}"
                                    MinWidth="50" Height="22"
                                    Delay="100" RepeatInterval="100"
                                     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="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="#50000000" HorizontalAlignment="Left"  
                        VerticalAlignment="Center" Width="2" Height="16">
                    <Border Margin="0,0,1,1" Background="#80FFFFFF" 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="#50000000" HorizontalAlignment="Left"  VerticalAlignment="Center" Width="2" Height="16">
                    <Border Margin="0,0,1,1" Background="#80FFFFFF" 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}" />
    </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:AvailableViewModesToVisibilityConverter x:Key="AvailableViewModesToVisibilityConverter" />
	<telerikScheduler:ImportanceToVisibilityConverter x:Key="ImportanceToVisibilityConverter" />
	<telerik:InvertedBooleanToOpacityConverter x:Key="InvertedBooleanToOpacityConverter" />
	<telerikScheduler:DateTimeIsTodayConverter x:Key="DateTimeIsTodayConverter" />
	<telerikScheduler:DateTimeIsTodayToVisibilityConverter x:Key="DateTimeIsTodayToVisibilityConverter" />



	<Style x:Key="SchedulerHeaderChrome" TargetType="telerikChromes:ButtonChrome">
		<Setter Property="BorderBrush" Value="{StaticResource SchedulerHeaderOuterBorder_Normal}" />
		<Setter Property="Background" Value="{StaticResource SchedulerHeaderBackground_Normal}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="CornerRadius" Value="0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikChromes:ButtonChrome">
					<Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Border x:Name="InnerBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource SchedulerHeaderInnerBorder_Normal}" />

						
					</Border>
					
					<ControlTemplate.Triggers>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="Orientation" Value="Horizontal" />
								<Condition Property="RenderEnabled" Value="True" />
								<Condition Property="RenderPressed" Value="True" />
							</MultiTrigger.Conditions>
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource SchedulerHeaderOuterBorder_Pressed}" />
							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource SchedulerHeaderInnerBorder_Pressed}" />
							<Setter TargetName="Border" Property="Background" Value="{StaticResource SchedulerHeaderBackground_Pressed}" />
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="Orientation" Value="Horizontal" />
								<Condition Property="RenderEnabled" Value="True" />
								<Condition Property="RenderChecked" Value="False" />
								<Condition Property="RenderMouseOver" Value="True" />
								<Condition Property="RenderPressed" Value="False" />
							</MultiTrigger.Conditions>
							<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource SchedulerHeaderOuterBorder_MouseOver}" />
							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{StaticResource SchedulerHeaderInnerBorder_MouseOver}" />
							<Setter TargetName="Border" Property="Background" Value="{StaticResource SchedulerHeaderBackground_MouseOver}" />
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="RenderNormal" Value="False" />
								<Condition Property="RenderActive" Value="False" />
								<Condition Property="RenderHighlighted" Value="False" />
								<Condition Property="RenderSelected" Value="False" />
								<Condition Property="RenderMouseOver" Value="False" />
								<Condition Property="RenderPressed" Value="False" />
								<Condition Property="RenderChecked" Value="False" />
							</MultiTrigger.Conditions>
							<Setter TargetName="Border" Property="BorderBrush" Value="Transparent" />
							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{x:Null}" />
							<Setter TargetName="Border" Property="Background" Value="Transparent" />
						</MultiTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>



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

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

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

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

	<!-- Invisible visual focus -->
	<Style x:Key="EmptyFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Control}">

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

	<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 x:Name="TimeSlotContentPresenter"
								HorizontalAlignment="Stretch"
								VerticalAlignment="Stretch" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

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

	

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

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

	<Style x:Key="FloatUpButton" TargetType="telerik:RadButton">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<ContentPresenter x:Name="LayoutRoot"  >

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

	<Style x:Key="HorizontalHeaderButton" TargetType="telerik:RadButton">
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="4 0" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid x:Name="LayoutRoot"
							 >

						<ContentPresenter Margin="{TemplateBinding Padding}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
						</ContentPresenter>
						
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="HeaderButton" TargetType="telerik:RadButton" >
		<Setter Property="Background" Value="{StaticResource InnerHeaderBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource InnerHeaderBorderBrush}" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="4 0" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid x:Name="LayoutRoot"
							 >

						<telerikChromes:ButtonChrome
							RenderNormal="False"
							Style="{StaticResource SchedulerHeaderChrome}"
								CornerRadius="0"
								RenderEnabled="{TemplateBinding IsEnabled}"
								RenderMouseOver="{TemplateBinding IsMouseOver}"
								RenderPressed="{TemplateBinding IsPressed}"
								BorderThickness="{TemplateBinding BorderThickness}"
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}">
						</telerikChromes:ButtonChrome>
						<ContentPresenter Margin="{TemplateBinding Padding}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
						</ContentPresenter>
						
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="VerticalHeaderButton" TargetType="telerik:RadButton">
		<Setter Property="Background" Value="{StaticResource OuterHeaderBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource OuterHeaderBorderBrush}" />
		<Setter Property="MinWidth" Value="22" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="4 0" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<telerikPrimitives:LayoutTransformControl x:Name="LayoutRoot"
							 >
						<telerikPrimitives:LayoutTransformControl.LayoutTransform>
							<RotateTransform Angle="-90" />
						</telerikPrimitives:LayoutTransformControl.LayoutTransform>
						<Grid>
							<telerikChromes:ButtonChrome
									Style="{StaticResource SchedulerHeaderChrome}"
									CornerRadius="0"
									RenderEnabled="{TemplateBinding IsEnabled}"
									RenderMouseOver="{TemplateBinding IsMouseOver}"
									RenderPressed="{TemplateBinding IsPressed}"
									BorderBrush="{TemplateBinding BorderBrush}"
									BorderThickness="{TemplateBinding BorderThickness}"
									Background="{TemplateBinding Background}">
							</telerikChromes:ButtonChrome>
							<ContentPresenter Margin="{TemplateBinding Padding}"
									HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
							</ContentPresenter>
						</Grid>
						
					</telerikPrimitives:LayoutTransformControl>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!-- This can be merged with the Win7 ShowMoreButton -->
	<Style TargetType="Button" x:Key="ShowMoreButtonStyle">
		<Setter Property="Margin" Value="3" />
		<Setter Property="HorizontalAlignment" Value="Right" />
		<Setter Property="VerticalAlignment" Value="Bottom" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid x:Name="Grid" Background="Transparent">
						<Path x:Name="Triangle" Fill="{StaticResource ShowMoreButtonBackground}"
								Stretch="Fill" Width="12" Height="6" VerticalAlignment="Top"
								HorizontalAlignment="Right" Data="M0,0 L12,0 6,6 z" />

						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter Property="Fill" TargetName="Triangle"
									Value="{StaticResource ShowMoreButtonSelectedBackground}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="true">
							<Setter Property="Fill" TargetName="Triangle"
									Value="{StaticResource ShowMoreButtonSelectedBackground}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ResourceHeaderHorizontal" TargetType="scheduler:ResourceHeaderControl">
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock x:Name="ResourceGroupName" Text="{Binding DisplayName}" FontWeight="Bold" VerticalAlignment="Center" Padding="4 0 0 0" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="AppointmentsBackgroundResourceColorElement" TargetType="FrameworkElement">
	</Style>

	<Style x:Key="AppointmentSubjectTextBox" TargetType="TextBox">
		
		<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
		<Setter Property="VerticalScrollBarVisibility" Value="Disabled" />
		

		<Setter Property="Margin" Value="0" />
		<Setter Property="Padding" Value="0" />

		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="TextWrapping" Value="Wrap" />
		<Setter Property="Background" Value="{StaticResource AppointmentSubjectTextBoxBackground}" />
		<Setter Property="Foreground" Value="{StaticResource AppointmentTextBrush}" />

		<Setter Property="Template">
			<Setter.Value>
				
				<ControlTemplate TargetType="TextBoxBase">
					<Border x:Name="Border"
							Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}">
						<ScrollViewer x:Name="PART_ContentHost"
								telerik:StyleManager.Theme="{StaticResource Theme}"
								IsTabStop="False"
								Padding="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
				
				
			</Setter.Value>
		</Setter>
	</Style>

	<DataTemplate x:Key="AppointmentTemplate">
		<Grid Background="Transparent" Focusable="False"
			 >
			<ToolTipService.ToolTip>
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="*" />
					</Grid.ColumnDefinitions>
					<!--SubjectTextBox-->
					<TextBlock x:Name="SubjectTextBox" 
							Grid.Column="0"
							Text="{Binding Path=Occurrence.Appointment, Converter={StaticResource TooltipConverter}}" />
					<!--HighImportanceMark-->
					<StackPanel x:Name="HighImportanceMark"
							Grid.Column="1"
							HorizontalAlignment="Right" VerticalAlignment="Center"
							Visibility="{Binding Occurrence.Appointment.Importance, Converter={StaticResource ImportanceToVisibilityConverter},ConverterParameter=High}"
							Margin="5 0 0 0">
						<Path 
								Stretch="Fill"
								Width="5.451" Height="10"
								HorizontalAlignment="Center" VerticalAlignment="Top" 
								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>
					<!--LowImportanceMark-->
					<Path x:Name="LowImportanceMark"
							Grid.Column="1" 
							Width="9" Height="12" 
							HorizontalAlignment="Right" VerticalAlignment="Center"
							Stretch="Fill"
							Stroke="#FF0365A7"
							Visibility="{Binding Occurrence.Appointment.Importance, Converter={StaticResource ImportanceToVisibilityConverter},ConverterParameter=Low}"	
							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">

						<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>
			<!--PART_SubjectTextBox-->
			<TextBox x:Name="PART_SubjectTextBox"
					 Style="{StaticResource AppointmentSubjectTextBox}"
					 Margin="0 0 18 0" IsTabStop="False"
					 Text="{Binding Occurrence.Appointment.Subject, Mode=TwoWay}"
					IsHitTestVisible="False"/>
		</Grid>
	</DataTemplate>

	<Style x:Key="DeleteButtonStyle" TargetType="telerik:RadButton">
		<Setter Property="BorderBrush" Value="{StaticResource ButtonDeleteBorderBrush}" />
		<Setter Property="Background" Value="{StaticResource ButtonDeleteBackground}" />
		<Setter Property="Width" Value="9" />
		<Setter Property="Height" Value="9" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid>
						<telerikChromes:ButtonChrome CornerRadius="1" RenderNormal="False"  telerik:StyleManager.Theme="{StaticResource Theme}"  Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" />
						<Path Stroke="{TemplateBinding Foreground}" StrokeThickness="0.7" Data="M0,0 L5,5 M5,0 L0,5" Width="5" Height="5" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="AppointmentChromeStyle" TargetType="telerikScheduler:ChromeControl">
		<Setter Property="BorderBrush" Value="{StaticResource DayViewAppointmentItemBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="IsTabStop" Value="False" />
		
		<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>

	<ControlTemplate x:Key="AppointmentItemTemplate" TargetType="telerikScheduler:AppointmentItem">
		<Grid >
			<telerikChromes:ShadowChrome />

			<Border x:Name="outMostBorder"
					Cursor="Hand"
					CornerRadius="2" 
					BorderThickness="1"
					Padding="{TemplateBinding Padding}" BorderBrush="{TemplateBinding BorderBrush}">

				<telerikScheduler:ChromeControl IsTabStop="False"
						Style="{StaticResource AppointmentChromeStyle}"
						MouseOverBackground="{TemplateBinding MouseOverBackground}"
						IsSelected="{TemplateBinding IsSelected}"
						SelectedBackground="{TemplateBinding SelectedBackground}"
						Background="{TemplateBinding Background}">

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

						<telerikScheduler:AppointmentSlotPresenter Grid.Column="1" Focusable="False"
							 />

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

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

								<telerik:RadButton x:Name="PART_DeleteButton"
								Style="{StaticResource DeleteButtonStyle}"
								Visibility="Collapsed"
								Grid.Column="1"
								Content="{TemplateBinding Content}"
								HorizontalAlignment="Right"
								VerticalAlignment="Top" Margin="3"
								Command="telerikScheduler:RadSchedulerCommands.DeleteAppointment"
								CommandParameter="{Binding Path=Occurrence}"/>

					</Grid>
				</telerikScheduler:ChromeControl>

			</Border>

			<Rectangle x:Name="PART_ResizeStart" Fill="{StaticResource DayViewAppointmentItemResizeStartPartRectangleFill}" />

			<Rectangle x:Name="PART_ResizeEnd" Fill="{StaticResource DayViewAppointmentItemResizeEndPartRectangleFill}" />
			
		</Grid>

		
		<ControlTemplate.Triggers>
			<Trigger Property="Orientation" Value="Horizontal">
				<Setter TargetName="PART_ResizeStart" Property="HorizontalAlignment" Value="Left" />
				<Setter TargetName="PART_ResizeStart" Property="Width" Value="2" />
				<Setter TargetName="PART_ResizeStart" Property="Cursor" Value="SizeWE" />
				<Setter TargetName="PART_ResizeEnd" Property="HorizontalAlignment" Value="Right" />
				<Setter TargetName="PART_ResizeEnd" Property="Width" Value="2" />
				<Setter TargetName="PART_ResizeEnd" Property="Cursor" Value="SizeWE" />
			</Trigger>
			<Trigger Property="Orientation" Value="Vertical">
				<Setter TargetName="PART_ResizeStart" Property="VerticalAlignment" Value="Top" />
				<Setter TargetName="PART_ResizeStart" Property="Height" Value="2" />
				<Setter TargetName="PART_ResizeStart" Property="Cursor" Value="SizeNS" />
				<Setter TargetName="PART_ResizeEnd" Property="VerticalAlignment" Value="Bottom" />
				<Setter TargetName="PART_ResizeEnd" Property="Height" Value="2" />
				<Setter TargetName="PART_ResizeEnd" Property="Cursor" Value="SizeNS" />
			</Trigger>

			<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 TargetName="PART_DeleteButton" Property="Opacity" Value="0" />
				<Setter Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
			</Trigger>
			<DataTrigger Binding="{Binding Path=Occurrence.State}" Value="Occurrence">
				<Setter TargetName="recurrenceMark" Property="Visibility" Value="Visible" />
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Occurrence.State}" Value="Exception">
				<Setter TargetName="recurrenceMark" Property="Visibility" Value="Visible" />
				<Setter TargetName="recurrenceMark" Property="Source" Value="{StaticResource reccurrImageException}" />
			</DataTrigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	<Style x:Key="AppointmentItemBaseStyle" TargetType="telerikScheduler:AppointmentItem">
		<Setter Property="Template" Value="{StaticResource AppointmentItemTemplate}" />
		<Setter Property="Margin" Value="1" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" />
		<Setter Property="Background" Value="{StaticResource AppointementBackground}" />
		<Setter Property="MouseOverBackground" Value="{StaticResource MouseOverAppointmentItemBackgroundBrush}" />
		<Setter Property="SelectedBackground" Value="{StaticResource SelectedAppointmentItemBackgroundBrush}" />
		
		<Setter Property="AllowDrop" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
	</Style>

	<Style x:Key="AppointmentItemHorizontalStyle" BasedOn="{StaticResource AppointmentItemBaseStyle}" TargetType="telerikScheduler:AppointmentItem">
		<Setter Property="Height" Value="20" />
		<Setter Property="Orientation" Value="Horizontal" />
	</Style>

	<Style x:Key="AppointmentItemVerticalStyle" BasedOn="{StaticResource AppointmentItemBaseStyle}" TargetType="telerikScheduler:AppointmentItem">
		<Setter Property="Orientation" Value="Vertical" />
	</Style>

	<Style TargetType="telerikScheduler:TimeRuler" BasedOn="{StaticResource {x:Type ItemsControl}}"
		 x:Key="TimeRulerStyle">
		<Setter Property="IsTabStop" Value="False" />
	</Style>
	<Style TargetType="Border" x:Key="TimeRulerHostStyle">
		<Setter Property="Background" Value="{StaticResource TimeRulerBackground}" />
		<Setter Property="Width" Value="75" />
	</Style>

	<DataTemplate x:Key="DayHorizontalHeaderTemplate">
		<!--Style="{StaticResource FloatUpButton}"-->
		<telerik:RadButton x:Name="Holder"
				MinWidth="22" MinHeight="22" Margin="-1 0 0 0"
				DataContext="{Binding Path=TimeSlots[0]}" 
				Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode"
				Style="{StaticResource FloatUpButton}"
				 >

			<Grid>
				<telerikChromes:ButtonChrome Style="{StaticResource SchedulerHeaderChrome}"  RenderMouseOver="{Binding IsMouseOver, ElementName=Holder}" RenderPressed="{Binding IsPressed, ElementName=Holder}" CornerRadius="0"/>

				<telerikChromes:ButtonChrome x:Name="IsTodayChrome"  Style="{StaticResource SchedulerHeaderChrome}" Visibility="{Binding Path=Start, Converter={StaticResource DateTimeIsTodayToVisibilityConverter}}"    Background="{StaticResource TimeSlotHeaderBackground_Today}" BorderBrush="{StaticResource OuterHeaderBorderBrush}" CornerRadius="0" />

				<Border BorderBrush="{StaticResource HorizontalHeaderInnerBorderBrush_Today}" BorderThickness="1" Margin="1" Visibility="{Binding Path=Start, Converter={StaticResource DateTimeIsTodayToVisibilityConverter}}" />

				<Border 
					 ClipToBounds="True"
					 >
					<Grid  Margin="4,0,0,0"  HorizontalAlignment="{StaticResource DayHorizontalHeaderAlignment}" VerticalAlignment="Center" >
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<TextBlock Grid.Column="0" x:Name="HeaderTextBlock1" FontWeight="Bold" Text="{Binding TimeSlotStartDay}" Margin="0 0 4 0" />
						<TextBlock Grid.Column="1" x:Name="HeaderTextBlock2" Text="{Binding FormattedStart}" />
						
					</Grid>
				</Border>

			</Grid>

		</telerik:RadButton>

		
		<DataTemplate.Triggers>
			<DataTrigger Binding="{Binding IsMouseOver, ElementName=Holder}" Value="True">
				<Setter Property="Panel.ZIndex" Value="1" />
				<Setter TargetName="HeaderTextBlock1" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
				<Setter TargetName="HeaderTextBlock2" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />

			</DataTrigger>
			<DataTrigger Binding="{Binding IsPressed, ElementName=Holder}" Value="True">
				<Setter TargetName="HeaderTextBlock1" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
				<Setter TargetName="HeaderTextBlock2" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />

			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Start, Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
				<Setter Property="Panel.ZIndex" Value="2" />
				<Setter TargetName="IsTodayChrome"  Property="Background" Value="{StaticResource TimeSlotHeaderBackground_Today}" />
				<Setter TargetName="HeaderTextBlock1" Property="Foreground" Value="{StaticResource HeaderTodayForeground}" />
				<Setter TargetName="HeaderTextBlock2" Property="Foreground" Value="{StaticResource HeaderTodayForeground}" />

			</DataTrigger>
		</DataTemplate.Triggers>
		
	</DataTemplate>

	<Style x:Key="AllDayTimeSlotStyle" TargetType="telerikScheduler:TimeSlotItem">
		<Setter Property="MinWidth" Value="22" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Margin" Value="-1 -1 0 0" />
		<Setter Property="Background" Value="{StaticResource TimeSlotItemBackground_AllDay}" />
		<Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_AllDay}" />
		<Setter Property="BorderThickness" Value="1" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
					<Grid x:Name="LayoutRoot"
							 >

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

						

						<Border x:Name="OuterBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
							<Grid>
								<Rectangle x:Name="InnerBorder" Stroke="{StaticResource TimeSlotItemInnerBorder_AllDay}" />
								<ContentPresenter Margin="{TemplateBinding Padding}" />
							</Grid>
						</Border>

						<Border x:Name="TodayVisual" Grid.RowSpan="3" Visibility="Collapsed"
								BorderThickness="2 0" BorderBrush="{StaticResource TimeSlotItemFrame_Today}" />

						<Border x:Name="PART_ContentHost" Margin="2 2 7 0" />

						

					</Grid>

					
					<ControlTemplate.Triggers>
						<!-- MouseOver -->
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource TimeSlotItemBackground_MouseOver}" />
							<Setter TargetName="InnerBorder" Property="Stroke" Value="{StaticResource TimeSlotItemInnerBorder_MouseOver}" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>

						<!-- Selected -->
						<Trigger Property="IsSelected" Value="True">
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_Selected}" />
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource TimeSlotItemBackground_Selected}" />
							<Setter TargetName="InnerBorder" Property="Stroke" Value="{StaticResource TimeSlotItemInnerBorder_Selected}" />
							<Setter Property="Panel.ZIndex" Value="2" />
						</Trigger>
						<Trigger Property="IsDropPossible" Value="True">
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource TimeSlotItemBackground_MouseOver}" />
							<Setter TargetName="InnerBorder" Property="Stroke" Value="{StaticResource TimeSlotItemInnerBorder_MouseOver}" />
							<Setter Property="Panel.ZIndex" Value="1" />

						</Trigger>
						<!-- Today -->
						<DataTrigger Binding="{Binding Path=Start, Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
							<Setter TargetName="TodayVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="3" />
						</DataTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="DayTimeSlotStyle" TargetType="telerikScheduler:TimeSlotItem">
		<Setter Property="MinWidth" Value="22" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Margin" Value="-1 -1 0 0" />
		<Setter Property="Background" Value="{StaticResource TimeSlotItemBackground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_Normal}" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
					<Grid x:Name="LayoutRoot"
							 >

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

						

						
						<Border x:Name="OuterBorder"
							BorderThickness="1 0 1 1"
							Margin="0 1 0 0"
							Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}">
							<ContentPresenter Margin="{TemplateBinding Padding}" />
						</Border>

						<Border x:Name="TodayVisual" Grid.RowSpan="3" Visibility="Collapsed"
								BorderThickness="2 0" BorderBrush="{StaticResource TimeSlotItemFrame_Today}" />

						<Border x:Name="PART_ContentHost" Margin="2 2 7 0" />

						
					</Grid>

					
					<ControlTemplate.Triggers>
						<!-- MouseOver -->
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource TimeSlotItemBackground_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="BorderThickness" Value="1" />
							<Setter TargetName="OuterBorder" Property="Margin" Value="0" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>

						<!-- Selected -->
						<Trigger Property="IsSelected" Value="True">
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource TimeSlotItemBackground_Selected}" />
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_Selected}" />
							<Setter TargetName="OuterBorder" Property="BorderThickness" Value="1" />
							<Setter TargetName="OuterBorder" Property="Margin" Value="0" />
							<Setter Property="Panel.ZIndex" Value="2" />
						</Trigger>
						<Trigger Property="IsDropPossible" Value="True">
							<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource TimeSlotItemBackground_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_MouseOver}" />
							<Setter TargetName="OuterBorder" Property="BorderThickness" Value="1" />
							<Setter TargetName="OuterBorder" Property="Margin" Value="0" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>
						<!-- Today -->
						<DataTrigger Binding="{Binding Path=Start, Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
							<Setter TargetName="TodayVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="2" />
						</DataTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="telerikScheduler:TimeRulerItem" x:Key="TimeRulerItemStyle"
		 >
		<Setter Property="Foreground" Value="{StaticResource TimeRulerItem_Foreground}" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:TimeRulerItem">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>

						<Border Width="34" BorderThickness="0 1" Grid.ColumnSpan="2" BorderBrush="{StaticResource TimeRulerItem_HourMarkBrush}" />
						<TextBlock x:Name="HourText" Margin="8 2" Grid.ColumnSpan="2" TextAlignment="Right" Text="{TemplateBinding TimeIndicator}" />

						<ItemsControl x:Name="IntervalMarkersList" Width="30" Grid.Column="1" ItemsSource="{TemplateBinding TimeSlots}" Margin="0 1 0 0" IsTabStop="False">
							<ItemsControl.ItemTemplate>
								<DataTemplate>
									<Border x:Name="SecondaryMark" Width="16" BorderThickness="0 1" MinHeight="22" BorderBrush="{StaticResource TimeRulerItem_MinuteMarkBrush}" Margin="0 -1 0 0" />
								</DataTemplate>
							</ItemsControl.ItemTemplate>
							<ItemsControl.ItemsPanel>
								<ItemsPanelTemplate>
									<telerikPrimitives:RadUniformGrid Columns="1" />
								</ItemsPanelTemplate>
							</ItemsControl.ItemsPanel>
						</ItemsControl>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Margin" Value="0 -1 0 0" />
	</Style>

	<Style x:Key="ScrollViewerNoScrollbars" TargetType="ScrollViewer">
		<Setter Property="Margin" Value="0" />
		<Setter Property="Padding" Value="0" />
		<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
		<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ScrollViewer">
					<Grid>
						<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanHorizontallyScroll="False" CanVerticallyScroll="False"/>
						
						
						<ScrollBar x:Name="PART_VerticalScrollBar" Visibility="Collapsed" Orientation="Vertical" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Minimum="0" Maximum="{TemplateBinding ScrollableHeight}" />
						<ScrollBar x:Name="PART_HorizontalScrollBar" Visibility="Collapsed" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Minimum="0" Maximum="{TemplateBinding ScrollableWidth}" />
						
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="DayViewHorizontalHeaders" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
					<Border>
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<!-- Resource Grouping Margins -->
							<Rectangle x:Name="TopLeftSpace" Grid.Row="0" Grid.Column="0" Width="3" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />
							<Rectangle x:Name="TopRightSpace" Grid.Row="0" Grid.Column="3" Width="4" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />

							<Border x:Name="Background" Grid.ColumnSpan="4" Grid.RowSpan="5" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" />

							<!-- Resource Color -->
							<Border x:Name="ResourceColorFrame"
									BorderBrush="{Binding ResourceStyleMapping.ResourceBrush}" BorderThickness="2 2 2 0" Margin="0 0 1 0"
									Grid.RowSpan="3" Grid.ColumnSpan="3"
									Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
								<Border BorderBrush="{StaticResource ResourceInnerBorder}" Background="{Binding ResourceStyleMapping.ResourceBrush}" BorderThickness="1 1 1 0"/>
							</Border>

							<!-- Resource Grouping Background -->
							<Border Grid.Row="1" Grid.Column="1" Height="{Binding ElementName=ResourceHeader, Path=DesiredSize.Height}"
								ClipToBounds="True"
								
								 >
								<Canvas Grid.Row="1" Grid.Column="1">
									<scheduler:ResourceHeaderControl x:Name="ResourceHeader"
											Content="{Binding Resource}"
											Style="{StaticResource ResourceHeaderHorizontal}"
											Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
									</scheduler:ResourceHeaderControl>
								</Canvas>
							</Border>

							<ItemsControl x:Name="DayHeaderList" IsTabStop="False"
									Grid.Row="2" Grid.Column="1" Margin="1 0 0 0"
									ItemsSource="{Binding Scheduler.View.TimeSlotsView.Groups}"
									ItemTemplate="{StaticResource DayHorizontalHeaderTemplate}">
								<ItemsControl.ItemsPanel>
									<ItemsPanelTemplate>
										<telerikPrimitives:RadUniformGrid Rows="1" />
									</ItemsPanelTemplate>
								</ItemsControl.ItemsPanel>
							</ItemsControl>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate x:Key="AllDaysAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
		<Grid x:Name="LayoutRoot" Background="{TemplateBinding Background}">
			<telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl" ItemContainerStyle="{StaticResource AllDayTimeSlotStyle}">
				<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 AppointmentItemHorizontalStyle}"
					Margin="0 0 0 2">
				<telerikScheduler:AppointmentItemsControl.ItemsPanel>
					<ItemsPanelTemplate>
						<telerikScheduler:AppointmentPanel Orientation="Vertical" VerticalAlignment="Top" />
					</ItemsPanelTemplate>
				</telerikScheduler:AppointmentItemsControl.ItemsPanel>
			</telerikScheduler:AppointmentItemsControl>
		</Grid>
	</ControlTemplate>

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

	<Style x:Key="DayViewAllDayAppointments" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>

						<!-- Resource Grouping Margins -->
						<Rectangle x:Name="LeftSpace" Grid.Row="0" Grid.Column="0" Width="3" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />
						<Rectangle x:Name="RightSpace" Grid.Row="0" Grid.Column="3" Width="4" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />

						<Border x:Name="Background" Grid.ColumnSpan="4" Grid.RowSpan="5" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" />

						<!-- Resource Color -->
						<Border x:Name="ResourceColorFrame"
									BorderBrush="{Binding ResourceStyleMapping.ResourceBrush}" BorderThickness="2 0" Margin="0 0 1 0"
									Grid.ColumnSpan="3"
									Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
							<Border BorderBrush="{StaticResource ResourceInnerBorder}" Background="{Binding ResourceStyleMapping.ResourceBrush}" BorderThickness="1 0"/>
						</Border>

						<telerikScheduler:AppointmentsControl x:Name="AllDayAppointmentsControl"
								Grid.Column="1" IsTabStop="False"
								Margin="1 0 0 0"
								Style="{StaticResource AllDayAppointmentsControl}"
								Scheduler="{Binding Scheduler}"
								TimeSlots="{Binding Scheduler.View.AllDayTimeSlotsView}"
								Appointments="{Binding Appointments.AllDayAppointmentsView}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate x:Key="NotAllDaysAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
		<Grid x:Name="LayoutRoot">
			<telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl" ItemContainerStyle="{StaticResource DayTimeSlotStyle}">
				<ItemsControl.ItemsPanel>
					<ItemsPanelTemplate>
						<telerikPrimitives:RadUniformGrid ChildrenFlow="Vertical" Columns="{Binding Path=ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}"/>
					</ItemsPanelTemplate>
				</ItemsControl.ItemsPanel>
			</telerikScheduler:TimeSlotItemsControl>
			<telerikScheduler:AppointmentItemsControl x:Name="PART_AppointmentItemsControl" ItemContainerStyle="{StaticResource AppointmentItemVerticalStyle}">
				<telerikScheduler:AppointmentItemsControl.ItemsPanel>
					<ItemsPanelTemplate>
						<telerikScheduler:VirtualizedAppointmentPanel Orientation="Horizontal" />
					</ItemsPanelTemplate>
				</telerikScheduler:AppointmentItemsControl.ItemsPanel>
			</telerikScheduler:AppointmentItemsControl>
		</Grid>
	</ControlTemplate>

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

	<Style x:Key="NotAllDayAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
					<Grid x:Name="LayoutRoot">
						<Grid.RowDefinitions>
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>

						<!-- Resource Grouping Margins -->
						<Rectangle x:Name="BottomLeftSpace" Grid.Row="1" Grid.Column="0" Width="3" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />
						<Rectangle x:Name="BottomRightSpace" Grid.Row="1" Grid.Column="2" Width="4" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />

						<Border x:Name="Background" Grid.ColumnSpan="4" Grid.RowSpan="5" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" />

						<!-- Resource Color -->
						<Border x:Name="ResourceColorFrame"
									BorderBrush="{Binding ResourceStyleMapping.ResourceBrush}" BorderThickness="2 0 2 2" Margin="0 0 1 0"
									Grid.RowSpan="2" Grid.ColumnSpan="3"
									Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
							<Border BorderBrush="{StaticResource ResourceInnerBorder}" BorderThickness="1 0 1 1" Background="{Binding ResourceStyleMapping.ResourceBrush}"/>
						</Border>

						<telerikScheduler:AppointmentsControl x:Name="NotAllDayAppointmentsControl"
								Margin="1 0 0 0" Grid.Row="0" Grid.Column="1" IsTabStop="False"
								Style="{StaticResource NotAllDayAppointmentsControl}"
								TimeSlots="{Binding Scheduler.View.TimeSlotsView}"
								Scheduler="{Binding Scheduler}"
								Appointments="{Binding Appointments.NotAllDayAppointmentsView}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate x:Key="DayTemplate" TargetType="telerikScheduler:SchedulerPresenter">
		<Border Background="{TemplateBinding Background}"
				BorderBrush="{TemplateBinding BorderBrush}"
				BorderThickness="{TemplateBinding BorderThickness}">

			<Grid>

				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<!-- Day headers -->
					<RowDefinition Height="Auto" />
					<!-- All day appointments -->
					<RowDefinition Height="*" />
					<!-- Not all day appointments -->
					<RowDefinition Height="Auto" />
					<!-- Horizontal ScrollBar -->
				</Grid.RowDefinitions>

				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="50" />
					<!-- Timeruler -->
					<ColumnDefinition Width="*" />
					<!-- Views -->
					<ColumnDefinition Width="Auto" />
					<!-- Vertical ScrollBar -->
				</Grid.ColumnDefinitions>

				<!-- Time Ruler -->
				<Border x:Name="TimeRulerBorder" Grid.Row="2" Grid.Column="0" Style="{Binding Scheduler.TimeRulerHostStyle}" />

				<ScrollViewer x:Name="TimeRullerScrollViewer"
						Grid.Row="2" Grid.Column="0"
						Style="{StaticResource ScrollViewerNoScrollbars}"
						telerik:ScrollViewerExtensions.AttachedVerticalScrollBar="{Binding ElementName=VerticalScrollBarNotAllDayArea}"
						 >
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>

						<telerikScheduler:TimeRuler x:Name="TimeRuler" Grid.Row="0"  ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlotsView.GroupedFirstGroupItems}">
							<telerikScheduler:TimeRuler.ItemsPanel>
								<ItemsPanelTemplate>
									<telerikPrimitives:RadUniformGrid Columns="1" />
								</ItemsPanelTemplate>
							</telerikScheduler:TimeRuler.ItemsPanel>
						</telerikScheduler:TimeRuler>

						<Rectangle x:Name="BottomSpace" Grid.Row="1" Height="3" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />

					</Grid>
				</ScrollViewer>

				<!-- Not AllDay Appointment -->
				<ScrollViewer x:Name="NotAllDayAppScrollViewer" Margin="0 0 -1 0"
						Grid.Row="2" Grid.Column="1" IsTabStop="False"
						Style="{StaticResource ScrollViewerNoScrollbars}"
						telerik:ScrollViewerExtensions.AttachedVerticalScrollBar="{Binding ElementName=VerticalScrollBarNotAllDayArea}"
						telerik:ScrollViewerExtensions.AttachedHorizontalScrollBar="{Binding ElementName=HorizontalScrollBar}"
						 >
					<telerikScheduler:AppointmentsControlsContainer
							x:Name="NotAllDayAppointments" IsTabStop="False"
							ItemContainerStyle="{StaticResource NotAllDayAppointmentsControlsContainerItemContainerStyle}">
						<telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
							<ItemsPanelTemplate>
								<telerikPrimitives:RadUniformGrid Rows="1" />
							</ItemsPanelTemplate>
						</telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
					</telerikScheduler:AppointmentsControlsContainer>
				</ScrollViewer>

				<ScrollViewer x:Name="HorizontalHeadersScrollViewer" Margin="0 0 -1 0"
						Grid.Row="0" Grid.Column="1" Canvas.ZIndex="1"
						Style="{StaticResource ScrollViewerNoScrollbars}" IsTabStop="False"
						telerik:ScrollViewerExtensions.AttachedHorizontalScrollBar="{Binding ElementName=HorizontalScrollBar}">
					<telerikScheduler:AppointmentsControlsContainer
							x:Name="HorizontalHeaders" IsTabStop="False"
							MinWidth="{Binding DesiredSize.Width, ElementName=AllDayAppointments}"
							ItemContainerStyle="{StaticResource DayViewHorizontalHeaders}">
						<telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
							<ItemsPanelTemplate>
								<telerikPrimitives:RadUniformGrid Rows="1" />
							</ItemsPanelTemplate>
						</telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
					</telerikScheduler:AppointmentsControlsContainer>
				</ScrollViewer>

				<!-- All Day Appointments -->
				<ScrollViewer x:Name="AllDayAppointmentsScrollViewer" Margin="0 0 -1 0"
						Grid.Row="1" Grid.Column="1" IsTabStop="False"
						Style="{StaticResource ScrollViewerNoScrollbars}"
						Height="{Binding Scheduler.AllDayAreaHeight, RelativeSource={RelativeSource TemplatedParent}}"
						telerik:ScrollViewerExtensions.AttachedVerticalScrollBar="{Binding ElementName=VerticalScrollBarAllDayArea}"
						telerik:ScrollViewerExtensions.AttachedHorizontalScrollBar="{Binding ElementName=HorizontalScrollBar}"
						 >

					<telerikScheduler:AppointmentsControlsContainer
							x:Name="AllDayAppointments" IsTabStop="False"
							ItemContainerStyle="{StaticResource DayViewAllDayAppointments}">
						<telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
							<ItemsPanelTemplate>
								<telerikPrimitives:RadUniformGrid Rows="1" />
							</ItemsPanelTemplate>
						</telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
					</telerikScheduler:AppointmentsControlsContainer>
				</ScrollViewer>

				<Border VerticalAlignment="Bottom" Canvas.ZIndex="2" Grid.Row="1" Grid.Column="1" BorderThickness="0 0 0 1" BorderBrush="{StaticResource ScrollBarSeparatorStroke}" Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=AllDayAppointmentsScrollViewer}" />
				<Border Grid.Column="1" Margin="-1 0" Canvas.ZIndex="2" Grid.RowSpan="3" BorderThickness="1 0" BorderBrush="{StaticResource ScrollBarSeparatorStroke}" Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=NotAllDayAppScrollViewer}" />

				<!-- VerticalScrollBar AllDay Appointments -->
				<ScrollBar x:Name="VerticalScrollBarAllDayArea" Grid.Row="1" Grid.Column="2" Canvas.ZIndex="3"
						telerik:StyleManager.Theme="{StaticResource Theme}"
                        MinWidth="16" MinHeight="0"
                        Height="{Binding Scheduler.AllDayAreaHeight, RelativeSource={RelativeSource TemplatedParent}}"
						Orientation="Vertical"
						SmallChange="5" LargeChange="25"
						Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=AllDayAppointmentsScrollViewer}"
						Minimum="0" Maximum="{Binding ScrollableHeight, ElementName=AllDayAppointmentsScrollViewer}"
						ViewportSize="{Binding ViewportHeight, ElementName=AllDayAppointmentsScrollViewer}" />

				<!-- VerticalScrollBar NotAllDay Appointments -->
				<ScrollBar x:Name="VerticalScrollBarNotAllDayArea" Canvas.ZIndex="3"
						Margin="0 -1 0 0"
						telerik:StyleManager.Theme="{StaticResource Theme}"
                        MinWidth="16" MinHeight="16"
						Grid.Row="2" Grid.Column="2"
						Orientation="Vertical"
						SmallChange="5" LargeChange="25"
						Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=NotAllDayAppScrollViewer}"
						Minimum="0" Maximum="{Binding ScrollableHeight, ElementName=NotAllDayAppScrollViewer}"
						ViewportSize="{Binding ViewportHeight, ElementName=NotAllDayAppScrollViewer}" />

				<!-- HorizontalScrollBar -->
				<ScrollBar x:Name="HorizontalScrollBar" Canvas.ZIndex="3"
						Margin="-1 0 0 0"
						telerik:StyleManager.Theme="{StaticResource Theme}"
                        MinWidth="16" MinHeight="16"
						Grid.Row="3" Grid.Column="1"
						Orientation="Horizontal"
						SmallChange="5" LargeChange="25"
						Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=NotAllDayAppScrollViewer}"
						Minimum="0" Maximum="{Binding ScrollableWidth, ElementName=NotAllDayAppScrollViewer}"
						ViewportSize="{Binding ViewportWidth, ElementName=NotAllDayAppScrollViewer}" />

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

	<DataTemplate x:Key="MonthVerticalHeaderTemplate">
		<telerik:RadButton x:Name="Holder"
				Style="{StaticResource VerticalHeaderButton}"
				Margin="{StaticResource MonthVerticalHeaderMargin}"
				Foreground="{StaticResource MonthWeekHeaderForegroundBrush}"
				Content="{Binding DateTimePeriod}"
				Command="telerikScheduler:RadSchedulerCommands.SetWeekViewMode"
				 >
		</telerik:RadButton>
		
		<DataTemplate.Triggers>
			<DataTrigger Binding="{Binding IsMouseOver, ElementName=Holder}" Value="True">
				<Setter Property="Panel.ZIndex" Value="1" />
			</DataTrigger>
		</DataTemplate.Triggers>
		
	</DataTemplate>

	<DataTemplate x:Key="MonthHorizontalHeaderTemplate">


		<telerik:RadButton x:Name="Holder"
				Style="{StaticResource HorizontalHeaderButton}"
				Margin="-1 0 0 0"
				Foreground="{StaticResource MonthWeekHeaderForegroundBrush}"
				Content="{Binding MonthFormattedStart}"
				IsEnabled="False"
				 >
		</telerik:RadButton>
		
		<DataTemplate.Triggers>
			<DataTrigger Binding="{Binding IsMouseOver, ElementName=Holder}" Value="True">
				<Setter Property="Panel.ZIndex" Value="1" />
			</DataTrigger>
		</DataTemplate.Triggers>
		
	</DataTemplate>

	<Style x:Key="MonthTimeSlotStyle" TargetType="telerikScheduler:TimeSlotItem">
		<Setter Property="Background" Value="{StaticResource TimeSlotItemBackground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_Normal}" />
		<Setter Property="BorderThickness" Value="1 0" />
		<Setter Property="Margin" Value="-1 -1 0 1" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
					<Grid x:Name="LayoutRoot" Background="Transparent"
							 >

						

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

						<!--Background-->
						<Border x:Name="Background" Grid.RowSpan="3"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}"
								Background="{TemplateBinding Background}">

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

						</Border>

						<Rectangle x:Name="OtherMonthVisual" Grid.RowSpan="3" Visibility="Collapsed" Margin="0 0 0 -1" IsHitTestVisible="False" Stroke="{StaticResource TimeSlotItemBorderBrush_OtherMonth}" Fill="{StaticResource TimeSlotItemBackground_OtherMonth}" />
						<!--TodayVisual-->
						<Rectangle x:Name="TodayVisual" Grid.RowSpan="3" Visibility="Collapsed" Margin="0 0 0 -1"
								StrokeThickness="2" Stroke="{StaticResource TimeSlotItemFrame_Today}" />

						<!--Header-->
						<Border x:Name="HeaderOuterBorder" BorderThickness="1" BorderBrush="{StaticResource TimeSlotHeaderOuterBorder_Normal}" Background="{StaticResource TimeSlotHeaderBackground_Normal}" IsHitTestVisible="False">
							<Rectangle x:Name="HeaderInnerBorder" Stroke="{StaticResource TimeSlotHeaderInnerBorder_Normal}" />
						</Border>
						<Border x:Name="HeaderSelectedVisual" Visibility="Collapsed" BorderThickness="1" BorderBrush="{StaticResource TimeSlotHeaderOuterBorder_Selected}" Background="{StaticResource TimeSlotHeaderBackground_Selected}" IsHitTestVisible="False">
							<Rectangle Stroke="{StaticResource TimeSlotHeaderInnerBorder_Selected}" />
						</Border>
						<Border x:Name="HeaderTodayVisual" Visibility="Collapsed" BorderThickness="1" BorderBrush="{StaticResource TimeSlotHeaderOuterBorderBrush_Today}" Background="{StaticResource TimeSlotHeaderBackground_Today}" IsHitTestVisible="False">
							<Rectangle Stroke="{StaticResource TimeSlotHeaderInnerBorderBrush_Today}" />
						</Border>
						<Border Grid.Row="1" Grid.RowSpan="2" BorderThickness="1 0">
							<ContentPresenter  Margin="{TemplateBinding Padding}" />
						</Border>

						<telerik:RadButton x:Name="Header" Canvas.ZIndex="2" IsTabStop="False"
								Style="{StaticResource HeaderButton}"
								HorizontalContentAlignment="Left"
								Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode">

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

								<TextBlock x:Name="DayName" FontWeight="Bold" Grid.Column="0"
										Margin="2"
										 >
									
									<TextBlock.Text>
										<MultiBinding
												Converter="{x:Static telerikScheduler:StringFormatConverter.Instance}">
											<Binding
													RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}"
													Path="MonthViewDayHeaderDayFormat" />
											<Binding Path="Start" />
										</MultiBinding>
									</TextBlock.Text>
									
								</TextBlock>
								<TextBlock x:Name="MonthName" Visibility="Collapsed" Grid.Column="1"
										Margin="2"
										 >
									
									<TextBlock.Text>
										<MultiBinding
												Converter="{x:Static telerikScheduler:StringFormatConverter.Instance}">
											<Binding
													RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}"
													Path="MonthViewDayHeaderMonthFormat" />
											<Binding Path="Start" />
										</MultiBinding>
									</TextBlock.Text>
									
								</TextBlock>
							</Grid>
						</telerik:RadButton>
						<Border x:Name="MouseOverVisual" Grid.Row="1" Grid.RowSpan="2" Visibility="Collapsed" IsHitTestVisible="False"
								Background="{StaticResource TimeSlotItemBackground_MouseOver}"
								BorderBrush="{StaticResource TimeSlotItemOuterBorder_MouseOver}"
								BorderThickness="1"
								Margin="0 -1">
							<Rectangle Stroke="{StaticResource TimeSlotItemInnerBorder_MouseOver}" />
						</Border>

						<Border x:Name="SelectedVisual" Grid.Row="1" Grid.RowSpan="2" Visibility="Collapsed" IsHitTestVisible="False"
								Background="{StaticResource TimeSlotItemBackground_Selected}"
								BorderBrush="{StaticResource TimeSlotItemOuterBorder_Selected}"
								BorderThickness="1"
								Margin="0 -1">
							<Rectangle Stroke="{StaticResource TimeSlotItemInnerBorder_Selected}" />
						</Border>

						<Border Grid.Row="1" x:Name="PART_ContentHost" Margin="2 1 7 0" />

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

						
					</Grid>

					
					<ControlTemplate.Triggers>
						<!-- From Unselected month -->
						<DataTrigger Value="False">
							<DataTrigger.Binding>
								<MultiBinding Converter="{x:Static telerikScheduler:DateTimeIsFromSelectedMonthConverter.Instance}">
									<Binding Path="Start" />
									<Binding Path="SelectedTimeSlot.Start" RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" />
								</MultiBinding>
							</DataTrigger.Binding>
							<Setter TargetName="HeaderOuterBorder" Property="BorderBrush" Value="{StaticResource TimeSlotHeaderOuterBorder_OtherMonth}" />
							<Setter TargetName="HeaderOuterBorder" Property="Background" Value="{StaticResource TimeSlotHeaderBackground_OtherMonth}" />
							<Setter TargetName="HeaderInnerBorder" Property="Stroke" Value="{StaticResource TimeSlotHeaderInnerBorder_OtherMonth}" />
							<Setter TargetName="OtherMonthVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="-1" />
						</DataTrigger>
						<!-- First day of month -->
						<DataTrigger Value="1" Binding="{Binding Path=Start.Day}">
							<Setter TargetName="MonthName" Property="Visibility" Value="Visible" />
						</DataTrigger>
						<!-- MouseOver -->
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="MouseOverVisual" Property="Visibility" Value="Visible" />
							<Setter TargetName="DayName" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
							<Setter TargetName="MonthName" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>
						<Trigger Property="IsDropPossible" Value="True">
							<Setter TargetName="MouseOverVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>
						<!-- Selected -->
						<Trigger Property="IsSelected" Value="True">
							<Setter TargetName="SelectedVisual" Property="Visibility" Value="Visible" />
							<Setter TargetName="HeaderSelectedVisual" Property="Visibility" Value="Visible" />
							<Setter TargetName="Header" Property="Background" Value="Transparent" />
							<Setter TargetName="Header" Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_Selected}" />
							<Setter Property="Panel.ZIndex" Value="2" />
							<Setter TargetName="DayName" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
							<Setter TargetName="MonthName" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
						</Trigger>
						<!-- Today -->
						<DataTrigger Binding="{Binding Path=Start, Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
							<Setter TargetName="TodayVisual" Property="Visibility" Value="Visible" />
							<Setter TargetName="HeaderTodayVisual" Property="Visibility" Value="Visible" />
							<Setter TargetName="MouseOverVisual" Property="Margin" Value="1 -1 1 0" />
							<Setter TargetName="SelectedVisual" Property="Margin" Value="1 -1 1 0" />
							<Setter TargetName="HeaderTodayVisual" Property="Panel.ZIndex" Value="1" />
							<Setter TargetName="Header" Property="Panel.ZIndex" Value="1" />
							<Setter Property="Panel.ZIndex" Value="3" />
							<Setter TargetName="DayName" Property="Foreground" Value="{StaticResource HeaderTodayForeground}" />
							<Setter TargetName="MonthName" Property="Foreground" Value="{StaticResource HeaderTodayForeground}" />
						</DataTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="telerikScheduler:AppointmentsControl" x:Key="MonthAppointmentsControl">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemOuterBorder_Normal}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControl">
					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
						<Grid Margin="-1">
							<telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl"
									ItemContainerStyle="{StaticResource MonthTimeSlotStyle}">
								<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 AppointmentItemHorizontalStyle}">
								<telerikScheduler:AppointmentItemsControl.ItemsPanel>
									<ItemsPanelTemplate>
										<telerikScheduler:VirtualizedAppointmentPanel />
									</ItemsPanelTemplate>
								</telerikScheduler:AppointmentItemsControl.ItemsPanel>
							</telerikScheduler:AppointmentItemsControl>

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

	<Style x:Key="MonthAppointmentsControlsContainerItemContainerStyle"
			TargetType="telerikScheduler:AppointmentsControlsContainerItem">
		<Setter Property="Background" Value="{StaticResource AllDayAreaBrush}" />
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="IsTabStop" Value="False" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<!-- this is used to generate margins in resource grouping view -->
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
							<!-- this is used to generate margins in resource grouping view -->
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<!-- this is used to generate margins in resource grouping view -->
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
							<!-- this is used to generate margins in resource grouping view -->
						</Grid.RowDefinitions>

						<!-- Resource Grouping Margins -->
						<Rectangle x:Name="TopLeftSpace" Grid.Row="0" Grid.Column="0" Width="3" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />
						<Rectangle x:Name="BottomRightSpace" Grid.Row="4" Grid.Column="3" Width="4" Height="3" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" />

						<Border x:Name="Background" Grid.ColumnSpan="4" Grid.RowSpan="5" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" />

						<!-- Resource Color -->
						<Border x:Name="ResourceColorFrame"
								BorderBrush="{Binding ResourceStyleMapping.ResourceBrush}" BorderThickness="2" Margin="0 0 1 0"
								Grid.RowSpan="5" Grid.ColumnSpan="4"
								Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
							<Border BorderBrush="{StaticResource ResourceInnerBorder}" BorderThickness="1" Background="{Binding ResourceStyleMapping.ResourceBrush}" />
						</Border>

						<!-- Appointments Resource Color-->

						<!--ResourceHeader-->
						<scheduler:ResourceHeaderControl x:Name="ResourceHeader"
								Grid.Row="1" Grid.Column="2" Margin="-1 0 0 0"
								Content="{Binding Resource}"
								Style="{StaticResource ResourceHeaderHorizontal}"
								Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
						</scheduler:ResourceHeaderControl>

						<!--VerticalHeaders-->
						<ItemsControl x:Name="VerticalHeaders"
								Grid.Column="1" Grid.Row="3" IsTabStop="False"
								DataContext="{Binding Scheduler.View.TimeSlotsView}"
								ItemTemplate="{StaticResource MonthVerticalHeaderTemplate}"
								ItemsSource="{Binding Groups}">
							<ItemsControl.ItemsPanel>
								<ItemsPanelTemplate>
									<telerikPrimitives:RadUniformGrid Columns="1" />
								</ItemsPanelTemplate>
							</ItemsControl.ItemsPanel>
						</ItemsControl>

						<!--HorizontalHeaders-->
						<ItemsControl x:Name="HorizontalHeaders"
								Grid.Column="2" Grid.Row="2" IsTabStop="False"
								DataContext="{Binding Scheduler.View.TimeSlotsView}"
								ItemTemplate="{StaticResource MonthHorizontalHeaderTemplate}"
								ItemsSource="{Binding FirstGroupItems}">
							<ItemsControl.ItemsPanel>
								<ItemsPanelTemplate>
									<telerikPrimitives:RadUniformGrid Rows="1" />
								</ItemsPanelTemplate>
							</ItemsControl.ItemsPanel>
						</ItemsControl>

						<!--Appointments-->
						<telerikScheduler:AppointmentsControl x:Name="Appointments"
								Grid.Column="2" Grid.Row="3" IsTabStop="False"
								Style="{StaticResource MonthAppointmentsControl}"
								TimeSlots="{Binding Scheduler.View.TimeSlotsView}"
								Scheduler="{Binding Scheduler}"
								Appointments="{Binding Appointments}">
						</telerikScheduler:AppointmentsControl>

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

	<ControlTemplate x:Key="MonthTemplate" TargetType="telerikScheduler:SchedulerPresenter">
		<Border BorderBrush="{TemplateBinding BorderBrush}"
				BorderThickness="{TemplateBinding BorderThickness}"
				Background="{TemplateBinding Background}">

			
			<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.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition />
				</Grid.RowDefinitions>

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

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

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

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

	<DataTemplate x:Key="TimelineHorizontalHeaderTemplate">
		<telerik:RadButton x:Name="Holder"
				MinHeight="22" Margin="-1 0 0 0"
				Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode"
				Style="{StaticResource FloatUpButton}"
				 >

			<Grid>
				<telerikChromes:ButtonChrome Style="{StaticResource SchedulerHeaderChrome}" RenderMouseOver="{Binding IsMouseOver, ElementName=Holder}" RenderPressed="{Binding IsPressed, ElementName=Holder}" CornerRadius="0"/>

				<telerikChromes:ButtonChrome x:Name="IsTodayChrome" Style="{StaticResource SchedulerHeaderChrome}"  Visibility="{Binding Path=Start, Converter={StaticResource DateTimeIsTodayToVisibilityConverter}}" Background="{StaticResource TimeSlotHeaderBackground_Today}" BorderBrush="{StaticResource OuterHeaderBorderBrush}" CornerRadius="0" />

				<Border BorderBrush="{StaticResource HorizontalHeaderInnerBorderBrush_Today}" BorderThickness="1" Margin="1" Visibility="{Binding Path=Start, Converter={StaticResource DateTimeIsTodayToVisibilityConverter}}" />

				<Canvas>
					<TextBlock x:Name="HeaderTextBlock" Canvas.Top="3" Canvas.Left="4"  VerticalAlignment="Center">
						<TextBlock.Text>
							
							
							<MultiBinding Converter="{x:Static telerikScheduler:StringFormatConverter.Instance}">
								<Binding RelativeSource="{RelativeSource AncestorType={x:Type telerikScheduler:RadScheduler}}" Path="TimelineHeaderFormat" />
								<Binding Path="Start" />
							</MultiBinding>
							
						</TextBlock.Text>
					</TextBlock>
					
				</Canvas>
			</Grid>
		</telerik:RadButton>

		
		<DataTemplate.Triggers>

			<DataTrigger Binding="{Binding IsMouseOver, ElementName=Holder}" Value="True">
				<Setter Property="Panel.ZIndex" Value="1" />
				<Setter TargetName="HeaderTextBlock" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />

			</DataTrigger>
			<DataTrigger Binding="{Binding IsPressed, ElementName=Holder}" Value="True">
				<Setter TargetName="HeaderTextBlock" Property="Foreground" Value="{StaticResource HeaderSelectedForeground}" />
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=Start, Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
				<Setter Property="Panel.ZIndex" Value="2" />
				<Setter TargetName="HeaderTextBlock" Property="Foreground" Value="{StaticResource HeaderTodayForeground}" />


				<Setter TargetName="IsTodayChrome"  Property="Background" Value="{StaticResource TimeSlotHeaderBackground_Today}" />
			</DataTrigger>
		</DataTemplate.Triggers>
		
	</DataTemplate>

	<Style x:Key="TimelineTimeSlotStyle" TargetType="telerikScheduler:TimeSlotItem">
		<Setter Property="Background" Value="{StaticResource TimeSlotItemBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Margin" Value="-1 -1 0 0" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
					<Grid x:Name="LayoutRoot"
							 >

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

						

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

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

						<Border x:Name="PART_ContentHost" Grid.Row="0" Margin="2" />

						<Border x:Name="MouseOverVisual" Grid.RowSpan="2" Visibility="Collapsed" IsHitTestVisible="False"
								Background="{StaticResource TimeSlotItemBackground_MouseOver}"
								BorderBrush="{StaticResource TimeSlotItemOuterBorder_MouseOver}"
								BorderThickness="1"
								Margin="0">
							<Rectangle Stroke="{StaticResource TimeSlotItemInnerBorder_MouseOver}" />
						</Border>

						<Border x:Name="SelectedVisual" Grid.RowSpan="2" Visibility="Collapsed" IsHitTestVisible="False"
								Background="{StaticResource TimeSlotItemBackground_Selected}"
								BorderBrush="{StaticResource TimeSlotItemOuterBorder_Selected}"
								BorderThickness="1"
								Margin="0">
							<Rectangle Stroke="{StaticResource TimeSlotItemInnerBorder_Selected}" />
						</Border>

						<Border BorderThickness="1" Grid.RowSpan="2">
							<ContentPresenter Margin="{TemplateBinding Padding}" />
						</Border>

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

						<Rectangle x:Name="TodayVisual" Grid.RowSpan="3" Visibility="Collapsed" Margin="0 0 0 -1"
								StrokeThickness="2" Stroke="{StaticResource TimeSlotItemFrame_Today}" />

						
					</Grid>

					
					<ControlTemplate.Triggers>
						<!-- MouseOver -->
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="MouseOverVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>
						<Trigger Property="IsDropPossible" Value="True">
							<Setter TargetName="MouseOverVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="1" />
						</Trigger>
						<!-- Selected -->
						<Trigger Property="IsSelected" Value="True">
							<Setter TargetName="SelectedVisual" Property="Visibility" Value="Visible" />
							<Setter Property="Panel.ZIndex" Value="2" />
						</Trigger>
						<!-- Today -->
						<DataTrigger Binding="{Binding Path=Start, Converter={x:Static telerikScheduler:DateTimeIsTodayConverter.Instance}}" Value="True">
							<Setter TargetName="TodayVisual" Property="Visibility" Value="Visible" />
							<Setter TargetName="MouseOverVisual" Property="Margin" Value="1 1 1 0" />
							<Setter TargetName="SelectedVisual" Property="Margin" Value="1 1 1 0" />
							<Setter Property="Panel.ZIndex" Value="3" />
						</DataTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate x:Key="TimelineAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
		<Grid>
			<telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl"
					HorizontalAlignment="Stretch" IsTabStop="False"
					ItemContainerStyle="{StaticResource TimelineTimeSlotStyle}">
				<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" IsTabStop="False" ItemContainerStyle="{StaticResource AppointmentItemHorizontalStyle}">
				<ItemsControl.ItemsPanel>
					<ItemsPanelTemplate>
						<telerikScheduler:VirtualizedAppointmentPanel Orientation="Vertical" />
					</ItemsPanelTemplate>
				</ItemsControl.ItemsPanel>
			</telerikScheduler:AppointmentItemsControl>
		</Grid>
	</ControlTemplate>

	<Style TargetType="telerikScheduler:AppointmentsControl" x:Key="TimelineAppointmentsControl">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource AppointmentsControl_Background}" />
		<Setter Property="Template" Value="{StaticResource TimelineAppointmentsControlTemplate}" />
	</Style>

	<Style x:Key="TimelineResourceHeadersControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
					
						<Border x:Name="Resource" Grid.Column="0" Width="60" Margin="-1 -1 0 0"
								Background="{Binding ResourceStyleMapping.ResourceBrush}"
								BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}"
								Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}"
								BorderThickness="1">
							<scheduler:ResourceHeaderControl x:Name="ResourceHeaderControll"
								Content="{Binding Resource}"
								HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
								<scheduler:ResourceHeaderControl.ContentTemplate>
									<DataTemplate>
										<TextBlock x:Name="ResourceName"
											Text="{Binding DisplayName}"
											TextWrapping="Wrap" FontWeight="Bold" TextAlignment="Center"
											HorizontalAlignment="Center" VerticalAlignment="Center" />
									</DataTemplate>
								</scheduler:ResourceHeaderControl.ContentTemplate>
							</scheduler:ResourceHeaderControl>
						</Border>
						
					
					<ControlTemplate.Triggers>
						<DataTrigger Binding="{Binding IsMouseOver, ElementName=LayoutRoot}" Value="True">
							<Setter Property="Panel.ZIndex" Value="1" />
						</DataTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="TimelineAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
					

						<telerikScheduler:AppointmentsControl
							x:Name="Appointments" IsTabStop="False"
							Grid.Column="1"
							Style="{StaticResource TimelineAppointmentsControl}"
							Scheduler="{Binding Scheduler}"
							TimeSlots="{Binding Scheduler.View.TimeSlotsView}"
							Appointments="{Binding Appointments}" />

						
					
					<ControlTemplate.Triggers>
						<DataTrigger Binding="{Binding IsMouseOver, ElementName=LayoutRoot}" Value="True">
							<Setter Property="Panel.ZIndex" Value="1" />
						</DataTrigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

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



		<Grid x:Name="LayoutRoot" Background="Transparent">

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





			<ScrollViewer x:Name="TimelineResourceHeadersScrollViewer"
						Grid.Row="1" Grid.Column="0" IsTabStop="False"
						Margin="0 -1 -1 0" Canvas.ZIndex="1"
						Style="{StaticResource ScrollViewerNoScrollbars}"
						
						HorizontalScrollBarVisibility="Disabled"
						VerticalScrollBarVisibility="Disabled"
						
						telerik:ScrollViewerExtensions.AttachedHorizontalScrollBar="{Binding ElementName=HorizontalScrollBar}">
				<telerikScheduler:AppointmentsControlsContainer x:Name="TimelineResourceHeaders" IsTabStop="False"
							ItemContainerStyle="{StaticResource TimelineResourceHeadersControlsContainerItemContainerStyle}">
					<telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
						<ItemsPanelTemplate>
							<telerikPrimitives:RadUniformGrid Columns="1" />
						</ItemsPanelTemplate>
					</telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
				</telerikScheduler:AppointmentsControlsContainer>
			</ScrollViewer>

			<ScrollViewer x:Name="HorizontalHeadersScrollViewer" IsTabStop="False"
						Grid.Row="0" Grid.Column="1" Canvas.ZIndex="1"
						Style="{StaticResource ScrollViewerNoScrollbars}"
						HorizontalScrollBarVisibility="Disabled"
						VerticalScrollBarVisibility="Disabled"
						telerik:ScrollViewerExtensions.AttachedHorizontalScrollBar="{Binding ElementName=HorizontalScrollBar}">
				<Border Margin="1 0 0 0">
					<ItemsControl x:Name="HorizontalHeaders" IsTabStop="False"
							
							ItemTemplate="{StaticResource TimelineHorizontalHeaderTemplate}"
							ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TimeSlotsView.FirstGroupItems}">
						<ItemsControl.ItemsPanel>
							<ItemsPanelTemplate>
								<telerikPrimitives:RadUniformGrid Rows="1" />
							</ItemsPanelTemplate>
						</ItemsControl.ItemsPanel>
					</ItemsControl>
				</Border>
			</ScrollViewer>

			<ScrollViewer x:Name="TimelineAppointmentsScrollViewer"
						Grid.Row="1" Grid.Column="1" IsTabStop="False"
						Style="{StaticResource ScrollViewerNoScrollbars}"
						
						HorizontalScrollBarVisibility="Disabled"
						VerticalScrollBarVisibility="Disabled"
						
						telerik:ScrollViewerExtensions.AttachedVerticalScrollBar="{Binding ElementName=VerticalScrollBar}">
				<Border Margin="1 0 0 0">
					
					<Border.InputBindings>
						<MouseBinding Gesture="{StaticResource MouseWheelDownGesture}" Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateSmall" />
						<MouseBinding Gesture="{StaticResource MouseWheelUpGesture}" Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateSmall" />
					</Border.InputBindings>
					
					
					<telerikScheduler:AppointmentsControlsContainer x:Name="TimelineAppointments" IsTabStop="False" ItemContainerStyle="{StaticResource TimelineAppointmentsControlsContainerItemContainerStyle}">
						<telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
							<ItemsPanelTemplate>
								<telerikPrimitives:RadUniformGrid Columns="1" />
							</ItemsPanelTemplate>
						</telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
					</telerikScheduler:AppointmentsControlsContainer>
				</Border>
			</ScrollViewer>

			<ScrollBar x:Name="VerticalScrollBar"
						telerik:StyleManager.Theme="{StaticResource Theme}"
                        MinWidth="15" MinHeight="15" Canvas.ZIndex="2"
						Grid.Row="1" Grid.Column="2"
						Orientation="Vertical"
						SmallChange="5" LargeChange="25"
						Value="{Binding VerticalOffset, ElementName=TimelineAppointmentsScrollViewer, Mode=OneWay}"
						Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=TimelineAppointmentsScrollViewer}"
						Minimum="0" Maximum="{Binding ScrollableHeight, ElementName=TimelineAppointmentsScrollViewer}"
						ViewportSize="{Binding ViewportHeight, ElementName=TimelineAppointmentsScrollViewer}" />

			<ScrollBar x:Name="HorizontalScrollBar"
						telerik:StyleManager.Theme="{StaticResource Theme}"
                        MinWidth="15" MinHeight="15" Canvas.ZIndex="2"
						Grid.Row="2" Grid.Column="1"
						SmallChange="5" LargeChange="25"
						Orientation="Horizontal"
						Value="{Binding HorizontalOffset, ElementName=TimelineAppointmentsScrollViewer, Mode=OneWay}"
						Visibility="{Binding ComputedHorizontalScrollBarVisibility, ElementName=TimelineAppointmentsScrollViewer}"
						Minimum="0" Maximum="{Binding ScrollableWidth, ElementName=TimelineAppointmentsScrollViewer}"
						ViewportSize="{Binding ViewportWidth, ElementName=TimelineAppointmentsScrollViewer}" />
		</Grid>
	</ControlTemplate>

	<Style x:Key="ViewModeButtonStyle" TargetType="telerik:RadButton">
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Foreground" Value="{StaticResource ViewModeButtonForeground_Normal}" />
		<Setter Property="MinWidth" Value="86" />
		<Setter Property="Height" Value="22" />
		<Setter Property="Margin" Value="2" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid>
						<Border x:Name="CheckOuterBorder" CornerRadius="1" BorderThickness="1" BorderBrush="{StaticResource ViewModeButtonOuterBorder_Unchecked}" Background="{StaticResource ViewModeButtonBackground_Unchecked}">
							<Rectangle x:Name="CheckInnerBorder"  Stroke="{StaticResource ViewModeButtonInnerBorder_Unchecked}" />
						</Border>
						
						
						<ContentPresenter x:Name="Content"
										Content="{TemplateBinding Content}"
										ContentTemplate="{TemplateBinding ContentTemplate}"
										VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
										HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
										Margin="{TemplateBinding Padding}"
										RecognizesAccessKey="True" />
						

						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Foreground" Value="{StaticResource ViewModeButtonForeground_MouseOver}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_MouseOver}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_MouseOver}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_MouseOver}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter Property="Foreground" Value="{StaticResource ViewModeButtonForeground_Pressed}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_Pressed}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Checked}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_Checked}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Checked}" />
							<Setter Property="Foreground" Value="{StaticResource ViewModeButtonForeground_Checked}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


	<Style x:Key="NavigationButton" TargetType="FrameworkElement">
		<Setter Property="Margin" Value="2" />
		<Setter Property="Width" Value="22" />
		<Setter Property="Height" Value="22" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="VerticalAlignment" Value="Center" />
	</Style>

	<Style x:Key="NavigationButtonBack" TargetType="telerik:RadButton" BasedOn="{StaticResource NavigationButton}">
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid>
						<Border x:Name="CheckOuterBorder" CornerRadius="1" BorderThickness="1" BorderBrush="{StaticResource ViewModeButtonOuterBorder_Unchecked}" Background="{StaticResource ViewModeButtonBackground_Unchecked}">
							<Rectangle x:Name="CheckInnerBorder"  Stroke="{StaticResource ViewModeButtonInnerBorder_Unchecked}" />
						</Border>
						<Path x:Name="IconBackground" Width="4" Height="7" Margin="0 1 0 0" Fill="{StaticResource NavigationIconBackground_Normal}" Data="M4,0 L0,3.5 4,7 Z" />
						<Path x:Name="IconForeground" Width="4" Height="7" Margin="0 0 0 1" Fill="{StaticResource NavigationIconForeground_Normal}" Data="M4,0 L0,3.5 4,7 Z" />

						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="IconForeground" Property="Fill" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="IconBackground" Property="Fill" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Checked}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_MouseOver}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Checked}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="IconForeground" Property="Fill" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="IconBackground" Property="Fill" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_Pressed}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}" />

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

	<Style x:Key="NavigationButtonForeward" TargetType="telerik:RadButton" BasedOn="{StaticResource NavigationButton}">
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadButton">
					<Grid>
						<Border x:Name="CheckOuterBorder" CornerRadius="1" BorderThickness="1" BorderBrush="{StaticResource ViewModeButtonOuterBorder_Unchecked}" Background="{StaticResource ViewModeButtonBackground_Unchecked}">
							<Rectangle x:Name="CheckInnerBorder"  Stroke="{StaticResource ViewModeButtonInnerBorder_Unchecked}" />
						</Border>
						<telerikChromes:ButtonChrome CornerRadius="1" telerik:StyleManager.Theme="{StaticResource Theme}" RenderNormal="False"  />
						<Path x:Name="IconBackground" Width="4" Height="7" Margin="0 1 0 0" Fill="{StaticResource NavigationIconBackground_Normal}" Data="M0,0 L4,3.5 0,7 Z" />
						<Path x:Name="IconForeground" Width="4" Height="7" Margin="0 0 0 1" Fill="{StaticResource NavigationIconForeground_Normal}" Data="M0,0 L4,3.5 0,7 Z" />

						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="IconForeground" Property="Fill" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="IconBackground" Property="Fill" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Checked}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_MouseOver}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Checked}" />

						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="IconForeground" Property="Fill" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="IconBackground" Property="Fill" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_Pressed}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}" />

						</Trigger>

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

	<Style x:Key="NavigationCalendarToggleButton" TargetType="telerik:RadToggleButton" BasedOn="{StaticResource NavigationButton}">
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerik:RadToggleButton">
					<Grid>
						
						<Border x:Name="CheckOuterBorder" CornerRadius="1" BorderThickness="1" BorderBrush="{StaticResource ViewModeButtonOuterBorder_Unchecked}" Background="{StaticResource ViewModeButtonBackground_Unchecked}">
							<Rectangle x:Name="CheckInnerBorder"  Stroke="{StaticResource ViewModeButtonInnerBorder_Unchecked}" />
						</Border>

						<telerikChromes:ButtonChrome CornerRadius="1" telerik:StyleManager.Theme="{StaticResource Theme}" RenderNormal="False"  />
						<ContentControl x:Name="CalendarIcon" IsTabStop="False" Margin="0 0 0 1"  HorizontalContentAlignment="Center" Template="{StaticResource CalendarIcon}" Background="{StaticResource NavigationIconBackground_Normal}" Foreground="{StaticResource NavigationIconForeground_Normal}"/>

					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="CalendarIcon" Property="Foreground" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="CalendarIcon" Property="Background" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Checked}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_MouseOver}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Checked}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="CalendarIcon" Property="Foreground" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="CalendarIcon" Property="Background" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="BorderBrush" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}" />
							<Setter TargetName="CheckOuterBorder" Property="Background" Value="{StaticResource ViewModeButtonBackground_Pressed}" />
							<Setter TargetName="CheckInnerBorder" Property="Stroke" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}" />
						</Trigger>
						<Trigger Property="IsChecked" Value="True">
							<Setter TargetName="CalendarIcon" Property="Foreground" Value="{StaticResource NavigationIconForeground_Highlighted}" />
							<Setter TargetName="CalendarIcon" Property="Background" Value="{StaticResource NavigationIconBackground_Highlighted}" />
							<Setter TargetName="CheckOuterBorder" Property="Visibility" Value="Visible" />
						</Trigger>

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

	<ControlTemplate x:Key="NavigationButtonCalendar"  TargetType="telerikInput:RadDatePicker">
		<Grid>
			<telerik:PickerTextBox x:Name="InputBox" Visibility="Collapsed" />
			<telerik:RadToggleButton x:Name="ToggleButtonElement" Height="22" Width="22"
								Style="{StaticResource NavigationCalendarToggleButton}"
								
				IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}"
				 >
			</telerik:RadToggleButton>

			<Popup x:Name="PART_Popup"
								
				AllowsTransparency="true"
								Placement="Bottom"
								StaysOpen="False"
								IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
								PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
				 >
				<Grid x:Name="DropDownRoot">
					<telerikInput:RadCalendar x:Name="CalendarElement" telerik:StyleManager.Theme="{StaticResource Theme}" />
				</Grid>
			</Popup>
		</Grid>
	</ControlTemplate>


	<Style x:Key="CurrentIntervalContentControl" TargetType="ContentControl">
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="VerticalAlignment" Value="Center" />
		<Setter Property="Margin" Value="5" />
		<Setter Property="FontWeight" Value="Bold" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ContentControl">
					<Grid>
						<TextBlock Margin="0 1 0 0" Text="{TemplateBinding Content}" Foreground="{StaticResource NavigationTextIntervalShadow}" />
						<TextBlock Margin="0 0 0 1" Text="{TemplateBinding Content}" Foreground="{StaticResource NavigationTextIntervalForeground}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="NavigationHeaderStyle" TargetType="Border">
		<Setter Property="BorderBrush" Value="{StaticResource HeaderTopSeparatorBrush}" />
		<Setter Property="BorderThickness" Value="0 0 0 1" />
		<Setter Property="Background" Value="{StaticResource ChangeViewHeaderBackground}" />
	</Style>

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

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

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

						<Border x:Name="PART_Header"
								Grid.ColumnSpan="2"
								BorderThickness="1"
								BorderBrush="{StaticResource NavigationHeaderBorderBrush}"
								Background="{StaticResource NavigationHeaderBackground}">
						</Border>

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

						<StackPanel Grid.Column="1" Orientation="Horizontal" Margin="23 0" HorizontalAlignment="Right">
							<ContentControl
										x:Name="CurrentInterval" IsTabStop="False"
										Style="{StaticResource CurrentIntervalContentControl}"
										Content="{Binding View.DisplayInterval, RelativeSource={RelativeSource TemplatedParent}}" />

							<telerik:RadButton x:Name="Back"
									Style="{StaticResource NavigationButtonBack}"
									Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateLarge"
									CommandTarget="{Binding ElementName=presenter}"
									DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
									Visibility="{Binding Path=IsBackAndForwardNavigationEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
									
								ToolTip="Back"
								 >
							</telerik:RadButton>

							<telerikInput:RadDatePicker x:Name="PART_navigationDatePicker"
										Template="{StaticResource NavigationButtonCalendar}"
										telerik:StyleManager.Theme="{StaticResource Theme}"
										SelectedDate="{Binding SelectedTimeSlot.Start, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
										Visibility="{TemplateBinding CalendarVisibility}">
							</telerikInput:RadDatePicker>

							<telerik:RadButton x:Name="Forward"
										Style="{StaticResource NavigationButtonForeward}"
										Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateLarge"
										CommandTarget="{Binding ElementName=presenter}"
										DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
										Visibility="{Binding Path=IsBackAndForwardNavigationEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"
										
								ToolTip="Forward"
								 >
							</telerik:RadButton>
						</StackPanel>
					</Grid>
				</Border>




				<Grid Grid.Row="1"
					
					ClipToBounds="True"
					Focusable="False"
					
					 >

					
					<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" IsTabStop="False"
                       Scheduler="{Binding RelativeSource={RelativeSource TemplatedParent}}" 
                       OpacityMask="{StaticResource RadSchedulerPresenterOpacityMask}" >
						<UIElement.RenderTransform>
							
								<TranslateTransform />
								
						</UIElement.RenderTransform>
					</telerikScheduler:SchedulerPresenter>

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

	<Style TargetType="telerikScheduler:RadScheduler" x:Key="RadSchedulerStyle"
		 >

		<Setter Property="AllDayAreaHeight" Value="60" />
		<Setter Property="Background" Value="{StaticResource RadSchedulerBackground}" />
		<Setter Property="Template" Value="{StaticResource RadSchedulerTemplate}" />
		<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}"/>
		<Setter Property="IsTabStop" Value="False" />

		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		
	</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>

	

	<Style
        x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType={x:Type telerikScheduler:RadScheduler}}"
		TargetType="{x:Type telerikScheduler:RadScheduler}"
		BasedOn="{StaticResource RadSchedulerStyle}">
	</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 DayTimeSlotStyle}" />

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

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

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

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

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

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

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

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

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

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

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

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

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

	

	
</ResourceDictionary>
