<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:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
        xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls">
    <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="#FFA0AFC3"/>
    <LinearGradientBrush x:Key="DragVisualBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFDFEFF" Offset="0"/>
        <GradientStop Color="#FFDDE9F7" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="DragVisualMultyItemBackground" Color="White"/>
    <SolidColorBrush x:Key="DragVisualMultyItemBorder" Color="#FFA0AFC3"/>
    <SolidColorBrush x:Key="DragVisualEffectNormal" Color="#FF364F6F"/>
    <SolidColorBrush x:Key="DragVisualEffectImportant" Color="#FFDC000C"/>
    <SolidColorBrush x:Key="RadScheduleForeground" Color="#FF000000"/>
    <LinearGradientBrush x:Key="RadScheduleBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE6EEF8" Offset="0"/>
        <GradientStop Color="#FFE6EFF9" Offset="1"/>
        <GradientStop Color="White" Offset="0.25"/>
        <GradientStop Color="White" Offset="0.75"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="RadScheduleBorderBrush" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground" Color="#99F5F9FF"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground_Selected" Color="#7FD9E3F0"/>
    <SolidColorBrush x:Key="DecorationRectangleInnerBorder_Selected" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleOuterBorder_Selected" Color="#FF839AB5"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground_MouseOver" Color="#CCF5F9FF"/>
    <SolidColorBrush x:Key="DecorationRectangleInnerBorder_MouseOver" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleOuterBorder_MouseOver" Color="#FFB8D6FB"/>
    <SolidColorBrush x:Key="DecorationRectangleBackground_DragOver" Color="#CCF5F9FF"/>
    <SolidColorBrush x:Key="DecorationRectangleInnerBorder_DragOver" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DecorationRectangleOuterBorder_DragOver" Color="#FFB8D6FB"/>
    <SolidColorBrush x:Key="SchedulerHeaderOuterBorder" Color="#FFA0AFC3"/>
    <LinearGradientBrush x:Key="SchedulerHeaderInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFAFCFD" Offset="0"/>
        <GradientStop Color="#FFE4EFFB" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SchedulerHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFDFEFF" Offset="0"/>
        <GradientStop Color="#FFDDE9F7" Offset="1"/>
        <GradientStop Color="#FFE6F0FA" Offset="0.5"/>
        <GradientStop Color="#FFDCE6F4" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewModeButtonForeground" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="ViewModeButtonOuterBorder" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="ViewModeButtonInnerBorder" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="ViewModeButtonBackground" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="NavigationIconBackground_Normal" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="NavigationIconForeground_Normal" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="NavigationIconBackground_Highlighted" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="NavigationIconForeground_Highlighted" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="ViewModeButtonForeground_MouseOver" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="ViewModeButtonOuterBorder_MouseOver" Color="#FFC0CBDF"/>
    <LinearGradientBrush x:Key="ViewModeButtonInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCFAFCFD" Offset="0"/>
        <GradientStop Color="#CCE4EFFB" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ViewModeButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFDFEFF" Offset="0"/>
        <GradientStop Color="#FFDDE9F7" Offset="1"/>
        <GradientStop Color="#FFE6F0FA" Offset="0.5"/>
        <GradientStop Color="#FFDCE6F4" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewModeButtonForeground_Pressed" Color="#FF000000"/>
    <SolidColorBrush x:Key="ViewModeButtonOuterBorder_Pressed" Color="#FFC0CBD9"/>
    <SolidColorBrush x:Key="ViewModeButtonInnerBorder_Pressed" Color="#00FFFFFF"/>
    <LinearGradientBrush x:Key="ViewModeButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC0CBD9"/>
        <GradientStop Color="#4CC0CBD9" Offset="0.5"/>
    </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="#00FFFFFF"/>
    <SolidColorBrush x:Key="NavigationIntervalForegroundFront" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="GroupHeaderBorderBrush" Color="#7FADBDD1"/>
    <SolidColorBrush x:Key="GroupHeaderHeaderBackground" Color="#00FFFFFF"/>
    <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder" EndPoint="0.5,0" StartPoint="0.5,1">
        <GradientStop Color="#7FADBDD1" Offset="0"/>
        <GradientStop Color="#00ADBDD1" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GroupHeaderHeaderBackground_Vertical" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_Vertical" Color="#00FFFFFF"/>
    <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder_Vertical" EndPoint="0,0.5" StartPoint="1,0.5">
        <GradientStop Color="#7FADBDD1" Offset="0"/>
        <GradientStop Color="#00ADBDD1" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GroupHeaderBorderBrush_Today" Color="#FF839AB5"/>
    <SolidColorBrush x:Key="GroupHeaderHeaderBackground_VerticalToday" Color="#7FD9E3F0"/>
    <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_VerticalToday" Color="Transparent"/>
    <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder_VerticalToday" Color="#FF839AB5"/>
    <Thickness x:Key="HorizontalGroupHeaderTodayBorderThickness">2 0 2 2</Thickness>
    <SolidColorBrush x:Key="TimeRulerGroupItemForeground" Color="#FF6685AE"/>
    <LinearGradientBrush x:Key="TimeRulerItemMajorTickStroke" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#7FADBDD1" Offset="0"/>
        <GradientStop Color="#00ADBDD1" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TimeRulerItemMinorTickStroke" StartPoint="0.5,1" EndPoint="0.5,0">
        <GradientStop Color="#7FADBDD1" Offset="0"/>
        <GradientStop Color="#00ADBDD1" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TimeRulerItemMajorTickStroke_Vertical" StartPoint="1,0.5" EndPoint="0,0.5">
        <GradientStop Color="#7FADBDD1" Offset="0"/>
        <GradientStop Color="#00ADBDD1" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TimeRulerItemMinorTickStroke_Vertical" StartPoint="1,0.5" EndPoint="0,0.5">
        <GradientStop Color="#7FADBDD1" Offset="0"/>
        <GradientStop Color="#00ADBDD1" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="TimeRulerLineStroke" Color="#7FADBDD1"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Normal" Color="#FF6685AE"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_MouseOver" Color="#FF6685AE"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Today" Color="#FF6685AE"/>
    <SolidColorBrush x:Key="HorizontalBottomLevelTodayForeground" Color="#FF6685AE"/>
    <SolidColorBrush x:Key="CurrentTimeFill" Color="#FF839AB5"/>
    <SolidColorBrush x:Key="MonthViewExpandIconStroke" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewExpandIconStroke_MouseOver" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewExpandIconStroke_Pressed" Color="#FF000000"/>
    <SolidColorBrush x:Key="MonthViewExpandButtonBackground" Color="#00000000"/>
    <SolidColorBrush x:Key="MonthViewExpandOuterBorder" Color="#00000000"/>
    <SolidColorBrush x:Key="MonthViewExpandInnerBorder" Color="#00000000"/>
    <SolidColorBrush x:Key="MonthViewExpandOuterBorder_MouseOver" Color="#FFB8D6FB"/>
    <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFBFCFD" Offset="0"/>
        <GradientStop Color="#FFF6F8FB" Offset="0.5"/>
        <GradientStop Color="#FFEDF2F9" Offset="0.5"/>
        <GradientStop Color="#FFE5EBF4" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewExpandInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFFAFCFD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewExpandOuterBorder_Pressed" Color="#FFC0CBD9"/>
    <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC0CBD9" Offset="0"/>
        <GradientStop Color="#FFE6EAEE" Offset="0.5"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthViewExpandInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC0CBD9" Offset="0"/>
        <GradientStop Color="#FFE6EAEE" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_MouseOver" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_MouseOver" Color="#CCF5F9FF"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_Pressed" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_Pressed" Color="#7FD9E3F0"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_Today" Color="#FF839AB5"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_Today" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_Today" Color="#7FD9E3F0"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayMouseOver" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_TodayMouseOver" Color="#CCF5F9FF"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayPressed" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackground_TodayPressed" Color="#7FD9E3F0"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorderVertical_MouseOver" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackgroundVertical_MouseOver" Color="#CCF5F9FF"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorderVertical_Pressed" Color="Transparent"/>
    <SolidColorBrush x:Key="MonthViewTimeRulerItemBackgroundVertical_Pressed" Color="#7FD9E3F0"/>
    <LinearGradientBrush x:Key="AppointmentItemBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFAFBFD" Offset="0.004"/>
        <GradientStop Color="#FFEBF3FD" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentItemInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFCFDFE"/>
        <GradientStop Color="#FFF2F7FE" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder" Color="#FFB8D6FB"/>
    <LinearGradientBrush x:Key="AppointmentItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFDCEBFC"/>
        <GradientStop Color="#FFC1DBFC" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentItemInnerBorder_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF4FD"/>
        <GradientStop Color="#FFDBEAFD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder_MouseOver" Color="#FFB8D6FB"/>
    <LinearGradientBrush x:Key="AppointmentItemBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFDCEBFC"/>
        <GradientStop Color="#FFC1DBFC" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentItemInnerBorder_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF4FD"/>
        <GradientStop Color="#FFDBEAFD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder_Selected" Color="#FF7DA2CE"/>
    <LinearGradientBrush x:Key="AppoinmtentItemBackground_ReadOnly" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#B2CDCDCD" Offset="0"/>
        <GradientStop Color="#65CDCDCD" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentItemBackground_Drag" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#BBDCEBFC"/>
        <GradientStop Color="#BBC1DBFC" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentItemInnerBorder_Drag" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#BBEBF4FD"/>
        <GradientStop Color="#BBDBEAFD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AppointmentItemOuterBorder_Drag" Color="#FF7DA2CE"/>
    <SolidColorBrush x:Key="AppointmentItemResizeGripStroke" Color="#FF839AB5"/>
    <SolidColorBrush x:Key="AppointmentItemResizeGripBackground" Color="#FFDCEBFC"/>
    <LinearGradientBrush x:Key="AppointmentItemDeleteIconStroke" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF4F637C" Offset="0"/>
        <GradientStop Color="#FF8CA0B9" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentResizeCueTopLeftMarkStroke" StartPoint="0 0" EndPoint="1 1">
        <GradientStop Offset="0.33" Color="#FF4F637C"/>
        <GradientStop Offset="1" Color="#004F637C"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointmentResizeCueBottomRightMarkStroke" StartPoint="1 1" EndPoint="0 0">
        <GradientStop Offset="0.33" Color="#FF4F637C"/>
        <GradientStop Offset="1" Color="#004F637C"/>
    </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="#4DCDCDCD"/>
    <SolidColorBrush x:Key="SpecialSlotBackground_ReadOnly" Color="#8CCDCDCD"/>
    <ImageSource x:Key="EditAppointmentTemplate_Recurrence">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/Recurrence.png</ImageSource>
    <SolidColorBrush x:Key="RecurrenceChoiceBackground" Color="#FFF1F5FB"/>
    <SolidColorBrush x:Key="RecurrenceChoiceBorder" Color="#FFC0CBDF"/>
    <CornerRadius x:Key="RecurrenceChoiceCornerRadius">2</CornerRadius>
    <telerik1:InvertedBooleanConverter x:Key="InvertedBooleanConverter"/>
    <SolidColorBrush x:Key="ControlBackground_Disabled" Color="#FFF8F8F8"/>
    <SolidColorBrush x:Key="BorderInnerBrush" Color="#FF979994"/>
    <SolidColorBrush x:Key="BorderOuterBrush" Color="#FFFCFCFC"/>
    <SolidColorBrush x:Key="InputTextBoxBackground" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="RadWindow_OuterBorder" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="RadWindow_InnerBorder" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="RadWindow_InnerMostBorder" Color="#FFA0AFC3"/>
    <SolidColorBrush x:Key="BorderLineOuterColor" Color="#26000000"/>
    <SolidColorBrush x:Key="BorderLineInnerColor" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="RadAlert_OuterStrokeBrush" Color="#34000000"/>
    <SolidColorBrush x:Key="RadAlert_InnerStrokeBrush" Color="#FFFFFFFF"/>
    <RadialGradientBrush x:Key="RadAlert_InnerBackgroundBrush">
        <GradientStop Color="#FFFFF000" Offset="0.026"/>
        <GradientStop Color="#FFFFDE00" Offset="1"/>
    </RadialGradientBrush>
    <SolidColorBrush x:Key="RadAlert_InnerMostStrokeBrush" Color="#1A000000"/>
    <SolidColorBrush x:Key="RadAlert_ExclamationMarkBackgroundBrush" Color="#FF000000"/>
    <SolidColorBrush x:Key="RadConfirm_OuterStrokeBrush" Color="#FFB3B3B3"/>
    <SolidColorBrush x:Key="RadConfirm_InnerStrokeBrush" Color="#FFFFFFFF"/>
    <RadialGradientBrush x:Key="RadConfirm_InnerBackgroundBrush" RadiusX="0.618667" RadiusY="0.61864" Center="0.483044,0.5" GradientOrigin="0.483044,0.5">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup/>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Color="#FF00BAFF" Offset="0"/>
        <GradientStop Color="#FF004BA5" Offset="1"/>
    </RadialGradientBrush>
    <SolidColorBrush x:Key="RadConfirm_QuestionMarkBackgroundBrush" Color="#FFFFFFFF"/>
    <SolidColorBrush Color="#0C000000" x:Key="BorderShadowColor1"/>
    <SolidColorBrush Color="#19000000" x:Key="BorderShadowColor2"/>
    <SolidColorBrush Color="#33000000" x:Key="BorderShadowColor3"/>
    <SolidColorBrush Color="#4C000000" x:Key="BorderShadowColor4"/>
    <SolidColorBrush Color="#99FFFFFF" x:Key="ButtonArea_InnerBorderBrush"/>
    <SolidColorBrush Color="#FFA0AFC3" x:Key="ButtonArea_OuterBorderBrush"/>
    <LinearGradientBrush x:Key="HeaderButton_FillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFDFDFD" Offset="0"/>
        <GradientStop Color="#FFDDDDDD" Offset="0.5"/>
    </LinearGradientBrush>
    <SolidColorBrush Color="#7F000000" x:Key="HeaderButton_StrokeBrush"/>
    <LinearGradientBrush x:Key="HeaderButton_NormalBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#00000000" Offset="0"/>
        <GradientStop Color="#0F000000" Offset="0.5"/>
        <GradientStop Color="#30000000" Offset="0.5"/>
        <GradientStop Color="#14000000" Offset="0.845"/>
        <GradientStop Color="#19FFFFFF" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CloseButton_NormalBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF4CAC2" Offset="0"/>
        <GradientStop Color="#FFCC7D6D" Offset="0.5"/>
        <GradientStop Color="#FFB94630" Offset="0.5"/>
        <GradientStop Color="#FFF4B19C" Offset="1"/>
        <GradientStop Color="#FFBE7360" Offset="0.85"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HeaderButton_OverBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#CCBBDDF5" Offset="0"/>
        <GradientStop Color="#CC80B4D6" Offset="0.5"/>
        <GradientStop Color="#CC1C75A9" Offset="0.5"/>
        <GradientStop Color="#CC389CC9" Offset="0.85"/>
        <GradientStop Color="#CC29DDE8" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CloseButton_OverBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF2C7BF" Offset="0"/>
        <GradientStop Color="#FFE5715D" Offset="0.5"/>
        <GradientStop Color="#FFB62107" Offset="0.5"/>
        <GradientStop Color="#FFF1D86C" Offset="1"/>
        <GradientStop Color="#FFD26324" Offset="0.85"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HeaderButton_PressedBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFA2C1D4" Offset="0"/>
        <GradientStop Color="#FF4C7992" Offset="0.5"/>
        <GradientStop Color="#FF092847" Offset="0.5"/>
        <GradientStop Color="#FF1A5F80" Offset="0.85"/>
        <GradientStop Color="#FF12E7DE" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CloseButton_PressedBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC6A18A" Offset="0"/>
        <GradientStop Color="#FF974126" Offset="0.5"/>
        <GradientStop Color="#FF5E1002" Offset="0.5"/>
        <GradientStop Color="#FFE6BA15" Offset="1"/>
        <GradientStop Color="#FF764708" Offset="0.85"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CloseButton_ShadowStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="#99FB631D" Offset="0.19"/>
        <GradientStop Color="#99FB631D" Offset="0.82"/>
        <GradientStop Color="#00FB631D" Offset="1"/>
        <GradientStop Color="#00FB631D" Offset="0"/>
        <GradientStop Color="#00FB631D" Offset="0.19"/>
        <GradientStop Color="#00FB631D" Offset="0.803"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CloseButton_ShadowStroke2Brush" EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="#99F77032" Offset="0.172"/>
        <GradientStop Color="#99F67C43" Offset="0.82"/>
        <GradientStop Color="#00FF5000" Offset="1"/>
        <GradientStop Color="#00FB631D" Offset="0.06"/>
        <GradientStop Color="#00FF5000" Offset="0.172"/>
        <GradientStop Color="#00FF5000" Offset="0.92"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="CloseButton_ShadowOpacityMaskBrush" EndPoint="0,0.5" StartPoint="1,0.5" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="#99FFFFFF" Offset="0.09"/>
        <GradientStop Color="#99FFFFFF" Offset="0.861"/>
        <GradientStop Color="#00FFFFFF" Offset="0"/>
        <GradientStop Color="#00FFFFFF" Offset="0.98682502596053989"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HeaderButton_ShadowStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="#FF00D2FF" Offset="0.19"/>
        <GradientStop Color="#FF00D2FF" Offset="0.753"/>
        <GradientStop Color="#0000D2FF" Offset="1"/>
        <GradientStop Color="#0000D2FF" Offset="0"/>
        <GradientStop Color="#0000D2FF" Offset="0.19"/>
        <GradientStop Color="#0000D2FF" Offset="0.752"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HeaderButton_ShadowStroke2Brush" EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="#FF00D2FF" Offset="0.19"/>
        <GradientStop Color="#FF00D2FF" Offset="0.81"/>
        <GradientStop Color="#0000D2FF" Offset="0.94"/>
        <GradientStop Color="#0000D2FF" Offset="0.06"/>
        <GradientStop Color="#0000D2FF" Offset="0.19"/>
        <GradientStop Color="#0000D2FF" Offset="0.791"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HeaderButton_ShadowOpacityMaskBrush" EndPoint="0,0.5" StartPoint="1,0.5" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="#E5FFFFFF" Offset="0.15"/>
        <GradientStop Color="#E5FFFFFF" Offset="0.85"/>
        <GradientStop Color="#00FFFFFF" Offset="0"/>
        <GradientStop Color="#00FFFFFF" Offset="0.98682502596053989"/>
    </LinearGradientBrush>
    <CornerRadius x:Key="SplitButton_LeftPartCornerRadius">2 0 0 2</CornerRadius>
    <CornerRadius x:Key="SplitButton_RightPartCornerRadius">0 2 2 0</CornerRadius>
    <CornerRadius x:Key="SplitButton_SpanCornerRadius">2</CornerRadius>
    <CornerRadius x:Key="SplitButton_SpanInnerCornerRadius">1</CornerRadius>
    <CornerRadius x:Key="ControlOuterBorder_CornerRadius">2</CornerRadius>
    <CornerRadius x:Key="ControlInnerBorder_CornerRadius">1</CornerRadius>
    <SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFD9D9D9"/>
    <LinearGradientBrush x:Key="ControlOuterBorder_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFA9BFD6"/>
        <GradientStop Color="#FFCDDAEA" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FFB8D6FB"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Pressed" Color="#FFC0CBD9"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="#FFB8D6FB"/>
    <LinearGradientBrush x:Key="ControlInnerBorder_Highlighted" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFCFDFE"/>
        <GradientStop Color="#FFF2F7FE" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ControlBackground_Highlighted" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFAFBFD" Offset="0.004"/>
        <GradientStop Color="#FFEBF3FD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF6CAFFF"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="Transparent"/>
    <SolidColorBrush x:Key="ControlSubItem_OuterBorder_Selected" Color="#FF7DA2CE"/>
    <LinearGradientBrush x:Key="ControlSubItem_InnerBorder_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF4FD"/>
        <GradientStop Color="#FFDBEAFD" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ControlSubItem_Background_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFDCEBFC"/>
        <GradientStop Color="#FFC1DBFC" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF8D8D8D"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF1E395B"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FF1E395B"/>
    <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="#FF1E395B"/>
    <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="WindowOuterBorder" Color="#FF848484"/>
    <LinearGradientBrush x:Key="WindowBorderBackground" EndPoint="0.742,0.854" StartPoint="0.258,0.146">
        <GradientStop Color="#99F1F5FB" Offset="0"/>
        <GradientStop Color="#99F1F5FB" Offset="0.181"/>
        <GradientStop Color="#99F0F5FB" Offset="0.164"/>
        <GradientStop Color="#99FFFFFF" Offset="0.142"/>
        <GradientStop Color="#99F1F5FB" Offset="0.328"/>
        <GradientStop Color="#B2FFFFFF" Offset="0.358"/>
        <GradientStop Color="#99F1F5FB" Offset="0.478"/>
        <GradientStop Color="#99F1F5FB" Offset="1"/>
        <GradientStop Color="#99F1F5FB" Offset="0.578"/>
        <GradientStop Color="#BFFFFFFF" Offset="0.621"/>
        <GradientStop Color="#99F1F5FB" Offset="0.379"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="WindowBackground" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="WindowModalBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#5900BCFF" Offset="1"/>
        <GradientStop Color="#5900455E" Offset="0"/>
    </LinearGradientBrush>
    <ControlTemplate x:Key="ArrowTemplateEditableCombobox" TargetType="ContentControl">
        <Path x:Name="ForegroundIcon" Margin="5 0" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="5" Height="3" Fill="{TemplateBinding Foreground}"/>
    </ControlTemplate>
    <ControlTemplate x:Key="ArrowTemplateNonEditableCombobox" TargetType="ContentControl">
        <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Stretch="Fill" Width="7" Height="4" Fill="{TemplateBinding Foreground}" Margin="5 0 6 1"/>
    </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 Width="42" Height="42">
            <Path
                    Stretch="Fill"
                    StrokeThickness="5"
                    StrokeLineJoin="Round"
                    Stroke="{StaticResource RadAlert_OuterStrokeBrush}"
                    Data="F1 M 30.2,2.5L 2.5,50.5L 57.9,50.5L 30.2,2.5 Z"
                    Margin="0 0 0 1"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"/>
            <Path
                    Stretch="Fill"
                    StrokeThickness="4"
                    StrokeLineJoin="Round"
                    Fill="{StaticResource RadAlert_InnerBackgroundBrush}"
                    Stroke="{StaticResource RadAlert_InnerStrokeBrush}"
                    Data="F1 M 30.2,2.5L 2.5,50.5L 57.9,50.5L 30.2,2.5 Z"
                    Margin="0.5,0.5,0.5,1.5"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"/>
            <Path
                    Stretch="Fill"
                    StrokeLineJoin="Round"
                    Stroke="{StaticResource RadAlert_InnerMostStrokeBrush}"
                    Data="F1 M 30.2,5.5L 5.9,48.6L 54.4,48.6L 30.2,5.5 Z"
                    Margin="5"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"/>
            <Path
                    Stretch="Fill"
                    Fill="{StaticResource RadAlert_ExclamationMarkBackgroundBrush}"
                    Data="F1 M 30.6,34.7L 30,34.7C 29.9,33.5 29.7,32.1 29.3,30.4L 28.4,27C 28,25 27.7,23.5 27.7,22.7C 27.7,21.9 28,21.2 28.4,20.7C 28.9,20.2 29.5,20 30.3,20C 31,20 31.6,20.2 32.1,20.7C 32.6,21.2 32.8,21.9 32.8,22.6C 32.8,23.4 32.6,24.9 32.1,27L 31.2,30.4C 30.9,31.6 30.7,33.1 30.6,34.7 Z M 30.3,37C 31,37 31.6,37.2 32.1,37.7C 32.6,38.2 32.8,38.8 32.8,39.5C 32.8,40.2 32.6,40.8 32.1,41.3C 31.6,41.8 31,42.1 30.3,42.1C 29.6,42.1 29,41.8 28.5,41.3C 28,40.8 27.7,40.2 27.7,39.5C 27.7,38.8 28,38.2 28.5,37.7C 29,37.2 29.6,37 30.3,37 Z"
                    Margin="17 15 17 8"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="ConfirmIconTemplate">
        <Grid Width="42" Height="42">
            <Path
                    Stretch="Fill"
                    StrokeThickness="4"
                    StrokeMiterLimit="3"
                    Stroke="{StaticResource RadConfirm_OuterStrokeBrush}"
                    Data="F1 M 10224,10026.7C 10224,10048.8 10206.1,10066.7 10184,10066.7C 10161.9,10066.7 10144,10048.8 10144,10026.7C 10144,10004.6 10161.9,9986.6 10184,9986.6C 10206.1,9986.6 10224,10004.6 10224,10026.7 Z"
                    Margin="0 1 0 -1"/>
            <Path
                    Stretch="Fill"
                    Fill="{StaticResource RadConfirm_InnerBackgroundBrush}"
                    Data="F1 M 10144,10026.7C 10144,10048.8 10161.9,10066.7 10184,10066.7L 10184,10066.7C 10206.1,10066.7 10224,10048.8 10224,10026.7L 10224,10026.7C 10224,10004.6 10206.1,9986.6 10184,9986.6L 10184,9986.6C 10161.9,9986.6 10144,10004.6 10144,10026.7 Z"
                    Margin="3"/>
            <Path
                    Stretch="Fill"
                    StrokeThickness="4"
                    StrokeMiterLimit="3"
                    Stroke="{StaticResource RadConfirm_InnerStrokeBrush}"
                    Data="F1 M 10224,10026.7C 10224,10048.8 10206.1,10066.7 10184,10066.7C 10161.9,10066.7 10144,10048.8 10144,10026.7C 10144,10004.6 10161.9,9986.67 10184,9986.67C 10206.1,9986.67 10224,10004.6 10224,10026.7 Z"/>
            <Path
                    Stretch="Fill"
                    Fill="{StaticResource RadConfirm_QuestionMarkBackgroundBrush}"
                    Data="F1 M 10178,10044.1C 10178,10041.5 10179.7,10039.7 10182,10039.7C 10184.5,10039.7 10186.1,10041.5 10186.1,10044.1C 10186.1,10046.5 10184.5,10048.3 10182,10048.3C 10179.6,10048.3 10178,10046.5 10178,10044.1 Z M 10179.4,10034.4L 10179.3,10032.6C 10178.9,10028.9 10180.1,10024.8 10183.5,10020.7C 10186.6,10017 10188.4,10014.4 10188.4,10011.3C 10188.4,10007.7 10186.2,10005.4 10181.8,10005.3C 10179.3,10005.3 10176.6,10006.2 10174.9,10007.5L 10173.2,10003.1C 10175.6,10001.5 10179.4,10000.4 10183.1,10000.4C 10191,10000.4 10194.6,10005.3 10194.6,10010.5C 10194.6,10015.2 10191.9,10018.6 10188.6,10022.5C 10185.6,10026.1 10184.5,10029.1 10184.7,10032.7L 10184.9,10034.4L 10179.4,10034.4 Z"
                    Margin="15 9"/>
        </Grid>
    </DataTemplate>
    <Style x:Key="WindowResizeThumbStyle" TargetType="Thumb">
        <Setter Property="MinWidth" Value="5"/>
        <Setter Property="MinHeight" Value="5"/>
        <Setter Property="Margin" Value="-2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Rectangle Fill="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WindowHeaderButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="IsEnabled" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="MinWidth" Value="5"/>
        <Setter Property="MinHeight" Value="5"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Cursor" Value="Arrow"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource HeaderButton_OverBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ShadowOver" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource HeaderButton_PressedBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ShadowOver" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                                <VisualState x:Name="Normal"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{StaticResource ButtonArea_OuterBorderBrush}" Width="25" HorizontalAlignment="Left" BorderThickness="0 0 1 0">
                            <Border x:Name="OuterBorder" Background="{StaticResource HeaderButton_NormalBackgroundBrush}">
                                <Border BorderBrush="#99FFFFFF" BorderThickness="1"/>
                            </Border>
                        </Border>
                        <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        <StackPanel Visibility="Collapsed" x:Name="ShadowOver" IsHitTestVisible="False" Width="34.175" Height="36.089" Margin="-22 -5 -20 -15">
                            <StackPanel IsHitTestVisible="False">
                                <Rectangle
                                        IsHitTestVisible="False"
                                        Stroke="{StaticResource HeaderButton_ShadowStrokeBrush}"
                                        OpacityMask="{StaticResource HeaderButton_ShadowOpacityMaskBrush}"
                                        StrokeThickness="10"
                                        HorizontalAlignment="Left"
                                        Margin="0"
                                        VerticalAlignment="Top"
                                        Width="34.175"
                                        Height="25.915"
                                        RadiusX="5"
                                        RadiusY="5"/>
                                <Rectangle
                                        IsHitTestVisible="False"
                                        Stroke="{StaticResource HeaderButton_ShadowStroke2Brush}"
                                        StrokeThickness="10"
                                        HorizontalAlignment="Left"
                                        Margin="9 -33 -8 0"
                                        VerticalAlignment="Top"
                                        Width="16.163"
                                        Height="36.415"
                                        RenderTransformOrigin="0.5,0.5">
                                    <Rectangle.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform ScaleX="0.99246469169824569" ScaleY="1.0075925202828731"/>
                                            <SkewTransform AngleX="0" AngleY="0"/>
                                            <RotateTransform Angle="90"/>
                                            <TranslateTransform X="0" Y="0"/>
                                        </TransformGroup>
                                    </Rectangle.RenderTransform>
                                </Rectangle>
                            </StackPanel>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="CloseButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="IsEnabled" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="MinWidth" Value="5"/>
        <Setter Property="MinHeight" Value="5"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Cursor" Value="Arrow"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CloseButton_OverBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ShadowOver" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource CloseButton_PressedBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                                <VisualState x:Name="Normal"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OuterBorder" HorizontalAlignment="Left" Width="39" Background="{StaticResource CloseButton_NormalBackgroundBrush}" CornerRadius="0 0 6 0">
                            <Border CornerRadius="0 0 3 0" BorderBrush="#99FFFFFF" BorderThickness="1"/>
                        </Border>
                        <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        <StackPanel Visibility="Collapsed" x:Name="ShadowOver" IsHitTestVisible="False" Width="53.57" Height="41.695" Margin="-20 -4 -15 -15">
                            <Rectangle
                                    Stroke="{StaticResource CloseButton_ShadowStrokeBrush}"
                                    OpacityMask="{StaticResource CloseButton_ShadowOpacityMaskBrush}"
                                    RadiusX="4"
                                    RadiusY="4"
                                    StrokeThickness="10"
                                    HorizontalAlignment="Left"
                                    Margin="0"
                                    VerticalAlignment="Top"
                                    Width="53.57"
                                    Height="25.915"/>
                            <Rectangle
                                    Stroke="{StaticResource CloseButton_ShadowStroke2Brush}"
                                    StrokeThickness="10"
                                    HorizontalAlignment="Left"
                                    Margin="15 -34 0 0"
                                    VerticalAlignment="Top"
                                    Width="24.046"
                                    Height="41.695"
                                    RenderTransformOrigin="0.5,0.5">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="0.66713942516425861" ScaleY="1.4989370471603993"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="90"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="RadWindow_ControlTemplate" 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="ResizeStates">
                    <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="Shadow" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Padding">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerShape" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 1 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerMostShape" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 1 0 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>6 0 6 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="CornerRadius">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <CornerRadius>0</CornerRadius>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MainBorder" Storyboard.TargetProperty="CornerRadius">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <CornerRadius>0</CornerRadius>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Buttons" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0 0 -6 0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Minimized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </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>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="MinHeight">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Double>30</sys:Double>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid x:Name="Shadow" Grid.RowSpan="2">
                <Rectangle Stroke="{StaticResource BorderShadowColor1}" IsHitTestVisible="False" StrokeThickness="1" RadiusX="11" RadiusY="11"/>
                <Rectangle Margin="1" Stroke="{StaticResource BorderShadowColor2}" IsHitTestVisible="False" StrokeThickness="1" RadiusX="10" RadiusY="10"/>
                <Rectangle Margin="2" Stroke="{StaticResource BorderShadowColor3}" IsHitTestVisible="False" StrokeThickness="1" RadiusX="9" RadiusY="9"/>
                <Rectangle Margin="3" Stroke="{StaticResource BorderShadowColor4}" IsHitTestVisible="False" StrokeThickness="1" RadiusX="8" RadiusY="8"/>
            </Grid>
            <Border x:Name="OuterBorder"
                    Grid.RowSpan="2"
                    BorderThickness="1"
                    BorderBrush="{StaticResource RadWindow_OuterBorder}"
                    RenderTransformOrigin="0.5 0.5"
                    Margin="4"
                    CornerRadius="6">
                <Border x:Name="MainBorder" CornerRadius="6" Background="{TemplateBinding BorderBackground}" BorderBrush="{TemplateBinding BorderBrush}"/>
            </Border>
            <Grid x:Name="Header" Margin="7 4 8 0" MinHeight="24" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <Thumb x:Name="titleThumb" Grid.ColumnSpan="2" Opacity="0" Grid.Column="0" Style="{StaticResource WindowResizeThumbStyle}"/>
                <Grid Grid.Column="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <ContentControl
                            ContentTemplate="{TemplateBinding IconTemplate}"
                            IsTabStop="False"
                            Content="{TemplateBinding Icon}"
                            Margin="2"
                            Grid.Column="0"
                            HorizontalContentAlignment="Center"
                            VerticalContentAlignment="Center"/>
                    <Grid x:Name="TitlePresenter" Grid.Column="1">
                        <Border x:Name="TitleBackground" CornerRadius="4" Margin="-6 0 -10 -2">
                            <Border.OpacityMask>
                                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                    <GradientStop Color="#FF000000" Offset="0.15"/>
                                    <GradientStop Color="#00000000" Offset="0.996"/>
                                    <GradientStop Color="#FF000000" Offset="0.85"/>
                                    <GradientStop Color="#00000000" Offset="0"/>
                                </LinearGradientBrush>
                            </Border.OpacityMask>
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#CCFFFFFF" Offset="0.4"/>
                                    <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    <GradientStop Color="#00FFFFFF" Offset="0"/>
                                    <GradientStop Color="#CCFFFFFF" Offset="0.6"/>
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                        <ContentPresenter x:Name="HeaderContent"
                                Content="{TemplateBinding Header}"
                                VerticalAlignment="Center"
                                Margin="4 0 0 0"
                                ContentTemplate="{TemplateBinding HeaderTemplate}"
                                ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"/>
                    </Grid>
                </Grid>
                <Grid x:Name="Buttons" Grid.Column="1" VerticalAlignment="Top" Margin="0">
                    <StackPanel Margin="5 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Orientation="Horizontal">
                        <telerik:RadButton x:Name="PART_MinimizeButton"
                                Command="{x:Static telerik:WindowCommands.Minimize}"
                                Style="{StaticResource WindowHeaderButtonStyle}"
                                Height="16"
                                Margin="0"
                                VerticalAlignment="Top"
                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                            <ToolTipService.ToolTip>
                                <ToolTip telerik:LocalizationManager.ResourceKey="Minimize"/>
                            </ToolTipService.ToolTip>
                            <Rectangle
                                    Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                    Fill="{StaticResource HeaderButton_FillBrush}"
                                    RadiusX="1"
                                    RadiusY="1"
                                    HorizontalAlignment="Center"
                                    Margin="-1 8.5 0 3.5"
                                    Width="12"/>
                        </telerik:RadButton>
                        <telerik:RadButton x:Name="PART_RestoreButton"
                                Command="{x:Static telerik:WindowCommands.Restore}"
                                Style="{StaticResource WindowHeaderButtonStyle}"
                                Height="16"
                                VerticalAlignment="Top"
                                HorizontalAlignment="Right"
                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                            <ToolTipService.ToolTip>
                                <ToolTip telerik:LocalizationManager.ResourceKey="Restore"/>
                            </ToolTipService.ToolTip>
                            <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="restore">
                                <Path
                                        Stretch="Fill"
                                        HorizontalAlignment="Left"
                                        Margin="8.5,3,0,0"
                                        VerticalAlignment="Top"
                                        Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                        Fill="{StaticResource HeaderButton_FillBrush}"
                                        Width="9"
                                        Height="8"
                                        Data="M1.5,0.5 L10.5,0.5 C11.052284,0.5 11.5,0.94771537 11.5,1.5 L11.5,8.5 C11.5,9.0522842 11.052284,9.5 10.5,9.5 L1.5,9.5 C0.94771519,9.5 0.5,9.0522841 0.5,8.5 L0.5,1.5 C0.5,0.94771546 0.9477151,0.5 1.5,0.5 z"/>
                                <Path
                                        Stretch="Fill"
                                        Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                        Fill="{StaticResource HeaderButton_FillBrush}"
                                        Margin="6.5,5,0,0"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Width="9"
                                        Height="9"
                                        Data="M3.5443635,6.4780002 L8.4556365,6.4780002 8.4556365,3.52 3.5443635,3.52 z M1.5,0.5 L10.5,0.5 C11.052284,0.5 11.5,0.94771537 11.5,1.5 L11.5,8.5 C11.5,9.0522842 11.052284,9.5 10.5,9.5 L1.5,9.5 C0.94771519,9.5 0.5,9.0522841 0.5,8.5 L0.5,1.5 C0.5,0.94771546 0.9477151,0.5 1.5,0.5 z"/>
                            </Grid>
                        </telerik:RadButton>
                        <telerik:RadButton x:Name="PART_MaximizeButton"
                                Command="{x:Static telerik:WindowCommands.Maximize}"
                                Style="{StaticResource WindowHeaderButtonStyle}"
                                Height="16"
                                VerticalAlignment="Top"
                                HorizontalAlignment="Right"
                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                            <ToolTipService.ToolTip>
                                <ToolTip telerik:LocalizationManager.ResourceKey="Maximize"/>
                            </ToolTipService.ToolTip>
                            <Grid x:Name="maximize" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0 3" Width="12">
                                <Path
                                        Stretch="Fill"
                                        Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                        Fill="{StaticResource HeaderButton_FillBrush}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        Margin="0"
                                        Width="12"
                                        Data="M2.625,3.52 L2.625,6.4780002 9.375,6.4780002 9.375,3.52 2.625,3.52 z M1.5,0.5 L10.5,0.5 C11.052284,0.5 11.5,0.94771537 11.5,1.5 L11.5,8.5 C11.5,9.0522842 11.052284,9.5 10.5,9.5 L1.5,9.5 C0.94771519,9.5 0.5,9.0522841 0.5,8.5 L0.5,1.5 C0.5,0.94771546 0.9477151,0.5 1.5,0.5 z"/>
                            </Grid>
                        </telerik:RadButton>
                        <telerik:RadButton x:Name="PART_CloseButton"
                                Style="{StaticResource CloseButtonStyle}"
                                Command="{x:Static telerik:WindowCommands.Close}"
                                Height="16"
                                HorizontalAlignment="Right"
                                Margin="0"
                                VerticalAlignment="Top"
                                HorizontalContentAlignment="Left"
                                Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                VerticalContentAlignment="Top">
                            <ToolTipService.ToolTip>
                                <ToolTip telerik:LocalizationManager.ResourceKey="Close"/>
                            </ToolTipService.ToolTip>
                            <Grid Width="11" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0 3">
                                <Path
                                        Stretch="Fill"
                                        Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                        Fill="{StaticResource HeaderButton_FillBrush}"
                                        HorizontalAlignment="Right"
                                        Width="11"
                                        Data="M1.7378059,0.5 L2.6141474,0.5 C3.1662261,0.50000006 3.8039908,0.75809938 4.4048114,1.5 4.5550169,1.685475 4.9485269,2.160322 5.4658298,2.7821105 L5.4860015,2.8063081 5.5061731,2.7821105 C6.0234754,2.1603227 6.4169869,1.6854752 6.5671916,1.5 7.1680121,0.75809938 7.805777,0.50000006 8.3578553,0.5 L9.2341971,0.5 C9.7862759,0.50000006 10.979304,0.58072393 10.233824,1.5 9.8610825,1.9596381 8.6079334,3.4697623 7.345519,4.9849148 L7.3238601,5.0108548 9.0990157,7.1366935 C9.6334218,7.7765244 10.052589,8.2784384 10.237003,8.5 10.974663,9.3862554 9.7894541,9.5 9.2373757,9.5 L8.3610196,9.5 C7.8089409,9.5 7.3899587,9.4595025 6.5703706,8.5 6.4679222,8.3800621 6.3116059,8.195097 6.1150331,7.9614411 L5.4860015,7.2116037 4.8569698,7.9614411 C4.6603975,8.195097 4.5040812,8.3800621 4.4016328,8.5 3.5820441,9.4595032 3.1630621,9.5 2.6109833,9.5 L1.7346272,9.5 C1.1825502,9.5 -0.0026579946,9.3862555 0.73499992,8.5 0.91941352,8.2784385 1.338581,7.7765249 1.8729872,7.1366935 L3.6481428,5.0108552 3.6264839,4.9849148 C2.36407,3.4697629 1.1109188,1.9596384 0.73817882,1.5 -0.0073020967,0.58072303 1.1857272,0.50000006 1.7378059,0.5 z"/>
                            </Grid>
                        </telerik:RadButton>
                    </StackPanel>
                    <Border x:Name="PART_HeaderButtonsBorder" BorderBrush="{StaticResource ButtonArea_InnerBorderBrush}" Margin="3 0 0 0" BorderThickness="1 0 1 1" CornerRadius="0 0 5 5">
                        <Border BorderBrush="{StaticResource ButtonArea_OuterBorderBrush}" BorderThickness="1 0 1 1" CornerRadius="0 0 4 4"/>
                    </Border>
                </Grid>
            </Grid>
            <Border x:Name="ContentHost" Grid.Row="1" Margin="4 0 4 4" Padding="{TemplateBinding BorderThickness}">
                <Border x:Name="innerShape" Background="{TemplateBinding Background}" BorderThickness="1" CornerRadius="2" BorderBrush="{StaticResource RadWindow_InnerBorder}">
                    <Border x:Name="innerMostShape" BorderBrush="{StaticResource RadWindow_InnerMostBorder}" BorderThickness="1" CornerRadius="1">
                        <AdornerDecorator>
                            <ContentPresenter x:Name="ContentElement" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="{TemplateBinding Padding}"/>
                        </AdornerDecorator>
                    </Border>
                </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="30"/>
        <Setter Property="MinWidth" Value="130"/>
        <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="Template" Value="{StaticResource RadWindow_ControlTemplate}"/>
        <Setter Property="ModalBackground" Value="{StaticResource WindowModalBackground}"/>
        <Setter Property="CaptionHeight" Value="24"/>
        <Setter Property="ResizeBorder" Value="8 8 10 10"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <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="5"/>
                <Setter Property="CaptionHeight" Value="23"/>
                <Setter Property="animation:AnimationManager.IsAnimationEnabled" Value="False"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="RadPromptStyle" TargetType="telerikNavigation:RadPrompt">
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IconTemplate" Value="{StaticResource ConfirmIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadPrompt">
                    <Grid FocusManager.FocusedElement="{Binding ElementName=PromptTextBox}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="2"/>
                            <RowDefinition Height="36"/>
                        </Grid.RowDefinitions>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="Icon" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10" ContentTemplate="{TemplateBinding IconTemplate}"/>
                            <StackPanel x:Name="PromptContent" Margin="0 10 10 0" Grid.Column="1" FocusManager.FocusedElement="{Binding ElementName=PromptTextBox}">
                                <ContentControl x:Name="PromptText" Content="{TemplateBinding Content}" IsTabStop="False"/>
                                <Border x:Name="OuterBorder" Grid.Column="0" BorderBrush="{StaticResource BorderOuterBrush}" BorderThickness="1" CornerRadius="3">
                                    <Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="2" Background="{StaticResource InputTextBoxBackground}" BorderBrush="{StaticResource BorderInnerBrush}">
                                        <TextBox x:Name="PromptTextBox" Margin="8" IsTabStop="True" TabIndex="0" Focusable="True"/>
                                    </Border>
                                </Border>
                            </StackPanel>
                        </Grid>
                        <Border Height="2" Background="{StaticResource BorderLineOuterColor}" Grid.Row="1" BorderBrush="{StaticResource BorderLineInnerColor}" BorderThickness="0 0 0 1"/>
                        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
                            <telerik:RadButton x:Name="OK"
                                    Margin="5"
                                    telerik:LocalizationManager.ResourceKey="Ok"
                                    Command="{x:Static telerik:WindowCommands.Confirm}"
                                    telerikNavigation:RadWindow.ResponseButton="Accept"
                                    Height="25"
                                    MinWidth="60"
                                    SnapsToDevicePixels="True"/>
                            <telerik:RadButton x:Name="Cancel"
                                    Margin="0 5 5 5"
                                    telerik:LocalizationManager.ResourceKey="Cancel"
                                    Command="{x:Static telerik:WindowCommands.Cancel}"
                                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                                    Height="25"
                                    MinWidth="80"
                                    SnapsToDevicePixels="True"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="IsTabStop" Value="false"/>
    </Style>
    <Style TargetType="telerikNavigation:RadPrompt" BasedOn="{StaticResource RadPromptStyle}"/>
    <Style x:Key="RadConfirmStyle" TargetType="telerikNavigation:RadConfirm">
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="IconTemplate" Value="{StaticResource ConfirmIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadConfirm">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="2"/>
                            <RowDefinition Height="36"/>
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="Icon" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10 10 12 12" ContentTemplate="{TemplateBinding IconTemplate}"/>
                            <ContentPresenter x:Name="ConfirmText" Margin="0 10 10 10" Grid.Column="1" Content="{TemplateBinding Content}"/>
                        </Grid>
                        <Border Height="2" BorderThickness="0 0 0 1" Background="{StaticResource BorderLineOuterColor}" Grid.Row="1" BorderBrush="{StaticResource BorderLineInnerColor}"/>
                        <StackPanel HorizontalAlignment="Right" Grid.Row="2" Orientation="Horizontal" FocusManager.FocusedElement="{Binding ElementName=OK}">
                            <telerik:RadButton x:Name="OK"
                                    Margin="5"
                                    telerik:LocalizationManager.ResourceKey="Ok"
                                    Command="{x:Static telerik:WindowCommands.Confirm}"
                                    telerikNavigation:RadWindow.ResponseButton="Accept"
                                    Height="25"
                                    MinWidth="60"
                                    SnapsToDevicePixels="True"/>
                            <telerik:RadButton x:Name="Cancel"
                                    telerik:LocalizationManager.ResourceKey="Cancel"
                                    Command="{x:Static telerik:WindowCommands.Cancel}"
                                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                                    Height="25"
                                    MinWidth="80"
                                    Margin="0 5 5 5"
                                    SnapsToDevicePixels="True"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadConfirm" BasedOn="{StaticResource RadConfirmStyle}"/>
    <Style x:Key="RadAlertStyle" TargetType="telerikNavigation:RadAlert">
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IconTemplate" Value="{StaticResource AlertIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadAlert">
                    <Grid FocusManager.FocusedElement="{Binding ElementName=OK}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="2"/>
                            <RowDefinition Height="36"/>
                        </Grid.RowDefinitions>
                        <Grid.InputBindings>
                            <KeyBinding Key="Escape" Command="{x:Static telerik:WindowCommands.Confirm}"/>
                        </Grid.InputBindings>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="Icon" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10 10 12 12" ContentTemplate="{TemplateBinding IconTemplate}"/>
                            <ContentControl x:Name="AlertText" Margin="0 10 10 0" Grid.Column="1" IsTabStop="False" Content="{TemplateBinding Content}"/>
                        </Grid>
                        <Grid Grid.Row="1" Height="2" Background="{StaticResource BorderLineOuterColor}">
                            <Rectangle Fill="{StaticResource BorderLineInnerColor}" VerticalAlignment="Bottom" Height="1"/>
                        </Grid>
                        <telerik:RadButton x:Name="OK"
                                Grid.Row="2"
                                HorizontalAlignment="Right"
                                Margin="5"
                                Command="{x:Static telerik:WindowCommands.Confirm}"
                                telerikNavigation:RadWindow.ResponseButton="Accept"
                                telerik:LocalizationManager.ResourceKey="Ok"
                                Height="25"
                                MinWidth="60"
                                SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="IsTabStop" Value="false"/>
    </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>
