How to localize the ScheduleView correctly...

13 posts, 2 answers
  1. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 28 Feb 2011 Link to this post

    I have troubles translating part of the controls.

    Is there something more I need too do then to use a specific culture?

    I tried to analyse the localization demo but the only thing it does is change the culture...
    Are there ressources elsewhere to translate the GUI? Where?

    See the attached screenshot. My default culture is FR. Only the top right date is in french.

    How do I localize the left hours...

    How do I translate the top text ? Week, Month, Timeline...

    Here is what I do whith the localization manager:
    LocalizationManager.Manager = new CustomLocalizationManager();
                 
    LocalizationManager.DefaultCulture = new CultureInfo("fr");

    public class CustomLocalizationManager : LocalizationManager
    {
        public override string GetStringOverride(string key)
        {
            switch (key)
            {
                //ScheduleView
                //http://www.telerik.com/help/wpf/radscheduleview-localization.html
                case "Timeline":
                    return "Ligne de temps";
                case "Day":
                    return "Jour";
                case "Week":
                    return "Semaine";
                case "Month":
                    return "Mois";
                case "SaveAndCloseCommandText":
                    return "Speichern & Sliessen";
                case "EditRecurrence":
                    return "Serie bearbeithen";
                case "Categories":
                    return "Categories";
            }
            return base.GetStringOverride(key);
        }
    }

    None of those keys are picked up. The only keys I see come trought are keys like EditAppointment and SetMonthViewMode for exemple.

    Also the text of the add/edit dialogs should be translated...

    How can I do his in my program, and how is it done in the demos?

    Thank you for your help,
    John.
  2. Catherine
    Catherine avatar
    21 posts
    Member since:
    Mar 2009

    Posted 01 Mar 2011 Link to this post

    Hello John,

    You can use Title Property for ViewDefinition :

    <

     

     

    telerik:RadScheduleView.ViewDefinitions>
    <telerik:DayViewDefinition Title="Jour"/>
    <telerik:WeekViewDefinition Title="Semaine" />
    <telerik:MonthViewDefinition Title="Mois" />

     

     

     

     

    </telerik:RadScheduleView.ViewDefinitions>

    You can use a template to locate the remaining elements.

    Regards.
    C.Léoni.

     

  3. DevCraft banner
  4. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 01 Mar 2011 Link to this post

    Hello Catherine,
    Thank you for your help...
    Thanks for the title translation... it's working.

    For the rest I need an exemple...
    I'm sure they must be another way then using templates...

    Also I would like to understand how it's done in the ScheduleView demo. 

    John.
  5. Catherine
    Catherine avatar
    21 posts
    Member since:
    Mar 2009

    Posted 01 Mar 2011 Link to this post

    <ResourceDictionary
        xmlns:scheduleVieW="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView">
          
        <SolidColorBrush x:Key="RadScheduleForeground" Color="Black"/>
        <!-- Les entrées du dictionnaire de ressources sont définies ici. -->
        <SolidColorBrush x:Key="RadScheduleBackground" Color="#FFFFFFFF"/>
        <SolidColorBrush x:Key="RadScheduleBorderBrush" Color="#00FFFFFF"/>
        <SolidColorBrush x:Key="TimeRulerGroupItemForeground" Color="#FF000000"/>
        <SolidColorBrush x:Key="GroupHeaderBorderBrush" Color="#FFCBCBCB"/>
        <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder_Vertical" Color="#FF848484"/>
        <LinearGradientBrush x:Key="GroupHeaderHeaderBackground_Vertical" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="White" Offset="0"/>
            <GradientStop Color="#FFCDCDCD" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder_Vertical" Color="#FFFFFFFF"/>
        <SolidColorBrush x:Key="GroupHeaderHeaderOuterBorder" Color="#FF848484"/>
        <LinearGradientBrush x:Key="GroupHeaderHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="White" Offset="0"/>
            <GradientStop Color="#FFCDCDCD" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="GroupHeaderHeaderInnerBorder" Color="#FFFFFFFF"/>
        <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder_Today" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF5F5F5F" Offset="1"/>
            <GradientStop Color="#FF282828"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="GroupHeaderHeaderBackground_Today" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFD74E" Offset="0.996"/>
            <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
            <GradientStop Color="#FFFFB062" Offset="0.57"/>
            <GradientStop Color="#FFFFD18F" Offset="0.56"/>
            <GradientStop Color="#FFFFBA74"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="GroupHeaderHeaderInnerBorder_Today" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB69A78"/>
            <GradientStop Color="#FFFFE17A" Offset="0.126"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="GroupHeaderHeaderOuterBorder_VerticalToday" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FF5F5F5F" Offset="1"/>
            <GradientStop Color="#FF282828"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="GroupHeaderHeaderBackground_VerticalToday" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FFFFD74E" Offset="0.996"/>
            <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
            <GradientStop Color="#FFFFB062" Offset="0.57"/>
            <GradientStop Color="#FFFFD18F" Offset="0.56"/>
            <GradientStop Color="#FFFFBA74"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="GroupHeaderHeaderInnerBorder_VerticalToday" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FFB69A78"/>
            <GradientStop Color="#FFFFE17A" Offset="0.126"/>
        </LinearGradientBrush>
        <Thickness x:Key="GroupHeaderTodayBorderThickness">0,2,2,2</Thickness>
        <ControlTemplate x:Key="GroupHeaderTemplate" TargetType="telerik:GroupHeader">
            <Grid>
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="OrientationStates">
                        <VisualState x:Name="Horizontal">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="VerticalAlignment" Storyboard.TargetName="Header">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Stretch"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="HorizontalAlignment" Storyboard.TargetName="Header">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Left"/>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="Vertical">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="HeaderOuterBorder">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Collapsed</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="HeaderOuterBorderVertical">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="DayStates">
                        <VisualState x:Name="NormalDay"/>
                        <VisualState x:Name="Today">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="HeaderOuterBorderVertical">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderOuterBorder_Today}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="HeaderOuterBorderVertical">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderBackground_Today}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="HeaderInnerBorderVertical">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderInnerBorder_Today}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="HeaderOuterBorder">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderOuterBorder_VerticalToday}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="HeaderOuterBorder">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderBackground_VerticalToday}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="HeaderInnerBorder">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderInnerBorder_VerticalToday}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="Border">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderTodayBorderThickness}"/>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" IsHitTestVisible="False" VerticalAlignment="Stretch"/>
                <Grid x:Name="Header" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                    <Border x:Name="HeaderOuterBorder" BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder_Vertical}" BorderThickness="1" Background="{StaticResource GroupHeaderHeaderBackground_Vertical}">
                        <Border x:Name="HeaderInnerBorder" BorderBrush="{StaticResource GroupHeaderHeaderInnerBorder_Vertical}" BorderThickness="1"/>
                    </Border>
                    <Border x:Name="HeaderOuterBorderVertical" BorderBrush="{StaticResource GroupHeaderHeaderOuterBorder}" BorderThickness="1" Background="{StaticResource GroupHeaderHeaderBackground}" Visibility="Collapsed">
                        <Border x:Name="HeaderInnerBorderVertical" BorderBrush="{StaticResource GroupHeaderHeaderInnerBorder}" BorderThickness="1"/>
                    </Border>
                    <ContentPresenter Margin="2"/>
                </Grid>
            </Grid>
        </ControlTemplate>
        <Style x:Key="GroupHeaderBaseStyle" TargetType="telerik: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="Canvas.ZIndex" Value="-2"/>
            <Setter Property="Template" Value="{StaticResource GroupHeaderTemplate}"/>
        </Style>
        <SolidColorBrush x:Key="GroupHeaderBorderBrush_Today" Color="#FFFFC92B"/>
        <Style x:Key="HorizontalTodayGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 -1 0"/>
            <Setter Property="Padding" Value="-1 0 0 0"/>
            <Setter Property="Canvas.ZIndex" Value="-1"/>
            <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderBorderBrush_Today}"/>
        </Style>
        <Style x:Key="HorizontalGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 -1 0"/>
            <Setter Property="Padding" Value="-1 0 0 0"/>
            <Setter Property="Canvas.ZIndex" Value="-2"/>
        </Style>
        <SolidColorBrush x:Key="HorizontalBottomLevelTodayForeground" Color="#FF000000"/>
        <Style x:Key="HorizontalBottomLevelTodayGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 -1 0"/>
            <Setter Property="Padding" Value="1 0 5 0"/>
            <Setter Property="Canvas.ZIndex" Value="-1"/>
            <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderBorderBrush_Today}"/>
            <Setter Property="Foreground" Value="{StaticResource HorizontalBottomLevelTodayForeground}"/>
        </Style>
        <Style x:Key="HorizontalBottomLevelGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 -1 0"/>
            <Setter Property="Padding" Value="0 0 5 0"/>
            <Setter Property="Canvas.ZIndex" Value="-2"/>
        </Style>
        <Style x:Key="MonthViewBottomLevelWeekGroupStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 0 -1"/>
            <Setter Property="Padding" Value="0 21 0 18"/>
            <Setter Property="MinHeight" Value="85"/>
        </Style>
        <Style x:Key="MonthViewWeekGroupStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 0 -1"/>
            <Setter Property="Padding" Value="0 -1 0 0"/>
        </Style>
        <Style x:Key="VerticalBottomLevelTodayGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 0 -1"/>
            <Setter Property="Padding" Value="0 1 0 5"/>
            <Setter Property="Canvas.ZIndex" Value="-1"/>
            <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderBorderBrush_Today}"/>
        </Style>
        <Style x:Key="VerticalTodayGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 0 -1"/>
            <Setter Property="Canvas.ZIndex" Value="-1"/>
            <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderBorderBrush_Today}"/>
        </Style>
        <Style x:Key="VerticalBottomLevelGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 0 -1"/>
            <Setter Property="Padding" Value="0 0 0 5"/>
            <Setter Property="Canvas.ZIndex" Value="-2"/>
        </Style>
        <Style x:Key="VerticalGroupHeaderStyle" BasedOn="{StaticResource GroupHeaderBaseStyle}" TargetType="telerik:GroupHeader">
            <Setter Property="Margin" Value="0 0 0 -1"/>
            <Setter Property="Padding" Value="0 -1 0 0"/>
            <Setter Property="Canvas.ZIndex" Value="-2"/>
        </Style>
        <telerik:OrientedGroupHeaderStyleSelector x:Key="GroupHeaderStyleSelector" HorizontalTodayStyle="{StaticResource HorizontalTodayGroupHeaderStyle}" HorizontalStyle="{StaticResource HorizontalGroupHeaderStyle}" HorizontalTodayBottomLevelStyle="{StaticResource HorizontalBottomLevelTodayGroupHeaderStyle}" HorizontalBottomLevelStyle="{StaticResource HorizontalBottomLevelGroupHeaderStyle}" MonthViewBottomLevelWeekGroupStyle="{StaticResource MonthViewBottomLevelWeekGroupStyle}" MonthViewWeekGroupStyle="{StaticResource MonthViewWeekGroupStyle}" VerticalTodayBottomLevelStyle="{StaticResource VerticalBottomLevelTodayGroupHeaderStyle}" VerticalTodayStyle="{StaticResource VerticalTodayGroupHeaderStyle}" VerticalBottomLevelStyle="{StaticResource VerticalBottomLevelGroupHeaderStyle}" VerticalStyle="{StaticResource VerticalGroupHeaderStyle}"/>
        <telerik:OrientedGroupHeaderContentTemplateSelector x:Key="GroupHeaderContentTemplateSelector">
            <telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalMonthViewDateTemplate>
                <DataTemplate>
                    <TextBlock Height="16" Margin="4 1" Text="{Binding Name, StringFormat=%d MMM, ConverterCulture=fr-FR}"/>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalMonthViewDateTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalDayViewDateTemplate>
                <DataTemplate>
                    <TextBlock Height="16" Margin="4 1" Text="{Binding Name, StringFormat=dd dddd, ConverterCulture=fr-FR}"/>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalDayViewDateTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalWeekViewDateTemplate>
                <DataTemplate>
                    <TextBlock Height="16" Margin="4 1" Text="{Binding Name, StringFormat=dd dddd, ConverterCulture=fr-FR}"/>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalWeekViewDateTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
                <DataTemplate>
                    <ContentPresenter Content="{Binding}" Height="16" Margin="4 1"/>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.VerticalWeekViewDateTemplate>
                <DataTemplate>
                    <telerik:LayoutTransformControl VerticalAlignment="Top">
                        <telerik:LayoutTransformControl.LayoutTransform>
                            <RotateTransform Angle="-90"/>
                        </telerik:LayoutTransformControl.LayoutTransform>
                        <TextBlock Height="16" Margin="4 1" Text="{Binding Name, StringFormat=dd dddd, ConverterCulture=fr-FR}"/>
                    </telerik:LayoutTransformControl>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.VerticalWeekViewDateTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.VerticalDayViewDateTemplate>
                <DataTemplate>
                    <telerik:LayoutTransformControl VerticalAlignment="Top">
                        <telerik:LayoutTransformControl.LayoutTransform>
                            <RotateTransform Angle="-90"/>
                        </telerik:LayoutTransformControl.LayoutTransform>
                        <TextBlock Height="16" Margin="4 1" Text="{Binding Name, StringFormat=dd dddd, ConverterCulture=fr-FR}"/>
                    </telerik:LayoutTransformControl>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.VerticalDayViewDateTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.VerticalMonthViewDateTemplate>
                <DataTemplate>
                    <telerik:LayoutTransformControl VerticalAlignment="Top">
                        <telerik:LayoutTransformControl.LayoutTransform>
                            <RotateTransform Angle="-90"/>
                        </telerik:LayoutTransformControl.LayoutTransform>
                        <TextBlock Height="16" Margin="4 1" Text="{Binding Name, StringFormat=%d MMM, ConverterCulture=fr-FR}"/>
                    </telerik:LayoutTransformControl>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.VerticalMonthViewDateTemplate>
            <telerik:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
                <DataTemplate>
                    <telerik:LayoutTransformControl VerticalAlignment="Top">
                        <telerik:LayoutTransformControl.LayoutTransform>
                            <RotateTransform Angle="-90"/>
                        </telerik:LayoutTransformControl.LayoutTransform>
                        <ContentPresenter Content="{Binding}" Height="16" Margin="1 4"/>
                    </telerik:LayoutTransformControl>
                </DataTemplate>
            </telerik:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
        </telerik:OrientedGroupHeaderContentTemplateSelector>
        <SolidColorBrush x:Key="TimeRulerLineStroke" Color="#FFCBCBCB"/>
        <Style x:Key="TimeRulerLineStyle" TargetType="telerik:TimeRulerLine">
            <Setter Property="BorderBrush" Value="{StaticResource TimeRulerLineStroke}"/>
            <Setter Property="Background" Value="White"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:TimeRulerLine">
                        <Border x:Name="LineVisual" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0 1 0 0" Background="{TemplateBinding Background}">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="OrientationStates">
                                    <VisualState x:Name="Horizontal">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="LineVisual">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1 0 0 0"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Vertical"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TimeRulerGroupItemStyle" TargetType="telerik: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="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:TimeRulerGroupItem">
                        <Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="OrientationStates">
                                    <VisualState x:Name="Horizontal"/>
                                    <VisualState x:Name="Vertical">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource GroupHeaderHeaderInnerBorder_Vertical}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="InnerBorder" BorderBrush="{StaticResource GroupHeaderHeaderInnerBorder}" BorderThickness="{TemplateBinding BorderThickness}">
                                <ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Normal" Color="#FF000000"/>
        <Style x:Key="TimeRulerItemStyle" TargetType="telerik:TimeRulerItem">
            <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Background" Value="{x:Null}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:TimeRulerItem">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="TimeRulerItemMajorTickStroke_Vertical" Color="#FFCBCBCB"/>
        <Thickness x:Key="TimeRulerItemMargin_Vertical">5 0</Thickness>
        <Thickness x:Key="TimeRulerItemPadding_Vertical">0</Thickness>
        <Style x:Key="VerticalTimeRulerItemStyle" BasedOn="{StaticResource TimeRulerItemStyle}" TargetType="telerik:TimeRulerItem">
            <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMajorTickStroke_Vertical}"/>
            <Setter Property="BorderThickness" Value="0 1 0 0"/>
            <Setter Property="MinWidth" Value="20"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="Margin" Value="{StaticResource TimeRulerItemMargin_Vertical}"/>
            <Setter Property="Padding" Value="{StaticResource TimeRulerItemPadding_Vertical}"/>
        </Style>
        <Style x:Key="HorizontalTimeRulerItemStyle" BasedOn="{StaticResource TimeRulerItemStyle}" TargetType="telerik:TimeRulerItem">
            <Setter Property="BorderBrush" Value="{StaticResource TimeRulerItemMajorTickStroke_Vertical}"/>
            <Setter Property="BorderThickness" Value="1 0 0 0"/>
            <Setter Property="MinHeight" Value="4"/>
            <Setter Property="VerticalAlignment" Value="Bottom"/>
        </Style>
        <Thickness x:Key="HorizontalGroupHeaderTodayBorderThickness">2 0 2 2</Thickness>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_Today" Color="#FF000000"/>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemOuterBorder_Today" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF282828"/>
            <GradientStop Color="#FF5F5F5F" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_Today" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFD74E" Offset="0.996"/>
            <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
            <GradientStop Color="#FFFFB062" Offset="0.57"/>
            <GradientStop Color="#FFFFD18F" Offset="0.56"/>
            <GradientStop Color="#FFFFBA74"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorder_Today" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB69A78"/>
            <GradientStop Color="#FFFFE17A" Offset="0.126"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_TodayMouseOver" Color="#FFFFC92B"/>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_TodayMouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFBDA" Offset="0"/>
            <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
            <GradientStop Color="#FFFFD25A" Offset="0.43"/>
            <GradientStop Color="#FFFFFBA3" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayMouseOver" Color="#FFFFFFFF"/>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemOuterBorder_TodayPressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF282828"/>
            <GradientStop Color="#FF5F5F5F" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_TodayPressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFD74E" Offset="0.996"/>
            <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
            <GradientStop Color="#FFFFB062" Offset="0.57"/>
            <GradientStop Color="#FFFFD18F" Offset="0.56"/>
            <GradientStop Color="#FFFFBA74"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorder_TodayPressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB69A78"/>
            <GradientStop Color="#FFFFE17A" Offset="0.126"/>
        </LinearGradientBrush>
        <Style x:Key="MonthGoToDayTodayButtonStyle" TargetType="telerik:RadButton">
            <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Today}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadButton">
                        <Border x:Name="OuterBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemOuterBorder_Today}" BorderThickness="1" Background="{StaticResource MonthViewTimeRulerItemBackground_Today}">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_TodayMouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_TodayMouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_TodayMouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_TodayPressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_TodayPressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
                                                <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">
                                <ContentPresenter Margin="-2"/>
                            </Border>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="MonthViewExpandOuterBorder" Color="#00000000"/>
        <SolidColorBrush x:Key="MonthViewExpandButtonBackground" Color="#00000000"/>
        <SolidColorBrush x:Key="MonthViewExpandInnerBorder" Color="#00000000"/>
        <SolidColorBrush x:Key="MonthViewExpandIconStroke" Color="#FF000000"/>
        <SolidColorBrush x:Key="MonthViewExpandOuterBorder_MouseOver" Color="#FFFFC92B"/>
        <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFBA3" Offset="1"/>
            <GradientStop Color="#FFFFFBDA" Offset="0"/>
            <GradientStop Color="#FFFFD25A" Offset="0.43"/>
            <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="MonthViewExpandInnerBorder_MouseOver" Color="#FFFFFFFF"/>
        <SolidColorBrush x:Key="MonthViewExpandIconStroke_MouseOver" Color="#FF000000"/>
        <LinearGradientBrush x:Key="MonthViewExpandOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF282828"/>
            <GradientStop Color="#FF5F5F5F" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewExpandButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFD74E" Offset="0.996"/>
            <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
            <GradientStop Color="#FFFE9227" Offset="0.57"/>
            <GradientStop Color="#FFFFD18F" Offset="0.56"/>
            <GradientStop Color="#FFFFBA74" Offset="0"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewExpandInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB69A78"/>
            <GradientStop Color="#FFFFE17A" Offset="0.126"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="MonthViewExpandIconStroke_Pressed" Color="#FF000000"/>
        <Style x:Key="ExpandMonthViewButtonStyle" TargetType="telerik:RadToggleButton">
            <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
            <Setter Property="IsTabStop" Value="False"/>
            <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.TargetProperty="BorderBrush" Storyboard.TargetName="CheckOuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandOuterBorder_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="CheckOuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandButtonBackground_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="CheckInnerBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandInnerBorder_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Expand">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Collapse">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CheckOuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandOuterBorder_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="CheckOuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandButtonBackground_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="CheckInnerBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandInnerBorder_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Expand">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewExpandIconStroke_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Collapse">
                                                <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.TargetProperty="Visibility" Storyboard.TargetName="Collapse">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Expand">
                                                <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.TargetProperty="Visibility" Storyboard.TargetName="Root">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="CheckOuterBorder" BorderBrush="{StaticResource MonthViewExpandOuterBorder}" BorderThickness="1" Background="{StaticResource MonthViewExpandButtonBackground}" CornerRadius="1">
                                <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" Data="M0,4 L7,4 L3.5,0 Z" Fill="{StaticResource MonthViewExpandIconStroke}" HorizontalAlignment="Center" Visibility="Collapsed" VerticalAlignment="Center"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TimeRulerMonthViewTodayItemStyle" TargetType="telerik:TimeRulerMonthViewItem">
            <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
            <Setter Property="Margin" Value="0 -1 -1 0"/>
            <Setter Property="Canvas.ZIndex" Value="1"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:TimeRulerMonthViewItem">
                        <Grid>
                            <Border BorderBrush="{StaticResource GroupHeaderBorderBrush_Today}" BorderThickness="{StaticResource HorizontalGroupHeaderTodayBorderThickness}"/>
                            <telerik:RadButton CommandParameter="{Binding Content.DateTime.Date, RelativeSource={RelativeSource TemplatedParent}}" Command="telerik:RadScheduleViewCommands.SetDayViewMode" Height="22" Padding="0" Style="{StaticResource MonthGoToDayTodayButtonStyle}" VerticalAlignment="Top">
                                <ContentPresenter Margin="{TemplateBinding Padding}"/>
                            </telerik:RadButton>
                            <telerik:RadToggleButton HorizontalAlignment="Right" IsChecked="{Binding IsExpanded, Mode=TwoWay}" Style="{StaticResource ExpandMonthViewButtonStyle}" Visibility="{Binding ExpandButtonVisibility}" VerticalAlignment="Bottom"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TimeRulerMonthViewGroupItemStyle" TargetType="telerik: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="telerik:TimeRulerMonthViewGroupItem">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder" Color="#FF848484"/>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="White" Offset="0"/>
            <GradientStop Color="#FFCDCDCD" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemOuterBorder_MouseOver" Color="#FFFFC92B"/>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFBDA" Offset="0"/>
            <GradientStop Color="#FFFEEBAE" Offset="0.42"/>
            <GradientStop Color="#FFFFD25A" Offset="0.43"/>
            <GradientStop Color="#FFFFFBA3" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemInnerBorder_MouseOver" Color="#FFFFFFFF"/>
        <SolidColorBrush x:Key="MonthViewTimeRulerItemForeground_MouseOver" Color="#FF000000"/>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF282828"/>
            <GradientStop Color="#FF5F5F5F" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFD74E" Offset="0.996"/>
            <GradientStop Color="#FFFFDCAB" Offset="0.17"/>
            <GradientStop Color="#FFFFB062" Offset="0.57"/>
            <GradientStop Color="#FFFFD18F" Offset="0.56"/>
            <GradientStop Color="#FFFFBA74"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="MonthViewTimeRulerItemInnerBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB69A78"/>
            <GradientStop Color="#FFFFE17A" Offset="0.126"/>
        </LinearGradientBrush>
        <Style x:Key="MonthGoToDayButtonStyle" TargetType="telerik:RadButton">
            <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadButton">
                        <Border x:Name="OuterBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemOuterBorder}" BorderThickness="1" Background="{StaticResource MonthViewTimeRulerItemBackground}">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Content">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemForeground_MouseOver}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemOuterBorder_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="OuterBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemBackground_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MonthViewTimeRulerItemInnerBorder_Pressed}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="InnerBorder" BorderBrush="{StaticResource MonthViewTimeRulerItemBackground}" BorderThickness="1">
                                <ContentControl x:Name="Content" Content="{TemplateBinding Content}" Margin="-2"/>
                            </Border>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TimeRulerMonthViewItemStyle" TargetType="telerik:TimeRulerMonthViewItem">
            <Setter Property="Foreground" Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}"/>
            <Setter Property="Margin" Value="0 -1 -1 0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:TimeRulerMonthViewItem">
                        <Grid>
                            <telerik:RadButton CommandParameter="{Binding Content.DateTime.Date, RelativeSource={RelativeSource TemplatedParent}}" Command="telerik:RadScheduleViewCommands.SetDayViewMode" Height="22" Padding="0" Style="{StaticResource MonthGoToDayButtonStyle}" VerticalAlignment="Top">
                                <ContentPresenter Margin="{TemplateBinding Padding}"/>
                            </telerik:RadButton>
                            <telerik:RadToggleButton HorizontalAlignment="Right" IsChecked="{Binding IsExpanded, Mode=TwoWay}" Style="{StaticResource ExpandMonthViewButtonStyle}" Visibility="{Binding ExpandButtonVisibility}" VerticalAlignment="Bottom"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TimeRulerGroupItemStyle_Vertical" BasedOn="{StaticResource TimeRulerGroupItemStyle}" TargetType="telerik:TimeRulerGroupItem">
            <Setter Property="Background" Value="{StaticResource GroupHeaderHeaderBackground_Vertical}"/>
            <Setter Property="BorderBrush" Value="{StaticResource GroupHeaderHeaderOuterBorder_Vertical}"/>
            <Setter Property="Orientation" Value="Vertical"/>
        </Style>
        <telerik:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector" HorizontalLineStyle="{StaticResource TimeRulerLineStyle}" HorizontalGroupItemStyle="{StaticResource TimeRulerGroupItemStyle}" MinorVerticalTickStyle="{StaticResource VerticalTimeRulerItemStyle}" MajorHorizontalTickStyle="{StaticResource HorizontalTimeRulerItemStyle}" MonthViewTodayTickStyle="{StaticResource TimeRulerMonthViewTodayItemStyle}" MonthViewGroupStyle="{StaticResource TimeRulerMonthViewGroupItemStyle}" MinorHoriozntalTickStyle="{StaticResource HorizontalTimeRulerItemStyle}" MajorVerticalTickStyle="{StaticResource VerticalTimeRulerItemStyle}" MonthViewTickStyle="{StaticResource TimeRulerMonthViewItemStyle}" VerticalGroupItemStyle="{StaticResource TimeRulerGroupItemStyle_Vertical}" VerticalLineStyle="{StaticResource TimeRulerLineStyle}"/>
        <telerik:TimeRulerItemTemplateSelector x:Key="TimeRulerItemTemplateSelector">
            <telerik:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="2" TextAlignment="Left" Text="{Binding DateTime, StringFormat=HH:mm}"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate>
                <DataTemplate/>
            </telerik:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.HorizontalDayMajorItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="2" Text="{Binding DateTime, StringFormat=HH:mm}"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.HorizontalDayMajorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.HorizontalWeekMajorItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="2" Text="{Binding DateTime, StringFormat=HH:mm}"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.HorizontalWeekMajorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.HorizontalWeekMinorItemTemplate>
                <DataTemplate/>
            </telerik:TimeRulerItemTemplateSelector.HorizontalWeekMinorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.HorizontalDayMinorItemTemplate>
                <DataTemplate/>
            </telerik:TimeRulerItemTemplateSelector.HorizontalDayMinorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
                <DataTemplate>
                    <TextBlock Margin="2 1" TextAlignment="Left" Text="{Binding DateTime, StringFormat=dd/MM/yyyy}"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
            <telerik:TimeRulerItemTemplateSelector.MonthGroupTemplate>
                <DataTemplate>
                    <TextBlock Margin="6 2" Text="{Binding DateTime, StringFormat=dd}"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.MonthGroupTemplate>
            <telerik:TimeRulerItemTemplateSelector.MonthItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="6 2" Text="{Binding DateTime, StringFormat=dd}"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.MonthItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalTimelineMajorItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="0 2" TextAlignment="Right" Text="{Binding DateTime, StringFormat=HH:mm}" Width="54"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.VerticalTimelineMajorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalWeekMinorItemTemplate>
                <DataTemplate/>
            </telerik:TimeRulerItemTemplateSelector.VerticalWeekMinorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalWeekMajorItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="0 2" TextAlignment="Right" Text="{Binding DateTime, StringFormat=HH:mm}" Width="54"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.VerticalWeekMajorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalTimelineGroupTemplate>
                <DataTemplate>
                    <telerik:LayoutTransformControl VerticalAlignment="Top">
                        <telerik:LayoutTransformControl.LayoutTransform>
                            <RotateTransform Angle="-90"/>
                        </telerik:LayoutTransformControl.LayoutTransform>
                        <TextBlock Height="16" Margin="1 2" TextAlignment="Right" Text="{Binding DateTime, StringFormat=dd/MM/yyyy}"/>
                    </telerik:LayoutTransformControl>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.VerticalTimelineGroupTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalDayMajorItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="0 2" TextAlignment="Right" Text="{Binding DateTime, StringFormat=HH:mm}" Width="54"/>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.VerticalDayMajorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalDayMinorItemTemplate>
                <DataTemplate/>
            </telerik:TimeRulerItemTemplateSelector.VerticalDayMinorItemTemplate>
            <telerik:TimeRulerItemTemplateSelector.VerticalTimelineMinorItemTemplate>
                <DataTemplate/>
            </telerik:TimeRulerItemTemplateSelector.VerticalTimelineMinorItemTemplate>
        </telerik:TimeRulerItemTemplateSelector>
        <SolidColorBrush x:Key="DecorationRectangleBackground_DragOver" Color="#99FCE7AD"/>
        <SolidColorBrush x:Key="DecorationRectangleOuterBorder_DragOver" Color="#FF848484"/>
        <SolidColorBrush x:Key="DecorationRectangleInnerBorder_DragOver" Color="#99FFFFFF"/>
        <LinearGradientBrush x:Key="AppointmentResizeCueTopLeftMarkStroke" EndPoint="1 1" StartPoint="0 0">
            <GradientStop Color="#FF000000" Offset="0.33"/>
            <GradientStop Color="#00000000" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="AppointmentResizeCueBottomRightMarkStroke" EndPoint="0 0" StartPoint="1 1">
            <GradientStop Color="#FF000000" Offset="0.33"/>
            <GradientStop Color="#00000000" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="DragDropHighlightStyle" TargetType="telerik: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 BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <Grid>
                                <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_DragOver}" BorderThickness="1"/>
                                <Path HorizontalAlignment="Left" Height="8" Margin="-2" Stroke="{StaticResource AppointmentResizeCueTopLeftMarkStroke}" VerticalAlignment="Top" Width="8">
                                    <Path.Data>
                                        <GeometryGroup>
                                            <EllipseGeometry Center="2 2" RadiusY="2" RadiusX="2"/>
                                            <LineGeometry EndPoint="8 8" StartPoint="3 3"/>
                                        </GeometryGroup>
                                    </Path.Data>
                                </Path>
                                <TextBlock x:Name="StartTextBox" Foreground="{StaticResource RadScheduleForeground}" HorizontalAlignment="Left" Margin="4 2" Text="{Binding Start, StringFormat=t, ConverterCulture=fr-FR}" VerticalAlignment="Top"/>
                                <Path HorizontalAlignment="Right" Height="8" Margin="-2" Stroke="{StaticResource AppointmentResizeCueBottomRightMarkStroke}" VerticalAlignment="Bottom" Width="8">
                                    <Path.Data>
                                        <GeometryGroup>
                                            <EllipseGeometry Center="6 6" RadiusY="2" RadiusX="2"/>
                                            <LineGeometry EndPoint="5 5" StartPoint="0 0"/>
                                        </GeometryGroup>
                                    </Path.Data>
                                </Path>
                                <TextBlock x:Name="EndTextBox" Foreground="{StaticResource RadScheduleForeground}" HorizontalAlignment="Right" Margin="4 2" Text="{Binding End, StringFormat=t, ConverterCulture=fr-FR}" VerticalAlignment="Bottom"/>
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="DecorationRectangleBackground_MouseOver" Color="#FFFFFBD1"/>
        <SolidColorBrush x:Key="DecorationRectangleOuterBorder_MouseOver" Color="#FFFFC92B"/>
        <SolidColorBrush x:Key="DecorationRectangleInnerBorder_MouseOver" Color="#FFFFFFFF"/>
        <Style x:Key="MouseOverHighlightStyle" TargetType="telerik: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 BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_MouseOver}" BorderThickness="1"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="DecorationRectangleBackground_Selected" Color="#AAFCE7AD"/>
        <SolidColorBrush x:Key="DecorationRectangleOuterBorder_Selected" Color="#AAFFC92B"/>
        <SolidColorBrush x:Key="DecorationRectangleInnerBorder_Selected" Color="#AAFFFFFF"/>
        <Style x:Key="SelectionHighlightStyle" TargetType="telerik: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 BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <Border BorderBrush="{StaticResource DecorationRectangleInnerBorder_Selected}" BorderThickness="1"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ControlTemplate x:Key="ResizeArrowCueTemplate" TargetType="telerik:DragArrow">
            <ContentPresenter/>
        </ControlTemplate>
        <SolidColorBrush x:Key="AppointmentItemOuterBorder_Drag" Color="#AA848484"/>
        <LinearGradientBrush x:Key="AppointmentItemBackground_Drag" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#AAFFFFFF"/>
            <GradientStop Color="#AAD4D4D4" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="AppointmentItemInnerBorder_Drag" Color="#AAFFFFFF"/>
        <DataTemplate x:Key="DragVisualCueItemTemplate">
            <Grid>
                <Border BorderBrush="{StaticResource AppointmentItemOuterBorder_Drag}" BorderThickness="1" Background="{StaticResource AppointmentItemBackground_Drag}" CornerRadius="2">
                    <Border BorderBrush="{StaticResource AppointmentItemInnerBorder_Drag}" BorderThickness="1"/>
                </Border>
                <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="8 2 8 2" TextWrapping="Wrap" Text="{Binding Subject}" TextTrimming="WordEllipsis"/>
            </Grid>
        </DataTemplate>
        <SolidColorBrush x:Key="AppointmentResizeCueBorderBrush" Color="#FF848484"/>
        <LinearGradientBrush x:Key="AppointmentResizeCueBackground" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#88FDD3A8"/>
            <GradientStop Color="#88FCE79F" Offset="1"/>
        </LinearGradientBrush>
        <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
        <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        <DataTemplate x:Key="ResizeArrowCueItemTemplate">
            <Border BorderBrush="{StaticResource AppointmentResizeCueBorderBrush}" BorderThickness="1" Background="{StaticResource AppointmentResizeCueBackground}" CornerRadius="2">
                <Grid>
                    <Grid Visibility="{Binding IsResizedFromEnd, Converter={StaticResource InvertedBooleanToVisibilityConverter}, Mode=OneTime}">
                        <Path HorizontalAlignment="Left" Height="8" Margin="-2" Stroke="{StaticResource AppointmentResizeCueTopLeftMarkStroke}" VerticalAlignment="Top" Width="8">
                            <Path.Data>
                                <GeometryGroup>
                                    <EllipseGeometry Center="2 2" RadiusY="2" RadiusX="2"/>
                                    <LineGeometry EndPoint="8 8" StartPoint="3 3"/>
                                </GeometryGroup>
                            </Path.Data>
                        </Path>
                        <TextBlock x:Name="StartTextBox" Foreground="{StaticResource RadScheduleForeground}" HorizontalAlignment="Left" Margin="4 2" Text="{Binding Occurrence.Start, Mode=OneTime, StringFormat=t, ConverterCulture=fr-FR}" VerticalAlignment="Top"/>
                    </Grid>
                    <Grid Visibility="{Binding IsResizedFromEnd, Converter={StaticResource BooleanToVisibilityConverter}, Mode=OneTime}">
                        <Path HorizontalAlignment="Right" Height="8" Margin="-2" Stroke="{StaticResource AppointmentResizeCueBottomRightMarkStroke}" VerticalAlignment="Bottom" Width="8">
                            <Path.Data>
                                <GeometryGroup>
                                    <EllipseGeometry Center="6 6" RadiusY="2" RadiusX="2"/>
                                    <LineGeometry EndPoint="5 5" StartPoint="0 0"/>
                                </GeometryGroup>
                            </Path.Data>
                        </Path>
                        <TextBlock x:Name="EndTextBox" Foreground="{StaticResource RadScheduleForeground}" HorizontalAlignment="Right" Margin="4 2" Text="{Binding Occurrence.End, Mode=OneTime, StringFormat=t, ConverterCulture=fr-FR}" VerticalAlignment="Bottom"/>
                    </Grid>
                </Grid>
            </Border>
        </DataTemplate>
        <LinearGradientBrush x:Key="AppointmentItemBackground" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="White"/>
            <GradientStop Color="#FFD4D4D4" Offset="1"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="AppointmentItemOuterBorder" Color="#FF848484"/>
        <DataTemplate x:Key="AppointmentItemTemplate">
            <TextBlock Margin="6 2" TextWrapping="Wrap" Text="{Binding Subject}" TextTrimming="WordEllipsis"/>
        </DataTemplate>
        <SolidColorBrush x:Key="AppointmentItemInnerBorder" Color="#FFFFFFFF"/>
        <SolidColorBrush x:Key="AppointmentItemOuterBorder_MouseOver" Color="#FFFFC92B"/>
        <LinearGradientBrush x:Key="AppointmentItemBackground_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFBA3" Offset="1"/>
            <GradientStop Color="#FFFFFBDA" Offset="0"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="AppointmentItemInnerBorder_MouseOver" Color="#FFFFFFFF"/>
        <telerik:RecurrenceStateIsExeptionToVisibilityConverter x:Key="RecurrenceStateIsExeptionToVisibilityConverter"/>
        <telerik:RecurrenceStateIsOccurenceToVisibilityConverter x:Key="RecurrenceStateIsOccurenceToVisibilityConverter"/>
        <SolidColorBrush x:Key="AppointmentItemResizeGripStroke" Color="#FF444444"/>
        <SolidColorBrush x:Key="AppointmentItemResizeGripBackground" Color="#FFFFFFFF"/>
        <SolidColorBrush x:Key="AppointmentItemDeleteIconStroke" Color="#FF444444"/>
        <telerik:Office_BlackTheme x:Key="Theme"/>
        <LinearGradientBrush x:Key="AppointmentItemBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFCE79F" Offset="1"/>
            <GradientStop Color="#FFFDD3A8"/>
        </LinearGradientBrush>
        <SolidColorBrush x:Key="AppointmentItemOuterBorder_Selected" Color="#FFFFC92B"/>
        <SolidColorBrush x:Key="AppointmentItemInnerBorder_Selected" Color="#FFFFFFFF"/>
        <ControlTemplate x:Key="AppointmentItemHorizontalControlTemplate" TargetType="telerik:AppointmentItem">
            <Grid x:Name="Root">
                <telerik:CommandManager.InputBindings>
                    <telerik:InputBindingCollection>
                        <telerik:MouseBinding Command="telerik:RadScheduleViewCommands.EditAppointment" Gesture="LeftDoubleClick"/>
                    </telerik:InputBindingCollection>
                </telerik:CommandManager.InputBindings>
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="CommonStates">
                        <VisualState x:Name="Normal">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverOverlay">
                                    <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.TargetProperty="Opacity" Storyboard.TargetName="MouseOverOverlay"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="MouseOver">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.400" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverOverlay">
                                    <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.TargetProperty="Opacity" Storyboard.TargetName="MouseOverOverlay"/>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="SelectionStates">
                        <VisualState x:Name="Unselected"/>
                        <VisualState x:Name="Selected">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="CommonStatesVisual">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Background" Storyboard.TargetName="CommonStatesVisual">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemBackground_Selected}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CommonStatesVisual">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemOuterBorder_Selected}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CommonStatesVisualInnerBorder">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemInnerBorder_Selected}"/>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2">
                    <Border BorderBrush="{StaticResource AppointmentItemInnerBorder}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1"/>
                </Border>
                <Border x:Name="CommonStatesVisual" BorderBrush="{StaticResource AppointmentItemOuterBorder_MouseOver}" BorderThickness="{TemplateBinding BorderThickness}" Background="{StaticResource AppointmentItemBackground_MouseOver}" CornerRadius="2" Visibility="Collapsed">
                    <Border x:Name="CommonStatesVisualInnerBorder" BorderBrush="{StaticResource AppointmentItemInnerBorder_MouseOver}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1"/>
                </Border>
                <Border x:Name="PART_Category" Background="{Binding Category.CategoryBrush}" Margin="2"/>
                <Border x:Name="PART_TimeMarker" Background="{Binding TimeMarker.TimeMarkerBrush}" HorizontalAlignment="Left" Margin="2" Width="5"/>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" HorizontalAlignment="Left" Height="10" Margin="6 4 0 0" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentException.png" Visibility="{Binding RecurrenceState, Converter={StaticResource RecurrenceStateIsExeptionToVisibilityConverter}}" VerticalAlignment="Top" Width="10"/>
                    <Image Grid.Column="0" HorizontalAlignment="Left" Height="10" Margin="6 4 0 0" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentRecurrence.png" Visibility="{Binding RecurrenceState, Converter={StaticResource RecurrenceStateIsOccurenceToVisibilityConverter}}" VerticalAlignment="Top" Width="10"/>
                    <ContentPresenter Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </Grid>
                <Grid x:Name="MouseOverOverlay" Opacity="0" Visibility="Collapsed">
                    <!-- Drag And Drop -->
                    <Border x:Name="PART_StartResizeGrip" telerik:RadDragAndDropManager.AllowDrag="False" Background="Transparent" Cursor="SizeWE" HorizontalAlignment="Left" VerticalAlignment="Stretch">
                        <StackPanel x:Name="StartResizeGrip" HorizontalAlignment="Center" Margin="1" VerticalAlignment="Center">
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                        </StackPanel>
                    </Border>
                    <Border x:Name="PART_EndResizeGrip" telerik:RadDragAndDropManager.AllowDrag="False" Background="Transparent" Cursor="SizeWE" HorizontalAlignment="Right" VerticalAlignment="Stretch">
                        <StackPanel x:Name="EndResizeGrip" HorizontalAlignment="Center" Margin="1" VerticalAlignment="Center">
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                        </StackPanel>
                    </Border>
                    <!-- Suppression -->
                    <telerik:RadButton x:Name="DeleteButton" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="telerik:RadScheduleViewCommands.DeleteAppointment" HorizontalAlignment="Right" Height="11" Margin="5" Padding="0" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Top" Width="11">
                        <Path Data="M0,0 L5,5 M5,0 L0,5" Stroke="{StaticResource AppointmentItemDeleteIconStroke}"/>
                    </telerik:RadButton>
                </Grid>
            </Grid>
        </ControlTemplate>
        <Style x:Key="AppointmentItemBaseStyle" TargetType="telerik: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="ContentTemplate" Value="{StaticResource AppointmentItemTemplate}"/>
            <Setter Property="Template" Value="{StaticResource AppointmentItemHorizontalControlTemplate}"/>
            <Setter Property="Canvas.ZIndex" Value="1"/>
            <Setter Property="AllowDrop" Value="False"/>
        </Style>
        <ControlTemplate x:Key="AppointmentItemVerticalControlTemplate" TargetType="telerik:AppointmentItem">
            <Grid x:Name="Root">
                <telerik:CommandManager.InputBindings>
                    <telerik:InputBindingCollection>
                        <telerik:MouseBinding Command="telerik:RadScheduleViewCommands.EditAppointment" Gesture="LeftDoubleClick"/>
                    </telerik:InputBindingCollection>
                </telerik:CommandManager.InputBindings>
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="CommonStates">
                        <VisualState x:Name="Normal">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverOverlay">
                                    <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.TargetProperty="Opacity" Storyboard.TargetName="MouseOverOverlay"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="MouseOver">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0.400" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverOverlay">
                                    <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.TargetProperty="Opacity" Storyboard.TargetName="MouseOverOverlay"/>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="SelectionStates">
                        <VisualState x:Name="Unselected"/>
                        <VisualState x:Name="Selected">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="CommonStatesVisual">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Background" Storyboard.TargetName="CommonStatesVisual">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemBackground_Selected}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CommonStatesVisual">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemOuterBorder_Selected}"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CommonStatesVisualInnerBorder">
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource AppointmentItemInnerBorder_Selected}"/>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2">
                    <Border BorderBrush="{StaticResource AppointmentItemInnerBorder}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1"/>
                </Border>
                <Border x:Name="CommonStatesVisual" BorderBrush="{StaticResource AppointmentItemOuterBorder_MouseOver}" BorderThickness="{TemplateBinding BorderThickness}" Background="{StaticResource AppointmentItemBackground_MouseOver}" CornerRadius="2" Visibility="Collapsed">
                    <Border x:Name="CommonStatesVisualInnerBorder" BorderBrush="{StaticResource AppointmentItemInnerBorder_MouseOver}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1"/>
                </Border>
                <Border x:Name="PART_Category" Background="{Binding Category.CategoryBrush}" Margin="2"/>
                <Border x:Name="PART_TimeMarker" Background="{Binding TimeMarker.TimeMarkerBrush}" HorizontalAlignment="Left" Margin="2" Width="5"/>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" HorizontalAlignment="Left" Height="10" Margin="4 4 0 0" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentException.png" Visibility="{Binding RecurrenceState, Converter={StaticResource RecurrenceStateIsExeptionToVisibilityConverter}}" VerticalAlignment="Top" Width="10"/>
                    <Image Grid.Column="0" HorizontalAlignment="Left" Height="10" Margin="4 4 0 0" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentRecurrence.png" Visibility="{Binding RecurrenceState, Converter={StaticResource RecurrenceStateIsOccurenceToVisibilityConverter}}" VerticalAlignment="Top" Width="10"/>
                    <ContentPresenter Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </Grid>
                <Grid x:Name="MouseOverOverlay" Opacity="0" Visibility="Collapsed">
                    <!-- Drag And Drop -->
                    <Border x:Name="PART_StartResizeGrip" telerik:RadDragAndDropManager.AllowDrag="False" Background="Transparent" Cursor="SizeNS" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                        <StackPanel x:Name="StartResizeGrip" HorizontalAlignment="Center" Margin="1" Orientation="Horizontal" VerticalAlignment="Center">
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                        </StackPanel>
                    </Border>
                    <Border x:Name="PART_EndResizeGrip" telerik:RadDragAndDropManager.AllowDrag="False" Background="Transparent" Cursor="SizeNS" HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
                        <StackPanel x:Name="EndResizeGrip" HorizontalAlignment="Center" Margin="1" Orientation="Horizontal" VerticalAlignment="Center">
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                            <Border BorderBrush="{StaticResource AppointmentItemResizeGripStroke}" BorderThickness="0,0,1,1" Background="{StaticResource AppointmentItemResizeGripBackground}" Height="3" Margin="1" Width="3"/>
                        </StackPanel>
                    </Border>
                    <!-- Suppresion -->
                    <telerik:RadButton x:Name="DeleteButton" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="telerik:RadScheduleViewCommands.DeleteAppointment" HorizontalAlignment="Right" Height="11" Margin="5" Padding="0" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Top" Width="11">
                        <Path Data="M0,0 L5,5 M5,0 L0,5" Stroke="{StaticResource AppointmentItemDeleteIconStroke}"/>
                    </telerik:RadButton>
                </Grid>
            </Grid>
        </ControlTemplate>
        <telerik:OrientedAppointmentItemStyleSelector x:Key="AppointmentItemStyleSelector">
            <telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle>
                <Style BasedOn="{StaticResource AppointmentItemBaseStyle}" TargetType="telerik:AppointmentItem">
                    <Setter Property="Margin" Value="0 1 0 0"/>
                </Style>
            </telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle>
            <telerik:OrientedAppointmentItemStyleSelector.MonthViewStyle>
                <Style BasedOn="{StaticResource AppointmentItemBaseStyle}" TargetType="telerik:AppointmentItem">
                    <Setter Property="Margin" Value="2 1 2 0"/>
                </Style>
            </telerik:OrientedAppointmentItemStyleSelector.MonthViewStyle>
            <telerik:OrientedAppointmentItemStyleSelector.VerticalStyle>
                <Style BasedOn="{StaticResource AppointmentItemBaseStyle}" TargetType="telerik:AppointmentItem">
                    <Setter Property="Template" Value="{StaticResource AppointmentItemVerticalControlTemplate}"/>
                    <Setter Property="Margin" Value="1 0 0 0"/>
                </Style>
            </telerik:OrientedAppointmentItemStyleSelector.VerticalStyle>
        </telerik:OrientedAppointmentItemStyleSelector>
        <DataTemplate x:Key="InlineEditTempate">
            <telerik:PickerTextBox Margin="8 2 8 2" TextWrapping="Wrap" Text="{Binding Appointment.Subject, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}"/>
        </DataTemplate>
        <DataTemplate x:Key="ToolTipTemplate">
            <TextBlock MaxWidth="200" TextWrapping="Wrap" Text="{Binding Subject}"/>
        </DataTemplate>
        <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>
        <telerik:CategoryCollection x:Key="DefaultCategoryCollection">
            <telerik:Category CategoryBrush="{StaticResource RedCategoryBrush}" CategoryName="Red Category"/>
            <telerik:Category CategoryBrush="{StaticResource GreenCategoryBrush}" CategoryName="Green Category"/>
            <telerik:Category CategoryBrush="{StaticResource BlueCategoryBrush}" CategoryName="Blue Category"/>
            <telerik:Category CategoryBrush="{StaticResource PurpleCategoryBrush}" CategoryName="Purple Category"/>
            <telerik:Category CategoryBrush="{StaticResource YellowCategoryBrush}" CategoryName="Yellow Category"/>
            <telerik:Category CategoryBrush="{StaticResource OliveCategoryBrush}" CategoryName="Olive Category"/>
            <telerik:Category CategoryBrush="{StaticResource PinkCategoryBrush}" CategoryName="Pink Category"/>
            <telerik:Category CategoryBrush="{StaticResource OrangeCategoryBrush}" CategoryName="Orange Category"/>
        </telerik:CategoryCollection>
        <LinearGradientBrush x:Key="FreeMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF00C800" Offset="0"/>
            <GradientStop Color="#FF1E841E" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="TentativeMarkerBrush" EndPoint="9,9" MappingMode="Absolute" SpreadMethod="Repeat" StartPoint="2,2">
            <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="BusyMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFF0606"/>
            <GradientStop Color="#FFBF0303" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="OutOfOfficeMarkerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFF1A202" Offset="1"/>
            <GradientStop Color="#FFFFF502"/>
        </LinearGradientBrush>
        <telerik:TimeMarkerCollection x:Key="DefaultTimeMarkerCollection">
            <telerik:TimeMarker TimeMarkerName="Free" TimeMarkerBrush="{StaticResource FreeMarkerBrush}"/>
            <telerik:TimeMarker TimeMarkerName="Tentative" TimeMarkerBrush="{StaticResource TentativeMarkerBrush}"/>
            <telerik:TimeMarker TimeMarkerName="Busy" TimeMarkerBrush="{StaticResource BusyMarkerBrush}"/>
            <telerik:TimeMarker TimeMarkerName="Out Of Office" TimeMarkerBrush="{StaticResource OutOfOfficeMarkerBrush}"/>
        </telerik:TimeMarkerCollection>
        <telerik:InvertedBooleanConverter x:Key="InvertedBooleanConverter"/>
        <DataTemplate x:Key="TimeMarkerComboBoxItemContentTemplate">
            <StackPanel Orientation="Horizontal">
                <Rectangle Fill="{Binding TimeMarkerBrush}" Height="12" Margin="2" Width="12"/>
                <TextBlock Margin="2" Text="{Binding TimeMarkerName}"/>
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="CategoryComboBoxItemContentTemplate">
            <StackPanel Orientation="Horizontal">
                <Rectangle Fill="{Binding CategoryBrush}" Height="12" Margin="2" Width="12"/>
                <TextBlock Margin="2" Text="{Binding DisplayName}"/>
            </StackPanel>
        </DataTemplate>
        <telerik:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>
        <telerik:LocalizationManager x:Key="LocalizationManager"/>
        <telerik:BoolToInputModeConverter x:Key="BoolToInputModeConverter"/>
        <telerik:InvertedVisibilityConverter x:Key="InvertedVisibilityConverter"/>
        <ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerik:SchedulerDialog">
            <Grid>
                <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" Margin="-1 -1 -1 3" Grid.Row="0" telerik:StyleManager.Theme="{StaticResource Theme}">
                    <telerik:RadButton x:Name="EditRecurrenceButton" Command="telerik:RadScheduleViewCommands.EditRecurrenceRule" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" Visibility="{Binding CanEditParentAppointment, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                        <ToolTipService.ToolTip>
                            <TextBlock telerik:LocalizationManager.ResourceKey="EditRecurrence"/>
                        </ToolTipService.ToolTip>
                        <StackPanel Margin="2 0" Orientation="Horizontal">
                            <Image Margin="2 0" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/Recurrence.png" Stretch="None"/>
                            <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="4 0" telerik:LocalizationManager.ResourceKey="EditRecurrence"/>
                        </StackPanel>
                    </telerik:RadButton>
                    <telerik:RadButton x:Name="EditParentAppointmentButton" Command="telerik:RadScheduleViewCommands.EditParentAppointment" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" telerik:LocalizationManager.ResourceKey="EditParentAppointment" Visibility="{Binding CanEditParentAppointment, Converter={StaticResource BooleanToVisibilityConverter}}">
                        <ToolTipService.ToolTip>
                            <TextBlock Foreground="{StaticResource RadScheduleForeground}" telerik:LocalizationManager.ResourceKey="EditParentAppointment"/>
                        </ToolTipService.ToolTip>
                    </telerik:RadButton>
                    <telerik:RadToolBarSeparator/>
                    <TextBlock x:Name="ShowAs" Foreground="{StaticResource RadScheduleForeground}" Margin="1 0 1 1" telerik:LocalizationManager.ResourceKey="ShowAs" VerticalAlignment="Center"/>
                    <telerik:RadComboBox x:Name="PART_TimeMarkers" ClearSelectionButtonContent="{Binding ClearSelectionButtonContent}" ClearSelectionButtonVisibility="Visible" EmptyText="{Binding TimeMarkersEmptyText}" ItemTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}" ItemsSource="{Binding TimeMarkers}" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" Margin="2 1" SelectionBoxTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}" SelectedItem="{Binding Occurrence.Appointment.TimeMarker, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" Width="110"/>
                    <telerik:RadComboBox x:Name="PART_Categories" ClearSelectionButtonContent="{Binding ClearSelectionButtonContent}" ClearSelectionButtonVisibility="Visible" EmptyText="{Binding CategoriesEmptyText}" ItemTemplate="{StaticResource CategoryComboBoxItemContentTemplate}" ItemsSource="{Binding Categories}" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" Margin="2 1" SelectionBoxTemplate="{StaticResource CategoryComboBoxItemContentTemplate}" SelectedItem="{Binding Occurrence.Appointment.Category, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" Width="120"/>
                    <telerik:RadToggleButton x:Name="HighImportaceButton" Height="22" IsChecked="{Binding IsHighImportance, Mode=TwoWay}" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" Width="22">
                        <ToolTipService.ToolTip>
                            <TextBlock telerik:LocalizationManager.ResourceKey="HighImportance"/>
                        </ToolTipService.ToolTip>
                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Path 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" HorizontalAlignment="Center" Height="10" Stretch="Fill" Width="5.451">
                                <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 HorizontalAlignment="Center" Height="3" Width="3">
                                <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" Height="22" IsChecked="{Binding IsLowImportance, Mode=TwoWay}" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" Width="22">
                        <ToolTipService.ToolTip>
                            <TextBlock telerik:LocalizationManager.ResourceKey="LowImportance"/>
                        </ToolTipService.ToolTip>
                        <Path 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" HorizontalAlignment="Center" Height="12" Stretch="Fill" Stroke="#FF0365A7" VerticalAlignment="Center" Width="9">
                            <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" Background="{Binding SelectedItem.CategoryBrush, ElementName=PART_Categories}" CornerRadius="3" Height="20" Margin="6 6" Grid.Row="1" Visibility="{Binding SelectedItem, Converter={StaticResource NullToVisibilityConverter}, ElementName=PART_Categories}">
                    <TextBlock Margin="6 0" Text="{Binding SelectedItem.DisplayName, ElementName=PART_Categories}" VerticalAlignment="Center"/>
                </Border>
                <Grid x:Name="Details" Margin="6" Grid.Row="2">
                    <Grid.Resources>
                        <telerik:InputMode x:Key="RadDateTimePickerInputModeDatePicker">DatePicker</telerik:InputMode>
                    </Grid.Resources>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Column="0" Margin="6" Grid.Row="0" telerik:LocalizationManager.ResourceKey="Subject"/>
                    <TextBox Grid.ColumnSpan="2" Grid.Column="1" IsReadOnly="{Binding IsReadOnly}" Margin="3" Grid.Row="0" Text="{Binding Occurrence.Appointment.Subject, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <TextBlock Grid.Column="0" Margin="6" Grid.Row="1" telerik:LocalizationManager.ResourceKey="Body"/>
                    <TextBox Grid.ColumnSpan="2" Grid.Column="1" Height="70" IsReadOnly="{Binding IsReadOnly}" Margin="3" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Occurrence.Appointment.Body, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Visible" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"/>
                    <TextBlock Grid.Column="0" Margin="6" Grid.Row="2" telerik:LocalizationManager.ResourceKey="StartTime"/>
                    <telerik:RadDateTimePicker Culture="{Binding DefaultCulture, Source={StaticResource LocalizationManager}}" Grid.Column="1" IsReadOnly="{Binding IsReadOnly}" IsEnabled="{Binding IsNotRecurrent}" Margin="3" Grid.Row="2" SelectedValue="{Binding Occurrence.Appointment.Start, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}">
                        <telerik:RadDateTimePicker.InputMode>
                            <Binding Converter="{StaticResource BoolToInputModeConverter}" Path="IsAllDayEvent">
                                <Binding.ConverterParameter>
                                    <telerik:InputMode>DatePicker</telerik:InputMode>
                                </Binding.ConverterParameter>
                            </Binding>
                        </telerik:RadDateTimePicker.InputMode>
                    </telerik:RadDateTimePicker>
                    <TextBlock Grid.Column="0" Margin="6" Grid.Row="3" telerik:LocalizationManager.ResourceKey="EndTime" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                    <telerik:RadDateTimePicker Culture="{Binding DefaultCulture, Source={StaticResource LocalizationManager}}" Grid.Column="1" IsReadOnly="{Binding IsReadOnly}" IsEnabled="{Binding IsNotRecurrent}" Margin="3" Grid.Row="3" SelectedValue="{Binding Occurrence.Appointment.End, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}">
                        <telerik:RadDateTimePicker.InputMode>
                            <Binding Converter="{StaticResource BoolToInputModeConverter}" Path="IsAllDayEvent">
                                <Binding.ConverterParameter>
                                    <telerik:InputMode>DatePicker</telerik:InputMode>
                                </Binding.ConverterParameter>
                            </Binding>
                        </telerik:RadDateTimePicker.InputMode>
                    </telerik:RadDateTimePicker>
                </Grid>
                <Grid Margin="3" Grid.Row="3" Visibility="{Binding ResourceTypesVisibility}">
                    <ScrollViewer x:Name="ResourcesScrollViewer" IsTabStop="false" Margin="3" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Auto"/>
                    <TextBlock HorizontalAlignment="Center" Margin="3" Text="You can only change the resources by opening the series" Visibility="{Binding ResourceTypesVisibility, Converter={StaticResource InvertedVisibilityConverter}}"/>
                </Grid>
                <StackPanel HorizontalAlignment="Right" Margin="13 6" Orientation="Horizontal" Grid.Row="4">
                    <telerik:RadButton Command="telerik:WindowCommands.Confirm" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}">
                        <ToolTipService.ToolTip>
                            <TextBlock telerik:LocalizationManager.ResourceKey="SaveAndClose"/>
                        </ToolTipService.ToolTip>
                    </telerik:RadButton>
                    <telerik:RadButton Command="telerik:WindowCommands.Cancel" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </Grid>
        </ControlTemplate>
        <telerik:InvertedNullToVisibilityConverter x:Key="InvertedNullToVisibilityConverter"/>
        <Style x:Key="EditAppointmentDialogStyle" TargetType="telerik:SchedulerDialog">
            <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
            <Setter Property="Width" Value="500"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}"/>
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel HorizontalAlignment="Left" MaxWidth="400" Orientation="Horizontal">
                            <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 Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/EditAppointment.png" Stretch="None"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <SolidColorBrush x:Key="DialogGroupBorderBrush" Color="#FFD5DFE5"/>
        <telerik:EnumToBooleanConverter x:Key="EnumToBoolConverter"/>
        <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, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" telerik:StyleManager.Theme="{StaticResource Theme}">
                            <ContentPresenter telerik:LocalizationManager.ResourceKey="{TemplateBinding Header}"/>
                        </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" ContentTemplate="{TemplateBinding SelectedContentTemplate}" Content="{TemplateBinding SelectedContent}" Grid.Column="1" Duration="0:0:0.200" IsTabStop="False">
                                <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="telerik:SchedulerDialog">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel Orientation="Vertical">
                    <TextBlock Margin="10,8,0,0" Grid.Row="0" telerik:LocalizationManager.ResourceKey="AppointmentTime"/>
                    <Border BorderBrush="{StaticResource DialogGroupBorderBrush}" BorderThickness="1" CornerRadius="5" Margin="10,3,10,5" Padding="0,0,0,4">
                        <Grid HorizontalAlignment="Center">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Column="0" Foreground="{StaticResource RadScheduleForeground}" MinWidth="65" Grid.Row="0" telerik:LocalizationManager.ResourceKey="StartColon" VerticalAlignment="Center"/>
                            <telerik:RadDateTimePicker x:Name="StartTimePicker" Grid.Column="1" InputMode="TimePicker" Margin="3" Grid.Row="0" SelectedValue="{Binding Start, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" Width="120"/>
                            <TextBlock Grid.Column="0" Foreground="{StaticResource RadScheduleForeground}" MinWidth="65" Grid.Row="1" telerik:LocalizationManager.ResourceKey="EndColon" VerticalAlignment="Center"/>
                            <telerik:RadDateTimePicker x:Name="EndTimePicker" Grid.Column="1" InputMode="TimePicker" Margin="3" Grid.Row="1" SelectedValue="{Binding End, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" Width="120"/>
                            <TextBlock Grid.Column="2" Foreground="{StaticResource RadScheduleForeground}" Margin="18 0 0 0" MinWidth="65" Grid.RowSpan="2" telerik:LocalizationManager.ResourceKey="DurationColon" VerticalAlignment="Center"/>
                            <scheduleVieW:DurationPicker x:Name="DurationPicker" Grid.Column="3" Margin="3" Grid.RowSpan="2" SelectedDuration="{Binding Duration, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="120"/>
                        </Grid>
                    </Border>
                </StackPanel>
                <StackPanel Orientation="Vertical" Grid.Row="1">
                    <TextBlock Margin="10 5 0 0" Grid.Row="0" telerik:LocalizationManager.ResourceKey="RecurrencePattern"/>
                    <Border BorderBrush="{StaticResource DialogGroupBorderBrush}" BorderThickness="1" CornerRadius="5" Margin="10,3,10,5">
                        <telerik:RadTabControl Style="{StaticResource RepeatSelectionTabControlStyle}" telerik:StyleManager.Theme="{StaticResource Theme}">
                            <telerik:RadTabItem x:Name="RepeatDaily" Header="Daily" IsSelected="{Binding RecurrenceType, ConverterParameter=Daily;WeekDays, Converter={StaticResource EnumToBoolConverter}}" Style="{StaticResource RepeatSelectionTabItemControlStyle}">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <StackPanel Orientation="Horizontal" Grid.Row="0">
                                        <RadioButton x:Name="DailyRB" GroupName="DailyGroup" IsChecked="{Binding RecurrenceType, ConverterParameter=Daily, Converter={StaticResource EnumToBoolConverter}}" Margin="3" telerik:LocalizationManager.ResourceKey="Every" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                        <telerik:RadNumericUpDown x:Name="DailyDetailsUpDown" IsInteger="True" Maximum="999" Margin="3" MinWidth="70" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding Interval, Mode=TwoWay}" VerticalAlignment="Center"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="Days" VerticalAlignment="Center"/>
                                    </StackPanel>
                                    <RadioButton x:Name="WorkdaysRB" GroupName="DailyGroup" IsChecked="{Binding RecurrenceType, ConverterParameter=WeekDays, Converter={StaticResource EnumToBoolConverter}}" Margin="3" Grid.Row="1" telerik:LocalizationManager.ResourceKey="EveryWeekday" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                </Grid>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem x:Name="RepeatWeekly" Header="Weekly" IsSelected="{Binding RecurrenceType, ConverterParameter=Weekly, Converter={StaticResource EnumToBoolConverter}}" Style="{StaticResource RepeatSelectionTabItemControlStyle}">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <StackPanel Orientation="Horizontal" Grid.Row="0">
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="RecurEvery" VerticalAlignment="Center"/>
                                        <telerik:RadNumericUpDown x:Name="EveryWeekUpDown" IsInteger="True" Maximum="99" Margin="3" MinWidth="70" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding Interval, Mode=TwoWay}" VerticalAlignment="Center"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="WeeksOn" VerticalAlignment="Center"/>
                                    </StackPanel>
                                    <ItemsControl IsTabStop="False" ItemsSource="{Binding WeekDays}" Grid.Row="1">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <telerik:RadUniformGrid Rows="2"/>
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                        <ItemsControl.ItemTemplate>
                                            <DataTemplate>
                                                <CheckBox Content="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}" Margin="3 3 12 3" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                                            </DataTemplate>
                                        </ItemsControl.ItemTemplate>
                                    </ItemsControl>
                                </Grid>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem x:Name="RepeatMonthly" Header="Monthly" IsSelected="{Binding RecurrenceType, ConverterParameter=Monthly;MonthlyNth, Converter={StaticResource EnumToBoolConverter}}" Style="{StaticResource RepeatSelectionTabItemControlStyle}">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <StackPanel Orientation="Horizontal" Grid.Row="0">
                                        <RadioButton x:Name="MonthlyRB" GroupName="MonthlyButtons" IsChecked="{Binding RecurrenceType, ConverterParameter=Monthly, Converter={StaticResource EnumToBoolConverter}}" Margin="3" telerik:LocalizationManager.ResourceKey="Day" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                        <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown1" IsInteger="True" Maximum="31" Margin="3" MinWidth="70" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding DayOfMonth, Mode=TwoWay}" VerticalAlignment="Center"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="OfEvery" VerticalAlignment="Center"/>
                                        <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown2" IsInteger="True" Maximum="99" Margin="3" MinWidth="70" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding Interval, Mode=TwoWay}" VerticalAlignment="Center"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="Months" VerticalAlignment="Center"/>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal" Grid.Row="1">
                                        <RadioButton x:Name="MonthlyNthRB" GroupName="MonthlyButtons" IsChecked="{Binding RecurrenceType, ConverterParameter=MonthlyNth, Converter={StaticResource EnumToBoolConverter}}" Margin="3" telerik:LocalizationManager.ResourceKey="The" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                        <telerik:RadComboBox DisplayMemberPath="Name" ItemsSource="{Binding WeekOfMonths}" Margin="3" SelectedValuePath="Value" SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="70"/>
                                        <telerik:RadComboBox DisplayMemberPath="Name" ItemsSource="{Binding NthRecurrenceDays}" Margin="3" SelectedValuePath="Value" SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="100"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="OfEvery" VerticalAlignment="Center"/>
                                        <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown3" IsInteger="True" Maximum="99" Margin="3" MinWidth="70" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding Interval, Mode=TwoWay}" VerticalAlignment="Center"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="Months" VerticalAlignment="Center"/>
                                    </StackPanel>
                                </Grid>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem x:Name="RepeatYearly" Header="Yearly" IsSelected="{Binding RecurrenceType, ConverterParameter=Yearly;YearlyNth, Converter={StaticResource EnumToBoolConverter}}" Style="{StaticResource RepeatSelectionTabItemControlStyle}">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="50*"/>
                                        <RowDefinition Height="50*"/>
                                    </Grid.RowDefinitions>
                                    <StackPanel Orientation="Horizontal" Grid.Row="0">
                                        <RadioButton x:Name="YearlyRB" GroupName="YearlyGroup" IsChecked="{Binding RecurrenceType, ConverterParameter=Yearly, Converter={StaticResource EnumToBoolConverter}}" Margin="3" telerik:LocalizationManager.ResourceKey="Every" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                        <telerik:RadComboBox x:Name="YearlyDetails12" DisplayMemberPath="Value" ItemsSource="{Binding NamesOfMonths}" Margin="3" SelectedValuePath="Key" SelectedValue="{Binding MonthOfYear, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="100"/>
                                        <telerik:RadNumericUpDown x:Name="YearlyDetailsUpDown3" IsInteger="True" Maximum="31" Margin="3" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding DayOfMonth, Mode=TwoWay}" VerticalAlignment="Center" Width="70"/>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal" Grid.Row="1">
                                        <RadioButton x:Name="YearlyNthRB" GroupName="YearlyGroup" IsChecked="{Binding RecurrenceType, ConverterParameter=YearlyNth, Converter={StaticResource EnumToBoolConverter}}" Margin="3" telerik:LocalizationManager.ResourceKey="The" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                        <telerik:RadComboBox x:Name="YearlyDetails21" DisplayMemberPath="Name" ItemsSource="{Binding WeekOfMonths}" Margin="3" SelectedValuePath="Value" SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="80"/>
                                        <telerik:RadComboBox x:Name="YearlyDetails22" DisplayMemberPath="Name" ItemsSource="{Binding NthRecurrenceDays}" Margin="3" SelectedValuePath="Value" SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="100"/>
                                        <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="Of" VerticalAlignment="Center"/>
                                        <telerik:RadComboBox x:Name="YearlyDetails23" DisplayMemberPath="Value" ItemsSource="{Binding NamesOfMonths}" Margin="3" SelectedValuePath="Key" SelectedValue="{Binding MonthOfYear, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="100"/>
                                    </StackPanel>
                                </Grid>
                            </telerik:RadTabItem>
                        </telerik:RadTabControl>
                    </Border>
                </StackPanel>
                <StackPanel Orientation="Vertical" Grid.Row="2">
                    <TextBlock Margin="8,5,0,0" telerik:LocalizationManager.ResourceKey="RangeOfRecurrence"/>
                    <Border BorderBrush="{StaticResource DialogGroupBorderBrush}" BorderThickness="1" CornerRadius="5" Margin="10,3,10,5">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"/>
                                <ColumnDefinition Width="2*"/>
                            </Grid.ColumnDefinitions>
                            <StackPanel Grid.Column="0" Orientation="Horizontal">
                                <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="StartColon" VerticalAlignment="Center"/>
                                <telerik:RadDatePicker x:Name="StartDate" Margin="3" SelectedValue="{Binding Start, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="100"/>
                            </StackPanel>
                            <telerik:RadUniformGrid Columns="1" Grid.Column="1">
                                <RadioButton x:Name="NoEndDate" IsChecked="{Binding RecurrenceRangeType, ConverterParameter=NoEndDate, Converter={StaticResource EnumToBoolConverter}, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="NoEndDate" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                <StackPanel Orientation="Horizontal">
                                    <RadioButton x:Name="EndAfter" IsChecked="{Binding RecurrenceRangeType, ConverterParameter=MaxOccurrences, Converter={StaticResource EnumToBoolConverter}, Mode=TwoWay}" Margin="3" MinWidth="100" telerik:LocalizationManager.ResourceKey="EndAfter" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                    <telerik:RadNumericUpDown x:Name="OccurencesUpDown" IsInteger="True" Maximum="9999" Margin="3" MinWidth="70" telerik:StyleManager.Theme="{StaticResource Theme}" Value="{Binding MaxOccurrences, Mode=TwoWay}" VerticalAlignment="Center"/>
                                    <TextBlock Foreground="{StaticResource RadScheduleForeground}" Margin="3" telerik:LocalizationManager.ResourceKey="Occurrences" VerticalAlignment="Center"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal">
                                    <RadioButton x:Name="EndBy" IsChecked="{Binding RecurrenceRangeType, ConverterParameter=RepeatUntil, Converter={StaticResource EnumToBoolConverter}, Mode=TwoWay}" Margin="3" MinWidth="70" telerik:LocalizationManager.ResourceKey="EndBy" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center"/>
                                    <telerik:RadDatePicker Margin="3" SelectedValue="{Binding RecursUntil, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalAlignment="Center" Width="120"/>
                                </StackPanel>
                            </telerik:RadUniformGrid>
                        </Grid>
                    </Border>
                </StackPanel>
                <StackPanel HorizontalAlignment="Right" Margin="13 6" Orientation="Horizontal" Grid.Row="3" VerticalAlignment="Bottom">
                    <telerik:RadButton x:Name="RemoveRecurrenceBtn" Command="telerik:RadScheduleViewCommands.DeleteRecurrenceRule" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="RemoveRecurrence" telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"/>
                    <telerik:RadButton x:Name="OKButton" Command="telerik:WindowCommands.Confirm" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <telerik:RadButton x:Name="CancelButton" Command="telerik:WindowCommands.Cancel" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </Grid>
        </ControlTemplate>
        <Style x:Key="EditRecurrenceDialogStyle" TargetType="telerik:SchedulerDialog">
            <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
            <Setter Property="Width" Value="550"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Template" Value="{StaticResource EditRecurrenceTemplate}"/>
            <Setter Property="IconTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <Image Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/EditAppointment.png" Stretch="None"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel HorizontalAlignment="Left" MaxWidth="450" Orientation="Horizontal">
                            <TextBlock Foreground="{StaticResource RadScheduleForeground}" telerik:LocalizationManager.ResourceKey="Event" Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                            <TextBlock Foreground="{StaticResource RadScheduleForeground}" telerik:LocalizationManager.ResourceKey="Appointment" Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"/>
                            <TextBlock Foreground="{StaticResource RadScheduleForeground}" Text=" - "/>
                            <TextBlock x:Name="SubjectTextBlock" Foreground="{StaticResource RadScheduleForeground}" Text="{Binding Appointment.Subject}" Visibility="{Binding Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                            <TextBlock Foreground="{StaticResource RadScheduleForeground}" telerik:LocalizationManager.ResourceKey="Untitled" Visibility="{Binding Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ControlTemplate x:Key="DeleteAppointmentConfirmTemplate" TargetType="telerik:SchedulerDialog">
            <StackPanel>
                <Grid>
                    <Image HorizontalAlignment="Left" Margin="15" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/del_big.png" Stretch="None" VerticalAlignment="Center"/>
                    <TextBlock Margin="85 15 15 15" telerik:LocalizationManager.ResourceKey="DeleteItemQuestion" TextWrapping="Wrap" VerticalAlignment="Center"/>
                </Grid>
                <StackPanel x:Name="FooterControls" HorizontalAlignment="Right" Margin="13 6" Orientation="Horizontal" Grid.Row="2" VerticalAlignment="Bottom">
                    <telerik:RadButton Command="telerik:WindowCommands.Confirm" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <telerik:RadButton Command="telerik:WindowCommands.Cancel" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </StackPanel>
        </ControlTemplate>
        <Style x:Key="DeleteAppointmentConfirmDialogStyle" TargetType="telerik:SchedulerDialog">
            <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
            <Setter Property="Width" Value="300"/>
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock MaxWidth="200" telerik:LocalizationManager.ResourceKey="DeleteItem"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Template" Value="{StaticResource DeleteAppointmentConfirmTemplate}"/>
        </Style>
        <ControlTemplate x:Key="RecurrenceChoiceTemplate" TargetType="telerik:SchedulerDialog">
            <StackPanel>
                <Grid>
                    <Image HorizontalAlignment="Left" Margin="15" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/del_big.png" Stretch="None" VerticalAlignment="Center"/>
                    <StackPanel Margin="85 15 15 15" VerticalAlignment="Top">
                        <TextBlock x:Name="SubjectTextBlock" 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 GroupName="RecurrenceModeChoice" IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="OpenOccurrence" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                        <RadioButton GroupName="RecurrenceModeChoice" IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="OpenSeries" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    </StackPanel>
                </Grid>
                <StackPanel x:Name="FooterControls" HorizontalAlignment="Right" Margin="13 6" Orientation="Horizontal" Grid.Row="2" VerticalAlignment="Bottom">
                    <telerik:RadButton Command="telerik:WindowCommands.Confirm" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <telerik:RadButton Command="telerik:WindowCommands.Cancel" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </StackPanel>
        </ControlTemplate>
        <Style x:Key="RecurrenceChoiceDialogStyle" TargetType="telerik:SchedulerDialog">
            <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
            <Setter Property="Width" Value="300"/>
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock HorizontalAlignment="Left" MaxWidth="200" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Template" Value="{StaticResource RecurrenceChoiceTemplate}"/>
        </Style>
        <ControlTemplate x:Key="RecurrenceChoiceDeletingTemplate" TargetType="telerik:SchedulerDialog">
            <StackPanel>
                <Grid>
                    <Image HorizontalAlignment="Left" Margin="15" Source="/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/del_big.png" Stretch="None" VerticalAlignment="Center"/>
                    <StackPanel Margin="85 15 15 15" VerticalAlignment="Top">
                        <TextBlock x:Name="SubjectTextBlock" 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 GroupName="RecurrenceModeChoiceDel" IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="DeleteOccurrence" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                        <RadioButton GroupName="RecurrenceModeChoiceDel" IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="DeleteSeries" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    </StackPanel>
                </Grid>
                <StackPanel x:Name="FooterControls" HorizontalAlignment="Right" Margin="13 6" Orientation="Horizontal" Grid.Row="2" VerticalAlignment="Bottom">
                    <telerik:RadButton Command="telerik:WindowCommands.Confirm" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <telerik:RadButton Command="telerik:WindowCommands.Cancel" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </StackPanel>
        </ControlTemplate>
        <Style x:Key="RecurrenceChoiceDeleteDialogStyle" TargetType="telerik:SchedulerDialog">
            <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
            <Setter Property="Width" Value="300"/>
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock HorizontalAlignment="Left" MaxWidth="200" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Template" Value="{StaticResource RecurrenceChoiceDeletingTemplate}"/>
        </Style>
        <ControlTemplate x:Key="RecurrenceChoiceResizeTemplate" TargetType="telerik:SchedulerDialog">
            <StackPanel>
                <StackPanel Margin="15 15 15 15" VerticalAlignment="Top">
                    <TextBlock x:Name="SubjectTextBlock" 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}}"/>
                    <TextBlock Margin="3" telerik:LocalizationManager.ResourceKey="ResizeRecurringItemQuestion" TextWrapping="Wrap" Width="250"/>
                    <RadioButton GroupName="RecurrenceModeChoice" IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="ResizeOccurrence" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <RadioButton GroupName="RecurrenceModeChoice" IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}" Margin="3" telerik:LocalizationManager.ResourceKey="ResizeSeries" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
                <StackPanel x:Name="FooterControls" HorizontalAlignment="Right" Margin="13 6" Orientation="Horizontal" Grid.Row="2" VerticalAlignment="Bottom">
                    <telerik:RadButton Command="telerik:WindowCommands.Confirm" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Ok" telerik:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <telerik:RadButton Command="telerik:WindowCommands.Cancel" Margin="2" MinWidth="84" telerik:LocalizationManager.ResourceKey="Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </StackPanel>
        </ControlTemplate>
        <Style x:Key="RecurrenceChoiceResizeDialogStyle" TargetType="telerik:SchedulerDialog">
            <Setter Property="Foreground" Value="{StaticResource RadScheduleForeground}"/>
            <Setter