<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:telerikScheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
        mc:Ignorable="c"
        xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:scheduleView="clr-namespace:Telerik.Windows.Controls.ScheduleView;assembly=Telerik.Windows.Controls.ScheduleView"
        xmlns:dragDrop="clr-namespace:Telerik.Windows.DragDrop;assembly=Telerik.Windows.Controls"
        xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
        xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
        xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation">
    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
    <telerikScheduleView:InvertedNullToVisibilityConverter x:Key="InvertedNullToVisibilityConverter"/>
    <telerikScheduleView:InvertedVisibilityConverter x:Key="InvertedVisibilityConverter"/>
    <scheduleView:AppointmentsSubjectToLocalizatedStringConverter DefaultTextKey="Untitled" x:Key="AppointmentsSubjectToLocalizatedStringConverter"/>
    <telerikScheduleView:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>
    <telerikScheduleView:BoolToInputModeConverter x:Key="BoolToInputModeConverter"/>
    <telerikScheduleView:ResourcesSeparatorConverter x:Key="ResourcesSeparatorConverter"/>
    <telerik:EnumToBooleanConverter x:Key="EnumToBoolConverter"/>
    <telerik:EnumToVisibilityConverter x:Key="EnumToVisibilityConverter"/>
    <telerikScheduleView:RecurrenceStateIsExeptionToVisibilityConverter x:Key="RecurrenceStateIsExeptionToVisibilityConverter"/>
    <telerikScheduleView:RecurrenceStateIsOccurenceToVisibilityConverter x:Key="RecurrenceStateIsOccurenceToVisibilityConverter"/>
    <telerikScheduleView:DraggedAppointmentsToLocalizedStringConverter x:Key="DraggedAppointmentsToLocalizedStringConverter"/>
    <telerikScheduleView:EnumerableCountToVisibilityConverter x:Key="EnumerableCountToVisibilityConverter"/>
    <telerikScheduleView:IntArrayToDoubleValueConverter x:Key="MultipleToSingleConverter"/>
    <telerik:LocalizationManager x:Key="LocalizationManager"/>
    <SolidColorBrush x:Key="DragVisualForeground" Color="Black"/>
    <SolidColorBrush x:Key="DragVisualBorder" Color="#FF848484"/>
    <LinearGradientBrush x:Key="DragVisualBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFDEDEDE" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="DragVisualMultyItemBorder" Color="#FF848484"/>
    <SolidColorBrush x:Key="DragVisualMultyItemBackground" Color="White"/>
    <SolidColorBrush x:Key="DragVisualEffectNormal" Color="#FF364F6F"/>
    <SolidColorBrush x:Key="DragVisualEffectImportant" Color="#FFDC000C"/>
    <SolidColorBrush x:Key="RadScheduleForeground" Color="Black"/>
    <SolidColorBrush x:Key="RadScheduleBackground" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="RadScheduleBorderBrush" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground" Color="#99FCE7AD"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground_Selected" Color="#AAFCE7AD"/>
    <SolidColorBrush x:Key="DecorationRectangleInnerBorder_Selected" Color="#AAFFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleOuterBorder_Selected" Color="#AAFFC92B"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground_MouseOver" Color="#FFFFFBD1"/>
    <SolidColorBrush x:Key="DecorationRectangleInnerBorder_MouseOver" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleOuterBorder_MouseOver" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground_DragOver" Color="#99FCE7AD"/>
    <SolidColorBrush x:Key="DecorationRectangleInnerBorder_DragOver" Color="#99FFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleOuterBorder_DragOver" Color="#FF848484"/>
    <LinearGradientBrush x:Key="SchedulerHeaderOuterBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF96B3DC" Offset="0"/>
        <GradientStop Color="#FF7CA1CD" Offset="1"/>
        <GradientStop Color="#FF6289B9" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="SchedulerHeaderInnerBorder" Color="#FFEFF6FF"/>
    <LinearGradientBrush x:Key="SchedulerHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF3FF" Offset="0"/>
        <GradientStop Color="#FFD0E8FF" Offset="1"/>
        <GradientStop Color="#FFABC9EE" Offset="0.43"/>
        <GradientStop Color="#FFC6DFFF" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewModeButtonForeground" Color="#FF000000"/>
    <SolidColorBrush x:Key="ViewModeButtonOuterBorder" Color="#FF83A5D2"/>
    <SolidColorBrush x:Key="ViewModeButtonInnerBorder" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="ViewModeButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF3FF"/>
        <GradientStop Color="#FFD0F3FF" Offset="1"/>
        <GradientStop Color="#FFA1C5F2" Offset="0.43"/>
        <GradientStop Color="#FFCAE1FF" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="NavigationIconBackground_Normal" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="NavigationIconForeground_Normal" Color="#FF567DB1"/>
    <SolidColorBrush x:Key="NavigationIconBackground_Highlighted" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="NavigationIconForeground_Highlighted" Color="#FF567DB1"/>
    <SolidColorBrush x:Key="ViewModeButtonForeground_MouseOver" Color="#FF000000"/>
    <SolidColorBrush x:Key="ViewModeButtonOuterBorder_MouseOver" Color="#FFFFC92B"/>
    <LinearGradientBrush x:Key="ViewModeButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
        <GradientStop Color="#FFFFD25A" Offset="0.43"/>
        <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewModeButtonInnerBorder_MouseOver" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ViewModeButtonForeground_Pressed" Color="#FF000000"/>
    <LinearGradientBrush x:Key="ViewModeButtonOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF282828"/>
        <GradientStop Color="#FF5F5F5F" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ViewModeButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFE9227" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74" Offset="0"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ViewModeButtonInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <ControlTemplate x:Key="CalendarIcon" TargetType="ContentControl">
        <Grid>
            <Path x:Name="CalendarIconBackground"
                    Width="7"
                    Height="7"
                    Margin="0 1 0 0"
                    Stroke="{TemplateBinding Background}"
                    Data="M0,0.5 L7,0.5 M0,2.5 L7,2.5 M0,4.5 L7,4.5 M0,6.5 L7,6.5 M0.5,0 L0.5,7 M2.5,0 L2.5,7 M4.5,0 L4.5,7 M6.5,0 L6.5,7"/>
            <Path x:Name="CalendarIconForeground"
                    Width="7"
                    Height="7"
                    Margin="0 0 0 1"
                    Stroke="{TemplateBinding Foreground}"
                    Data="M0,0.5 L7,0.5 M0,2.5 L7,2.5 M0,4.5 L7,4.5 M0,6.5 L7,6.5 M0.5,0 L0.5,7 M2.5,0 L2.5,7 M4.5,0 L4.5,7 M6.5,0 L6.5,7"/>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="NavigationIntervalForegroundRear" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="NavigationIntervalForegroundFront" Color="#FF000000"/>
    <SolidColorBrush x:Key="GroupHeaderBorderBrush" Color="#FFB3D0F3"/>
    <LinearGradientBrush x:Key="GroupHeaderHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF3FF" Offset="0"/>
        <GradientStop Color="#FFD0E8FF" Offset="1"/>
        <GradientStop Color="#FFC6DFFF" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder" Color="#FF83A5D2"/>
    <LinearGradientBrush x:Key="GroupHeaderHeaderBackground_Vertical" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFEBF3FF" Offset="0"/>
        <GradientStop Color="#FFD0E8FF" Offset="1"/>
        <GradientStop Color="#FFC6DFFF" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_Vertical" Color="#FFEFF6FF"/>
    <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder_Vertical" Color="#FF83A5D2"/>
    <SolidColorBrush x:Key="GroupHeaderBorderBrush_Today" Color="#FFFFC92B"/>
    <LinearGradientBrush x:Key="GroupHeaderHeaderBackground_VerticalToday" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFFB062" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GroupHeaderHeaderInnerBorder_VerticalToday" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder_VerticalToday" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FF5F5F5F" Offset="1"/>
        <GradientStop Color="#FF282828"/>
    </LinearGradientBrush>
    <Thickness x:Key="HorizontalGroupHeaderTodayBorderThickness">2 0 2 2</Thickness>
    <SolidColorBrush x:Key="TimeRulerGroupItemForeground" Color="#FF000000"/>
    <SolidColorBrush x:Key="TimeRulerItemMajorTickStroke" Color="#FFB3D0F3"/>
    <SolidColorBrush x:Key="TimeRulerItemMinorTickStroke" Color="#FFB3D0F3"/>
    <SolidColorBrush x:Key="TimeRulerItemMajorTickStroke_Vertical" Color="#FFB3D0F3"/>
    <SolidColorBrush x:Key="TimeRulerItemMinorTickStroke_Vertical" Color="#FFB3D0F3"/>
    <SolidColorBrush x:Key="TimeRulerLineStroke" Color="#FFB3D0F3"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder" Color="#FFEFF6FF"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Normal" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_MouseOver" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Today" Color="#FF000000"/>
    <SolidColorBrush x:Key="HorizontalBottomLevelTodayForeground" Color="#FF000000"/>
    <SolidColorBrush x:Key="CurrentTimeFill" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="MonthViewExpandIconStroke" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewExpandIconStroke_MouseOver" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewExpandIconStroke_Pressed" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewExpandOuterBorder" Color="#00000000"/>
    <SolidColorBrush x:Key="MonthViewExpandButtonBackground" Color="#00000000"/>
    <SolidColorBrush x:Key="MonthViewExpandInnerBorder" Color="#00000000"/>
    <SolidColorBrush x:Key="MonthViewExpandOuterBorder_MouseOver" Color="#FFFFC92B"/>
    <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
        <GradientStop Color="#FFFFD25A" Offset="0.43"/>
        <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewExpandInnerBorder_MouseOver" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="MonthViewExpandOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF282828"/>
        <GradientStop Color="#FF5F5F5F" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFE9227" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74" Offset="0"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewExpandInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_MouseOver" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
        <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
        <GradientStop Color="#FFFFD25A" Offset="0.43"/>
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFFB062" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemOuterBorder_Today" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF282828"/>
        <GradientStop Color="#FF5F5F5F" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorder_Today" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_Today" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFFB062" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayMouseOver" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_TodayMouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
        <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
        <GradientStop Color="#FFFFD25A" Offset="0.43"/>
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayPressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_TodayPressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFFB062" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorderVertical_MouseOver" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackgroundVertical_MouseOver" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
        <GradientStop Color="#FFFFD25A" Offset="0.43"/>
        <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorderVertical_Pressed" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFB69A78"/>
        <GradientStop Color="#FFFFE17A" Offset="0.126"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackgroundVertical_Pressed" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFFFD74E" Offset="0.996"/>
        <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
        <GradientStop Color="#FFFE9227" Offset="0.57"/>
        <GradientStop Color="#FFFFD18F" Offset="0.56"/>
        <GradientStop Color="#FFFFBA74" Offset="0"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentItemBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF3FF"/>
        <GradientStop Color="#FFCAE1FF" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemInnerBorder" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder" Color="#FF83A5D2"/>
    <LinearGradientBrush x:Key="AppointmentItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemInnerBorder_MouseOver" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder_MouseOver" Color="#FFFFC92B"/>
    <LinearGradientBrush x:Key="AppointmentItemBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFCE79F" Offset="1"/>
        <GradientStop Color="#FFFDD3A8"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemInnerBorder_Selected" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder_Selected" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="AppoinmtentItemBackground_ReadOnly" Color="#99D0D8E2"/>
    <LinearGradientBrush x:Key="AppointmentItemBackground_Drag" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#AAFFFFFF"/>
        <GradientStop Color="#AAD4D4D4" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemInnerBorder_Drag" Color="#AAFFFFFF"/>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder_Drag" Color="#FF848484"/>
    <SolidColorBrush x:Key="AppointmentItemResizeGripStroke" Color="#FF444444"/>
    <SolidColorBrush x:Key="AppointmentItemResizeGripBackground" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="AppointmentItemDeleteIconStroke" Color="#FF444444"/>
    <LinearGradientBrush x:Key="AppointmentResizeCueTopLeftMarkStroke" StartPoint="0 0" EndPoint="1 1">
        <GradientStop Offset="0.33" Color="#FF83A5D2"/>
        <GradientStop Offset="1" Color="#0083A5D2"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentResizeCueBottomRightMarkStroke" StartPoint="1 1" EndPoint="0 0">
        <GradientStop Offset="0.33" Color="#FF83A5D2"/>
        <GradientStop Offset="1" Color="#0083A5D2"/>
    </LinearGradientBrush>
    <ImageSource x:Key="AppointmentItem_Recurrence">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentException.png</ImageSource>
    <ImageSource x:Key="AppointmentItem_Exception">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentRecurrence.png</ImageSource>
    <SolidColorBrush x:Key="AppointmentItemIndicatorFill" Color="#FF000000"/>
    <LinearGradientBrush x:Key="RedCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE8807D" Offset="0"/>
        <GradientStop Color="#FFF7D4D2" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GreenCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF99CC66" Offset="0"/>
        <GradientStop Color="#FFCCFF99" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="BlueCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF6C92BF" Offset="0"/>
        <GradientStop Color="#FFC3D6EC" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PurpleCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFB687B8" Offset="0"/>
        <GradientStop Color="#FFE9D7EB" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="YellowCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD351" Offset="0"/>
        <GradientStop Color="#FFFFFF99" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="OliveCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFA3AD70" Offset="0"/>
        <GradientStop Color="#FFE5F0CA" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="PinkCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFCE66A2" Offset="0"/>
        <GradientStop Color="#FFF8A2D3" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="OrangeCategoryBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF57238" Offset="0"/>
        <GradientStop Color="#FFFFCC00" Offset="1"/>
    </LinearGradientBrush>
    <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>
    <SolidColorBrush x:Key="SpecialSlotBackground" Color="#19153D6E"/>
    <SolidColorBrush x:Key="SpecialSlotBackground_ReadOnly" Color="#33153D6E"/>
    <ImageSource x:Key="EditAppointmentTemplate_Recurrence">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/Recurrence.png</ImageSource>
    <SolidColorBrush x:Key="RecurrenceChoiceBackground" Color="#FFE2F0FD"/>
    <SolidColorBrush x:Key="RecurrenceChoiceBorder" Color="#FF83A5D2"/>
    <CornerRadius x:Key="RecurrenceChoiceCornerRadius">1</CornerRadius>
    <telerik1:InvertedBooleanConverter x:Key="InvertedBooleanConverter"/>
    <SolidColorBrush x:Key="BorderLineOuterColor" Color="#26000000"/>
    <SolidColorBrush x:Key="BorderLineInnerColor" Color="#FFFFFFFF"/>
    <CornerRadius x:Key="SplitButton_LeftPartCornerRadius">1 0 0 1</CornerRadius>
    <CornerRadius x:Key="SplitButton_RightPartCornerRadius">0 1 1 0</CornerRadius>
    <CornerRadius x:Key="SplitButton_SpanCornerRadius">1</CornerRadius>
    <CornerRadius x:Key="SplitButton_SpanInnerCornerRadius">0</CornerRadius>
    <CornerRadius x:Key="ControlOuterBorder_CornerRadius">1</CornerRadius>
    <CornerRadius x:Key="ControlInnerBorder_CornerRadius">0</CornerRadius>
    <SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FF9BB0CD"/>
    <SolidColorBrush x:Key="ControlBackground_Disabled" Color="#FFE2F0FD"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF83A5D2"/>
    <SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FFFFC92B"/>
    <LinearGradientBrush x:Key="ControlOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616161" Offset="0"/>
        <GradientStop Color="#FF989898" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Highlighted" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="ControlBackground_Highlighted" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBA3" Offset="1"/>
        <GradientStop Color="#FFFFFBDA" Offset="0"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="Transparent"/>
    <SolidColorBrush x:Key="ControlSubItem_OuterBorder_Selected" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="ControlSubItem_InnerBorder_Selected" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="ControlSubItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFCE79F" Offset="1"/>
        <GradientStop Color="#FFFDD3A8"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF8D8D8D"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF3C6AA3"/>
    <SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF3C6AA3"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FF000000"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Disabled" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonIconBackground_MouseOver" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Pressed" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="PickerForeground_Normal" Color="#FF000000"/>
    <SolidColorBrush x:Key="PickerBackground_Normal" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="PickerPopupBackground" Color="White"/>
    <CornerRadius x:Key="ValidationTooltipCornerRadius">1</CornerRadius>
    <CornerRadius x:Key="ValidationTooltip_CornerRadius">1</CornerRadius>
    <SolidColorBrush x:Key="ValidationTooltipForeground" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ValidationTooltipOuterBorder" Color="#FFDC000C"/>
    <SolidColorBrush x:Key="ValidationTooltipInnerBorder" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="ValidationTooltipBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFF424C" Offset="1"/>
        <GradientStop Color="#FFC92931"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ValidationInnerTick" Color="#FFCB576E"/>
    <SolidColorBrush x:Key="ValidationOuterTick" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="WindowButtonIconStroke" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="WindowButtonIconFill" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF3C6AA3" Offset="0"/>
        <GradientStop Color="#FF83A5D2" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="WindowOuterBorder" Color="#FF83A5D2"/>
    <SolidColorBrush x:Key="WindowInnerBorder" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="WindowBorderBackground" Color="#FFC6DEFD"/>
    <SolidColorBrush x:Key="WindowBackground" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="WindowModalBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2153D6E"/>
        <GradientStop Color="#33153D6E" Offset="0.5"/>
        <GradientStop Color="#B2153D6E" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="WindowHeaderBackground" StartPoint="0 0" EndPoint="0 1">
        <GradientStop Color="#FFE7F0FC" Offset="0"/>
        <GradientStop Color="#FFD9E6F8" Offset="0.5"/>
        <GradientStop Color="#FFB9D0EC" Offset="0.5"/>
        <GradientStop Color="#FFD6F2FF" Offset="0.1"/>
    </LinearGradientBrush>
    <Thickness x:Key="WindowButtonPadding">4</Thickness>
    <Thickness x:Key="WindowButtonMargin">1 1 0 1</Thickness>
    <ControlTemplate x:Key="ArrowTemplateEditableCombobox" TargetType="ContentControl">
        <Grid Margin="5 0">
            <Path x:Name="BackgroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Background}" Margin="0 2 0 0"/>
            <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Foreground}" Margin="0 1 0 1"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="ArrowTemplateNonEditableCombobox" TargetType="ContentControl">
        <Grid Margin="5 0">
            <Path x:Name="BackgroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Background}" Margin="0 2 0 0"/>
            <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Foreground}" Margin="0 1 0 1"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="ErrorTooltipTemplate" TargetType="ToolTip">
        <Grid x:Name="RootVisual" HorizontalAlignment="Right" RenderTransformOrigin="0 0" Opacity="0" Margin="5 0">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OpenStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0"/>
                        <VisualTransition To="Open" GeneratedDuration="0:0:0.2">
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.2">
                                    <DoubleAnimation.EasingFunction>
                                        <BackEase Amplitude=".3" EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                                <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.2"/>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="0" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0"/>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Border
                    MinHeight="22"
                    Background="{StaticResource ValidationTooltipBackground}"
                    BorderBrush="{StaticResource ValidationTooltipOuterBorder}"
                    BorderThickness="1"
                    CornerRadius="{StaticResource ValidationTooltipCornerRadius}">
                <Border BorderBrush="{StaticResource ValidationTooltipInnerBorder}" BorderThickness="1">
                    <ContentPresenter TextBlock.Foreground="{StaticResource ValidationTooltipForeground}" Content="{Binding ErrorContent}" Margin="4 0 4 1"/>
                </Border>
            </Border>
            <ContentControl/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="ValidationTooltipTemplate">
        <Grid SnapsToDevicePixels="True" VerticalAlignment="Top">
            <Border Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top" Width="3" Height="3"/>
            <AdornedElementPlaceholder x:Name="Holder"/>
            <Border BorderBrush="{StaticResource ValidationTooltipOuterBorder}" BorderThickness="1" CornerRadius="{StaticResource ValidationTooltip_CornerRadius}"/>
            <Path Data="M2,1 L6,1 6,5 Z" Fill="{StaticResource ValidationInnerTick}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <Path Data="M0,0 L2,0 7,5 7,7 Z" Fill="{StaticResource ValidationOuterTick}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <ToolTipService.ToolTip>
                <ToolTip x:Name="PART_ToolTip"
                        DataContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=PlacementTarget.DataContext}"
                        Template="{StaticResource ErrorTooltipTemplate}"
                        Placement="Right"/>
            </ToolTipService.ToolTip>
        </Grid>
    </ControlTemplate>
    <telerikScheduleView:ResourceTypeTemplateSelector x:Key="ResourcesEditorItemTemplateSelector">
        <telerikScheduleView:ResourceTypeTemplateSelector.SingleSelectionTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="100" SharedSizeGroup="LabelsGroup"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding ResourceType.DisplayName}" Margin="6"/>
                    <telerik:RadComboBox
                            Grid.Column="1"
                            Margin="3"
                            ItemsSource="{Binding ResourceItems}"
                            ClearSelectionButtonVisibility="Visible"
                            ClearSelectionButtonContent="{Binding ClearAllButtonContent}"
                            SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                            DisplayMemberPath="Resource.DisplayName"/>
                </Grid>
            </DataTemplate>
        </telerikScheduleView:ResourceTypeTemplateSelector.SingleSelectionTemplate>
        <telerikScheduleView:ResourceTypeTemplateSelector.MultipleSelectionTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="100" SharedSizeGroup="LabelsGroup"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding ResourceType.DisplayName}" Margin="6"/>
                    <telerik:RadComboBox
                            Grid.Column="1"
                            Margin="3"
                            ItemsSource="{Binding ResourceItems}"
                            ClearSelectionButtonVisibility="Visible"
                            ClearSelectionButtonContent="{Binding ClearAllButtonContent}"
                            SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}">
                        <telerik:RadComboBox.ItemContainerStyle>
                            <Style TargetType="telerik:RadComboBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate>
                                            <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" Content="{Binding Resource.DisplayName}"/>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </telerik:RadComboBox.ItemContainerStyle>
                        <telerik:RadComboBox.SelectionBoxTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ResourcesSeparatorConverter}}"/>
                            </DataTemplate>
                        </telerik:RadComboBox.SelectionBoxTemplate>
                    </telerik:RadComboBox>
                </Grid>
            </DataTemplate>
        </telerikScheduleView:ResourceTypeTemplateSelector.MultipleSelectionTemplate>
    </telerikScheduleView:ResourceTypeTemplateSelector>
    <DataTemplate x:Key="TimeMarkerComboBoxItemContentTemplate">
        <StackPanel Orientation="Horizontal">
            <Rectangle Fill="{Binding TimeMarkerBrush}" Margin="2 0" Width="12" Height="12"/>
            <TextBlock telerik:LocalizationManager.ResourceKey="{Binding TimeMarkerName}" Margin="2 0"/>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="CategoryComboBoxItemContentTemplate">
        <StackPanel Orientation="Horizontal">
            <Rectangle Fill="{Binding CategoryBrush}" Margin="2 0" Width="12" Height="12"/>
            <TextBlock Text="{Binding DisplayName}" Margin="2 0"/>
        </StackPanel>
    </DataTemplate>
    <ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <Grid IsSharedSizeScope="True">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <telerik:RadToolBar x:Name="AppointmentToolbar" GripVisibility="Collapsed" Grid.Row="0" Margin="-1 -1 -1 3" FocusManager.IsFocusScope="False">
                <telerik:RadButton x:Name="EditRecurrenceButton"
                        AutomationProperties.AutomationId="EditRecurrenceButton"
                        Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditRecurrenceRule}"
                        Visibility="{Binding CanEditParentAppointment, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                    <ToolTipService.ToolTip>
                        <ToolTip telerik:LocalizationManager.ResourceKey="EditRecurrence"/>
                    </ToolTipService.ToolTip>
                    <StackPanel Orientation="Horizontal" Margin="2 0">
                        <Image
                                Margin="2 0"
                                Stretch="None"
                                Source="{StaticResource EditAppointmentTemplate_Recurrence}"
                                RenderOptions.BitmapScalingMode="NearestNeighbor"
                                RenderOptions.EdgeMode="Aliased"/>
                        <TextBlock Margin="4 0" telerik:LocalizationManager.ResourceKey="EditRecurrence" Foreground="{StaticResource RadScheduleForeground}"/>
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton x:Name="EditParentAppointmentButton"
                        AutomationProperties.AutomationId="EditParentAppointmentButton"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditParentAppointment}"
                        Visibility="{Binding CanEditParentAppointment, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <ToolTipService.ToolTip>
                        <TextBlock telerik:LocalizationManager.ResourceKey="EditParentAppointment"/>
                    </ToolTipService.ToolTip>
                    <TextBlock Margin="4 0" telerik:LocalizationManager.ResourceKey="EditParentAppointment" Foreground="{StaticResource RadScheduleForeground}"/>
                </telerik:RadButton>
                <telerik:RadToolBarSeparator/>
                <TextBlock x:Name="ShowAs" telerik:LocalizationManager.ResourceKey="ShowAs" VerticalAlignment="Center" Foreground="{StaticResource RadScheduleForeground}" Margin="6 0"/>
                <telerik:RadComboBox x:Name="PART_TimeMarkers"
                        AutomationProperties.AutomationId="PART_TimeMarkers"
                        Margin="2 1"
                        Width="110"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        EmptyText="{Binding TimeMarkersEmptyText}"
                        ItemsSource="{Binding TimeMarkers}"
                        SelectedItem="{Binding Occurrence.Appointment.TimeMarker, Mode=TwoWay}"
                        ClearSelectionButtonVisibility="Visible"
                        ClearSelectionButtonContent="{Binding ClearSelectionButtonContent}"
                        ItemTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}"
                        SelectionBoxTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}"/>
                <telerik:RadComboBox x:Name="PART_Categories"
                        AutomationProperties.AutomationId="PART_Categories"
                        Margin="2 1"
                        Width="120"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        EmptyText="{Binding CategoriesEmptyText}"
                        ItemsSource="{Binding Categories}"
                        SelectedItem="{Binding Occurrence.Appointment.Category, Mode=TwoWay}"
                        ClearSelectionButtonVisibility="Visible"
                        ClearSelectionButtonContent="{Binding ClearSelectionButtonContent}"
                        ItemTemplate="{StaticResource CategoryComboBoxItemContentTemplate}"
                        SelectionBoxTemplate="{StaticResource CategoryComboBoxItemContentTemplate}"/>
                <telerik:RadToggleButton x:Name="HighImportaceButton"
                        AutomationProperties.AutomationId="HighImportaceButton"
                        Width="22"
                        Height="22"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        IsChecked="{Binding IsHighImportance, Mode=TwoWay}">
                    <ToolTipService.ToolTip>
                        <ToolTip telerik:LocalizationManager.ResourceKey="HighImportance"/>
                    </ToolTipService.ToolTip>
                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Path
                                Stretch="Fill"
                                Height="10"
                                HorizontalAlignment="Center"
                                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 Width="3" Height="3" HorizontalAlignment="Center">
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFF0606" Offset="0"/>
                                    <GradientStop Color="#FFBF0303" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                    </StackPanel>
                </telerik:RadToggleButton>
                <telerik:RadToggleButton x:Name="LowImportaceButton"
                        AutomationProperties.AutomationId="LowImportaceButton"
                        Width="22"
                        Height="22"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        IsChecked="{Binding IsLowImportance, Mode=TwoWay}">
                    <ToolTipService.ToolTip>
                        <ToolTip telerik:LocalizationManager.ResourceKey="LowImportance"/>
                    </ToolTipService.ToolTip>
                    <Path
                            Stretch="Fill"
                            Height="12"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Width="9"
                            Stroke="#FF0365A7"
                            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>
                </telerik:RadToggleButton>
            </telerik:RadToolBar>
            <Border x:Name="AppointmentCategory"
                    Grid.Row="1"
                    Height="20"
                    Margin="6 6"
                    CornerRadius="3"
                    Background="{Binding SelectedItem.CategoryBrush, ElementName=PART_Categories}"
                    Visibility="{Binding SelectedItem, ElementName=PART_Categories,Converter={StaticResource NullToVisibilityConverter}}">
                <TextBlock Margin="6 0" Text="{Binding SelectedItem.DisplayName, ElementName=PART_Categories}" VerticalAlignment="Center"/>
            </Border>
            <Grid x:Name="Details" Grid.Row="2" Margin="6">
                <Grid.Resources>
                    <telerik:InputMode x:Key="RadDateTimePickerInputModeDatePicker">DatePicker</telerik:InputMode>
                </Grid.Resources>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MinWidth="100" SharedSizeGroup="LabelsGroup"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Subject"/>
                <TextBox
                        AutomationProperties.AutomationId="SubjectTextBox"
                        Grid.Row="0"
                        Grid.Column="1"
                        Grid.ColumnSpan="2"
                        Margin="3"
                        IsReadOnly="{Binding IsReadOnly}"
                        Text="{Binding Occurrence.Appointment.Subject, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Body"/>
                <TextBox
                        AutomationProperties.AutomationId="DescriptionTextBox"
                        Grid.Row="1"
                        Grid.Column="1"
                        Grid.ColumnSpan="2"
                        Margin="3"
                        Height="70"
                        IsReadOnly="{Binding IsReadOnly}"
                        VerticalAlignment="Stretch"
                        VerticalContentAlignment="Stretch"
                        VerticalScrollBarVisibility="Visible"
                        Text="{Binding Occurrence.Appointment.Body,ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"
                        TextWrapping="Wrap"/>
                <TextBlock Grid.Row="2" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="StartTime"/>
                <telerik:RadDateTimePicker
                        AutomationProperties.AutomationId="StartTimeDateTimePicker"
                        Grid.Row="2"
                        Grid.Column="1"
                        Margin="3"
                        IsReadOnly="{Binding IsReadOnly}"
                        Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"
                        SelectedValue="{Binding ActualStart, Mode=TwoWay, ValidatesOnDataErrors=true, NotifyOnValidationError=true}"
                        IsEnabled="{Binding IsNotRecurrent}"
                        InputMode="{Binding IsAllDayEvent, Converter={StaticResource BoolToInputModeConverter}, ConverterParameter={x:Static telerik:InputMode.DatePicker}}"/>
                <TextBlock Grid.Row="3" Grid.Column="0" Margin="6" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="EndTime"/>
                <telerik:RadDateTimePicker
                        AutomationProperties.AutomationId="EndTimeDateTimePicker"
                        Grid.Row="3"
                        Grid.Column="1"
                        Margin="3"
                        SelectedValue="{Binding ActualEnd, Mode=TwoWay, ValidatesOnDataErrors=true, NotifyOnValidationError=true}"
                        IsReadOnly="{Binding IsReadOnly}"
                        Culture="{Binding DefaultCulture, Source={StaticResource LocalizationManager}}"
                        IsEnabled="{Binding IsNotRecurrent}"
                        InputMode="{Binding IsAllDayEvent, Converter={StaticResource BoolToInputModeConverter}, ConverterParameter={x:Static telerik:InputMode.DatePicker}}"/>
                <CheckBox x:Name="AllDayEventCheckbox"
                        AutomationProperties.AutomationId="AllDayEventCheckbox"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="3"
                        VerticalAlignment="Center"
                        IsChecked="{Binding Path=IsAllDayEvent, Mode=TwoWay}"
                        IsEnabled="{Binding IsNotRecurrent}"
                        telerik:LocalizationManager.ResourceKey="AllDayEvent"/>
            </Grid>
            <Grid Grid.Row="3" Margin="3" Visibility="{Binding ResourceTypesVisibility}">
                <ItemsControl x:Name="PART_Resources"
                        Margin="3"
                        IsTabStop="false"
                        BorderBrush="{x:Null}"
                        BorderThickness="0"
                        HorizontalContentAlignment="Stretch"
                        VerticalContentAlignment="Stretch"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        ItemsSource="{Binding ResourceTypes}"
                        ItemTemplateSelector="{StaticResource ResourcesEditorItemTemplateSelector}"
                        Visibility="{Binding ResourceTypesVisibility}"/>
                <TextBlock
                        HorizontalAlignment="Center"
                        Text="You can only change the resources by opening the series"
                        Margin="3"
                        Visibility="{Binding ResourceTypesVisibility, Converter={StaticResource InvertedVisibilityConverter}}"/>
            </Grid>
            <StackPanel Grid.Row="4" Margin="13 6" HorizontalAlignment="Right" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        telerik:RadWindow.ResponseButton="Accept">
                    <ToolTipService.ToolTip>
                        <TextBlock telerik:LocalizationManager.ResourceKey="SaveAndClose"/>
                    </ToolTipService.ToolTip>
                </telerik:RadButton>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <Style x:Key="EditAppointmentDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="560"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" MaxWidth="400" HorizontalAlignment="Left">
                        <TextBlock telerik:LocalizationManager.ResourceKey="Event" Visibility="{Binding Occurrence.Appointment.IsAllDayEvent, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Appointment" Visibility="{Binding Occurrence.Appointment.IsAllDayEvent, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"/>
                        <TextBlock Text="-"/>
                        <TextBlock x:Name="SubjectTextBlock" Text="{Binding Occurrence.Appointment.Subject}" Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Untitled" Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Image
                            Stretch="None"
                            Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/EditAppointment.png"
                            RenderOptions.BitmapScalingMode="NearestNeighbor"
                            RenderOptions.EdgeMode="Aliased"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RepeatSelectionTabItemControlStyle" TargetType="telerik:RadTabItem">
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadTabItem">
                    <RadioButton IsChecked="{Binding IsSelected, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
                        <ContentPresenter telerik:LocalizationManager.ResourceKey="{TemplateBinding Header}" RecognizesAccessKey="True"/>
                    </RadioButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RepeatSelectionTabControlStyle" TargetType="telerik:RadTabControl">
        <Setter Property="TabStripPlacement" Value="Top"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource RepeatSelectionTabItemControlStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadTabControl">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ItemsPresenter Grid.Column="0" Margin="3 6 30 6" VerticalAlignment="Center"/>
                        <telerik:RadTransitionControl x:Name="ContentElement"
                                Grid.Column="1"
                                IsTabStop="False"
                                Duration="0:0:0.200"
                                Content="{TemplateBinding SelectedContent}"
                                ContentTemplate="{TemplateBinding SelectedContentTemplate}">
                            <telerik:RadTransitionControl.Transition>
                                <telerik:SlideAndZoomTransition/>
                            </telerik:RadTransitionControl.Transition>
                        </telerik:RadTransitionControl>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="EditRecurrenceTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <telerik:GroupBox x:Name="StartEndTimes" Margin="3" telerik:LocalizationManager.ResourceKey="AppointmentTime">
                <Grid HorizontalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <telerik:Label
                            Grid.Row="0"
                            Grid.Column="0"
                            MinWidth="65"
                            VerticalAlignment="Center"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            Target="{Binding ElementName=StartTimePicker}"
                            telerik:LocalizationManager.ResourceKey="StartColon"/>
                    <telerik:RadDateTimePicker x:Name="StartTimePicker"
                            AutomationProperties.AutomationId="StartTimePicker"
                            Grid.Row="0"
                            Grid.Column="1"
                            Margin="3"
                            Width="120"
                            IsReadOnly="{Binding IsReadOnly}"
                            SelectedValue="{Binding Start, Mode=TwoWay}"
                            InputMode="TimePicker"
                            Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                    <telerik:Label
                            Grid.Row="1"
                            Grid.Column="0"
                            MinWidth="65"
                            VerticalAlignment="Center"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            Target="{Binding ElementName=EndTimePicker}"
                            telerik:LocalizationManager.ResourceKey="EndColon"/>
                    <telerik:RadDateTimePicker x:Name="EndTimePicker"
                            AutomationProperties.AutomationId="EndTimePicker"
                            Grid.Row="1"
                            Grid.Column="1"
                            Margin="3"
                            Width="120"
                            IsReadOnly="{Binding IsReadOnly}"
                            SelectedValue="{Binding End, Mode=TwoWay}"
                            InputMode="TimePicker"
                            Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                    <telerik:Label
                            Grid.RowSpan="2"
                            Grid.Column="2"
                            MinWidth="65"
                            VerticalAlignment="Center"
                            Margin="18 0 0 0"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            Target="{Binding ElementName=DurationPicker}"
                            telerik:LocalizationManager.ResourceKey="DurationColon"/>
                    <telerikScheduleView:DurationPicker x:Name="DurationPicker"
                            AutomationProperties.AutomationId="DurationPicker"
                            Grid.RowSpan="2"
                            Grid.Column="3"
                            Margin="3"
                            Width="120"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            VerticalAlignment="Center"
                            SelectedDuration="{Binding Path=Duration, Mode=TwoWay}"/>
                </Grid>
            </telerik:GroupBox>
            <telerik:GroupBox x:Name="RepeatsGroup" Margin="3" Grid.Row="1" telerik:LocalizationManager.ResourceKey="RecurrencePattern">
                <telerik:RadTabControl IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" IsDefaultItemSelected="False" Style="{StaticResource RepeatSelectionTabControlStyle}">
                    <telerik:RadTabItem x:Name="RepeatDaily"
                            AutomationProperties.AutomationId="RepeatDaily"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Daily"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily;WeekDays, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="DailyRB"
                                        AutomationProperties.AutomationId="DailyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="DailyGroup"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="DailyDetailsUpDown"
                                        AutomationProperties.AutomationId="DailyDetailsUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="999"
                                        Value="{Binding Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Days" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                            <RadioButton x:Name="WorkdaysRB"
                                    AutomationProperties.AutomationId="WorkdaysRB"
                                    Grid.Row="1"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    GroupName="DailyGroup"
                                    telerik:LocalizationManager.ResourceKey="EveryWeekday"
                                    IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=WeekDays, Mode=TwoWay}"/>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatWeekly"
                            AutomationProperties.AutomationId="RepeatWeekly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Weekly"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Weekly, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <telerik:Label Margin="3" VerticalAlignment="Center" Target="{Binding ElementName=EveryWeekUpDown}" telerik:LocalizationManager.ResourceKey="RecurEvery"/>
                                <telerik:RadNumericUpDown x:Name="EveryWeekUpDown"
                                        AutomationProperties.AutomationId="EveryWeekUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding Interval, Mode=TwoWay}"
                                        SnapsToDevicePixels="True"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="WeeksOn" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                            <ItemsControl Grid.Row="1" ItemsSource="{Binding WeekDays}" IsTabStop="False">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerik:RadUniformGrid Rows="2"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox Margin="3 3 12 3" Content="{Binding Name}" AutomationProperties.AutomationId="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatMonthly"
                            AutomationProperties.AutomationId="RepeatMonthly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Monthly"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly;MonthlyNth, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyRB"
                                        AutomationProperties.AutomationId="MonthlyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="Day"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown1"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown1"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}, ValidatesOnDataErrors=True, NotifyOnValidationError=True}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{StaticResource RadScheduleForeground}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown2"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown2"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyNthRB"
                                        AutomationProperties.AutomationId="MonthlyNthRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MonthlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="IntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        ItemsSource="{Binding WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="DayIntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{StaticResource RadScheduleForeground}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatYearly"
                            AutomationProperties.AutomationId="RepeatYearly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Yearly"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly;YearlyNth, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="50*"/>
                                <RowDefinition Height="50*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyRB"
                                        AutomationProperties.AutomationId="YearlyRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails12"
                                        AutomationProperties.AutomationId="YearlyDetails12"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding MonthOfYear, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="YearlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="YearlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyNthRB"
                                        AutomationProperties.AutomationId="YearlyNthRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=YearlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails21"
                                        AutomationProperties.AutomationId="YearlyDetails21"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="80"
                                        ItemsSource="{Binding WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails22"
                                        AutomationProperties.AutomationId="YearlyDetails22"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Of" Foreground="{StaticResource RadScheduleForeground}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails23"
                                        AutomationProperties.AutomationId="YearlyDetails23"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding MonthOfYear, Mode=TwoWay}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
            </telerik:GroupBox>
            <telerik:GroupBox x:Name="RangeGroup" Margin="3" Grid.Row="2" telerik:LocalizationManager.ResourceKey="RangeOfRecurrence">
                <Grid IsSharedSizeScope="True">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="2*"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="0" Orientation="Horizontal">
                        <telerik:Label
                                Margin="3"
                                VerticalAlignment="Center"
                                IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                Target="{Binding ElementName=StartDate}"
                                telerik:LocalizationManager.ResourceKey="StartColon"/>
                        <telerik:RadDatePicker x:Name="StartDate"
                                AutomationProperties.AutomationId="StartDate"
                                Margin="3"
                                VerticalAlignment="Center"
                                Width="100"
                                IsReadOnly="{Binding IsReadOnly}"
                                SelectedValue="{Binding Start, Mode=TwoWay}"
                                Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                    </StackPanel>
                    <telerik:RadUniformGrid Grid.Column="1" Columns="1">
                        <RadioButton x:Name="NoEndDate"
                                AutomationProperties.AutomationId="NoEndDate"
                                Margin="3"
                                VerticalAlignment="Center"
                                IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                telerik:LocalizationManager.ResourceKey="NoEndDate"
                                IsChecked="{Binding RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=NoEndDate, Mode=TwoWay}"/>
                        <StackPanel Orientation="Horizontal">
                            <RadioButton x:Name="EndAfter"
                                    AutomationProperties.AutomationId="EndAfter"
                                    Margin="3"
                                    MinWidth="100"
                                    VerticalAlignment="Center"
                                    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                    telerik:LocalizationManager.ResourceKey="EndAfter"
                                    IsChecked="{Binding Path=RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MaxOccurrences, Mode=TwoWay}"/>
                            <telerik:RadNumericUpDown x:Name="OccurencesUpDown"
                                    AutomationProperties.AutomationId="OccurencesUpDown"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                    IsInteger="True"
                                    MinWidth="70"
                                    Maximum="9999"
                                    Value="{Binding MaxOccurrences, Mode=TwoWay}"/>
                            <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Occurrences" Foreground="{StaticResource RadScheduleForeground}"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <RadioButton x:Name="EndBy"
                                    AutomationProperties.AutomationId="EndBy"
                                    Margin="3"
                                    MinWidth="70"
                                    VerticalAlignment="Center"
                                    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                    telerik:LocalizationManager.ResourceKey="EndBy"
                                    IsChecked="{Binding Path=RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=RepeatUntil, Mode=TwoWay}"/>
                            <telerik:RadDatePicker
                                    AutomationProperties.AutomationId="EndByDatePicker"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    Width="120"
                                    IsReadOnly="{Binding IsReadOnly}"
                                    SelectedValue="{Binding RecursUntil, Mode=TwoWay}"
                                    Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                        </StackPanel>
                    </telerik:RadUniformGrid>
                </Grid>
            </telerik:GroupBox>
            <StackPanel x:Name="WindowButtons" Grid.Row="3" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton x:Name="RemoveRecurrenceBtn"
                        AutomationProperties.AutomationId="RemoveRecurrenceBtn"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="RemoveRecurrence"
                        Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteRecurrenceRule}"
                        Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}"/>
                <telerik:RadButton x:Name="OKButton"
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"/>
                <telerik:RadButton x:Name="CancelButton"
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <Style x:Key="EditRecurrenceDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="550"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template" Value="{StaticResource EditRecurrenceTemplate}"/>
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Image
                            Stretch="None"
                            Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/EditAppointment.png"
                            RenderOptions.BitmapScalingMode="NearestNeighbor"
                            RenderOptions.EdgeMode="Aliased"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" MaxWidth="450" HorizontalAlignment="Left">
                        <TextBlock telerik:LocalizationManager.ResourceKey="Event" Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource BooleanToVisibilityConverter}}" Foreground="{StaticResource RadScheduleForeground}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Appointment" Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" Foreground="{StaticResource RadScheduleForeground}"/>
                        <TextBlock Text="-" Foreground="{StaticResource RadScheduleForeground}"/>
                        <TextBlock x:Name="SubjectTextBlock"
                                Text="{Binding Appointment.Subject}"
                                Visibility="{Binding Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"
                                Foreground="{StaticResource RadScheduleForeground}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Untitled" Visibility="{Binding Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}" Foreground="{StaticResource RadScheduleForeground}"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="DeleteAppointmentConfirmTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <Grid>
                <Image Margin="15" HorizontalAlignment="Left" VerticalAlignment="Center" Stretch="None" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/del_big.png"/>
                <TextBlock
                        AutomationProperties.AutomationId="DeleteAppointmentTextBlock"
                        Margin="85 15 15 15"
                        TextWrapping="Wrap"
                        VerticalAlignment="Center"
                        telerik:LocalizationManager.ResourceKey="DeleteItemQuestion"/>
            </Grid>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        Margin="2"
                        AutomationProperties.AutomationId="OKButton"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"/>
                <telerik:RadButton
                        Margin="2"
                        AutomationProperties.AutomationId="CancelButton"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="DeleteAppointmentConfirmDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="DeleteItem"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource DeleteAppointmentConfirmTemplate}"/>
    </Style>
    <ControlTemplate x:Key="RecurrenceChoiceTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <Grid>
                <Image Margin="15" HorizontalAlignment="Left" VerticalAlignment="Center" Stretch="None" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/del_big.png"/>
                <StackPanel Margin="85 15 15 15" VerticalAlignment="Top">
                    <TextBlock x:Name="SubjectTextBlock"
                            AutomationProperties.AutomationId="SubjectTextBlock"
                            Margin="3"
                            Text="{Binding Occurrence.Appointment.Subject}"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"
                            TextWrapping="Wrap"/>
                    <TextBlock x:Name="Untitled"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="Untitled"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"
                            TextWrapping="Wrap"/>
                    <RadioButton
                            AutomationProperties.AutomationId="OpenOccurrenceRB"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="OpenOccurrence"
                            GroupName="RecurrenceModeChoice"
                            IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="OpenSeriesRB"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="OpenSeries"
                            GroupName="RecurrenceModeChoice"
                            IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
                </StackPanel>
            </Grid>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="RecurrenceChoiceDeletingTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <Grid>
                <Image Margin="15" HorizontalAlignment="Left" VerticalAlignment="Center" Stretch="None" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/del_big.png"/>
                <StackPanel Margin="85 15 15 15" VerticalAlignment="Top">
                    <TextBlock x:Name="SubjectTextBlock"
                            AutomationProperties.AutomationId="DeleteAppointmentTextBlock"
                            Margin="3"
                            Text="{Binding Occurrence.Appointment.Subject}"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                    <TextBlock x:Name="Untitled"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="Untitled"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="DeleteOccurrenceRB"
                            Margin="3 9 3 3"
                            telerik:LocalizationManager.ResourceKey="DeleteOccurrence"
                            GroupName="RecurrenceModeChoiceDel"
                            IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="DeleteSeriesRB"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="DeleteSeries"
                            GroupName="RecurrenceModeChoiceDel"
                            IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
                </StackPanel>
            </Grid>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="RecurrenceChoiceResizeTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <StackPanel Margin="15 15 15 15" VerticalAlignment="Top">
                <TextBlock Text="{Binding Occurrence.Appointment.Subject, Converter={StaticResource AppointmentsSubjectToLocalizatedStringConverter}, ConverterParameter=ResizeRecurringItemQuestion}" TextWrapping="Wrap" Margin="3"/>
                <RadioButton
                        AutomationProperties.AutomationId="ResizeOccurrenceRB"
                        Margin="3 9 3 3"
                        telerik:LocalizationManager.ResourceKey="ResizeOccurrence"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                <RadioButton
                        AutomationProperties.AutomationId="ResizeSeriesRB"
                        Margin="3"
                        telerik:LocalizationManager.ResourceKey="ResizeSeries"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
            </StackPanel>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="RecurrenceChoiceDragDropTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <StackPanel Margin="15 15 15 15">
                <TextBlock
                        AutomationProperties.AutomationId="DragDropTextBlockID"
                        Text="{Binding Occurrence.Appointment.Subject,Converter={StaticResource AppointmentsSubjectToLocalizatedStringConverter}, ConverterParameter=DragRecurringItemQuestion}"
                        TextWrapping="Wrap"
                        Margin="3"/>
                <RadioButton
                        AutomationProperties.AutomationId="DragDropOccurrenceRB"
                        Margin="3 9 3 3"
                        telerik:LocalizationManager.ResourceKey="DragDropOccurrence"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                <RadioButton x:Name="DragDropSeriesRadioButton"
                        AutomationProperties.AutomationId="DragDropSeriesRadioButton"
                        Margin="3"
                        telerik:LocalizationManager.ResourceKey="DragDropSeries"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
            </StackPanel>
            <Border x:Name="Warning"
                    BorderBrush="{StaticResource RecurrenceChoiceBorder}"
                    Background="{StaticResource RecurrenceChoiceBackground}"
                    BorderThickness="1"
                    Margin="15 0"
                    Visibility="{Binding ElementName=DragDropSeriesRadioButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
                    CornerRadius="{StaticResource RecurrenceChoiceCornerRadius}"
                    SnapsToDevicePixels="True">
                <TextBlock AutomationProperties.AutomationId="WarningTextBlock" telerik:LocalizationManager.ResourceKey="DragRecurringWarning" TextWrapping="Wrap" Margin="10"/>
            </Border>
            <telerik:GroupBox Visibility="{Binding ElementName=Warning, Path=Visibility}" x:Name="RepeatsGroup" Margin="15 3" telerik:LocalizationManager.ResourceKey="RecurrencePattern">
                <telerik:RadTabControl IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" IsDefaultItemSelected="False" Style="{StaticResource RepeatSelectionTabControlStyle}">
                    <telerik:RadTabItem x:Name="RepeatDaily"
                            AutomationProperties.AutomationId="RepeatDaily"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Daily"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily;WeekDays, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="DailyRB"
                                        AutomationProperties.AutomationId="DailyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="DailyGroup"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="DailyDetailsUpDown"
                                        AutomationProperties.AutomationId="DailyDetailsUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="999"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Days" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                            <RadioButton x:Name="WorkdaysRB"
                                    AutomationProperties.AutomationId="WorkdaysRB"
                                    Grid.Row="1"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    GroupName="DailyGroup"
                                    telerik:LocalizationManager.ResourceKey="EveryWeekday"
                                    IsChecked="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=WeekDays, Mode=TwoWay}"/>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatWeekly"
                            AutomationProperties.AutomationId="RepeatWeekly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Weekly"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Weekly, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <telerik:Label Margin="3" VerticalAlignment="Center" Target="{Binding ElementName=EveryWeekUpDown}" telerik:LocalizationManager.ResourceKey="RecurEvery"/>
                                <telerik:RadNumericUpDown x:Name="EveryWeekUpDown"
                                        AutomationProperties.AutomationId="EveryWeekUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"
                                        SnapsToDevicePixels="True"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="WeeksOn" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                            <ItemsControl Grid.Row="1" ItemsSource="{Binding DialogViewModel.WeekDays}" IsTabStop="False">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerik:RadUniformGrid Rows="2"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox Margin="3 3 12 3" Content="{Binding Name}" AutomationProperties.AutomationId="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatMonthly"
                            AutomationProperties.AutomationId="RepeatMonthly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Monthly"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyRB"
                                        AutomationProperties.AutomationId="MonthlyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="Day"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown1"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown1"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DialogViewModel.DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{StaticResource RadScheduleForeground}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown2"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown2"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyNthRB"
                                        AutomationProperties.AutomationId="MonthlyNthRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MonthlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="IntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        ItemsSource="{Binding DialogViewModel.WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="DayIntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{StaticResource RadScheduleForeground}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{StaticResource RadScheduleForeground}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatYearly"
                            AutomationProperties.AutomationId="RepeatYearly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Yearly"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly;YearlyNth, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="50*"/>
                                <RowDefinition Height="50*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyRB"
                                        AutomationProperties.AutomationId="YearlyRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails12"
                                        AutomationProperties.AutomationId="YearlyDetails12"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding DialogViewModel.MonthOfYear, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="YearlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="YearlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyNthRB"
                                        AutomationProperties.AutomationId="YearlyNthRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=YearlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails21"
                                        AutomationProperties.AutomationId="YearlyDetails21"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="80"
                                        ItemsSource="{Binding DialogViewModel.WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails22"
                                        AutomationProperties.AutomationId="YearlyDetails22"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Of" Foreground="{StaticResource RadScheduleForeground}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails23"
                                        AutomationProperties.AutomationId="YearlyDetails23"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding DialogViewModel.MonthOfYear, Mode=TwoWay}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
            </telerik:GroupBox>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        Margin="2"
                        AutomationProperties.AutomationId="OKButton"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="RecurrenceChoiceDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceTemplate}"/>
    </Style>
    <Style x:Key="RecurrenceChoiceDeleteDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceDeletingTemplate}"/>
    </Style>
    <Style x:Key="RecurrenceChoiceResizeDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="350"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceResizeTemplate}"/>
    </Style>
    <Style x:Key="RecurrenceChoiceDragDropDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Width" Value="610"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="400" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceDragDropTemplate}"/>
    </Style>
    <Style x:Key="GoToDayButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="OuterBorder" BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder}" Background="{StaticResource GroupHeaderHeaderBackground}" BorderThickness="1">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="InnerBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemInnerBorder}" BorderThickness="1" Padding="{TemplateBinding Padding}">
                            <ContentControl x:Name="Content"
                                    Content="{TemplateBinding Content}"
                                    Margin="-2"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GoToDayVerticalButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="OuterBorder"
                            BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder_Vertical}"
                            Background="{StaticResource GroupHeaderHeaderBackground_Vertical}"
                            BorderThickness="1">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackgroundVertical_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorderVertical_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackgroundVertical_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorderVertical_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="InnerBorder" BorderBrush="{StaticResource GroupHeaderHeaderInnerBorder_Vertical}" BorderThickness="1" Padding="{TemplateBinding Padding}">
                            <ContentControl x:Name="Content"
                                    Content="{TemplateBinding Content}"
                                    Margin="-2"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GoToDayTodayButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Today}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="OuterBorder"
                            BorderBrush="{StaticResource MonthViewTimeRulerItemOuterBorder_Today}"
                            Background="{StaticResource MonthViewTimeRulerItemBackground_Today}"
                            BorderThickness="1">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_TodayMouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_TodayMouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_TodayPressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_TodayPressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="InnerBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemInnerBorder_Today}" BorderThickness="1" Padding="{TemplateBinding Padding}">
                            <ContentPresenter Margin="-2"/>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GoToDayTodayVerticalButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Today}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="OuterBorder"
                            BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder_VerticalToday}"
                            Background="{StaticResource GroupHeaderHeaderBackground_VerticalToday}"
                            BorderThickness="1">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackgroundVertical_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorderVertical_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackgroundVertical_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorderVertical_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="InnerBorder" BorderBrush="{StaticResource GroupHeaderHeaderInnerBorder_VerticalToday}" BorderThickness="1" Padding="{TemplateBinding Padding}">
                            <ContentControl x:Name="Content" Content="{TemplateBinding Content}" Margin="-2"/>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ExpandMonthViewButtonStyle" TargetType="telerik:RadToggleButton">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="Margin" Value="3 2 3 4"/>
        <Setter Property="MinWidth" Value="13"/>
        <Setter Property="MinHeight" Value="13"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadToggleButton">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandButtonBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Expand" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandButtonBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Expand" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Expand" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Indeterminate">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="CheckOuterBorder"
                                CornerRadius="1"
                                BorderThickness="1"
                                BorderBrush="{StaticResource MonthViewExpandOuterBorder}"
                                Background="{StaticResource MonthViewExpandButtonBackground}">
                            <Rectangle x:Name="CheckInnerBorder" Stroke="{StaticResource MonthViewExpandInnerBorder}"/>
                        </Border>
                        <Path x:Name="Expand" Data="M0,0 L7,0 L3.5,4 Z" Fill="{StaticResource MonthViewExpandIconStroke}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <Path x:Name="Collapse"
                                Visibility="Collapsed"
                                Data="M0,4 L7,4 L3.5,0 Z"
                                Fill="{StaticResource MonthViewExpandIconStroke}"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerGroupItemStyle" TargetType="telerikScheduleView:TimeRulerGroupItem">
        <Setter Property="Foreground" Value="{StaticResource TimeRulerGroupItemForeground}"/>
        <Setter Property="Background" Value="{StaticResource GroupHeaderHeaderBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderHeaderOuterBorder}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0 0 -1 -1"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="Panel.ZIndex" Value="102"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerGroupItem">
                    <telerik:RadButton
                            Style="{StaticResource GoToDayButtonStyle}"
                            Padding="{TemplateBinding Padding}"
                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.SetDayViewMode}"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                        <ContentPresenter x:Name="Content"/>
                    </telerik:RadButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerGroupItemStyle_Vertical" TargetType="telerikScheduleView:TimeRulerGroupItem" BasedOn="{StaticResource TimeRulerGroupItemStyle}">
        <Setter Property="Background" Value="{StaticResource GroupHeaderHeaderBackground_Vertical}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderHeaderOuterBorder_Vertical}"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Orientation" Value="Vertical"/>
        <Setter Property="Margin" Value="0 0 -1 -1"/>
        <Setter Property="Padding" Value="2 4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerGroupItem">
                    <telerik:RadButton
                            Style="{StaticResource GoToDayVerticalButtonStyle}"
                            Padding="{TemplateBinding Padding}"
                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.SetDayViewMode}"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                        <ContentPresenter x:Name="Content"/>
                    </telerik:RadButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MajorHorizontalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMajorTickStroke}"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MinorHorizontalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMinorTickStroke}"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Grid>
                        <Border
                                Height="5"
                                VerticalAlignment="Bottom"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MajorVerticalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMajorTickStroke_Vertical}"/>
        <Setter Property="BorderThickness" Value="0 1 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Panel.ZIndex" Value="50"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MinorVerticalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMinorTickStroke_Vertical}"/>
        <Setter Property="BorderThickness" Value="0 1 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Panel.ZIndex" Value="70"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Grid>
                        <Border
                                Width="20"
                                HorizontalAlignment="Right"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerLineStyle" TargetType="telerikScheduleView:TimeRulerLine">
        <Setter Property="BorderBrush" Value="{StaticResource TimeRulerLineStroke}"/>
        <Setter Property="Background" Value="White"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerLine">
                    <Border x:Name="LineVisual" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="0 1 0 0">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="OrientationStates">
                                <VisualState x:Name="Horizontal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LineVisual" Storyboard.TargetProperty="BorderThickness">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>1 0 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Vertical"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerMonthViewGroupItemStyle" TargetType="telerikScheduleView:TimeRulerMonthViewGroupItem">
        <Setter Property="Foreground" Value="{StaticResource TimeRulerGroupItemForeground}"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerMonthViewGroupItem">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerMonthViewItemStyle" TargetType="telerikScheduleView:TimeRulerMonthViewItem">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="Margin" Value="0 -1 -1 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerMonthViewItem">
                    <Grid>
                        <telerik:RadButton
                                Padding="0"
                                VerticalAlignment="Top"
                                Height="22"
                                Style="{StaticResource GoToDayButtonStyle}"
                                Command="{x:Static telerikScheduleView:RadScheduleViewCommands.SetDayViewMode}"
                                CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                            <ContentPresenter Margin="{TemplateBinding Padding}"/>
                        </telerik:RadButton>
                        <telerik:RadToggleButton
                                Visibility="{Binding ExpandButtonVisibility}"
                                IsChecked="{Binding IsExpanded, Mode=TwoWay}"
                                Style="{StaticResource ExpandMonthViewButtonStyle}"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerMonthViewTodayItemStyle" TargetType="telerikScheduleView:TimeRulerMonthViewItem">
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="Margin" Value="0 -1 -1 0"/>
        <Setter Property="Panel.ZIndex" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerMonthViewItem">
                    <Grid>
                        <Border BorderBrush="{StaticResource GroupHeaderBorderBrush_Today}" BorderThickness="{StaticResource HorizontalGroupHeaderTodayBorderThickness}"/>
                        <telerik:RadButton
                                Padding="0"
                                VerticalAlignment="Top"
                                Height="22"
                                Style="{StaticResource GoToDayTodayButtonStyle}"
                                Command="{x:Static telerikScheduleView:RadScheduleViewCommands.SetDayViewMode}"
                                CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                            <ContentPresenter Margin="{TemplateBinding Padding}"/>
                        </telerik:RadButton>
                        <telerik:RadToggleButton
                                Visibility="{Binding ExpandButtonVisibility}"
                                IsChecked="{Binding IsExpanded, Mode=TwoWay}"
                                Style="{StaticResource ExpandMonthViewButtonStyle}"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduleView:TimeRulerItemTemplateSelector x:Key="TimeRulerItemTemplateSelector">
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" TextAlignment="Right" Margin="2" MinWidth="50"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" TextAlignment="Right" Margin="2" MinWidth="50"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" TextAlignment="Right" Margin="2" MinWidth="50"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" TextAlignment="Right" Margin="2" MinWidth="50"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2 1" TextAlignment="Left"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2" TextAlignment="Left"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2" TextAlignment="Left"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineGroupTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="1 2" TextAlignment="Right">
                    <TextBlock.LayoutTransform>
                        <RotateTransform Angle="-90"/>
                    </TextBlock.LayoutTransform>
                </TextBlock>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineGroupTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" TextAlignment="Right" Margin="2" MinWidth="50"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" TextAlignment="Right" Margin="2" MinWidth="50"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.MonthGroupTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="6 2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.MonthGroupTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.MonthItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="6 2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.MonthItemTemplate>
    </telerikScheduleView:TimeRulerItemTemplateSelector>
    <telerikScheduleView:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector"
            MonthViewGroupStyle="{StaticResource TimeRulerMonthViewGroupItemStyle}"
            MonthViewTickStyle="{StaticResource TimeRulerMonthViewItemStyle}"
            MonthViewTodayTickStyle="{StaticResource TimeRulerMonthViewTodayItemStyle}"
            HorizontalGroupItemStyle="{StaticResource TimeRulerGroupItemStyle}"
            VerticalGroupItemStyle="{StaticResource TimeRulerGroupItemStyle_Vertical}"
            MajorHorizontalTickStyle="{StaticResource MajorHorizontalTimeRulerItemStyle}"
            MajorVerticalTickStyle="{StaticResource MajorVerticalTimeRulerItemStyle}"
            MinorHorizontalTickStyle="{StaticResource MinorHorizontalTimeRulerItemStyle}"
            MinorVerticalTickStyle="{StaticResource MinorVerticalTimeRulerItemStyle}"
            HorizontalLineStyle="{StaticResource TimeRulerLineStyle}"
            VerticalLineStyle="{StaticResource TimeRulerLineStyle}"/>
    <ControlTemplate x:Key="GroupHeaderButtonControlTemplate" TargetType="telerikScheduleView:GroupHeaderButton">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="CommandMouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverOuterBorderVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="CommandPressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverOuterBorderVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverOuterBorderVisual" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverInnerBorderVisual" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="TodayStates">
                    <VisualState x:Name="NotToday"/>
                    <VisualState x:Name="Today">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TodayVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="OrientationStates">
                    <VisualState x:Name="Horizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Visuals" Storyboard.TargetProperty="LayoutTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="-90"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Vertical"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerik:LayoutTransformControl x:Name="Visuals">
                <Grid>
                    <Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Border x:Name="InnerBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemInnerBorder}" BorderThickness="{TemplateBinding BorderThickness}"/>
                    </Border>
                    <Border x:Name="TodayVisual"
                            Visibility="Collapsed"
                            BorderBrush="{StaticResource MonthViewTimeRulerItemOuterBorder_Today}"
                            Background="{StaticResource MonthViewTimeRulerItemBackground_Today}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <Border BorderBrush="{StaticResource MonthViewTimeRulerItemInnerBorder_Today}" BorderThickness="{TemplateBinding BorderThickness}"/>
                    </Border>
                    <Border x:Name="MouseOverOuterBorderVisual"
                            Visibility="Collapsed"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{StaticResource MonthViewTimeRulerItemBackground_MouseOver}">
                        <Border x:Name="MouseOverInnerBorderVisual" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource MonthViewTimeRulerItemInnerBorder_MouseOver}"/>
                    </Border>
                </Grid>
            </telerik:LayoutTransformControl>
            <ContentControl x:Name="Content"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Margin="-1"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="GroupHeaderButtonStyle" TargetType="telerikScheduleView:GroupHeaderButton">
        <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderHeaderOuterBorder}"/>
        <Setter Property="Background" Value="{StaticResource GroupHeaderHeaderBackground}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Template" Value="{StaticResource GroupHeaderButtonControlTemplate}"/>
    </Style>
    <telerikScheduleView:NullToBooleanConverter x:Key="NullToBooleanConverter"/>
    <ControlTemplate x:Key="GroupHeaderTemplate" TargetType="telerikScheduleView:GroupHeader">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OrientationStates">
                    <VisualState x:Name="Horizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Stretch</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Vertical"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="DayStates">
                    <VisualState x:Name="NormalDay"/>
                    <VisualState x:Name="NormalDayHorizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Stretch</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Today">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderBorderBrush_Today}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource HorizontalGroupHeaderTodayBorderThickness}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="TodayHorizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Stretch</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border"
                    IsHitTestVisible="False"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    BorderThickness="{TemplateBinding BorderThickness}"/>
            <telerikScheduleView:GroupHeaderButton x:Name="Header"
                    VerticalAlignment="Top"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Command="{TemplateBinding Command}"
                    CommandParameter="{TemplateBinding CommandParameter}"
                    IsToday="{TemplateBinding IsToday}"
                    Orientation="{TemplateBinding Orientation}"
                    Foreground="{TemplateBinding Foreground}"
                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="GroupHeaderBaseStyle" TargetType="telerikScheduleView:GroupHeader">
        <Setter Property="Foreground" Value="{StaticResource TimeRulerGroupItemForeground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderBorderBrush}"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
        <Setter Property="Template" Value="{StaticResource GroupHeaderTemplate}"/>
    </Style>
    <Style x:Key="HorizontalGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="-1 0 0 0"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
    </Style>
    <Style x:Key="HorizontalTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="-1 0 0 0"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
    </Style>
    <Style x:Key="HorizontalBottomLevelGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="0 0 5 0"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
    </Style>
    <Style x:Key="HorizontalBottomLevelTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="1 0 5 0"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
        <Setter Property="Foreground" Value="{StaticResource HorizontalBottomLevelTodayForeground}"/>
    </Style>
    <Style x:Key="VerticalGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 -1 0 0"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
    </Style>
    <Style x:Key="VerticalTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 -1 0 0"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
    </Style>
    <Style x:Key="VerticalBottomLevelGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 0 0 5"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
    </Style>
    <Style x:Key="VerticalBottomLevelTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 1 0 5"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
    </Style>
    <Style x:Key="MonthViewWeekGroupStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 -1 0 0"/>
    </Style>
    <Style x:Key="MonthViewBottomLevelWeekGroupStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 21 0 18"/>
        <Setter Property="MinHeight" Value="85"/>
    </Style>
    <telerikScheduleView:OrientedGroupHeaderStyleSelector x:Key="GroupHeaderStyleSelector"
            HorizontalStyle="{StaticResource HorizontalGroupHeaderStyle}"
            HorizontalTodayStyle="{StaticResource HorizontalTodayGroupHeaderStyle}"
            HorizontalBottomLevelStyle="{StaticResource HorizontalBottomLevelGroupHeaderStyle}"
            HorizontalTodayBottomLevelStyle="{StaticResource HorizontalBottomLevelTodayGroupHeaderStyle}"
            VerticalStyle="{StaticResource VerticalGroupHeaderStyle}"
            VerticalTodayStyle="{StaticResource VerticalTodayGroupHeaderStyle}"
            VerticalBottomLevelStyle="{StaticResource VerticalBottomLevelGroupHeaderStyle}"
            VerticalTodayBottomLevelStyle="{StaticResource VerticalBottomLevelTodayGroupHeaderStyle}"
            MonthViewWeekGroupStyle="{StaticResource MonthViewWeekGroupStyle}"
            MonthViewBottomLevelWeekGroupStyle="{StaticResource MonthViewBottomLevelWeekGroupStyle}"/>
    <telerikScheduleView:GroupHeaderTemplateSelector x:Key="GroupHeaderContentTemplateSelector">
        <telerikScheduleView:GroupHeaderTemplateSelector.HorizontalTemplate>
            <DataTemplate>
                <ContentPresenter Content="{Binding FormattedName}" Height="16" Margin="4"/>
            </DataTemplate>
        </telerikScheduleView:GroupHeaderTemplateSelector.HorizontalTemplate>
        <telerikScheduleView:GroupHeaderTemplateSelector.VerticalTemplate>
            <DataTemplate>
                <ContentPresenter Content="{Binding FormattedName}" Margin="4" Height="16" VerticalAlignment="Top">
                    <ContentPresenter.LayoutTransform>
                        <RotateTransform Angle="-90"/>
                    </ContentPresenter.LayoutTransform>
                </ContentPresenter>
            </DataTemplate>
        </telerikScheduleView:GroupHeaderTemplateSelector.VerticalTemplate>
    </telerikScheduleView:GroupHeaderTemplateSelector>
    <ControlTemplate x:Key="AppointmentItemHorizontalControlTemplate" TargetType="telerikScheduleView:AppointmentItem">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.200">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.0" Duration="0:0:0.200" To="0" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.400" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.200" Duration="0:0:0.200" To="1" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ReadOnly">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="ReadOnlyVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InlineEditing"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisual" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemBackground_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisual" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemOuterBorder_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisualInnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemInnerBorder_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Border x:Name="DurationMarkerVisual" Visibility="{TemplateBinding DurationMarkerVisibility}" Margin="{TemplateBinding DurationMarkerMargin}">
                <Border Background="{StaticResource AppointmentItemOuterBorder}" Margin="0 0 0 -1" CornerRadius="1 1 0 0" Height="4"/>
            </Border>
            <Grid Grid.Row="1">
                <Grid.InputBindings>
                    <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditAppointment}"/>
                </Grid.InputBindings>
                <Border x:Name="BackgroundBorder"
                        CornerRadius="2"
                        Background="{TemplateBinding Background}"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                    <Border CornerRadius="1" BorderBrush="{StaticResource AppointmentItemInnerBorder}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </Border>
                <Border x:Name="CommonStatesVisual"
                        Visibility="Collapsed"
                        CornerRadius="2"
                        Background="{StaticResource AppointmentItemBackground_MouseOver}"
                        BorderBrush="{StaticResource AppointmentItemOuterBorder_MouseOver}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                    <Border x:Name="CommonStatesVisualInnerBorder"
                            CornerRadius="1"
                            BorderBrush="{StaticResource AppointmentItemInnerBorder_MouseOver}"
                            BorderThickness="{TemplateBinding BorderThickness}"/>
                </Border>
                <Border x:Name="PART_Category" Margin="2" Background="{Binding Path=Category.CategoryBrush}"/>
                <Rectangle x:Name="ReadOnlyVisual" Margin="2" Visibility="Collapsed" Fill="{StaticResource AppoinmtentItemBackground_ReadOnly}"/>
                <Grid Margin="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Border x:Name="PART_TimeMarker"
                            Grid.Column="0"
                            Width="5"
                            HorizontalAlignment="Left"
                            Background="{Binding Path=TimeMarker.TimeMarkerBrush}"
                            Visibility="{Binding Path=TimeMarker, Converter={StaticResource NullToVisibilityConverter}}"/>
                    <Path
                            Grid.Column="1"
                            Data="M-919.69031,2003.9496 L-919.69031,2010.7375 L-923.7619,2007.4564 z"
                            Fill="{StaticResource AppointmentItemIndicatorFill}"
                            Margin="4 0 2 0"
                            HorizontalAlignment="Left"
                            Height="7"
                            Stretch="Fill"
                            VerticalAlignment="Center"
                            Width="4"
                            Visibility="{TemplateBinding StartIndicatorVisibility}"/>
                    <StackPanel Grid.Column="2" VerticalAlignment="Top" Margin="0 3 0 0">
                        <Image x:Name="RecurrenceMark"
                                Grid.Column="0"
                                Margin="2 1 1 0"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsExeptionToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Recurrence}"/>
                        <Image x:Name="ExceptionMark"
                                Grid.Column="0"
                                Margin="2 1 1 0"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsOccurenceToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Exception}"/>
                    </StackPanel>
                    <ContentPresenter
                            Grid.Column="3"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    <Path
                            Grid.Column="4"
                            Data="M1109.0469,332.70313 L1113.0469,336.29663 L1109.0469,339.68823 z"
                            Margin="2 0 4 0"
                            Fill="{StaticResource AppointmentItemIndicatorFill}"
                            HorizontalAlignment="Right"
                            Height="6.984"
                            Stretch="Fill"
                            VerticalAlignment="Center"
                            Width="4"
                            Visibility="{TemplateBinding EndIndicatorVisibility}"/>
                </Grid>
                <Grid x:Name="MouseOverOverlay" Visibility="Collapsed" Opacity="0">
                    <Border x:Name="PART_StartResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Stretch"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove">
                        <StackPanel x:Name="StartResizeGrip" Margin="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                        </StackPanel>
                    </Border>
                    <Border x:Name="PART_EndResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Stretch"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove">
                        <StackPanel x:Name="EndResizeGrip" Margin="1" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                        </StackPanel>
                    </Border>
                    <telerik:RadButton x:Name="DeleteButton"
                            Width="11"
                            Height="11"
                            Margin="5 5 6 5"
                            Padding="0"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteAppointment}"
                            ClickMode="Press"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                            Visibility="{Binding RelativeSource={RelativeSource AncestorType=telerikScheduleView:RadScheduleView}, Path=ShowAppointmentDeleteButton, Converter={StaticResource BooleanToVisibilityConverter}}"
                            IsTabStop="False">
                        <Path Stroke="{StaticResource AppointmentItemDeleteIconStroke}" Data="M0,0 L5,5 M5,0 L0,5"/>
                    </telerik:RadButton>
                </Grid>
            </Grid>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="AppointmentItemVerticalControlTemplate" TargetType="telerikScheduleView:AppointmentItem">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.200">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.0" Duration="0:0:0.200" To="0" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.400" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.200" Duration="0:0:0.200" To="1" Storyboard.TargetName="MouseOverOverlay" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ReadOnly">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="ReadOnlyVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InlineEditing"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisual" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemBackground_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisual" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemOuterBorder_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="CommonStatesVisualInnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemInnerBorder_Selected}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="DurationMarkerVisual" Visibility="{TemplateBinding DurationMarkerVisibility}" Margin="{TemplateBinding DurationMarkerMargin}">
                <Border Background="{StaticResource AppointmentItemOuterBorder}" Margin="0 0 -1 0" CornerRadius="1 0 0 1" Width="4"/>
            </Border>
            <Grid Grid.Column="1">
                <Grid.InputBindings>
                    <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditAppointment}"/>
                </Grid.InputBindings>
                <Border x:Name="BackgroundBorder"
                        CornerRadius="2"
                        Background="{TemplateBinding Background}"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                    <Border CornerRadius="1" BorderBrush="{StaticResource AppointmentItemInnerBorder}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </Border>
                <Border x:Name="CommonStatesVisual"
                        Visibility="Collapsed"
                        CornerRadius="2"
                        Background="{StaticResource AppointmentItemBackground_MouseOver}"
                        BorderBrush="{StaticResource AppointmentItemOuterBorder_MouseOver}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                    <Border x:Name="CommonStatesVisualInnerBorder"
                            CornerRadius="1"
                            BorderBrush="{StaticResource AppointmentItemInnerBorder_MouseOver}"
                            BorderThickness="{TemplateBinding BorderThickness}"/>
                </Border>
                <Border x:Name="PART_Category" Margin="2" Background="{Binding Path=Category.CategoryBrush}"/>
                <Rectangle x:Name="ReadOnlyVisual" Margin="2" Visibility="Collapsed" Fill="{StaticResource AppoinmtentItemBackground_ReadOnly}"/>
                <Grid Margin="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Border x:Name="PART_TimeMarker"
                            Grid.Column="0"
                            Grid.RowSpan="3"
                            Width="5"
                            HorizontalAlignment="Left"
                            Background="{Binding Path=TimeMarker.TimeMarkerBrush}"
                            Visibility="{Binding Path=TimeMarker, Converter={StaticResource NullToVisibilityConverter}}"/>
                    <Path
                            Grid.ColumnSpan="3"
                            Grid.Row="0"
                            Data="M3.5,0 L7,4 L0,4 z"
                            Fill="{StaticResource AppointmentItemIndicatorFill}"
                            Margin="2 4 2 2"
                            Height="4"
                            Width="7"
                            VerticalAlignment="Top"
                            Stretch="Fill"
                            HorizontalAlignment="Center"
                            Visibility="{TemplateBinding StartIndicatorVisibility}"/>
                    <StackPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Margin="0 3 0 0">
                        <Image x:Name="RecurrenceMark"
                                Grid.Column="0"
                                Margin="2 1 1 0"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsExeptionToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Recurrence}"/>
                        <Image x:Name="ExceptionMark"
                                Grid.Column="0"
                                Margin="2 1 1 0"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsOccurenceToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Exception}"/>
                    </StackPanel>
                    <ContentPresenter
                            Grid.Column="2"
                            Grid.Row="1"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    <Path
                            Grid.ColumnSpan="3"
                            Grid.Row="2"
                            Data="M7,0 L3.5,4 L0,0 z"
                            Height="4"
                            Width="7"
                            Stretch="Fill"
                            Fill="{StaticResource AppointmentItemIndicatorFill}"
                            Margin="2 2 2 4"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Center"
                            Visibility="{TemplateBinding EndIndicatorVisibility}"/>
                </Grid>
                <Grid x:Name="MouseOverOverlay" Visibility="Collapsed" Opacity="0">
                    <Border x:Name="PART_StartResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Top"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove">
                        <StackPanel x:Name="StartResizeGrip" Margin="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                        </StackPanel>
                    </Border>
                    <Border x:Name="PART_EndResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Bottom"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove">
                        <StackPanel x:Name="EndResizeGrip" Margin="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                            <Border
                                    Width="3"
                                    Height="3"
                                    Margin="1"
                                    BorderThickness="0 0 1 1"
                                    Background="{StaticResource AppointmentItemResizeGripBackground}"
                                    BorderBrush="{StaticResource AppointmentItemResizeGripStroke}"/>
                        </StackPanel>
                    </Border>
                    <telerik:RadButton x:Name="DeleteButton"
                            Width="11"
                            Height="11"
                            Margin="5 5 6 5"
                            Padding="0"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteAppointment}"
                            ClickMode="Press"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                            Visibility="{Binding RelativeSource={RelativeSource AncestorType=telerikScheduleView:RadScheduleView}, Path=ShowAppointmentDeleteButton, Converter={StaticResource BooleanToVisibilityConverter}}"
                            IsTabStop="False">
                        <Path Stroke="{StaticResource AppointmentItemDeleteIconStroke}" Data="M0,0 L5,5 M5,0 L0,5"/>
                    </telerik:RadButton>
                </Grid>
            </Grid>
        </Grid>
    </ControlTemplate>
    <DataTemplate x:Key="AppointmentItemTemplate">
        <TextBlock Text="{Binding Subject}" TextWrapping="Wrap" TextTrimming="WordEllipsis" dragDrop:DragDropManager.AllowDrag="False"/>
    </DataTemplate>
    <DataTemplate x:Key="InlineEditTemplate">
        <TextBox VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" Text="{Binding Appointment.Subject, Mode=TwoWay}" TextWrapping="Wrap"/>
    </DataTemplate>
    <DataTemplate x:Key="ToolTipTemplate">
        <StackPanel Orientation="Horizontal">
            <StackPanel x:Name="HighImportanceMark"
                    Grid.Column="1"
                    VerticalAlignment="Top"
                    Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=High}"
                    Margin="0 1 3 1">
                <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>
            <Path x:Name="LowImportanceMark"
                    Margin="0 1 3 1"
                    Grid.Column="1"
                    Width="9"
                    Height="12"
                    VerticalAlignment="Top"
                    Stretch="Fill"
                    Stroke="#FF0365A7"
                    Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, 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>
            <TextBlock Text="{Binding Subject}" TextWrapping="Wrap" MaxWidth="200"/>
        </StackPanel>
    </DataTemplate>
    <telerikScheduleView:AppointmentItemContentTemplateSelector x:Key="AppointmentItemTemplateSelector" DefaultTemplate="{StaticResource AppointmentItemTemplate}"/>
    <Style x:Key="AppointmentItemBaseStyle" TargetType="telerikScheduleView:AppointmentItem">
        <Setter Property="Background" Value="{StaticResource AppointmentItemBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource AppointmentItemOuterBorder}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="2 0 0 0"/>
        <Setter Property="telerik:TouchManager.DragStartTrigger" Value="TapHoldAndMove"/>
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="ContentTemplateSelector" Value="{StaticResource AppointmentItemTemplateSelector}"/>
        <Setter Property="Panel.ZIndex" Value="1"/>
        <Setter Property="Template" Value="{StaticResource AppointmentItemHorizontalControlTemplate}"/>
    </Style>
    <telerikScheduleView:OrientedAppointmentItemStyleSelector x:Key="AppointmentItemStyleSelector">
        <telerikScheduleView:OrientedAppointmentItemStyleSelector.MonthViewStyle>
            <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                <Setter Property="Margin" Value="2 1 2 0"/>
            </Style>
        </telerikScheduleView:OrientedAppointmentItemStyleSelector.MonthViewStyle>
        <telerikScheduleView:OrientedAppointmentItemStyleSelector.HorizontalStyle>
            <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                <Setter Property="Margin" Value="0 1 0 0"/>
            </Style>
        </telerikScheduleView:OrientedAppointmentItemStyleSelector.HorizontalStyle>
        <telerikScheduleView:OrientedAppointmentItemStyleSelector.VerticalStyle>
            <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                <Setter Property="Template" Value="{StaticResource AppointmentItemVerticalControlTemplate}"/>
                <Setter Property="ResizeCursor" Value="SizeNS"/>
                <Setter Property="Margin" Value="1 0 0 0"/>
            </Style>
        </telerikScheduleView:OrientedAppointmentItemStyleSelector.VerticalStyle>
    </telerikScheduleView:OrientedAppointmentItemStyleSelector>
    <DataTemplate x:Key="DragVisualCueItemTemplate">
        <Grid>
            <Border Background="{StaticResource AppointmentItemBackground_Drag}" BorderBrush="{StaticResource AppointmentItemOuterBorder_Drag}" BorderThickness="1" CornerRadius="2">
                <Border BorderBrush="{StaticResource AppointmentItemInnerBorder_Drag}" BorderThickness="1"/>
            </Border>
            <TextBlock Margin="8 2 8 2" Text="{Binding Subject}" Foreground="{StaticResource RadScheduleForeground}" TextWrapping="Wrap" TextTrimming="WordEllipsis"/>
        </Grid>
    </DataTemplate>
    <Style x:Key="HighlightItemStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground}"/>
        <Setter Property="Canvas.ZIndex" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:HighlightItem">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ResizeHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_DragOver}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_DragOver}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_DragOver}" BorderThickness="1"/>
                            <Path
                                    Width="8"
                                    Height="8"
                                    Margin="-2"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Top"
                                    Stroke="{StaticResource AppointmentResizeCueTopLeftMarkStroke}"
                                    SnapsToDevicePixels="False">
                                <Path.Data>
                                    <GeometryGroup>
                                        <EllipseGeometry RadiusX="2" RadiusY="2" Center="2 2"/>
                                        <LineGeometry StartPoint="3 3" EndPoint="8 8"/>
                                    </GeometryGroup>
                                </Path.Data>
                            </Path>
                            <TextBlock x:Name="StartTextBox"
                                    Margin="4 2"
                                    Foreground="{StaticResource RadScheduleForeground}"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Top"
                                    Text="{Binding ActualStart,StringFormat=t}"/>
                            <Path
                                    Width="8"
                                    Height="8"
                                    Margin="-2"
                                    HorizontalAlignment="Right"
                                    VerticalAlignment="Bottom"
                                    Stroke="{StaticResource AppointmentResizeCueBottomRightMarkStroke}"
                                    SnapsToDevicePixels="False">
                                <Path.Data>
                                    <GeometryGroup>
                                        <EllipseGeometry RadiusX="2" RadiusY="2" Center="6 6"/>
                                        <LineGeometry StartPoint="0 0" EndPoint="5 5"/>
                                    </GeometryGroup>
                                </Path.Data>
                            </Path>
                            <TextBlock x:Name="EndTextBox"
                                    Margin="4 2"
                                    Foreground="{StaticResource RadScheduleForeground}"
                                    HorizontalAlignment="Right"
                                    VerticalAlignment="Bottom"
                                    Text="{Binding ActualEnd,StringFormat=t}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DragDropHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_DragOver}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_DragOver}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_DragOver}" BorderThickness="1"/>
                            <Path
                                    Width="8"
                                    Height="8"
                                    Margin="-2"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Top"
                                    Stroke="{StaticResource AppointmentResizeCueTopLeftMarkStroke}"
                                    SnapsToDevicePixels="False">
                                <Path.Data>
                                    <GeometryGroup>
                                        <EllipseGeometry RadiusX="2" RadiusY="2" Center="2 2"/>
                                        <LineGeometry StartPoint="3 3" EndPoint="8 8"/>
                                    </GeometryGroup>
                                </Path.Data>
                            </Path>
                            <TextBlock x:Name="StartTextBox"
                                    Margin="4 2"
                                    Foreground="{StaticResource RadScheduleForeground}"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Top"
                                    Text="{Binding ActualStart,StringFormat=t}"/>
                            <Path
                                    Width="8"
                                    Height="8"
                                    Margin="-2"
                                    HorizontalAlignment="Right"
                                    VerticalAlignment="Bottom"
                                    Stroke="{StaticResource AppointmentResizeCueBottomRightMarkStroke}"
                                    SnapsToDevicePixels="False">
                                <Path.Data>
                                    <GeometryGroup>
                                        <EllipseGeometry RadiusX="2" RadiusY="2" Center="6 6"/>
                                        <LineGeometry StartPoint="0 0" EndPoint="5 5"/>
                                    </GeometryGroup>
                                </Path.Data>
                            </Path>
                            <TextBlock x:Name="EndTextBox"
                                    Margin="4 2"
                                    Foreground="{StaticResource RadScheduleForeground}"
                                    HorizontalAlignment="Right"
                                    VerticalAlignment="Bottom"
                                    Text="{Binding ActualEnd,StringFormat=t}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MouseOverHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_MouseOver}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_MouseOver}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_MouseOver}" BorderThickness="1"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{StaticResource DecorationRectangleBackground_Selected}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DecorationRectangleOuterBorder_Selected}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_Selected}" BorderThickness="1"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduleView:SpecialSlotStyleSelector x:Key="SpecialSlotStyleSelector">
        <telerikScheduleView:SpecialSlotStyleSelector.DefaultStyle>
            <Style TargetType="telerikScheduleView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}">
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="Background" Value="{StaticResource SpecialSlotBackground}"/>
            </Style>
        </telerikScheduleView:SpecialSlotStyleSelector.DefaultStyle>
        <telerikScheduleView:SpecialSlotStyleSelector.ReadOnlyStyle>
            <Style TargetType="telerikScheduleView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}">
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="Background" Value="{StaticResource SpecialSlotBackground_ReadOnly}"/>
            </Style>
        </telerikScheduleView:SpecialSlotStyleSelector.ReadOnlyStyle>
    </telerikScheduleView:SpecialSlotStyleSelector>
    <Style x:Key="ViewModeSelectionListBoxItemStyle" TargetType="ListBoxItem">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Padding" Value="6 3"/>
        <Setter Property="MinWidth" Value="84"/>
        <Setter Property="Foreground" Value="{StaticResource ViewModeButtonForeground}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground)">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonForeground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground)">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonForeground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="CheckOuterBorder"
                                CornerRadius="1"
                                BorderThickness="1"
                                BorderBrush="{StaticResource ViewModeButtonOuterBorder}"
                                Background="{StaticResource ViewModeButtonBackground}">
                            <Rectangle x:Name="CheckInnerBorder" Stroke="{StaticResource ViewModeButtonInnerBorder}"/>
                        </Border>
                        <ContentPresenter x:Name="Content"
                                telerik:LocalizationManager.ResourceKey="{Binding Title, FallbackValue={x:Null}}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                Margin="{TemplateBinding Padding}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                RecognizesAccessKey="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ViewModeSelectionListBoxStyle" TargetType="ListBox">
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource ViewModeSelectionListBoxItemStyle}"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <ScrollViewer x:Name="ScrollViewer"
                            Margin="0"
                            telerik:TouchManager.TouchMode="None"
                            ScrollViewer.VerticalScrollBarVisibility="Auto"
                            Padding="{TemplateBinding Padding}"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <ItemsPresenter/>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikPrimitives:RadUniformGrid Rows="1"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationButtonBaseStyle" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
    <Style x:Key="NavigationButtonBackStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource NavigationButtonBaseStyle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconForeground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconBackground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconForeground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconBackground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="CheckOuterBorder"
                                CornerRadius="1"
                                BorderThickness="1"
                                BorderBrush="{StaticResource ViewModeButtonOuterBorder}"
                                Background="{StaticResource ViewModeButtonBackground}">
                            <Rectangle x:Name="CheckInnerBorder" Stroke="{StaticResource ViewModeButtonInnerBorder}"/>
                        </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>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationButtonNextStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource NavigationButtonBaseStyle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconForeground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconBackground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconForeground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IconBackground" Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="CheckOuterBorder"
                                CornerRadius="1"
                                BorderThickness="1"
                                BorderBrush="{StaticResource ViewModeButtonOuterBorder}"
                                Background="{StaticResource ViewModeButtonBackground}">
                            <Rectangle x:Name="CheckInnerBorder" Stroke="{StaticResource ViewModeButtonInnerBorder}"/>
                        </Border>
                        <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>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationCalendarToggleButton" TargetType="telerik:RadDropDownButton" BasedOn="{StaticResource NavigationButtonBaseStyle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CalendarIcon" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CalendarIcon" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CalendarIcon" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CalendarIcon" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CalendarIcon" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconForeground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CalendarIcon" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource NavigationIconBackground_Highlighted}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="BorderBrush">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonOuterBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckOuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonBackground_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckInnerBorder" Storyboard.TargetProperty="Stroke">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewModeButtonInnerBorder_Pressed}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="CheckOuterBorder"
                                CornerRadius="1"
                                BorderThickness="1"
                                BorderBrush="{StaticResource ViewModeButtonOuterBorder}"
                                Background="{StaticResource ViewModeButtonBackground}">
                            <Rectangle x:Name="CheckInnerBorder" Stroke="{StaticResource ViewModeButtonInnerBorder}"/>
                        </Border>
                        <ContentControl x:Name="CalendarIcon"
                                IsTabStop="False"
                                Margin="0 0 0 1"
                                HorizontalContentAlignment="Center"
                                Template="{StaticResource CalendarIcon}"
                                Background="{StaticResource NavigationIconBackground_Normal}"
                                Foreground="{StaticResource NavigationIconForeground_Normal}"/>
                        <Popup x:Name="DropDownPopup"
                                IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}"
                                AllowsTransparency="True"
                                StaysOpen="False"
                                Focusable="False"
                                Placement="Bottom">
                            <ContentPresenter x:Name="DropDownPopupContent"
                                    Content="{TemplateBinding DropDownContent}"
                                    ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                    DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationDateTimePickerStyle" TargetType="telerik:RadDatePicker">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDatePicker">
                    <telerik:RadDropDownButton
                            telerik:DateTimePickerExtensions.FocusContentOnOpen="True"
                            Style="{StaticResource NavigationCalendarToggleButton}"
                            DropDownIndicatorVisibility="Collapsed"
                            IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                        <telerik:RadDropDownButton.DropDownContent>
                            <telerik:RadCalendar x:Name="PART_Calendar"
                                    IsReadOnly="{TemplateBinding IsReadOnly}"
                                    DateSelectionMode="{TemplateBinding DateSelectionMode}"
                                    Culture="{TemplateBinding Culture}"
                                    SelectionMode="Single"
                                    DisplayDateStart="{TemplateBinding DisplayDateStart}"
                                    DisplayDateEnd="{TemplateBinding DisplayDateEnd}"
                                    SelectableDateStart="{TemplateBinding SelectableDateStart}"
                                    SelectableDateEnd="{TemplateBinding SelectableDateEnd}"
                                    DisplayDate="{Binding DisplayDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                    SelectedDate="{Binding SelectedDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                        </telerik:RadDropDownButton.DropDownContent>
                    </telerik:RadDropDownButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationIntervalStyle" TargetType="ContentControl">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <TextBlock Margin="0 1 0 0" Text="{Binding}" Foreground="{StaticResource NavigationIntervalForegroundRear}"/>
                        <TextBlock Margin="0 0 0 1" Text="{Binding}" Foreground="{StaticResource NavigationIntervalForegroundFront}"/>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DragVisualContentTemplate">
        <TextBlock
                Text="{Binding Converter={StaticResource DraggedAppointmentsToLocalizedStringConverter}}"
                TextWrapping="Wrap"
                MaxWidth="200"
                MaxHeight="66"
                TextTrimming="WordEllipsis"/>
    </DataTemplate>
    <Style TargetType="telerikScheduleView:DragVisual" x:Key="DragVisualStyle">
        <Setter Property="Foreground" Value="{StaticResource DragVisualForeground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource DragVisualBorder}"/>
        <Setter Property="Background" Value="{StaticResource DragVisualBackground}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="0 0 6 0"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:DragVisual">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="EffectStates">
                                <VisualState x:Name="None">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NoneEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Move">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MoveEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Copy">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CopyEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Link">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LinkEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Scroll">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="SecondItemVisual"
                                Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=DraggedItemsSource, Converter={StaticResource EnumerableCountToVisibilityConverter}, ConverterParameter=3}"
                                CornerRadius="2"
                                Margin="4 4 0 0"
                                BorderBrush="{StaticResource DragVisualMultyItemBorder}"
                                Background="{StaticResource DragVisualMultyItemBackground}"
                                BorderThickness="1"/>
                        <Border x:Name="ThirdthItemVisual"
                                Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=DraggedItemsSource, Converter={StaticResource EnumerableCountToVisibilityConverter}, ConverterParameter=2}"
                                CornerRadius="2"
                                Margin="2 2 2 2"
                                BorderBrush="{StaticResource DragVisualMultyItemBorder}"
                                Background="{StaticResource DragVisualMultyItemBackground}"
                                BorderThickness="1"/>
                        <Border x:Name="DragBackgroundVisual"
                                CornerRadius="2"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"/>
                        <Border Padding="{TemplateBinding BorderThickness}">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Path x:Name="NoneEffect"
                                        Visibility="Collapsed"
                                        Margin="10 3 2 5"
                                        Width="10"
                                        Height="10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M2,8 L8,2 M9,5 C9,7.2 7.2,9 5,9 C2.7,9 1,7 1,5 C1,2.8 2.8,1 5,1 C7.2,1 9,2.8 9,5 z"
                                        Stroke="{StaticResource DragVisualEffectImportant}"
                                        StrokeThickness="2"/>
                                <Path x:Name="MoveEffect"
                                        Visibility="Collapsed"
                                        Margin="10 3 2 5"
                                        Width="10"
                                        Height="10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M0,5 L8,5 M4,1 L8,5 4,9"
                                        Stroke="{StaticResource DragVisualEffectNormal}"
                                        StrokeThickness="2"/>
                                <Path x:Name="CopyEffect"
                                        Visibility="Collapsed"
                                        Margin="10 3 2 5"
                                        Width="10"
                                        Height="10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M5,1 L5,9 M1,5 L9,5"
                                        Stroke="{StaticResource DragVisualEffectNormal}"
                                        StrokeThickness="2"/>
                                <Path x:Name="LinkEffect"
                                        Visibility="Collapsed"
                                        Margin="10 7 4 7"
                                        Height="6"
                                        Width="11"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M8,0.5 C9.4,0.5 10.5,1.6 10.5,3 C10.5,4.4 9.4,5.5 8,5.5 C6.6,5.5 5.5,4.4 5.5,3 C5.5,1.6 6.6,0.5 8,0.5 z M3,0.5 C4.4,0.5 5.5,1.6 5.5,3 C5.5,4.4 4.4,5.5 3,5.5 C1.6,5.5 0.5,4.4 0.5,3 C0.5,1.6 1.6,0.5 3,0.5 z"
                                        Stroke="{StaticResource DragVisualEffectImportant}"
                                        StrokeThickness="1"/>
                                <Path x:Name="ScrollEffect"
                                        Visibility="Collapsed"
                                        Margin="10 4 5 4"
                                        Width="10"
                                        Height="12"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M0,5 L5,0 10,5Z M0,7 L5,12 10,7Z"
                                        Fill="{StaticResource DragVisualEffectNormal}"/>
                                <ContentPresenter x:Name="Content"
                                        Grid.Column="1"
                                        Margin="{TemplateBinding Padding}"
                                        Content="{TemplateBinding DraggedItemsSource}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="RadScheduleViewControlTemplate" TargetType="telerikScheduleView:RadScheduleView">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OrienatationStates">
                    <VisualState x:Name="Horizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeadersHeight" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Vertical">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeadersWidth" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.ColumnSpan)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>0</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.RowSpan)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>2</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TimeRulerPanel" Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>0</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TimeRulerPanel" Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid>
                <Grid.InputBindings>
                    <KeyBinding Key="Del" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteAppointment}"/>
                    <KeyBinding Command="{x:Static telerikScheduleView:RadScheduleViewCommands.CreateAppointment}" Key="O" Modifiers="Alt"/>
                    <KeyBinding Command="{x:Static telerikScheduleView:RadScheduleViewCommands.CreateInlineAppointment}" Key="Insert"/>
                    <KeyBinding Command="{x:Static telerikScheduleView:RadScheduleViewCommands.CreateAppointment}" Key="O" Modifiers="Ctrl"/>
                    <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.CreateAppointment}"/>
                </Grid.InputBindings>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Border x:Name="NavigationHeader"
                        Visibility="{TemplateBinding NavigationHeaderVisibility}"
                        BorderBrush="{StaticResource SchedulerHeaderOuterBorder}"
                        Background="{StaticResource SchedulerHeaderBackground}"
                        BorderThickness="1">
                    <Border BorderBrush="{StaticResource SchedulerHeaderInnerBorder}" BorderThickness="1">
                        <Grid x:Name="ScheduleViewHeader">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <ListBox x:Name="ViewModeSelection"
                                    Grid.Column="0"
                                    Style="{StaticResource ViewModeSelectionListBoxStyle}"
                                    SelectionMode="Single"
                                    ItemsSource="{TemplateBinding ViewDefinitions}"
                                    SelectedIndex="{Binding ActiveViewDefinitionIndex, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                            <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                                <ContentControl x:Name="CurrentInterval"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Right"
                                        Style="{StaticResource NavigationIntervalStyle}"
                                        Content="{TemplateBinding CurrentVisibleRangeText}"/>
                                <telerik:RadButton Style="{StaticResource NavigationButtonBackStyle}" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DecreaseVisibleDateLarge}"/>
                                <telerik:RadDatePicker x:Name="PART_NavigationPicker" Style="{StaticResource NavigationDateTimePickerStyle}" SelectedValue="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CurrentDate, Mode=TwoWay}"/>
                                <telerik:RadButton Style="{StaticResource NavigationButtonNextStyle}" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.IncreaseVisibleDateLarge}"/>
                            </StackPanel>
                        </Grid>
                    </Border>
                </Border>
                <telerik:RadTransitionControl x:Name="PART_TranstionControl" Grid.Row="1" Duration="00:00:00.500">
                    <telerik:RadTransitionControl.Transition>
                        <telerik:SlideAndZoomTransition MinZoom="1"/>
                    </telerik:RadTransitionControl.Transition>
                    <Grid x:Name="AppointmentsPanelGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Border x:Name="HeadersHeight" Grid.ColumnSpan="3" Height="{TemplateBinding HeadersLength}"/>
                        <Border x:Name="HeadersWidth" Grid.RowSpan="3" Width="{TemplateBinding HeadersLength}"/>
                        <telerikScheduleView:TimeRulerPanel x:Name="PART_TimeRulerPanel"
                                Grid.Row="0"
                                Grid.Column="1"
                                Orientation="{TemplateBinding EffectiveOrientation}"
                                Offset="{Binding HorizontalOffset, RelativeSource={RelativeSource TemplatedParent}}"
                                ClipToBounds="True"/>
                        <telerikScheduleView:AppointmentsPanel x:Name="PART_ItemsHost" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Background="{x:Null}" Orientation="{TemplateBinding EffectiveOrientation}" Panel.ZIndex="1"/>
                        <telerikPrimitives:LayoutTransformControl
                                Grid.Row="1"
                                Grid.Column="1"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Right"
                                Visibility="{TemplateBinding ComputedAppointmentNavigationButtonsVisibility}"
                                Canvas.ZIndex="1"
                                FocusVisualStyle="{x:Null}">
                            <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90"/>
                            </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                            <telerik:RadButton
                                    CornerRadius="2 2 0 0"
                                    HorizontalContentAlignment="Stretch"
                                    Command="{x:Static telerikScheduleView:RadScheduleViewCommands.GoToNextAppointment}"
                                    FocusVisualStyle="{x:Null}">
                                <Grid Width="160">
                                    <TextBlock telerik:LocalizationManager.ResourceKey="NextAppointment" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                    <TextBlock Text="▼" FontSize="8" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="8 0"/>
                                </Grid>
                            </telerik:RadButton>
                        </telerikPrimitives:LayoutTransformControl>
                        <telerikPrimitives:LayoutTransformControl
                                Grid.Row="1"
                                Grid.Column="1"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Left"
                                Visibility="{TemplateBinding ComputedAppointmentNavigationButtonsVisibility}"
                                Canvas.ZIndex="1"
                                FocusVisualStyle="{x:Null}">
                            <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90"/>
                            </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                            <telerik:RadButton CornerRadius="0 0 2 2" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.GoToPreviousAppointment}" FocusVisualStyle="{x:Null}">
                                <Grid Width="160">
                                    <TextBlock telerik:LocalizationManager.ResourceKey="PreviousAppointment" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                    <TextBlock Text="▲" FontSize="8" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="8 0"/>
                                </Grid>
                            </telerik:RadButton>
                        </telerikPrimitives:LayoutTransformControl>
                        <telerikScheduleView:TimeRulerLinesPanel x:Name="PART_TimeRulerLinesPanel"
                                Grid.Row="1"
                                Grid.Column="1"
                                Background="Transparent"
                                Orientation="{TemplateBinding EffectiveOrientation}"
                                PixelLength="{TemplateBinding EffectivePixelLength}"
                                ClipToBounds="True"/>
                        <telerikScheduleView:HighlightPanel x:Name="PART_HighlightPanel"
                                Grid.Row="1"
                                Grid.Column="1"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Stretch"
                                Background="Transparent"
                                Orientation="{TemplateBinding EffectiveOrientation}"
                                PixelLength="{TemplateBinding EffectivePixelLength}"
                                IsHitTestVisible="False"
                                ClipToBounds="True"
                                Panel.ZIndex="1"/>
                        <Border x:Name="AppointmentsBorder" Grid.Row="1" Grid.Column="1" BorderBrush="{StaticResource GroupHeaderBorderBrush}" BorderThickness="1"/>
                        <Border x:Name="VerticalHeadersBorder"
                                Grid.Row="1"
                                Grid.Column="0"
                                BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder_Vertical}"
                                BorderThickness="0 1"
                                Panel.ZIndex="3"/>
                        <Border x:Name="HorizontalHeadersBorder" Grid.Row="0" Grid.Column="1" BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder}" BorderThickness="1 0" Panel.ZIndex="3"/>
                        <ScrollBar x:Name="PART_HorizontalScrollBar"
                                Grid.Row="2"
                                Grid.Column="1"
                                Orientation="Horizontal"
                                ViewportSize="{TemplateBinding ViewportWidth}"
                                Maximum="{TemplateBinding ExtentWidth}"
                                Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
                                SmallChange="{TemplateBinding HorizontalSmallChange}"
                                LargeChange="{TemplateBinding HorizontalLargeChange}"/>
                        <ScrollBar x:Name="PART_VerticalScrollBar"
                                Grid.Row="1"
                                Grid.Column="2"
                                Orientation="Vertical"
                                ViewportSize="{TemplateBinding ViewportHeight}"
                                Maximum="{TemplateBinding ExtentHeight}"
                                Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                                SmallChange="{TemplateBinding VerticalSmallChange}"
                                LargeChange="{TemplateBinding VerticalLargeChange}"/>
                        <Grid x:Name="WarningsPanel" Grid.Row="0" Grid.RowSpan="3" Grid.ColumnSpan="3" Panel.ZIndex="2">
                            <Grid x:Name="ViewDefinitionWarning" Background="White" Visibility="{Binding ActiveViewDefinition, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedNullToVisibilityConverter}}">
                                <TextBlock telerik:LocalizationManager.ResourceKey="ViewDefinitionWarning" FontSize="32" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </Grid>
                            <Grid x:Name="AppointmentSourceWarning" Background="White" Visibility="{Binding AppointmentsSource, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedNullToVisibilityConverter}}">
                                <TextBlock telerik:LocalizationManager.ResourceKey="AppointmentSourceWarning" FontSize="32" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </Grid>
                        </Grid>
                    </Grid>
                </telerik:RadTransitionControl>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="CurrentTimeIndicatorStyle" TargetType="telerikScheduleView:CurrentTimeIndicator">
        <Setter Property="Canvas.ZIndex" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="0 0 -1 -1" MinWidth="2" MinHeight="2" Fill="{StaticResource CurrentTimeFill}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduleView:CategoryCollection x:Key="DefaultCategoryCollection">
        <telerikScheduleView:Category CategoryName="Red Category" CategoryBrush="{StaticResource RedCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Green Category" CategoryBrush="{StaticResource GreenCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Blue Category" CategoryBrush="{StaticResource BlueCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Purple Category" CategoryBrush="{StaticResource PurpleCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Yellow Category" CategoryBrush="{StaticResource YellowCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Olive Category" CategoryBrush="{StaticResource OliveCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Pink Category" CategoryBrush="{StaticResource PinkCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Orange Category" CategoryBrush="{StaticResource OrangeCategoryBrush}"/>
    </telerikScheduleView:CategoryCollection>
    <telerikScheduleView:TimeMarkerCollection x:Key="DefaultTimeMarkerCollection">
        <telerikScheduleView:TimeMarker TimeMarkerName="Free" TimeMarkerBrush="{StaticResource FreeMarkerBrush}"/>
        <telerikScheduleView:TimeMarker TimeMarkerName="Tentative" TimeMarkerBrush="{StaticResource TentativeMarkerBrush}"/>
        <telerikScheduleView:TimeMarker TimeMarkerName="Busy" TimeMarkerBrush="{StaticResource BusyMarkerBrush}"/>
        <telerikScheduleView:TimeMarker TimeMarkerName="OutOfOffice" TimeMarkerBrush="{StaticResource OutOfOfficeMarkerBrush}"/>
    </telerikScheduleView:TimeMarkerCollection>
    <Style x:Key="ScheduleViewBaseStyle" TargetType="telerikScheduleView:ScheduleViewBase">
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Background" Value="{StaticResource RadScheduleBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource RadScheduleBorderBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="GroupHeaderStyleSelector" Value="{StaticResource GroupHeaderStyleSelector}"/>
        <Setter Property="GroupHeaderContentTemplateSelector" Value="{StaticResource GroupHeaderContentTemplateSelector}"/>
        <Setter Property="TimeRulerItemStyleSelector" Value="{StaticResource TimeRulerItemStyleSelector}"/>
        <Setter Property="TimeRulerItemTemplateSelector" Value="{StaticResource TimeRulerItemTemplateSelector}"/>
        <Setter Property="CurrentTimeIndicatorStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="CurrentTimeIndicatorAppointmentsAreaStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="ResizeHighlightStyle" Value="{StaticResource ResizeHighlightStyle}"/>
        <Setter Property="DragDropHighlightStyle" Value="{StaticResource DragDropHighlightStyle}"/>
        <Setter Property="MouseOverHighlightStyle" Value="{StaticResource MouseOverHighlightStyle}"/>
        <Setter Property="SelectionHighlightStyle" Value="{StaticResource SelectionHighlightStyle}"/>
        <Setter Property="SpecialSlotStyleSelector" Value="{StaticResource SpecialSlotStyleSelector}"/>
        <Setter Property="MinAppointmentWidth" Value="50"/>
        <Setter Property="AppointmentStyleSelector" Value="{StaticResource AppointmentItemStyleSelector}"/>
        <Setter Property="InlineEditingTemplate" Value="{StaticResource InlineEditTemplate}"/>
        <Setter Property="ToolTipTemplate" Value="{StaticResource ToolTipTemplate}"/>
        <Setter Property="DragVisualStyle" Value="{StaticResource DragVisualStyle}"/>
        <Setter Property="DragVisualTemplate" Value="{StaticResource DragVisualContentTemplate}"/>
        <Setter Property="CategoriesSource" Value="{StaticResource DefaultCategoryCollection}"/>
        <Setter Property="TimeMarkersSource" Value="{StaticResource DefaultTimeMarkerCollection}"/>
        <Setter Property="EditAppointmentDialogStyle" Value="{StaticResource EditAppointmentDialogStyle}"/>
        <Setter Property="EditRecurrenceDialogStyle" Value="{StaticResource EditRecurrenceDialogStyle}"/>
        <Setter Property="DeleteAppointmentConfirmDialogStyle" Value="{StaticResource DeleteAppointmentConfirmDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDialogStyle" Value="{StaticResource RecurrenceChoiceDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDeleteDialogStyle" Value="{StaticResource RecurrenceChoiceDeleteDialogStyle}"/>
        <Setter Property="RecurrenceChoiceResizeDialogStyle" Value="{StaticResource RecurrenceChoiceResizeDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDragDropDialogStyle" Value="{StaticResource RecurrenceChoiceDragDropDialogStyle}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style x:Key="RadScheduleViewStyle" TargetType="telerikScheduleView:RadScheduleView">
        <Setter Property="telerik:ScrollingSettingsBehavior.IsEnabled" Value="True"/>
        <Setter Property="telerik:ScrollingSettingsBehavior.ScrollAreaPadding" Value="30"/>
        <Setter Property="telerik:ScrollingSettingsBehavior.ScrollStep" Value="5"/>
        <Setter Property="telerik:ScrollingSettingsBehavior.ScrollStepTime" Value="00:00:00.01"/>
        <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
        <Setter Property="Background" Value="{StaticResource RadScheduleBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource RadScheduleBorderBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template" Value="{StaticResource RadScheduleViewControlTemplate}"/>
        <Setter Property="GroupHeaderStyleSelector" Value="{StaticResource GroupHeaderStyleSelector}"/>
        <Setter Property="GroupHeaderContentTemplateSelector" Value="{StaticResource GroupHeaderContentTemplateSelector}"/>
        <Setter Property="TimeRulerItemStyleSelector" Value="{StaticResource TimeRulerItemStyleSelector}"/>
        <Setter Property="TimeRulerItemTemplateSelector" Value="{StaticResource TimeRulerItemTemplateSelector}"/>
        <Setter Property="CurrentTimeIndicatorStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="CurrentTimeIndicatorAppointmentsAreaStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="ResizeHighlightStyle" Value="{StaticResource ResizeHighlightStyle}"/>
        <Setter Property="DragDropHighlightStyle" Value="{StaticResource DragDropHighlightStyle}"/>
        <Setter Property="MouseOverHighlightStyle" Value="{StaticResource MouseOverHighlightStyle}"/>
        <Setter Property="SelectionHighlightStyle" Value="{StaticResource SelectionHighlightStyle}"/>
        <Setter Property="SpecialSlotStyleSelector" Value="{StaticResource SpecialSlotStyleSelector}"/>
        <Setter Property="MinAppointmentWidth" Value="50"/>
        <Setter Property="AppointmentStyleSelector" Value="{StaticResource AppointmentItemStyleSelector}"/>
        <Setter Property="InlineEditingTemplate" Value="{StaticResource InlineEditTemplate}"/>
        <Setter Property="ToolTipTemplate" Value="{StaticResource ToolTipTemplate}"/>
        <Setter Property="DragVisualStyle" Value="{StaticResource DragVisualStyle}"/>
        <Setter Property="DragVisualTemplate" Value="{StaticResource DragVisualContentTemplate}"/>
        <Setter Property="CategoriesSource" Value="{StaticResource DefaultCategoryCollection}"/>
        <Setter Property="TimeMarkersSource" Value="{StaticResource DefaultTimeMarkerCollection}"/>
        <Setter Property="EditAppointmentDialogStyle" Value="{StaticResource EditAppointmentDialogStyle}"/>
        <Setter Property="EditRecurrenceDialogStyle" Value="{StaticResource EditRecurrenceDialogStyle}"/>
        <Setter Property="DeleteAppointmentConfirmDialogStyle" Value="{StaticResource DeleteAppointmentConfirmDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDialogStyle" Value="{StaticResource RecurrenceChoiceDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDeleteDialogStyle" Value="{StaticResource RecurrenceChoiceDeleteDialogStyle}"/>
        <Setter Property="RecurrenceChoiceResizeDialogStyle" Value="{StaticResource RecurrenceChoiceResizeDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDragDropDialogStyle" Value="{StaticResource RecurrenceChoiceDragDropDialogStyle}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="telerikScheduleView:RadScheduleView" BasedOn="{StaticResource RadScheduleViewStyle}"/>
    <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}"/>
    <Style TargetType="telerikScheduleView:GroupHeaderButton" BasedOn="{StaticResource GroupHeaderButtonStyle}"/>
    <Style TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerItem" BasedOn="{StaticResource MinorVerticalTimeRulerItemStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerLine" BasedOn="{StaticResource TimeRulerLineStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerGroupItem" BasedOn="{StaticResource TimeRulerGroupItemStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerMonthViewItem" BasedOn="{StaticResource TimeRulerMonthViewItemStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerMonthViewGroupItem" BasedOn="{StaticResource TimeRulerMonthViewGroupItemStyle}"/>
    <Style TargetType="telerikScheduleView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}"/>
    <DataTemplate x:Key="AlertIconTemplate">
        <Grid Height="44" Width="46">
            <Path
                    Stretch="Fill"
                    Margin="-23 0 0 0"
                    RenderTransformOrigin="0.75 0.5"
                    Data="M24.1,0 C24.9,0.3 25.4,1.4 25.4,1.4 C25.4,1.4 46.1,38.3 46.1,40.9 C46.1,43.4 43.7,43.7 43.7,43.7 L23,43.7 L2.4,43.7 C2.4,43.7 0,43.4 0,40.9 C0,38.3 20.8,1.4 20.8,1.4 C20.8,1.4 21.2,0.3 22,0 z"
                    HorizontalAlignment="Left"
                    Width="46">
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.4 1" StartPoint="0.6 0">
                        <GradientStop Color="#FFFFDA45" Offset="0.3"/>
                        <GradientStop Color="#FFFF9945" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path
                    Stretch="Fill"
                    Margin="-23 18 0 0"
                    RenderTransformOrigin="0.75 0.5"
                    Data="M44.9,37.7 C45.7,39.3 46.1,40.5 46.1,40.9 C46.1,43.4 43.7,43.7 43.7,43.7 L23,43.7 L2.4,43.7 C2.4,43.7 0,43.4 0,40.9 C0,39.5 5.8,28.6 11.4,18.3 C11.5,18 44.6,37.1 44.9,37.7 z"
                    HorizontalAlignment="Left"
                    Width="46">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                    </TransformGroup>
                </Path.RenderTransform>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.4 1" StartPoint="0.5 0.4">
                        <GradientStop Color="#FFFCB827" Offset="0.7"/>
                        <GradientStop Color="#FFFE9A0A" Offset="0.1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path
                    Stretch="Fill"
                    Margin="-22 1 0 0"
                    RenderTransformOrigin="0.75 0.5"
                    Data="M24.1,0 C24.9,0.3 25.4,1.4 25.4,1.4 C25.4,1.4 46.1,38.3 46.1,40.9 C46.1,43.4 43.7,43.7 43.7,43.7 L23,43.7 L2.4,43.7 C2.4,43.7 0,43.4 0,40.9 C0,38.3 20.8,1.4 20.8,1.4 C20.8,1.4 21.2,0.3 22,0 z"
                    Stroke="#FFFEF065"
                    HorizontalAlignment="Left"
                    Width="44">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                        <TranslateTransform X="1"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path
                    Stretch="Fill"
                    Height="17"
                    Margin="6 0 6 1"
                    VerticalAlignment="Bottom"
                    Data="M179.6,132.9 L209.1,132.9 C209.1,132.9 207,119.5 194.2,119.5 C182.5,119.5 179.6,132.9 179.6,132.9 z">
                <Path.OpacityMask>
                    <RadialGradientBrush GradientOrigin="0.5 0.9">
                        <GradientStop Color="#A8FFD100" Offset="0.4"/>
                        <GradientStop Color="Transparent" Offset="0.9"/>
                        <GradientStop Color="#A0DCA209" Offset="0.2"/>
                    </RadialGradientBrush>
                </Path.OpacityMask>
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.5 1" StartPoint="0.5 0">
                        <GradientStop Color="#24FEF9BA" Offset="1"/>
                        <GradientStop Color="#BBFBFC18" Offset="0.9"/>
                        <GradientStop Color="#48FED72C" Offset="0.3"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path
                    Stretch="Fill"
                    Margin="-23 0 0 0"
                    RenderTransformOrigin="0.75 0.5"
                    Data="M24.1,0 C24.9,0.3 25.4,1.4 25.4,1.4 C25.4,1.4 46.1,38.3 46.1,40.9 C46.1,43.4 43.7,43.7 43.7,43.7 L23,43.7 L2.4,43.7 C2.4,43.7 0,43.4 0,40.9 C0,38.3 20.8,1.4 20.8,1.4 C20.8,1.4 21.2,0.3 22,0 z"
                    HorizontalAlignment="Left"
                    Width="46">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                    </TransformGroup>
                </Path.RenderTransform>
                <Path.Stroke>
                    <LinearGradientBrush EndPoint="0.5 1" StartPoint="0.5 0">
                        <GradientStop Color="#FFF66E04" Offset="0"/>
                        <GradientStop Color="#FFC35602" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Stroke>
            </Path>
            <Path
                    Stretch="Fill"
                    Margin="20 13 0 15"
                    Data="M118.2,79.4 C118.2,79.4 118.8,78.4 119.2,78.4 C119.5,78.3 121.2,78.4 121.2,78.4 C121.2,78.4 121.9,79.1 122,79.2 C122,79.4 122,91.2 122,91.2 L121.1,92.7 L119.1,92.7 L118.2,91.2 z"
                    Fill="White"
                    HorizontalAlignment="Left"
                    Width="5"/>
            <Ellipse Fill="White" Height="6" Margin="19 0 0 5" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="6"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="ConfirmIconTemplate">
        <Grid Height="44" Width="44">
            <Ellipse Width="44">
                <Ellipse.Fill>
                    <LinearGradientBrush EndPoint="0.7 1" StartPoint="0.3 0">
                        <GradientStop Color="#FF67A1F4" Offset="0.1"/>
                        <GradientStop Color="#FF1660C0" Offset="0.7"/>
                    </LinearGradientBrush>
                </Ellipse.Fill>
            </Ellipse>
            <Path Stretch="Fill" Margin="2 16 1 0" Data="M289,92.6 C289,92.6 299.3,80.5 329.4,81 C329.8,81 332.6,107.1 308.8,107.1 C296,107.1 289,92.6 289,92.6 z">
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.6 1" StartPoint="0.4 0">
                        <GradientStop Color="#FF1660C0" Offset="0"/>
                        <GradientStop Color="#FF084EAB" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Ellipse Stroke="#FF9AC2FA" Margin="1 1 0 0">
                <Ellipse.OpacityMask>
                    <LinearGradientBrush EndPoint="0.5 1" StartPoint="0.5 0">
                        <GradientStop Color="#7C1D99EC" Offset="0"/>
                        <GradientStop Color="#7EAFDDFC" Offset="1"/>
                        <GradientStop Color="#C45EB6F1" Offset="0.4"/>
                    </LinearGradientBrush>
                </Ellipse.OpacityMask>
            </Ellipse>
            <Path
                    Stretch="Fill"
                    Margin="13 6 12 15"
                    Data="M300.1,72.5 L300.2,76.8 C300.2,76.8 303.7,74.2 308.5,75 C312.6,75.7 312.3,80.3 311.2,81.9 C307.6,87.3 306,88 306,89.6 C306,91.5 306,92.9 306,92.9 L311.4,92.9 L311.4,89.7 C311.4,89.7 312.4,89 315.2,85.8 C316.8,83.9 318,81.9 318.4,80.7 C319,79.1 319.7,74.5 315,72.1 C313.4,71.3 311.4,70.4 307.1,70.6 C302.8,70.7 300.1,72.5 300.1,72.5 z"
                    Fill="White"/>
            <Rectangle Fill="White" Height="6" Margin="19 0 19 6" VerticalAlignment="Bottom"/>
            <Ellipse Width="44">
                <Ellipse.Stroke>
                    <LinearGradientBrush EndPoint="0.5 1" StartPoint="0.5 0">
                        <GradientStop Color="#FF2F6FC4" Offset="0"/>
                        <GradientStop Color="#FF084FAB" Offset="1"/>
                    </LinearGradientBrush>
                </Ellipse.Stroke>
            </Ellipse>
        </Grid>
    </DataTemplate>
    <Style x:Key="WindowButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Padding" Value="{StaticResource WindowButtonPadding}"/>
        <Setter Property="Margin" Value="{StaticResource WindowButtonMargin}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <telerikChromes:ButtonChrome
                                RenderNormal="False"
                                CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                                RenderMouseOver="{TemplateBinding IsMouseOver}"
                                RenderPressed="{TemplateBinding IsPressed}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WindowResizeThumbStyle" TargetType="Thumb">
        <Setter Property="MinWidth" Value="5"/>
        <Setter Property="MinHeight" Value="5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Rectangle Fill="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="RadWindowTemplate" TargetType="telerikNavigation:RadWindow">
        <Grid x:Name="LayoutRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Disabled"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="DragStates">
                    <VisualState x:Name="NotDragging"/>
                    <VisualState x:Name="Dragging"/>
                    <VisualState x:Name="Resizing"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="WindowStates">
                    <VisualState x:Name="NormalWindow"/>
                    <VisualState x:Name="MaximizedRestricted"/>
                    <VisualState x:Name="Maximized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="CornerRadius">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <CornerRadius>0</CornerRadius>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowInnerBorder" Storyboard.TargetProperty="CornerRadius">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <CornerRadius>0</CornerRadius>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowInnerBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentInnerBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 1 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 1 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButtons" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Minimized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButtons" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Top</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Shadow" CornerRadius="10" BorderBrush="#11000000" BorderThickness="1">
                <Border CornerRadius="9" BorderBrush="#22000000" BorderThickness="1">
                    <Border CornerRadius="8" BorderBrush="#33000000" BorderThickness="1">
                        <Border CornerRadius="7" BorderBrush="#44000000" BorderThickness="0 0 1 1">
                            <Border CornerRadius="6" BorderBrush="#55000000" BorderThickness="0 0 1 1"/>
                        </Border>
                    </Border>
                </Border>
            </Border>
            <Border x:Name="WindowOuterBorder" Margin="3 3 5 5" Grid.RowSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="5">
                <Border x:Name="WindowInnerBorder" BorderBrush="{StaticResource WindowInnerBorder}" BorderThickness="1" CornerRadius="4">
                    <AdornerDecorator>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Rectangle x:Name="HeaderBackgroundVisual" Grid.Row="0" Fill="{StaticResource WindowHeaderBackground}"/>
                            <Rectangle x:Name="BackgroundVisual" Grid.Row="1" Fill="{TemplateBinding BorderBackground}"/>
                            <Grid x:Name="Header">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Thumb x:Name="titleThumb" Grid.ColumnSpan="2" Style="{StaticResource WindowResizeThumbStyle}"/>
                                <Grid Grid.Column="0" Margin="2 0 0 0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <ContentPresenter x:Name="IconContent"
                                            Grid.Column="0"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Center"
                                            Margin="2"
                                            Content="{TemplateBinding Icon}"
                                            ContentTemplate="{TemplateBinding IconTemplate}"/>
                                    <ContentPresenter x:Name="HeaderContent"
                                            Grid.Column="1"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Center"
                                            Content="{TemplateBinding Header}"
                                            ContentTemplate="{TemplateBinding HeaderTemplate}"
                                            SnapsToDevicePixels="True"
                                            ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"/>
                                </Grid>
                                <Border x:Name="PART_HeaderButtonsBorder" Grid.Column="1">
                                    <StackPanel x:Name="HeaderButtons" Grid.Column="1" Orientation="Horizontal" Margin="0 0 3 0">
                                        <telerik:RadButton x:Name="PART_MinimizeButton"
                                                Command="{x:Static telerik:WindowCommands.Minimize}"
                                                Style="{StaticResource WindowButtonStyle}"
                                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                            <ToolTipService.ToolTip>
                                                <ToolTip telerik:LocalizationManager.ResourceKey="Minimize"/>
                                            </ToolTipService.ToolTip>
                                            <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,7.5 L12.5,7.5 12.5,11.5 1.5,11.5 Z"/>
                                        </telerik:RadButton>
                                        <telerik:RadButton x:Name="PART_RestoreButton"
                                                Command="{x:Static telerik:WindowCommands.Restore}"
                                                Style="{StaticResource WindowButtonStyle}"
                                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                            <ToolTipService.ToolTip>
                                                <ToolTip telerik:LocalizationManager.ResourceKey="Restore"/>
                                            </ToolTipService.ToolTip>
                                            <Path
                                                    Fill="{StaticResource WindowButtonIconFill}"
                                                    Stroke="{StaticResource WindowButtonIconStroke}"
                                                    Width="14"
                                                    Height="14"
                                                    Data="M0.5,4.5 0.5,11.5 1.5,12.5 8.5,12.5 9.5,11.5 9.5,3.5 1.5,3.5 Z M3.5,6.5 L3.5,9.5 L6.5,9.5 6.5,6.5 Z M3.5,3.5 3.5,1.5 4.5,0.5 11.5,0.5 12.5,1.5 12.5,9.5 11.5,10.5 9.5,10.5 9.5,3.5 Z"/>
                                        </telerik:RadButton>
                                        <telerik:RadButton x:Name="PART_MaximizeButton"
                                                Command="{x:Static telerik:WindowCommands.Maximize}"
                                                Style="{StaticResource WindowButtonStyle}"
                                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                            <ToolTipService.ToolTip>
                                                <ToolTip telerik:LocalizationManager.ResourceKey="Maximize"/>
                                            </ToolTipService.ToolTip>
                                            <Path
                                                    Fill="{StaticResource WindowButtonIconFill}"
                                                    Stroke="{StaticResource WindowButtonIconStroke}"
                                                    Width="14"
                                                    Height="14"
                                                    Data="M1.5,2.5 L12.5,2.5 12.5,11.5 1.5,11.5 Z M4.5,5.5 L9.5,5.5 9.5,8.5 4.5,8.5 Z"/>
                                        </telerik:RadButton>
                                        <telerik:RadButton x:Name="PART_CloseButton"
                                                Command="{x:Static telerik:WindowCommands.Close}"
                                                Style="{StaticResource WindowButtonStyle}"
                                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                            <ToolTipService.ToolTip>
                                                <ToolTip telerik:LocalizationManager.ResourceKey="Close"/>
                                            </ToolTipService.ToolTip>
                                            <Path
                                                    Fill="{StaticResource WindowButtonIconFill}"
                                                    Stroke="{StaticResource WindowButtonIconStroke}"
                                                    Width="14"
                                                    Height="14"
                                                    Data="M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z"/>
                                        </telerik:RadButton>
                                    </StackPanel>
                                </Border>
                            </Grid>
                            <Border x:Name="ContentOuterBorder" Grid.Row="1" Margin="{TemplateBinding BorderThickness}" BorderThickness="1" BorderBrush="{StaticResource WindowInnerBorder}">
                                <Border x:Name="ContentInnerBorder" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                                    <ContentPresenter x:Name="ContentElement" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                                </Border>
                            </Border>
                        </Grid>
                    </AdornerDecorator>
                </Border>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadWindowStyle" TargetType="telerikNavigation:RadWindow">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Background" Value="{StaticResource WindowBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource WindowOuterBorder}"/>
        <Setter Property="BorderBackground" Value="{StaticResource WindowBorderBackground}"/>
        <Setter Property="BorderThickness" Value="2 0 2 2"/>
        <Setter Property="MinHeight" Value="36"/>
        <Setter Property="MinWidth" Value="110"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Header" Value="RadWindow"/>
        <Setter Property="WindowStartupLocation" Value="Manual"/>
        <Setter Property="WindowState" Value="Normal"/>
        <Setter Property="CaptionHeight" Value="29"/>
        <Setter Property="ResizeBorder" Value="8 6 10 10"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template" Value="{StaticResource RadWindowTemplate}"/>
        <Setter Property="ModalBackground" Value="{StaticResource WindowModalBackground}"/>
        <Setter Property="animation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <animation:AnimationSelector>
                    <animation:AnimationGroup AnimationName="Show">
                        <animation:FadeAnimation Direction="In" TargetElementName="LayoutRoot"/>
                        <animation:ScaleAnimation Direction="In" TargetElementName="LayoutRoot" MinScale="0.9"/>
                    </animation:AnimationGroup>
                    <animation:AnimationGroup AnimationName="Hide">
                        <animation:FadeAnimation Direction="Out" TargetElementName="LayoutRoot"/>
                        <animation:ScaleAnimation Direction="Out" TargetElementName="LayoutRoot" MinScale="0.9"/>
                    </animation:AnimationGroup>
                </animation:AnimationSelector>
            </Setter.Value>
        </Setter>
        <Setter Property="navigation:RadWindowInteropHelper.OpaqueWindowBackground" Value="{StaticResource WindowBorderBackground}"/>
        <Style.Triggers>
            <Trigger Property="navigation:RadWindowInteropHelper.AllowTransparency" Value="False">
                <Setter Property="navigation:RadWindowInteropHelper.ClipMaskCornerRadius" Value="10"/>
                <Setter Property="ResizeBorder" Value="6"/>
                <Setter Property="CaptionHeight" Value="26"/>
                <Setter Property="animation:AnimationManager.IsAnimationEnabled" Value="False"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="RadPromptStyle" TargetType="telerikNavigation:RadPrompt">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Width" Value="350"/>
        <Setter Property="IconTemplate" Value="{StaticResource ConfirmIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadPrompt">
                    <Grid x:Name="LayoutRoot">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{TemplateBinding IconTemplate}"/>
                        <StackPanel x:Name="PromptContent" Grid.Row="0" Grid.Column="1" FocusManager.FocusedElement="{Binding ElementName=PromptTextBox}">
                            <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8">
                                <ContentPresenter x:Name="PromptText" Margin="8 8 8 0"/>
                            </ScrollViewer>
                            <TextBox x:Name="PromptTextBox" Margin="8" IsTabStop="True" TabIndex="0" Focusable="True"/>
                        </StackPanel>
                        <Border x:Name="HorizontalRule"
                                Grid.Row="1"
                                Grid.ColumnSpan="2"
                                BorderThickness="0 0 0 1"
                                Height="2"
                                Background="{StaticResource BorderLineOuterColor}"
                                BorderBrush="{StaticResource BorderLineInnerColor}"
                                VerticalAlignment="Top"/>
                        <StackPanel x:Name="DialogButtons" Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
                            <telerik:RadButton x:Name="OK"
                                    Command="{x:Static telerik:WindowCommands.Confirm}"
                                    telerikNavigation:RadWindow.ResponseButton="Accept"
                                    MinWidth="70"
                                    IsTabStop="True"
                                    TabIndex="1"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Ok"
                                    Margin="0 10 8 8"/>
                            <telerik:RadButton x:Name="Cancel"
                                    Command="{x:Static telerik:WindowCommands.Cancel}"
                                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                                    MinWidth="70"
                                    IsTabStop="True"
                                    TabIndex="2"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Cancel"
                                    Margin="0 10 8 8"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadPrompt" BasedOn="{StaticResource RadPromptStyle}"/>
    <Style x:Key="RadConfirmStyle" TargetType="telerikNavigation:RadConfirm">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IconTemplate" Value="{StaticResource ConfirmIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadConfirm">
                    <Grid x:Name="LayoutRoot">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{TemplateBinding IconTemplate}"/>
                        <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8">
                            <ContentPresenter x:Name="ConfirmText" Margin="8 8 8 0"/>
                        </ScrollViewer>
                        <Border x:Name="HorizontalRule"
                                Grid.Row="1"
                                Grid.ColumnSpan="2"
                                BorderThickness="0 0 0 1"
                                Height="2"
                                Background="{StaticResource BorderLineOuterColor}"
                                BorderBrush="{StaticResource BorderLineInnerColor}"
                                VerticalAlignment="Top"/>
                        <StackPanel x:Name="DialogButtons" Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" FocusManager.FocusedElement="{Binding ElementName=OK}">
                            <telerik:RadButton x:Name="OK"
                                    Command="{x:Static telerik:WindowCommands.Confirm}"
                                    telerikNavigation:RadWindow.ResponseButton="Accept"
                                    MinWidth="70"
                                    IsTabStop="True"
                                    TabIndex="0"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Ok"
                                    Margin="0 10 8 8"/>
                            <telerik:RadButton x:Name="Cancel"
                                    Command="{x:Static telerik:WindowCommands.Cancel}"
                                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                                    MinWidth="70"
                                    TabIndex="1"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Cancel"
                                    Margin="0 10 8 8"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadConfirm" BasedOn="{StaticResource RadConfirmStyle}"/>
    <Style x:Key="RadAlertStyle" TargetType="telerikNavigation:RadAlert">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IconTemplate" Value="{StaticResource AlertIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadAlert">
                    <Grid x:Name="LayoutRoot" FocusManager.FocusedElement="{Binding ElementName=OK}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.InputBindings>
                            <KeyBinding Key="Escape" Command="{x:Static telerik:WindowCommands.Confirm}"/>
                        </Grid.InputBindings>
                        <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{TemplateBinding IconTemplate}"/>
                        <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8">
                            <ContentPresenter x:Name="AlertText" Margin="8 8 8 0"/>
                        </ScrollViewer>
                        <Border x:Name="HorizontalRule"
                                Grid.Row="1"
                                Grid.ColumnSpan="2"
                                BorderThickness="0 0 0 1"
                                Height="2"
                                Background="{StaticResource BorderLineOuterColor}"
                                BorderBrush="{StaticResource BorderLineInnerColor}"
                                VerticalAlignment="Top"/>
                        <telerik:RadButton x:Name="OK"
                                Command="{x:Static telerik:WindowCommands.Confirm}"
                                telerikNavigation:RadWindow.ResponseButton="Accept"
                                Grid.Row="1"
                                Grid.ColumnSpan="2"
                                MinWidth="70"
                                IsTabStop="True"
                                TabIndex="0"
                                HorizontalAlignment="Right"
                                telerik:LocalizationManager.ResourceKey="Ok"
                                Margin="0 10 8 8"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadAlert" BasedOn="{StaticResource RadAlertStyle}"/>
    <Style x:Key="ComboBoxTextBoxStyle" TargetType="TextBox">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <ControlTemplate x:Key="EditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.050">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderEnabled">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>False</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="PART_EditableTextBox" Storyboard.TargetProperty="Opacity" To="0.6"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ControlBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0" Value="0.6"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.150" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.150">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderActive">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>True</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.115" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Opacity">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.050">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderFocused">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>True</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="WatermarkStates">
                    <VisualState x:Name="WatermarkVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Watermark" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="WatermarkInvisible"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="Background"
                    Grid.Column="0"
                    IsHitTestVisible="False"
                    Background="{StaticResource PickerBackground_Normal}"
                    CornerRadius="{StaticResource SplitButton_LeftPartCornerRadius}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{StaticResource PickerBackground_Normal}"/>
            <Border Grid.ColumnSpan="2" IsHitTestVisible="False" Background="{TemplateBinding Background}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" Margin="1"/>
            <Border x:Name="Border"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <Border x:Name="MouseOverVisual"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{StaticResource ControlOuterBorder_MouseOver}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Opacity="0"
                    Visibility="Collapsed"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <TextBox x:Name="PART_EditableTextBox"
                    Grid.Column="0"
                    Margin="1 1 0 1"
                    Style="{StaticResource ComboBoxTextBoxStyle}"
                    Padding="{TemplateBinding Padding}"
                    IsReadOnly="{TemplateBinding IsReadOnly}"
                    VerticalAlignment="Stretch"
                    VerticalContentAlignment="Center"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}">
                <TextBox.Template>
                    <ControlTemplate TargetType="TextBox">
                        <Grid>
                            <ScrollViewer
                                    Padding="{TemplateBinding Padding}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{TemplateBinding Background}"
                                    IsTabStop="False"
                                    VerticalScrollBarVisibility="Auto"
                                    x:Name="PART_ContentHost"
                                    VerticalContentAlignment="Stretch"/>
                        </Grid>
                    </ControlTemplate>
                </TextBox.Template>
            </TextBox>
            <Border x:Name="FocusVisual"
                    Visibility="Collapsed"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{StaticResource ControlOuterBorder_Focused}"
                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                    BorderThickness="{TemplateBinding BorderThickness}">
                <Border BorderBrush="{StaticResource ControlInnerBorder_Focused}" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}"/>
            </Border>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" Margin="0" Padding="0" Grid.Column="1" IsTabStop="False" ClickMode="Press">
                <telerik:RadToggleButton.Template>
                    <ControlTemplate TargetType="telerik:RadToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </telerik:RadToggleButton.Template>
                <Grid>
                    <telerikChromes:ButtonChrome x:Name="ButtonChrome"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            RenderPressed="{TemplateBinding IsDropDownOpen}"
                            RenderMouseOver="{Binding IsMouseOver, ElementName=PART_DropDownButton}"
                            CornerRadius="{StaticResource SplitButton_RightPartCornerRadius}"
                            RenderEnabled="{TemplateBinding IsEnabled}"
                            RenderActive="{TemplateBinding IsMouseOver}"
                            RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"/>
                    <ContentControl x:Name="DropDownIcon"
                            Grid.Column="1"
                            IsTabStop="False"
                            Foreground="{StaticResource ButtonIconForeground_Normal}"
                            Background="{StaticResource ButtonIconBackground_Normal}"
                            Template="{StaticResource ArrowTemplateEditableCombobox}"/>
                </Grid>
            </telerik:RadToggleButton>
            <TextBlock x:Name="Watermark"
                    Text="{TemplateBinding EmptyText}"
                    Opacity=".5"
                    IsHitTestVisible="False"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Left"
                    Margin="5 0 0 0"
                    Visibility="Collapsed"/>
            <Popup x:Name="PART_Popup">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            Background="{StaticResource PickerPopupBackground}"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            x:Name="PART_ResizeBorder">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    Padding="0 1 0 0"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    Foreground="{TemplateBinding Foreground}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="NonEditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderEnabled">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>False</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.6"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledBorder" Storyboard.TargetProperty="Opacity">
                                <DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonChrome" Storyboard.TargetProperty="RenderMouseOver">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Boolean>True</sys:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border IsHitTestVisible="False" Background="{TemplateBinding Background}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"/>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" Foreground="{TemplateBinding Foreground}" IsTabStop="False" Margin="0" Padding="0" ClickMode="Press">
                <telerik:RadToggleButton.Template>
                    <ControlTemplate TargetType="telerik:RadToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </telerik:RadToggleButton.Template>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Border x:Name="DisabledBorder"
                            IsHitTestVisible="False"
                            BorderBrush="{StaticResource ControlOuterBorder_Disabled}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Opacity="0"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            Grid.ColumnSpan="2"/>
                    <telerikChromes:ButtonChrome x:Name="ButtonChrome"
                            Grid.ColumnSpan="2"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            RenderPressed="{TemplateBinding IsDropDownOpen}"
                            RenderFocused="{TemplateBinding IsFocused}"
                            RenderEnabled="{TemplateBinding IsEnabled}"
                            RenderMouseOver="{TemplateBinding IsMouseOver}"/>
                    <Border Grid.ColumnSpan="2" Background="{TemplateBinding Background}" IsHitTestVisible="False" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" Margin="1"/>
                    <ContentControl x:Name="DropDownIcon"
                            Grid.Column="1"
                            IsTabStop="False"
                            Foreground="{StaticResource ButtonIconForeground_Normal}"
                            Background="{StaticResource ButtonIconBackground_Normal}"
                            Template="{StaticResource ArrowTemplateNonEditableCombobox}"/>
                    <ContentPresenter x:Name="Content"
                            Grid.Column="0"
                            Margin="{TemplateBinding Padding}"
                            Content="{TemplateBinding SelectionBoxItem}"
                            ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <ContentPresenter.Resources>
                            <Style TargetType="TextBlock">
                                <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                            </Style>
                        </ContentPresenter.Resources>
                    </ContentPresenter>
                </Grid>
            </telerik:RadToggleButton>
            <Popup x:Name="PART_Popup">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            Background="{StaticResource PickerPopupBackground}"
                            CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                            x:Name="PART_ResizeBorder">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    Foreground="{TemplateBinding Foreground}"
                                    Padding="0 1 0 0"
                                    BorderThickness="0"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadComboBoxItemStyle" TargetType="telerikInput:RadComboBoxItem">
        <Setter Property="MinHeight" Value="19"/>
        <Setter Property="Margin" Value="0 -1 0 0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="3 2"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadComboBoxItem">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HighlightVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity">
                                            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.33"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Border x:Name="HighlightVisual"
                                    Visibility="Collapsed"
                                    CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                                    BorderThickness="1"
                                    BorderBrush="{StaticResource ControlOuterBorder_Highlighted}"
                                    Background="{StaticResource ControlBackground_Highlighted}"
                                    AutomationProperties.AutomationId="HighlightVisual">
                                <Border BorderThickness="1" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderBrush="{StaticResource ControlInnerBorder_Highlighted}"/>
                            </Border>
                            <Border x:Name="SelectedVisual"
                                    Opacity="0"
                                    SnapsToDevicePixels="True"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
                                    BorderBrush="{StaticResource ControlSubItem_OuterBorder_Selected}">
                                <Border
                                        Background="{StaticResource ControlSubItem_Background_Selected}"
                                        BorderBrush="{StaticResource ControlSubItem_InnerBorder_Selected}"
                                        BorderThickness="1"
                                        CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}"
                                        SnapsToDevicePixels="True"/>
                            </Border>
                            <ContentPresenter x:Name="Content"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikInput:RadComboBox}}, Path=AllowMultipleSelection}" Value="True"/>
                                <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
                            </MultiDataTrigger.Conditions>
                            <MultiDataTrigger.Setters>
                                <Setter TargetName="SelectedVisual" Property="Opacity" Value="1"/>
                                <Setter TargetName="HighlightVisual" Property="Opacity" Value="0"/>
                            </MultiDataTrigger.Setters>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadComboBoxStyle" TargetType="telerikInput:RadComboBox">
        <Setter Property="Template" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}"/>
        <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Padding" Value="4 0"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{StaticResource PickerForeground_Normal}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationTooltipTemplate}"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Continue"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
    </Style>
    <Style TargetType="telerikInput:RadComboBoxItem" BasedOn="{StaticResource RadComboBoxItemStyle}"/>
    <Style TargetType="telerikInput:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle}"/>
    <Style x:Key="RadSchedulerWindowStyle" BasedOn="{StaticResource RadWindowStyle}" TargetType="telerikNavigation:RadWindow"/>
    <Style x:Key="RadDurationPickerStyle" BasedOn="{StaticResource RadComboBoxStyle}" TargetType="telerikInput:RadComboBox"/>
    <Style TargetType="telerikScheduleView:SchedulerWindow" BasedOn="{StaticResource RadSchedulerWindowStyle}"/>
    <Style TargetType="telerikScheduleView:DurationPicker" BasedOn="{StaticResource RadDurationPickerStyle}"/>
</ResourceDictionary>
