<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:telerikScheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
        mc:Ignorable="c"
        xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:scheduleView="clr-namespace:Telerik.Windows.Controls.ScheduleView;assembly=Telerik.Windows.Controls.ScheduleView"
        xmlns:dragDrop="clr-namespace:Telerik.Windows.DragDrop;assembly=Telerik.Windows.Controls"
        xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
        xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation">
    <ResourceDictionary.MergedDictionaries>
        <telerik:Windows8ResourceDictionary/>
    </ResourceDictionary.MergedDictionaries>
    <telerik:Windows8Colors x:Key="Windows8Colors"/>
    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
    <telerikScheduleView:InvertedNullToVisibilityConverter x:Key="InvertedNullToVisibilityConverter"/>
    <telerikScheduleView:InvertedVisibilityConverter x:Key="InvertedVisibilityConverter"/>
    <scheduleView:AppointmentsSubjectToLocalizatedStringConverter DefaultTextKey="Untitled" x:Key="AppointmentsSubjectToLocalizatedStringConverter"/>
    <telerikScheduleView:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>
    <telerikScheduleView:BoolToInputModeConverter x:Key="BoolToInputModeConverter"/>
    <telerikScheduleView:ResourcesSeparatorConverter x:Key="ResourcesSeparatorConverter"/>
    <telerik:EnumToBooleanConverter x:Key="EnumToBoolConverter"/>
    <telerik:EnumToVisibilityConverter x:Key="EnumToVisibilityConverter"/>
    <telerikScheduleView:RecurrenceStateIsExeptionToVisibilityConverter x:Key="RecurrenceStateIsExeptionToVisibilityConverter"/>
    <telerikScheduleView:RecurrenceStateIsOccurenceToVisibilityConverter x:Key="RecurrenceStateIsOccurenceToVisibilityConverter"/>
    <telerikScheduleView:DraggedAppointmentsToLocalizedStringConverter x:Key="DraggedAppointmentsToLocalizedStringConverter"/>
    <telerikScheduleView:EnumerableCountToVisibilityConverter x:Key="EnumerableCountToVisibilityConverter"/>
    <telerikScheduleView:IntArrayToDoubleValueConverter x:Key="MultipleToSingleConverter"/>
    <telerik:LocalizationManager x:Key="LocalizationManager"/>
    <Thickness x:Key="HorizontalGroupHeaderTodayBorderThickness">1 0 0 1</Thickness>
    <ControlTemplate x:Key="CalendarIcon" TargetType="ContentControl">
        <Border Background="Transparent">
            <Path
                    Data="M188,502L188,481.207C188,480.257,188.771,479.484,189.723,479.484L190.473,479.484L190.473,484.786L197.551,484.786L197.551,479.484L202.568,479.484L202.568,484.786L209.645,484.786L209.645,479.484L210.516,479.484C211.465,479.484,212.237,480.257,212.237,481.207L212.237,502C212.237,502.949,211.465,503.722,210.516,503.722L189.723,503.722C188.771,503.722,188,502.949,188,502 M209.746,487.307L190.503,487.307L190.503,501.544L209.746,501.544z M198.362,499.882L198.186,499.779C197.602,499.439,197.403,498.687,197.744,498.102L201.192,492.208L197.258,492.208C196.581,492.208,196.031,491.658,196.031,490.98L196.031,490.777C196.031,490.102,196.581,489.551,197.258,489.551L203.483,489.551C204.107,489.551,204.623,490.02,204.7,490.623C204.813,490.949,204.788,491.32,204.602,491.643L200.04,499.441C199.699,500.025,198.947,500.223,198.362,499.882 M192.369,482.613L192.369,477.786C192.354,477.697,192.348,477.607,192.348,477.514C192.348,476.605,193.085,475.867,193.994,475.867C194.885,475.867,195.611,476.578,195.639,477.461L195.654,477.461L195.654,482.613z M204.465,482.613L204.463,477.857C204.439,477.747,204.428,477.632,204.428,477.514C204.428,476.605,205.166,475.867,206.075,475.867C206.965,475.867,207.692,476.578,207.721,477.461L207.749,477.461L207.749,482.613z"
                    Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"
                    Stretch="Fill"
                    Width="14"
                    Height="16"/>
        </Border>
    </ControlTemplate>
    <ImageSource x:Key="AppointmentItem_Recurrence">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentException_Metro.png</ImageSource>
    <ImageSource x:Key="AppointmentItem_Exception">/Telerik.Windows.Controls.ScheduleView;component/Themes/Images/AppointmentRecurrence_Metro.png</ImageSource>
    <SolidColorBrush x:Key="RedCategoryBrush" Color="#FFE61E26"/>
    <SolidColorBrush x:Key="GreenCategoryBrush" Color="#FF80AD30"/>
    <SolidColorBrush x:Key="BlueCategoryBrush" Color="#FF25A0DA"/>
    <SolidColorBrush x:Key="PurpleCategoryBrush" Color="#FF7E51A1"/>
    <SolidColorBrush x:Key="YellowCategoryBrush" Color="#FFF1C700"/>
    <SolidColorBrush x:Key="OliveCategoryBrush" Color="#FF986827"/>
    <SolidColorBrush x:Key="PinkCategoryBrush" Color="#FFDA0780"/>
    <SolidColorBrush x:Key="OrangeCategoryBrush" Color="#FFFF6900"/>
    <SolidColorBrush x:Key="FreeMarkerBrush" Color="#FF309B46"/>
    <SolidColorBrush x:Key="TentativeMarkerBrush" Color="#FF41229B"/>
    <SolidColorBrush x:Key="BusyMarkerBrush" Color="#FFE61E26"/>
    <SolidColorBrush x:Key="OutOfOfficeMarkerBrush" Color="#FFF1C700"/>
    <telerik1:InvertedBooleanConverter x:Key="InvertedBooleanConverter"/>
    <SolidColorBrush x:Key="TransparentBrush" Color="#01FFFFFF"/>
    <CornerRadius x:Key="ValidationTooltip_CornerRadius">0</CornerRadius>
    <ControlTemplate x:Key="ErrorTooltipTemplate" TargetType="ToolTip">
        <Grid x:Name="RootVisual" HorizontalAlignment="Right" RenderTransformOrigin="0 0" Opacity="0" Margin="5 0">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OpenStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0"/>
                        <VisualTransition To="Open" GeneratedDuration="0:0:0.2">
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.2">
                                    <DoubleAnimation.EasingFunction>
                                        <BackEase Amplitude=".3" EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                                <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.2"/>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="0" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0"/>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Grid>
                <Path
                        Width="4"
                        Height="8"
                        Data="M4,0 L0,4 4,8Z"
                        Stretch="None"
                        Fill="{telerik1:Windows8Resource ResourceKey=ValidationBrush}"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Top"/>
                <Border Background="{telerik1:Windows8Resource ResourceKey=ValidationBrush}" Margin="4 0 0 0" Padding="1">
                    <ContentPresenter Content="{Binding ErrorContent}" TextBlock.Foreground="{telerik1:Windows8Resource ResourceKey=MainBrush}" Margin="4 2"/>
                </Border>
            </Grid>
            <ContentControl/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="ValidationTooltipTemplate">
        <Grid SnapsToDevicePixels="True" VerticalAlignment="Top">
            <Border Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top" Width="3" Height="3"/>
            <AdornedElementPlaceholder x:Name="Holder"/>
            <Border BorderBrush="{telerik1:Windows8Resource ResourceKey=ValidationBrush}" BorderThickness="1" CornerRadius="{StaticResource ValidationTooltip_CornerRadius}"/>
            <Path Data="M0,2 L5,2 5,7 Z" Fill="{telerik1:Windows8Resource ResourceKey=ValidationBrush}" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <ToolTipService.ToolTip>
                <ToolTip x:Name="PART_ToolTip"
                        DataContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=PlacementTarget.DataContext}"
                        Template="{StaticResource ErrorTooltipTemplate}"
                        Placement="Right"/>
            </ToolTipService.ToolTip>
        </Grid>
    </ControlTemplate>
    <telerikScheduleView:ResourceTypeTemplateSelector x:Key="ResourcesEditorItemTemplateSelector">
        <telerikScheduleView:ResourceTypeTemplateSelector.SingleSelectionTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="100" SharedSizeGroup="LabelsGroup"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding ResourceType.DisplayName}" Margin="6"/>
                    <telerik:RadComboBox
                            Grid.Column="1"
                            Margin="3"
                            ItemsSource="{Binding ResourceItems}"
                            ClearSelectionButtonVisibility="Visible"
                            ClearSelectionButtonContent="{Binding ClearAllButtonContent}"
                            SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                            DisplayMemberPath="Resource.DisplayName"/>
                </Grid>
            </DataTemplate>
        </telerikScheduleView:ResourceTypeTemplateSelector.SingleSelectionTemplate>
        <telerikScheduleView:ResourceTypeTemplateSelector.MultipleSelectionTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="100" SharedSizeGroup="LabelsGroup"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding ResourceType.DisplayName}" Margin="6"/>
                    <telerik:RadComboBox
                            Grid.Column="1"
                            Margin="3"
                            ItemsSource="{Binding ResourceItems}"
                            ClearSelectionButtonVisibility="Visible"
                            ClearSelectionButtonContent="{Binding ClearAllButtonContent}"
                            SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}">
                        <telerik:RadComboBox.ItemContainerStyle>
                            <Style TargetType="telerik:RadComboBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate>
                                            <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" Content="{Binding Resource.DisplayName}"/>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </telerik:RadComboBox.ItemContainerStyle>
                        <telerik:RadComboBox.SelectionBoxTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ResourcesSeparatorConverter}}"/>
                            </DataTemplate>
                        </telerik:RadComboBox.SelectionBoxTemplate>
                    </telerik:RadComboBox>
                </Grid>
            </DataTemplate>
        </telerikScheduleView:ResourceTypeTemplateSelector.MultipleSelectionTemplate>
    </telerikScheduleView:ResourceTypeTemplateSelector>
    <DataTemplate x:Key="TimeMarkerComboBoxItemContentTemplate">
        <StackPanel Orientation="Horizontal">
            <Rectangle Fill="{Binding TimeMarkerBrush}" Margin="2 0" Width="12" Height="12"/>
            <TextBlock telerik:LocalizationManager.ResourceKey="{Binding TimeMarkerName}" Margin="2 0"/>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="CategoryComboBoxItemContentTemplate">
        <StackPanel Orientation="Horizontal">
            <Rectangle Fill="{Binding CategoryBrush}" Margin="2 0" Width="12" Height="12"/>
            <TextBlock Text="{Binding DisplayName}" Margin="2 0"/>
        </StackPanel>
    </DataTemplate>
    <ControlTemplate x:Key="LowImportanceMarkTemplate">
        <Grid>
            <Border
                    Width="{TemplateBinding Width}"
                    Height="{TemplateBinding Height}"
                    CornerRadius="5"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Background="{telerik:Windows8Resource ResourceKey=MainBrush}">
                <Grid>
                    <Path
                            Data="F1M329.667,242.3496L324.512,236.8906L324.512,241.3296L331.411,248.6386L338.28,241.3636L338.28,236.9226L333.152,242.3496L333.152,230.0356L329.667,230.0356z"
                            Stretch="Fill"
                            Margin="2 1"
                            Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                </Grid>
            </Border>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="HighImportanceMarkTemplate">
        <Grid>
            <Border
                    Width="{TemplateBinding Width}"
                    Height="{TemplateBinding Height}"
                    CornerRadius="5"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Background="{telerik:Windows8Resource ResourceKey=ValidationBrush}">
                <Grid>
                    <Rectangle Height="2" Margin="4 0 4 1" VerticalAlignment="Bottom" Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
                    <Rectangle Margin="4 1 4 4" Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
                </Grid>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="ImportanceMarkContentControlStyle" TargetType="ContentControl">
        <Setter Property="Width" Value="10"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
    </Style>
    <ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <Grid IsSharedSizeScope="True">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <telerik:RadToolBar x:Name="AppointmentToolbar" BorderThickness="0 0 0 1" GripVisibility="Collapsed" Grid.Row="0" Margin="-1 0 -1 3" FocusManager.IsFocusScope="False">
                <telerik:RadButton x:Name="EditRecurrenceButton"
                        AutomationProperties.AutomationId="EditRecurrenceButton"
                        Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditRecurrenceRule}"
                        Visibility="{Binding CanEditParentAppointment, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                    <ToolTipService.ToolTip>
                        <ToolTip telerik:LocalizationManager.ResourceKey="EditRecurrence"/>
                    </ToolTipService.ToolTip>
                    <TextBlock Margin="6 0" telerik:LocalizationManager.ResourceKey="EditRecurrence" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                </telerik:RadButton>
                <telerik:RadButton x:Name="EditParentAppointmentButton"
                        AutomationProperties.AutomationId="EditParentAppointmentButton"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditParentAppointment}"
                        Visibility="{Binding CanEditParentAppointment, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <ToolTipService.ToolTip>
                        <TextBlock telerik:LocalizationManager.ResourceKey="EditParentAppointment"/>
                    </ToolTipService.ToolTip>
                    <TextBlock Margin="4 0" telerik:LocalizationManager.ResourceKey="EditParentAppointment" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                </telerik:RadButton>
                <telerik:RadToolBarSeparator/>
                <TextBlock x:Name="ShowAs"
                        telerik:LocalizationManager.ResourceKey="ShowAs"
                        VerticalAlignment="Center"
                        Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                        Margin="6 0"/>
                <telerik:RadComboBox x:Name="PART_TimeMarkers"
                        AutomationProperties.AutomationId="PART_TimeMarkers"
                        Width="110"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        EmptyText="{Binding TimeMarkersEmptyText}"
                        ItemsSource="{Binding TimeMarkers}"
                        SelectedItem="{Binding Occurrence.Appointment.TimeMarker, Mode=TwoWay}"
                        ClearSelectionButtonVisibility="Visible"
                        ClearSelectionButtonContent="{Binding ClearSelectionButtonContent}"
                        ItemTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}"
                        SelectionBoxTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}"
                        Margin="2 1"/>
                <telerik:RadComboBox x:Name="PART_Categories"
                        AutomationProperties.AutomationId="PART_Categories"
                        Width="130"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        EmptyText="{Binding CategoriesEmptyText}"
                        ItemsSource="{Binding Categories}"
                        SelectedItem="{Binding Occurrence.Appointment.Category, Mode=TwoWay}"
                        ClearSelectionButtonVisibility="Visible"
                        ClearSelectionButtonContent="{Binding ClearSelectionButtonContent}"
                        ItemTemplate="{StaticResource CategoryComboBoxItemContentTemplate}"
                        SelectionBoxTemplate="{StaticResource CategoryComboBoxItemContentTemplate}"
                        Margin="2 1"/>
                <telerik:RadToggleButton x:Name="HighImportaceButton"
                        AutomationProperties.AutomationId="HighImportaceButton"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        IsChecked="{Binding IsHighImportance, Mode=TwoWay}"
                        Width="22"
                        Height="22">
                    <ToolTipService.ToolTip>
                        <ToolTip telerik:LocalizationManager.ResourceKey="HighImportance"/>
                    </ToolTipService.ToolTip>
                    <ContentControl x:Name="HighImportanceMark" Template="{StaticResource HighImportanceMarkTemplate}" Margin="2 1 1 0" Style="{StaticResource ImportanceMarkContentControlStyle}"/>
                </telerik:RadToggleButton>
                <telerik:RadToggleButton x:Name="LowImportaceButton"
                        AutomationProperties.AutomationId="LowImportaceButton"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        IsChecked="{Binding IsLowImportance, Mode=TwoWay}"
                        Width="22"
                        Height="22">
                    <ToolTipService.ToolTip>
                        <ToolTip telerik:LocalizationManager.ResourceKey="LowImportance"/>
                    </ToolTipService.ToolTip>
                    <ContentControl x:Name="LowImportanceMark" Template="{StaticResource LowImportanceMarkTemplate}" Margin="2 1 1 0" Style="{StaticResource ImportanceMarkContentControlStyle}"/>
                </telerik:RadToggleButton>
            </telerik:RadToolBar>
            <Border x:Name="AppointmentCategory"
                    Grid.Row="1"
                    Height="20"
                    Margin="6 6"
                    Background="{Binding SelectedItem.CategoryBrush, ElementName=PART_Categories}"
                    Visibility="{Binding SelectedItem, ElementName=PART_Categories,Converter={StaticResource NullToVisibilityConverter}}">
                <TextBlock
                        Margin="6 0"
                        Text="{Binding SelectedItem.DisplayName, ElementName=PART_Categories}"
                        Foreground="{telerik1:Windows8Resource ResourceKey=MainBrush}"
                        VerticalAlignment="Center"/>
            </Border>
            <Grid x:Name="Details" Grid.Row="2" Margin="6">
                <Grid.Resources>
                    <telerik:InputMode x:Key="RadDateTimePickerInputModeDatePicker">DatePicker</telerik:InputMode>
                </Grid.Resources>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MinWidth="100" SharedSizeGroup="LabelsGroup"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Subject"/>
                <TextBox
                        AutomationProperties.AutomationId="SubjectTextBox"
                        Grid.Row="0"
                        Grid.Column="1"
                        Grid.ColumnSpan="2"
                        Margin="3"
                        IsReadOnly="{Binding IsReadOnly}"
                        Text="{Binding Occurrence.Appointment.Subject, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Body"/>
                <TextBox
                        AutomationProperties.AutomationId="DescriptionTextBox"
                        Grid.Row="1"
                        Grid.Column="1"
                        Grid.ColumnSpan="2"
                        Margin="3"
                        Height="70"
                        IsReadOnly="{Binding IsReadOnly}"
                        VerticalAlignment="Stretch"
                        VerticalContentAlignment="Stretch"
                        VerticalScrollBarVisibility="Visible"
                        Text="{Binding Occurrence.Appointment.Body, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"
                        TextWrapping="Wrap"/>
                <TextBlock Grid.Row="2" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="StartTime"/>
                <telerik:RadDateTimePicker
                        AutomationProperties.AutomationId="StartTimeDateTimePicker"
                        Grid.Row="2"
                        Grid.Column="1"
                        Margin="3"
                        IsReadOnly="{Binding IsReadOnly}"
                        Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"
                        SelectedValue="{Binding ActualStart, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"
                        IsEnabled="{Binding IsNotRecurrent}"
                        InputMode="{Binding IsAllDayEvent, Converter={StaticResource BoolToInputModeConverter}, ConverterParameter={x:Static telerik:InputMode.DatePicker}}"/>
                <TextBlock Grid.Row="3" Grid.Column="0" Margin="6" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="EndTime"/>
                <telerik:RadDateTimePicker
                        AutomationProperties.AutomationId="EndTimeDateTimePicker"
                        Grid.Row="3"
                        SelectedValue="{Binding ActualEnd, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay}"
                        Grid.Column="1"
                        Margin="3"
                        IsReadOnly="{Binding IsReadOnly}"
                        Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"
                        IsEnabled="{Binding IsNotRecurrent}"
                        InputMode="{Binding IsAllDayEvent, Converter={StaticResource BoolToInputModeConverter}, ConverterParameter={x:Static telerik:InputMode.DatePicker}}"/>
                <CheckBox x:Name="AllDayEventCheckbox"
                        AutomationProperties.AutomationId="AllDayEventCheckbox"
                        Grid.Row="4"
                        Grid.Column="1"
                        Margin="3"
                        VerticalAlignment="Center"
                        IsChecked="{Binding Path=IsAllDayEvent, Mode=TwoWay}"
                        IsEnabled="{Binding IsNotRecurrent}"
                        telerik:LocalizationManager.ResourceKey="AllDayEvent"/>
            </Grid>
            <Grid Grid.Row="3" Margin="3" Visibility="{Binding ResourceTypesVisibility}">
                <ItemsControl x:Name="PART_Resources"
                        Margin="3"
                        IsTabStop="False"
                        BorderBrush="{x:Null}"
                        BorderThickness="0"
                        HorizontalContentAlignment="Stretch"
                        VerticalContentAlignment="Stretch"
                        IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                        ItemsSource="{Binding ResourceTypes}"
                        ItemTemplateSelector="{StaticResource ResourcesEditorItemTemplateSelector}"
                        Visibility="{Binding ResourceTypesVisibility}"/>
                <TextBlock
                        HorizontalAlignment="Center"
                        Text="You can only change the resources by opening the series"
                        Margin="3"
                        Visibility="{Binding ResourceTypesVisibility, Converter={StaticResource InvertedVisibilityConverter}}"/>
            </Grid>
            <StackPanel Grid.Row="4" HorizontalAlignment="Right" Orientation="Horizontal" Margin="13 6 13 6">
                <telerik:RadButton
                        Margin="2"
                        MinWidth="84"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        AutomationProperties.AutomationId="OKButton"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        telerik:RadWindow.ResponseButton="Accept">
                    <ToolTipService.ToolTip>
                        <TextBlock telerik:LocalizationManager.ResourceKey="SaveAndClose"/>
                    </ToolTipService.ToolTip>
                </telerik:RadButton>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <Style x:Key="EditAppointmentDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="560"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" MaxWidth="400" HorizontalAlignment="Left">
                        <TextBlock telerik:LocalizationManager.ResourceKey="Event" Visibility="{Binding Occurrence.Appointment.IsAllDayEvent, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Appointment" Visibility="{Binding Occurrence.Appointment.IsAllDayEvent, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"/>
                        <TextBlock Text="-"/>
                        <TextBlock x:Name="SubjectTextBlock" Text="{Binding Occurrence.Appointment.Subject}" Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Untitled" Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Path
                            Data="M188,502L188,481.207C188,480.257,188.771,479.484,189.723,479.484L190.473,479.484L190.473,484.786L197.551,484.786L197.551,479.484L202.568,479.484L202.568,484.786L209.645,484.786L209.645,479.484L210.516,479.484C211.465,479.484,212.237,480.257,212.237,481.207L212.237,502C212.237,502.949,211.465,503.722,210.516,503.722L189.723,503.722C188.771,503.722,188,502.949,188,502 M209.746,487.307L190.503,487.307L190.503,501.544L209.746,501.544z M198.362,499.882L198.186,499.779C197.602,499.439,197.403,498.687,197.744,498.102L201.192,492.208L197.258,492.208C196.581,492.208,196.031,491.658,196.031,490.98L196.031,490.777C196.031,490.102,196.581,489.551,197.258,489.551L203.483,489.551C204.107,489.551,204.623,490.02,204.7,490.623C204.813,490.949,204.788,491.32,204.602,491.643L200.04,499.441C199.699,500.025,198.947,500.223,198.362,499.882 M192.369,482.613L192.369,477.786C192.354,477.697,192.348,477.607,192.348,477.514C192.348,476.605,193.085,475.867,193.994,475.867C194.885,475.867,195.611,476.578,195.639,477.461L195.654,477.461L195.654,482.613z M204.465,482.613L204.463,477.857C204.439,477.747,204.428,477.632,204.428,477.514C204.428,476.605,205.166,475.867,206.075,475.867C206.965,475.867,207.692,476.578,207.721,477.461L207.749,477.461L207.749,482.613z"
                            Fill="{telerik1:Windows8Resource ResourceKey=MainBrush}"
                            Stretch="Fill"
                            Width="14"
                            Height="16"
                            Margin="0 0 2 0"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RepeatSelectionTabItemControlStyle" TargetType="telerik:RadTabItem">
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadTabItem">
                    <RadioButton IsChecked="{Binding IsSelected, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
                        <ContentPresenter telerik:LocalizationManager.ResourceKey="{TemplateBinding Header}" RecognizesAccessKey="True"/>
                    </RadioButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RepeatSelectionTabControlStyle" TargetType="telerik:RadTabControl">
        <Setter Property="TabStripPlacement" Value="Top"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource RepeatSelectionTabItemControlStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadTabControl">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ItemsPresenter Grid.Column="0" Margin="3 6 30 6" VerticalAlignment="Center"/>
                        <telerik:RadTransitionControl x:Name="ContentElement"
                                Grid.Column="1"
                                IsTabStop="False"
                                Duration="0:0:0.200"
                                Content="{TemplateBinding SelectedContent}"
                                ContentTemplate="{TemplateBinding SelectedContentTemplate}">
                            <telerik:RadTransitionControl.Transition>
                                <telerik:SlideAndZoomTransition/>
                            </telerik:RadTransitionControl.Transition>
                        </telerik:RadTransitionControl>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="EditRecurrenceTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <telerik:GroupBox x:Name="StartEndTimes" Margin="3" telerik:LocalizationManager.ResourceKey="AppointmentTime">
                <Grid HorizontalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <telerik:Label
                            Grid.Row="0"
                            Grid.Column="0"
                            MinWidth="65"
                            VerticalAlignment="Center"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            Target="{Binding ElementName=StartTimePicker}"
                            telerik:LocalizationManager.ResourceKey="StartColon"/>
                    <telerik:RadDateTimePicker x:Name="StartTimePicker"
                            AutomationProperties.AutomationId="StartTimePicker"
                            Grid.Row="0"
                            Grid.Column="1"
                            Margin="3"
                            Width="120"
                            IsReadOnly="{Binding IsReadOnly}"
                            SelectedValue="{Binding Start, Mode=TwoWay}"
                            InputMode="TimePicker"
                            Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                    <telerik:Label
                            Grid.Row="1"
                            Grid.Column="0"
                            MinWidth="65"
                            VerticalAlignment="Center"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            Target="{Binding ElementName=EndTimePicker}"
                            telerik:LocalizationManager.ResourceKey="EndColon"/>
                    <telerik:RadDateTimePicker x:Name="EndTimePicker"
                            AutomationProperties.AutomationId="EndTimePicker"
                            Grid.Row="1"
                            Grid.Column="1"
                            Margin="3"
                            Width="120"
                            IsReadOnly="{Binding IsReadOnly}"
                            SelectedValue="{Binding End, Mode=TwoWay}"
                            InputMode="TimePicker"
                            Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                    <telerik:Label
                            Grid.RowSpan="2"
                            Grid.Column="2"
                            MinWidth="65"
                            VerticalAlignment="Center"
                            Margin="18 0 0 0"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            Target="{Binding ElementName=DurationPicker}"
                            telerik:LocalizationManager.ResourceKey="DurationColon"/>
                    <telerikScheduleView:DurationPicker x:Name="DurationPicker"
                            AutomationProperties.AutomationId="DurationPicker"
                            Grid.RowSpan="2"
                            Grid.Column="3"
                            Margin="3"
                            Width="120"
                            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                            VerticalAlignment="Center"
                            SelectedDuration="{Binding Path=Duration, Mode=TwoWay}"/>
                </Grid>
            </telerik:GroupBox>
            <telerik:GroupBox x:Name="RepeatsGroup" Margin="3" Grid.Row="1" telerik:LocalizationManager.ResourceKey="RecurrencePattern">
                <telerik:RadTabControl IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" IsDefaultItemSelected="False" Style="{StaticResource RepeatSelectionTabControlStyle}">
                    <telerik:RadTabItem x:Name="RepeatDaily"
                            AutomationProperties.AutomationId="DurationPicker"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Daily"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily;WeekDays, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="DailyRB"
                                        AutomationProperties.AutomationId="DailyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="DailyGroup"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="DailyDetailsUpDown"
                                        AutomationProperties.AutomationId="DailyDetailsUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="999"
                                        Value="{Binding Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Days" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </StackPanel>
                            <RadioButton x:Name="WorkdaysRB"
                                    AutomationProperties.AutomationId="WorkdaysRB"
                                    Grid.Row="1"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    GroupName="DailyGroup"
                                    telerik:LocalizationManager.ResourceKey="EveryWeekday"
                                    IsChecked="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=WeekDays, Mode=TwoWay}"/>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatWeekly"
                            AutomationProperties.AutomationId="RepeatWeekly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Weekly"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Weekly, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <telerik:Label Margin="3" VerticalAlignment="Center" Target="{Binding ElementName=EveryWeekUpDown}" telerik:LocalizationManager.ResourceKey="RecurEvery"/>
                                <telerik:RadNumericUpDown x:Name="EveryWeekUpDown"
                                        AutomationProperties.AutomationId="EveryWeekUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding Interval, Mode=TwoWay}"
                                        SnapsToDevicePixels="True"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="WeeksOn" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </StackPanel>
                            <ItemsControl Grid.Row="1" ItemsSource="{Binding WeekDays}" IsTabStop="False">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerik:RadUniformGrid Rows="2"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox Margin="3 3 12 3" Content="{Binding Name}" AutomationProperties.AutomationId="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatMonthly"
                            AutomationProperties.AutomationId="RepeatWeekly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Monthly"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly;MonthlyNth, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyRB"
                                        AutomationProperties.AutomationId="MonthlyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="Day"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown1"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown1"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}, ValidatesOnDataErrors=True, NotifyOnValidationError=True}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown2"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown2"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyNthRB"
                                        AutomationProperties.AutomationId="MonthlyNthRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MonthlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="IntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        ItemsSource="{Binding WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="DayIntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatYearly"
                            AutomationProperties.AutomationId="MonthlyDetailsUpDown3"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Yearly"
                            IsSelected="{Binding Path=RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly;YearlyNth, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="50*"/>
                                <RowDefinition Height="50*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyRB"
                                        AutomationProperties.AutomationId="YearlyRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails12"
                                        AutomationProperties.AutomationId="YearlyDetails12"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding MonthOfYear, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="YearlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="YearlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyNthRB"
                                        AutomationProperties.AutomationId="YearlyNthRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=YearlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails21"
                                        AutomationProperties.AutomationId="YearlyDetails21"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="80"
                                        ItemsSource="{Binding WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails22"
                                        AutomationProperties.AutomationId="YearlyDetails22"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Of" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails23"
                                        AutomationProperties.AutomationId="YearlyDetails23"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding MonthOfYear, Mode=TwoWay}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
            </telerik:GroupBox>
            <telerik:GroupBox x:Name="RangeGroup" Margin="3" Grid.Row="2" telerik:LocalizationManager.ResourceKey="RangeOfRecurrence">
                <Grid IsSharedSizeScope="True">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="2*"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="0" Orientation="Horizontal">
                        <telerik:Label
                                Margin="3"
                                VerticalAlignment="Center"
                                IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                Target="{Binding ElementName=StartDate}"
                                telerik:LocalizationManager.ResourceKey="StartColon"/>
                        <telerik:RadDatePicker x:Name="StartDate"
                                AutomationProperties.AutomationId="StartDate"
                                Margin="3"
                                VerticalAlignment="Center"
                                Width="100"
                                IsReadOnly="{Binding IsReadOnly}"
                                SelectedValue="{Binding Start, Mode=TwoWay}"
                                Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                    </StackPanel>
                    <telerik:RadUniformGrid Grid.Column="1" Columns="1">
                        <RadioButton x:Name="NoEndDate"
                                AutomationProperties.AutomationId="NoEndDate"
                                Margin="3"
                                VerticalAlignment="Center"
                                IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                telerik:LocalizationManager.ResourceKey="NoEndDate"
                                IsChecked="{Binding RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=NoEndDate, Mode=TwoWay}"/>
                        <StackPanel Orientation="Horizontal">
                            <RadioButton x:Name="EndAfter"
                                    AutomationProperties.AutomationId="EndAfter"
                                    Margin="3"
                                    MinWidth="100"
                                    VerticalAlignment="Center"
                                    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                    telerik:LocalizationManager.ResourceKey="EndAfter"
                                    IsChecked="{Binding Path=RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MaxOccurrences, Mode=TwoWay}"/>
                            <telerik:RadNumericUpDown x:Name="OccurencesUpDown"
                                    AutomationProperties.AutomationId="OccurencesUpDown"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                    IsInteger="True"
                                    MinWidth="70"
                                    Maximum="9999"
                                    Value="{Binding MaxOccurrences, Mode=TwoWay}"/>
                            <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Occurrences" Foreground="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <RadioButton x:Name="EndBy"
                                    AutomationProperties.AutomationId="EndBy"
                                    Margin="3"
                                    MinWidth="70"
                                    VerticalAlignment="Center"
                                    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
                                    telerik:LocalizationManager.ResourceKey="EndBy"
                                    IsChecked="{Binding Path=RecurrenceRangeType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=RepeatUntil, Mode=TwoWay}"/>
                            <telerik:RadDatePicker
                                    AutomationProperties.AutomationId="EndByDatePicker"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    Width="120"
                                    IsReadOnly="{Binding IsReadOnly}"
                                    SelectedValue="{Binding RecursUntil, Mode=TwoWay}"
                                    Culture="{Binding DefaultCulture,Source={StaticResource LocalizationManager}}"/>
                        </StackPanel>
                    </telerik:RadUniformGrid>
                </Grid>
            </telerik:GroupBox>
            <StackPanel x:Name="WindowButtons" Grid.Row="3" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton x:Name="RemoveRecurrenceBtn"
                        AutomationProperties.AutomationId="RemoveRecurrenceBtn"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="RemoveRecurrence"
                        Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteRecurrenceRule}"
                        Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}"/>
                <telerik:RadButton x:Name="OKButton"
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"/>
                <telerik:RadButton x:Name="CancelButton"
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <Style x:Key="EditRecurrenceDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="550"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template" Value="{StaticResource EditRecurrenceTemplate}"/>
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Path
                            Data="M188,502L188,481.207C188,480.257,188.771,479.484,189.723,479.484L190.473,479.484L190.473,484.786L197.551,484.786L197.551,479.484L202.568,479.484L202.568,484.786L209.645,484.786L209.645,479.484L210.516,479.484C211.465,479.484,212.237,480.257,212.237,481.207L212.237,502C212.237,502.949,211.465,503.722,210.516,503.722L189.723,503.722C188.771,503.722,188,502.949,188,502 M209.746,487.307L190.503,487.307L190.503,501.544L209.746,501.544z M198.362,499.882L198.186,499.779C197.602,499.439,197.403,498.687,197.744,498.102L201.192,492.208L197.258,492.208C196.581,492.208,196.031,491.658,196.031,490.98L196.031,490.777C196.031,490.102,196.581,489.551,197.258,489.551L203.483,489.551C204.107,489.551,204.623,490.02,204.7,490.623C204.813,490.949,204.788,491.32,204.602,491.643L200.04,499.441C199.699,500.025,198.947,500.223,198.362,499.882 M192.369,482.613L192.369,477.786C192.354,477.697,192.348,477.607,192.348,477.514C192.348,476.605,193.085,475.867,193.994,475.867C194.885,475.867,195.611,476.578,195.639,477.461L195.654,477.461L195.654,482.613z M204.465,482.613L204.463,477.857C204.439,477.747,204.428,477.632,204.428,477.514C204.428,476.605,205.166,475.867,206.075,475.867C206.965,475.867,207.692,476.578,207.721,477.461L207.749,477.461L207.749,482.613z"
                            Fill="{telerik1:Windows8Resource ResourceKey=MainBrush}"
                            Stretch="Fill"
                            Width="14"
                            Height="16"
                            Margin="0 0 2 0"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" MaxWidth="450" HorizontalAlignment="Left">
                        <TextBlock telerik:LocalizationManager.ResourceKey="Event" Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Appointment" Visibility="{Binding Appointment.IsAllDayEvent, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"/>
                        <TextBlock Text="-"/>
                        <TextBlock x:Name="SubjectTextBlock" Text="{Binding Appointment.Subject}" Visibility="{Binding Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                        <TextBlock telerik:LocalizationManager.ResourceKey="Untitled" Visibility="{Binding Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="DeleteAppointmentConfirmTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <Grid>
                <Path
                        Data="M2.761554,0 L8.3200254,5.5746889 L13.895003,0.026993264 L16.482,2.6230006 L10.907351,8.1695642 L16.470552,13.748997 L13.873553,16.330997 L8.3111095,10.752727 L2.5870051,16.447992 L0,13.853999 L5.7238765,8.1581335 L0.1645541,2.5829935 z"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Center"
                        Height="32"
                        Width="32"
                        Margin="15"
                        Stretch="Fill"
                        Fill="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                <TextBlock
                        AutomationProperties.AutomationId="DeleteAppointmentTextBlock"
                        Margin="65 15 15 15"
                        TextWrapping="Wrap"
                        VerticalAlignment="Center"
                        telerik:LocalizationManager.ResourceKey="DeleteItemQuestion"/>
            </Grid>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="DeleteAppointmentConfirmDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="DeleteItem"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource DeleteAppointmentConfirmTemplate}"/>
    </Style>
    <ControlTemplate x:Key="RecurrenceChoiceTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <Grid>
                <Path
                        Data="M7.7728186,17.951994 C9.1318111,17.951994 10.230818,19.052002 10.230818,20.40601 C10.230818,21.760994 9.1318111,22.859995 7.7728186,22.859995 C6.4178162,22.859995 5.3198175,21.760994 5.3198171,20.40601 C5.3198175,19.052002 6.4178162,17.951994 7.7728186,17.951994 z M7.6010065,0 C9.0830011,0 10.316004,0.20300293 11.308001,0.60800171 C12.300005,1.0159912 13.096003,1.5220013 13.702005,2.1249981 C14.305002,2.729002 14.738001,3.3810091 14.999002,4.0790071 C15.262003,4.7770042 15.390001,5.4269972 15.390001,6.0320082 C15.390001,7.0320072 15.262003,7.8539972 14.999002,8.4989862 C14.738001,9.1459885 14.414003,9.6989975 14.031,10.157981 C13.645006,10.615989 13.216005,11.006979 12.750002,11.326986 C12.278002,11.651999 11.835001,11.974997 11.421007,12.296988 C11.000002,12.619985 10.630007,12.990986 10.308001,13.405994 C9.9820042,13.822987 9.7810001,14.343983 9.6980076,14.968982 L9.6980076,16.157 L5.4749994,16.157 L5.4749994,14.750996 C5.5360041,13.855976 5.7120066,13.103992 5.9879999,12.502004 C6.2710047,11.896994 6.5999994,11.379995 6.9749994,10.955008 C7.352006,10.525992 7.7470026,10.157981 8.163003,9.8459997 C8.5800028,9.5320053 8.9660044,9.2199936 9.3230076,8.9070053 C9.6770039,8.5939875 9.9640064,8.2510004 10.184,7.8749933 C10.403002,7.5020084 10.501001,7.0320072 10.480005,6.4699955 C10.480005,5.5089979 10.246004,4.8009911 9.7760029,4.3429832 C9.3070002,3.8869905 8.6559992,3.656003 7.8190012,3.656003 C7.2580042,3.656003 6.7720041,3.7669954 6.3660059,3.9829988 C5.96,4.2040062 5.625001,4.4959984 5.3680048,4.8609886 C5.102006,5.2239952 4.9100046,5.6509962 4.7850046,6.1409864 C4.663003,6.6310062 4.5980005,7.1560001 4.5980005,7.7189875 L0,7.7189875 C0.019004822,6.5939884 0.21700287,5.5629835 0.57900286,4.6249962 C0.94200182,3.6870089 1.4520037,2.8749981 2.1100013,2.1870098 C2.7680058,1.4999981 3.5600057,0.96200562 4.4879999,0.57901001 C5.4180002,0.1920166 6.4540033,0 7.6010065,0 z"
                        HorizontalAlignment="Left"
                        Margin="15"
                        Stretch="Fill"
                        Width="22"
                        Height="32"
                        VerticalAlignment="Center"
                        Fill="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                <StackPanel Margin="55 15 15 15" VerticalAlignment="Top">
                    <TextBlock x:Name="SubjectTextBlock"
                            AutomationProperties.AutomationId="SubjectTextBlock"
                            Margin="3"
                            Text="{Binding Occurrence.Appointment.Subject}"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                    <TextBlock x:Name="Untitled"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="Untitled"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="OpenOccurrenceRB"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="OpenOccurrence"
                            GroupName="RecurrenceModeChoice"
                            IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="OpenSeriesRB"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="OpenSeries"
                            GroupName="RecurrenceModeChoice"
                            IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
                </StackPanel>
            </Grid>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="RecurrenceChoiceDeletingTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <Grid>
                <Path
                        Data="M2.761554,0 L8.3200254,5.5746889 L13.895003,0.026993264 L16.482,2.6230006 L10.907351,8.1695642 L16.470552,13.748997 L13.873553,16.330997 L8.3111095,10.752727 L2.5870051,16.447992 L0,13.853999 L5.7238765,8.1581335 L0.1645541,2.5829935 z"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Center"
                        Height="32"
                        Width="32"
                        Margin="15"
                        Stretch="Fill"
                        Fill="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                <StackPanel Margin="65 15 15 15" VerticalAlignment="Top">
                    <TextBlock x:Name="SubjectTextBlock"
                            AutomationProperties.AutomationId="SubjectTextBlock"
                            Margin="3"
                            Text="{Binding Occurrence.Appointment.Subject}"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource NullToVisibilityConverter}}"/>
                    <TextBlock x:Name="Untitled"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="Untitled"
                            Visibility="{Binding Occurrence.Appointment.Subject, Converter={StaticResource InvertedNullToVisibilityConverter}}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="DeleteOccurrenceRB"
                            Margin="3 9 3 3"
                            telerik:LocalizationManager.ResourceKey="DeleteOccurrence"
                            GroupName="RecurrenceModeChoiceDel"
                            IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                    <RadioButton
                            AutomationProperties.AutomationId="DeleteSeriesRB"
                            Margin="3"
                            telerik:LocalizationManager.ResourceKey="DeleteSeries"
                            GroupName="RecurrenceModeChoiceDel"
                            IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
                </StackPanel>
            </Grid>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="RecurrenceChoiceResizeTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <StackPanel Margin="15 15 15 15" VerticalAlignment="Top">
                <TextBlock
                        telerik:LocalizationManager.ResourceKey="ResizeOccurrence"
                        Text="{Binding Occurrence.Appointment.Subject, Converter={StaticResource AppointmentsSubjectToLocalizatedStringConverter}, ConverterParameter=ResizeRecurringItemQuestion}"
                        TextWrapping="Wrap"
                        Margin="3"
                        FontFamily="Segoe UI"
                        FontSize="12"/>
                <RadioButton
                        AutomationProperties.AutomationId="ResizeOccurrenceRB"
                        Margin="3 9 3 3"
                        telerik:LocalizationManager.ResourceKey="ResizeOccurrence"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                <RadioButton
                        AutomationProperties.AutomationId="ResizeSeriesRB"
                        Margin="3"
                        telerik:LocalizationManager.ResourceKey="ResizeSeries"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
            </StackPanel>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="RecurrenceChoiceDragDropTemplate" TargetType="telerikScheduleView:SchedulerDialog">
        <StackPanel>
            <StackPanel Margin="15 15 15 10">
                <TextBlock
                        AutomationProperties.AutomationId="DragDropOccurrenceTextBlock"
                        Text="{Binding Occurrence.Appointment.Subject,Converter={StaticResource AppointmentsSubjectToLocalizatedStringConverter}, ConverterParameter=DragRecurringItemQuestion}"
                        TextWrapping="Wrap"
                        Margin="3"
                        FontFamily="Segoe UI"
                        FontSize="12"/>
                <RadioButton
                        AutomationProperties.AutomationId="DragDropOccurrenceRB"
                        Margin="3 9 3 3"
                        telerik:LocalizationManager.ResourceKey="DragDropOccurrence"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
                <RadioButton x:Name="DragDropSeriesRadioButton"
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="3"
                        telerik:LocalizationManager.ResourceKey="DragDropSeries"
                        GroupName="RecurrenceModeChoice"
                        IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>
            </StackPanel>
            <Grid x:Name="Warning" Visibility="{Binding ElementName=DragDropSeriesRadioButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="17 0">
                <Border BorderThickness="1" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}">
                    <Border Background="{telerik1:Windows8Resource ResourceKey=AccentBrush}" Opacity="0.1"/>
                </Border>
                <TextBlock
                        AutomationProperties.AutomationId="WarningTextBlock"
                        telerik:LocalizationManager.ResourceKey="DragRecurringWarning"
                        TextWrapping="Wrap"
                        Margin="10"
                        FontFamily="Segoe UI"
                        FontSize="12"/>
            </Grid>
            <telerik:GroupBox Visibility="{Binding ElementName=Warning, Path=Visibility}" x:Name="RepeatsGroup" Margin="16 3" telerik:LocalizationManager.ResourceKey="RecurrencePattern">
                <telerik:RadTabControl IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" IsDefaultItemSelected="False" Style="{StaticResource RepeatSelectionTabControlStyle}">
                    <telerik:RadTabItem x:Name="RepeatDaily"
                            AutomationProperties.AutomationId="RepeatDaily"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Daily"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily;WeekDays, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="DailyRB"
                                        AutomationProperties.AutomationId="DailyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="DailyGroup"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Daily, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="DailyDetailsUpDown"
                                        AutomationProperties.AutomationId="DailyDetailsUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="999"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Days" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                            </StackPanel>
                            <RadioButton x:Name="WorkdaysRB"
                                    AutomationProperties.AutomationId="WorkdaysRB"
                                    Grid.Row="1"
                                    Margin="3"
                                    VerticalAlignment="Center"
                                    GroupName="DailyGroup"
                                    telerik:LocalizationManager.ResourceKey="EveryWeekday"
                                    IsChecked="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=WeekDays, Mode=TwoWay}"/>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatWeekly"
                            AutomationProperties.AutomationId="RepeatWeekly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Weekly"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Weekly, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <telerik:Label Margin="3" VerticalAlignment="Center" Target="{Binding ElementName=EveryWeekUpDown}" telerik:LocalizationManager.ResourceKey="RecurEvery"/>
                                <telerik:RadNumericUpDown x:Name="EveryWeekUpDown"
                                        AutomationProperties.AutomationId="EveryWeekUpDown"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"
                                        SnapsToDevicePixels="True"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="WeeksOn" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                            </StackPanel>
                            <ItemsControl Grid.Row="1" ItemsSource="{Binding DialogViewModel.WeekDays}" IsTabStop="False">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerik:RadUniformGrid Rows="2"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <CheckBox Margin="3 3 12 3" Content="{Binding Name}" AutomationProperties.AutomationId="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}"/>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatMonthly"
                            AutomationProperties.AutomationId="RepeatMonthly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Monthly"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyRB"
                                        AutomationProperties.AutomationId="MonthlyRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="Day"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Monthly, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown1"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown1"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DialogViewModel.DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown2"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown2"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="MonthlyNthRB"
                                        AutomationProperties.AutomationId="MonthlyNthRB"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        GroupName="MonthlyButtons"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=MonthlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="IntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        ItemsSource="{Binding DialogViewModel.WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox
                                        AutomationProperties.AutomationId="DayIntervalComboBox"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="OfEvery" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                                <telerik:RadNumericUpDown x:Name="MonthlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="MonthlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        MinWidth="70"
                                        IsInteger="True"
                                        Maximum="99"
                                        Value="{Binding DialogViewModel.Interval, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Months" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem x:Name="RepeatYearly"
                            AutomationProperties.AutomationId="RepeatYearly"
                            Style="{StaticResource RepeatSelectionTabItemControlStyle}"
                            Header="Yearly"
                            IsSelected="{Binding Path=DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly;YearlyNth, Mode=TwoWay}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="50*"/>
                                <RowDefinition Height="50*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyRB"
                                        AutomationProperties.AutomationId="YearlyRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="Every"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Yearly, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails12"
                                        AutomationProperties.AutomationId="YearlyDetails12"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding DialogViewModel.MonthOfYear, Mode=TwoWay}"/>
                                <telerik:RadNumericUpDown x:Name="YearlyDetailsUpDown3"
                                        AutomationProperties.AutomationId="YearlyDetailsUpDown3"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="70"
                                        IsInteger="True"
                                        Maximum="31"
                                        Value="{Binding DaysOfMonth, Mode=TwoWay, Converter={StaticResource MultipleToSingleConverter}}"/>
                            </StackPanel>
                            <StackPanel Grid.Row="1" Orientation="Horizontal">
                                <RadioButton x:Name="YearlyNthRB"
                                        AutomationProperties.AutomationId="YearlyNthRB"
                                        GroupName="YearlyGroup"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        telerik:LocalizationManager.ResourceKey="The"
                                        IsChecked="{Binding DialogViewModel.RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=YearlyNth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails21"
                                        AutomationProperties.AutomationId="YearlyDetails21"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="80"
                                        ItemsSource="{Binding DialogViewModel.WeekOfMonths}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.WeekOfMonth, Mode=TwoWay}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails22"
                                        AutomationProperties.AutomationId="YearlyDetails22"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NthRecurrenceDays}"
                                        DisplayMemberPath="Name"
                                        SelectedValuePath="Value"
                                        SelectedValue="{Binding DialogViewModel.NthRecurrenceDay, Mode=TwoWay}"/>
                                <TextBlock Margin="3" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="Of" Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                                <telerik:RadComboBox x:Name="YearlyDetails23"
                                        AutomationProperties.AutomationId="YearlyDetails23"
                                        Margin="3"
                                        VerticalAlignment="Center"
                                        Width="100"
                                        ItemsSource="{Binding DialogViewModel.NamesOfMonths}"
                                        DisplayMemberPath="Value"
                                        SelectedValuePath="Key"
                                        SelectedValue="{Binding DialogViewModel.MonthOfYear, Mode=TwoWay}"/>
                            </StackPanel>
                        </Grid>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
            </telerik:GroupBox>
            <StackPanel x:Name="FooterControls" Grid.Row="2" Margin="13 6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
                <telerik:RadButton
                        AutomationProperties.AutomationId="OKButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Ok"
                        Command="{x:Static telerik:WindowCommands.Confirm}"
                        telerik:RadWindow.ResponseButton="Accept"
                        IsDefault="True"/>
                <telerik:RadButton
                        AutomationProperties.AutomationId="CancelButton"
                        Margin="2"
                        MinWidth="84"
                        telerik:LocalizationManager.ResourceKey="Cancel"
                        Command="{x:Static telerik:WindowCommands.Cancel}"
                        telerik:RadWindow.ResponseButton="Cancel"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="RecurrenceChoiceDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceTemplate}"/>
    </Style>
    <Style x:Key="RecurrenceChoiceDeleteDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceDeletingTemplate}"/>
    </Style>
    <Style x:Key="RecurrenceChoiceResizeDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="350"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceResizeTemplate}"/>
    </Style>
    <Style x:Key="RecurrenceChoiceDragDropDialogStyle" TargetType="telerikScheduleView:SchedulerDialog">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="610"/>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock MaxWidth="200" HorizontalAlignment="Left" telerik:LocalizationManager.ResourceKey="AppointmentRecurrence"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource RecurrenceChoiceDragDropTemplate}"/>
    </Style>
    <Style x:Key="GoToDayButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="BorderThickness" Value="1 1 1 0"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="Border"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Name="Content"
                                Content="{TemplateBinding Content}"
                                Margin="-2"
                                HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GoToDayVerticalButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Padding" Value="0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="Border"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Name="Content"
                                Content="{TemplateBinding Content}"
                                Margin="-2"
                                HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GoToDayTodayButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="BorderThickness" Value="1 1 1 0"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=AccentBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="Border"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter Margin="-2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GoToDayTodayVerticalButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Name="Content"
                                Content="{TemplateBinding Content}"
                                Margin="-2"
                                HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ExpandMonthViewButtonStyle" TargetType="telerik:RadToggleButton">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Margin" Value="3 2 3 4"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="MinWidth" Value="10"/>
        <Setter Property="MinHeight" Value="10"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadToggleButton">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Collapse" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Expand" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Indeterminate">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Border" Background="{TemplateBinding Background}"/>
                        <Path x:Name="Expand" Data="M0,0 L5,0 L2.5,2.5 Z" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <Path x:Name="Collapse" Visibility="Collapsed" Data="M0,2.5 L2.5,0 L5,2.5 Z" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerGroupItemStyle" TargetType="telerikScheduleView:TimeRulerGroupItem">
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="Panel.ZIndex" Value="102"/>
        <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="telerikScheduleView:TimeRulerGroupItem">
                    <telerik:RadButton
                            Style="{StaticResource GoToDayButtonStyle}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}"
                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Command="telerikScheduleView:RadScheduleViewCommands.SetDayViewMode"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                        <ContentPresenter x:Name="Content"/>
                    </telerik:RadButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerGroupItemStyle_Vertical" TargetType="telerikScheduleView:TimeRulerGroupItem" BasedOn="{StaticResource TimeRulerGroupItemStyle}">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="2 4"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Orientation" Value="Vertical"/>
        <Setter Property="Margin" Value="0 0 -1 -1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerGroupItem">
                    <telerik:RadButton
                            Style="{StaticResource GoToDayVerticalButtonStyle}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}"
                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                            Command="telerikScheduleView:RadScheduleViewCommands.SetDayViewMode"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
                        <ContentPresenter x:Name="Content"/>
                    </telerik:RadButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MajorHorizontalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MinorHorizontalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="2 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Grid>
                        <Border
                                Height="5"
                                VerticalAlignment="Bottom"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MajorVerticalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="BorderThickness" Value="0 1 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="2 0"/>
        <Setter Property="Panel.ZIndex" Value="50"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MinorVerticalTimeRulerItemStyle" TargetType="telerikScheduleView:TimeRulerItem">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="BorderThickness" Value="0 1 0 0"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="2 0"/>
        <Setter Property="Panel.ZIndex" Value="70"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerItem">
                    <Grid>
                        <Border
                                Width="20"
                                HorizontalAlignment="Right"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerLineStyle" TargetType="telerikScheduleView:TimeRulerLine">
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerLine">
                    <Border x:Name="LineVisual" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="0 1 0 0">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="OrientationStates">
                                <VisualState x:Name="Horizontal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LineVisual" Storyboard.TargetProperty="BorderThickness">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>1 0 0 0</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Vertical"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerMonthViewGroupItemStyle" TargetType="telerikScheduleView:TimeRulerMonthViewGroupItem">
        <Setter Property="BorderThickness" Value="1 0"/>
        <Setter Property="Margin" Value="0 0 -2 0"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeXXL}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Right"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerMonthViewGroupItem">
                    <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
                        <ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerMonthViewItemStyle" TargetType="telerikScheduleView:TimeRulerMonthViewItem">
        <Setter Property="HorizontalContentAlignment" Value="Right"/>
        <Setter Property="Margin" Value="0 -1 -2 0"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeXXL}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Panel.ZIndex" Value="70"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerMonthViewItem">
                    <Grid>
                        <Border BorderThickness="0 0 1 0">
                            <telerik:RadButton
                                    Padding="0"
                                    VerticalAlignment="Top"
                                    BorderThickness="1 1 0 0"
                                    MinHeight="22"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    Style="{StaticResource GoToDayButtonStyle}"
                                    Command="telerikScheduleView:RadScheduleViewCommands.SetDayViewMode"
                                    CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}"
                                    FontSize="{telerik:Windows8Resource ResourceKey=FontSizeXL}">
                                <ContentPresenter Margin="{TemplateBinding Padding}"/>
                            </telerik:RadButton>
                        </Border>
                        <telerik:RadToggleButton
                                Visibility="{Binding ExpandButtonVisibility}"
                                IsChecked="{Binding IsExpanded, Mode=TwoWay}"
                                Style="{StaticResource ExpandMonthViewButtonStyle}"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeRulerMonthViewTodayItemStyle" TargetType="telerikScheduleView:TimeRulerMonthViewItem">
        <Setter Property="BorderThickness" Value="0 0 0 0"/>
        <Setter Property="Margin" Value="0 -1 -1 0"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=AccentBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="HorizontalContentAlignment" Value="Right"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeXXL}"/>
        <Setter Property="Panel.ZIndex" Value="1"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:TimeRulerMonthViewItem">
                    <Grid>
                        <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                        <telerik:RadButton
                                Padding="0"
                                VerticalAlignment="Top"
                                HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                Style="{StaticResource GoToDayTodayButtonStyle}"
                                Command="telerikScheduleView:RadScheduleViewCommands.SetDayViewMode"
                                MinHeight="22"
                                CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}"
                                FontSize="{telerik:Windows8Resource ResourceKey=FontSizeXL}">
                            <ContentControl
                                    Margin="{TemplateBinding Padding}"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    Foreground="{TemplateBinding Foreground}"/>
                        </telerik:RadButton>
                        <telerik:RadToggleButton
                                Visibility="{Binding ExpandButtonVisibility}"
                                IsChecked="{Binding IsExpanded, Mode=TwoWay}"
                                Style="{StaticResource ExpandMonthViewButtonStyle}"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"/>
                        <Border Width="1" Margin="1 0 0 0" BorderBrush="{telerik1:Windows8Resource ResourceKey=AccentBrush}" HorizontalAlignment="Left" VerticalAlignment="Stretch"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduleView:TimeRulerItemTemplateSelector x:Key="TimeRulerItemTemplateSelector">
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMajorItemTemplate>
            <DataTemplate>
                <TextBlock Margin="2" Text="{Binding FormattedValue}"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalDayMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMajorItemTemplate>
            <DataTemplate>
                <TextBlock Margin="2" Text="{Binding FormattedValue}"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMinorItemTemplate>
            <DataTemplate>
                <TextBlock Margin="2" Text="{Binding FormattedValue}"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalWeekMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" MinWidth="58" TextAlignment="Right" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" MinWidth="58" TextAlignment="Right" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalDayMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" MinWidth="58" TextAlignment="Right" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" MinWidth="58" TextAlignment="Right" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalWeekMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2 1" TextAlignment="Left"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2" TextAlignment="Left"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="2" TextAlignment="Left"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineGroupTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="1 2" TextAlignment="Right">
                    <TextBlock.LayoutTransform>
                        <RotateTransform Angle="-90"/>
                    </TextBlock.LayoutTransform>
                </TextBlock>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineGroupTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMajorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" MinWidth="58" TextAlignment="Right" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMajorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMinorItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" MinWidth="58" TextAlignment="Right" Margin="2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.VerticalTimelineMinorItemTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.MonthGroupTemplate>
            <DataTemplate>
                <TextBlock Margin="6 2" Text="{Binding FormattedValue}"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.MonthGroupTemplate>
        <telerikScheduleView:TimeRulerItemTemplateSelector.MonthItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding FormattedValue}" Margin="6 2"/>
            </DataTemplate>
        </telerikScheduleView:TimeRulerItemTemplateSelector.MonthItemTemplate>
    </telerikScheduleView:TimeRulerItemTemplateSelector>
    <telerikScheduleView:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector"
            MonthViewGroupStyle="{StaticResource TimeRulerMonthViewGroupItemStyle}"
            MonthViewTickStyle="{StaticResource TimeRulerMonthViewItemStyle}"
            MonthViewTodayTickStyle="{StaticResource TimeRulerMonthViewTodayItemStyle}"
            HorizontalGroupItemStyle="{StaticResource TimeRulerGroupItemStyle}"
            VerticalGroupItemStyle="{StaticResource TimeRulerGroupItemStyle_Vertical}"
            MajorHorizontalTickStyle="{StaticResource MajorHorizontalTimeRulerItemStyle}"
            MajorVerticalTickStyle="{StaticResource MajorVerticalTimeRulerItemStyle}"
            MinorHorizontalTickStyle="{StaticResource MinorHorizontalTimeRulerItemStyle}"
            MinorVerticalTickStyle="{StaticResource MinorVerticalTimeRulerItemStyle}"
            HorizontalLineStyle="{StaticResource TimeRulerLineStyle}"
            VerticalLineStyle="{StaticResource TimeRulerLineStyle}"/>
    <ControlTemplate x:Key="GroupHeaderButtonControlTemplate" TargetType="telerikScheduleView:GroupHeaderButton">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="CommandMouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="CommandPressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="TodayStates">
                    <VisualState x:Name="NotToday">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground)">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Today">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground)">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=AccentBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="OrientationStates">
                    <VisualState x:Name="Horizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Visuals" Storyboard.TargetProperty="LayoutTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="-90"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Vertical"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerik:LayoutTransformControl x:Name="Visuals">
                <Grid>
                    <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </Grid>
            </telerik:LayoutTransformControl>
            <ContentControl x:Name="Content"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Margin="-1"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="GroupHeaderButtonStyle" TargetType="telerikScheduleView:GroupHeaderButton">
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Template" Value="{StaticResource GroupHeaderButtonControlTemplate}"/>
    </Style>
    <ControlTemplate x:Key="GroupHeaderTemplate" TargetType="telerikScheduleView:GroupHeader">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OrientationStates">
                    <VisualState x:Name="Horizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Stretch</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Vertical"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="DayStates">
                    <VisualState x:Name="NormalDay"/>
                    <VisualState x:Name="NormalDayHorizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Stretch</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Today">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource HorizontalGroupHeaderTodayBorderThickness}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="TodayHorizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Stretch</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border"
                    IsHitTestVisible="False"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}"
                    BorderThickness="{TemplateBinding BorderThickness}"/>
            <telerikScheduleView:GroupHeaderButton x:Name="Header"
                    VerticalAlignment="Top"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    Command="{TemplateBinding Command}"
                    CommandParameter="{TemplateBinding CommandParameter}"
                    IsToday="{TemplateBinding IsToday}"
                    Orientation="{TemplateBinding Orientation}"
                    Foreground="{TemplateBinding Foreground}"
                    FontSize="{TemplateBinding FontSize}"
                    FontFamily="{TemplateBinding FontFamily}"
                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="GroupHeaderBaseStyle" TargetType="telerikScheduleView:GroupHeader">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template" Value="{StaticResource GroupHeaderTemplate}"/>
    </Style>
    <Style x:Key="HorizontalGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="-1 0 0 0"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
    </Style>
    <Style x:Key="HorizontalTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="-1 0 0 0"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
    </Style>
    <Style x:Key="HorizontalBottomLevelGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="Padding" Value="0 0 5 0"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <Style x:Key="HorizontalBottomLevelTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Padding" Value="1 0 5 0"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
        <Setter Property="Margin" Value="0 0 -1 0"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <Style x:Key="VerticalGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 -1 0 0"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <Style x:Key="VerticalTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 -1 0 0"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
    </Style>
    <Style x:Key="VerticalBottomLevelGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 0 0 5"/>
        <Setter Property="Panel.ZIndex" Value="-2"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <Style x:Key="VerticalBottomLevelTodayGroupHeaderStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 1 0 5"/>
        <Setter Property="Panel.ZIndex" Value="-1"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <Style x:Key="MonthViewWeekGroupStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 -1 0 0"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <Style x:Key="MonthViewBottomLevelWeekGroupStyle" TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}">
        <Setter Property="Margin" Value="0 0 0 -1"/>
        <Setter Property="Padding" Value="0 21 0 18"/>
        <Setter Property="MinHeight" Value="85"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
    </Style>
    <telerikScheduleView:OrientedGroupHeaderStyleSelector x:Key="GroupHeaderStyleSelector"
            HorizontalStyle="{StaticResource HorizontalGroupHeaderStyle}"
            HorizontalTodayStyle="{StaticResource HorizontalTodayGroupHeaderStyle}"
            HorizontalBottomLevelStyle="{StaticResource HorizontalBottomLevelGroupHeaderStyle}"
            HorizontalTodayBottomLevelStyle="{StaticResource HorizontalBottomLevelTodayGroupHeaderStyle}"
            VerticalStyle="{StaticResource VerticalGroupHeaderStyle}"
            VerticalTodayStyle="{StaticResource VerticalTodayGroupHeaderStyle}"
            VerticalBottomLevelStyle="{StaticResource VerticalBottomLevelGroupHeaderStyle}"
            VerticalTodayBottomLevelStyle="{StaticResource VerticalBottomLevelTodayGroupHeaderStyle}"
            MonthViewWeekGroupStyle="{StaticResource MonthViewWeekGroupStyle}"
            MonthViewBottomLevelWeekGroupStyle="{StaticResource MonthViewBottomLevelWeekGroupStyle}"/>
    <telerikScheduleView:GroupHeaderTemplateSelector x:Key="GroupHeaderContentTemplateSelector">
        <telerikScheduleView:GroupHeaderTemplateSelector.HorizontalTemplate>
            <DataTemplate>
                <ContentPresenter Margin="4" Height="18" Content="{Binding FormattedName}"/>
            </DataTemplate>
        </telerikScheduleView:GroupHeaderTemplateSelector.HorizontalTemplate>
        <telerikScheduleView:GroupHeaderTemplateSelector.VerticalTemplate>
            <DataTemplate>
                <ContentPresenter Margin="4" MinHeight="18" VerticalAlignment="Top" Content="{Binding FormattedName}">
                    <ContentPresenter.LayoutTransform>
                        <RotateTransform Angle="-90"/>
                    </ContentPresenter.LayoutTransform>
                </ContentPresenter>
            </DataTemplate>
        </telerikScheduleView:GroupHeaderTemplateSelector.VerticalTemplate>
    </telerikScheduleView:GroupHeaderTemplateSelector>
    <Style x:Key="DeleteButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="10"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="1 4 2 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0.0" Duration="0:0:0" To="1" Storyboard.TargetName="Icon" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0.0" Duration="0:0:0" To="1" Storyboard.TargetName="Icon" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="Transparent"/>
                        <Ellipse
                                Width="{TemplateBinding Width}"
                                Height="{TemplateBinding Height}"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                Fill="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                        <Path x:Name="Icon"
                                Stroke="{telerik1:Windows8Resource ResourceKey=MainBrush}"
                                StrokeThickness="1.5"
                                Data="M0,0 L6,6 M6,0 L0,6"
                                Width="6"
                                Height="6"
                                Stretch="None"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Opacity="0.7"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="AppointmentItemHorizontalControlTemplate" TargetType="telerikScheduleView:AppointmentItem">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.200">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.0" Duration="0:0:0.200" To="0" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.400" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.200" Duration="0:0:0.200" To="1" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ReadOnly">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="ReadOnlyVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InlineEditing"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetName="SelectionVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.200">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid Grid.Row="1" Margin="1 0 1 0">
                <Border x:Name="LineVisual" Margin="{TemplateBinding DurationMarkerMargin}" Background="{telerik:Windows8Resource ResourceKey=StrongBrush}" Height="3"/>
                <Border x:Name="PART_TimeMarker"
                        Margin="{TemplateBinding DurationMarkerMargin}"
                        Background="{Binding Path=TimeMarker.TimeMarkerBrush}"
                        Visibility="{Binding Path=TimeMarker, Converter={StaticResource NullToVisibilityConverter}}"
                        Height="3"/>
            </Grid>
            <Grid Grid.Row="0">
                <Grid.InputBindings>
                    <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduleView:RadScheduleViewCommands.EditAppointment"/>
                </Grid.InputBindings>
                <Border x:Name="BackgroundBorder" Background="{TemplateBinding Background}"/>
                <Border x:Name="SelectionVisual" Visibility="Collapsed" Background="{telerik:Windows8Resource ResourceKey=StrongBrush}" Opacity="0.3"/>
                <Border x:Name="PART_Category" Background="{Binding Path=Category.CategoryBrush}" Margin="1"/>
                <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"/>
                <Rectangle x:Name="ReadOnlyVisual" Visibility="Collapsed" Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}" Opacity="0.3"/>
                <Grid Margin="-1 1 0 1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Path
                            Grid.Column="0"
                            Data="M-919.69031,2003.9496 L-919.69031,2010.7375 L-923.7619,2007.4564 z"
                            Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"
                            Margin="3 0"
                            Opacity="0.7"
                            HorizontalAlignment="Left"
                            Height="7"
                            Stretch="Fill"
                            VerticalAlignment="Center"
                            Width="4"
                            Visibility="{TemplateBinding StartIndicatorVisibility}"/>
                    <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="2 2 0 0" Orientation="Horizontal">
                        <Image x:Name="RecurrenceMark"
                                Grid.Column="0"
                                Margin="2 2 1 1"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsExeptionToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Recurrence}"/>
                        <Image x:Name="ExceptionMark"
                                Grid.Column="0"
                                Margin="2 2 1 1"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsOccurenceToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Exception}"/>
                        <ContentControl x:Name="HighImportanceMark"
                                Template="{StaticResource HighImportanceMarkTemplate}"
                                Margin="2 1 1 0"
                                Style="{StaticResource ImportanceMarkContentControlStyle}"
                                Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=High}"/>
                        <ContentControl x:Name="LowImportanceMark"
                                Template="{StaticResource LowImportanceMarkTemplate}"
                                Margin="2 1 1 0"
                                Style="{StaticResource ImportanceMarkContentControlStyle}"
                                Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Low}"/>
                    </StackPanel>
                    <ContentPresenter
                            Grid.Column="2"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    <Path
                            Grid.Column="3"
                            Data="M1109.0469,332.70313 L1113.0469,336.29663 L1109.0469,339.68823 z"
                            Margin="3 0"
                            Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"
                            Opacity="0.7"
                            HorizontalAlignment="Right"
                            Height="7"
                            Stretch="Fill"
                            VerticalAlignment="Center"
                            Width="4"
                            Visibility="{TemplateBinding EndIndicatorVisibility}"/>
                </Grid>
                <Grid x:Name="MouseOverGrid" Visibility="Collapsed" Opacity="0">
                    <Border x:Name="MouseOverVisual" IsHitTestVisible="False" Background="{telerik:Windows8Resource ResourceKey=StrongBrush}" Opacity="0.1"/>
                    <Border x:Name="PART_StartResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Stretch"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Width="6"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove"/>
                    <Border x:Name="PART_EndResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Stretch"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Width="6"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove"/>
                    <telerik:RadButton x:Name="DeleteButton"
                            Style="{StaticResource DeleteButtonStyle}"
                            ClickMode="Press"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                            Visibility="{Binding RelativeSource={RelativeSource AncestorType=telerikScheduleView:RadScheduleView}, Path=ShowAppointmentDeleteButton, Converter={StaticResource BooleanToVisibilityConverter}}"
                            IsTabStop="False"
                            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteAppointment}"/>
                </Grid>
            </Grid>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="AppointmentItemVerticalControlTemplate" TargetType="telerikScheduleView:AppointmentItem">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.200" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.200">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.0" Duration="0:0:0.200" To="0" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.400" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation BeginTime="0:0:0.200" Duration="0:0:0.200" To="1" Storyboard.TargetName="MouseOverGrid" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ReadOnly">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0.0" Storyboard.TargetName="ReadOnlyVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InlineEditing"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetName="SelectionVisual" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid>
                <Border x:Name="LineVisual"
                        Margin="{TemplateBinding DurationMarkerMargin}"
                        Background="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                        Width="3"
                        BorderThickness="0 1"
                        BorderBrush="Transparent"/>
                <Border x:Name="PART_TimeMarker"
                        Margin="{TemplateBinding DurationMarkerMargin}"
                        Background="{Binding Path=TimeMarker.TimeMarkerBrush}"
                        BorderBrush="Transparent"
                        Visibility="{Binding Path=TimeMarker, Converter={StaticResource NullToVisibilityConverter}}"
                        Width="3"
                        BorderThickness="0 1"/>
            </Grid>
            <Grid Grid.Column="1">
                <Grid.InputBindings>
                    <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduleView:RadScheduleViewCommands.EditAppointment"/>
                </Grid.InputBindings>
                <Border x:Name="BackgroundBorder" Background="{TemplateBinding Background}"/>
                <Border x:Name="SelectionVisual" Visibility="Collapsed" Background="{telerik:Windows8Resource ResourceKey=StrongBrush}" Opacity="0.3"/>
                <Border x:Name="PART_Category" Background="{Binding Path=Category.CategoryBrush}"/>
                <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"/>
                <Rectangle x:Name="ReadOnlyVisual" Visibility="Collapsed" Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}" Opacity="0.3"/>
                <Grid Margin="-1 1 0 1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Path
                            Grid.ColumnSpan="2"
                            Grid.Row="0"
                            Data="M3.5,0 L7,4 L0,4 z"
                            Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"
                            Margin="2 4 2 2"
                            Opacity="0.7"
                            Height="4"
                            Width="7"
                            VerticalAlignment="Top"
                            Stretch="Fill"
                            HorizontalAlignment="Center"
                            Visibility="{TemplateBinding StartIndicatorVisibility}"/>
                    <StackPanel Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" Margin="2 2 0 0" Orientation="Horizontal">
                        <Image x:Name="RecurrenceMark"
                                Margin="2 2 1 1"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsExeptionToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Recurrence}"/>
                        <Image x:Name="ExceptionMark"
                                Margin="2 2 1 1"
                                Width="10"
                                Height="10"
                                Visibility="{Binding Path=RecurrenceState, Converter={StaticResource RecurrenceStateIsOccurenceToVisibilityConverter}}"
                                HorizontalAlignment="Left"
                                Source="{StaticResource AppointmentItem_Exception}"/>
                        <ContentControl x:Name="HighImportanceMark"
                                Template="{StaticResource HighImportanceMarkTemplate}"
                                Margin="2 1 1 0"
                                Style="{StaticResource ImportanceMarkContentControlStyle}"
                                Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=High}"/>
                        <ContentControl x:Name="LowImportanceMark"
                                Template="{StaticResource LowImportanceMarkTemplate}"
                                Margin="2 1 1 0"
                                Style="{StaticResource ImportanceMarkContentControlStyle}"
                                Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Low}"/>
                    </StackPanel>
                    <ContentPresenter
                            Grid.Column="1"
                            Grid.Row="1"
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    <Path
                            Grid.ColumnSpan="2"
                            Grid.Row="2"
                            Data="M7,0 L3.5,4 L0,0 z"
                            Height="4"
                            Width="7"
                            Stretch="Fill"
                            Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"
                            Margin="2 2 2 4"
                            Opacity="0.7"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Center"
                            Visibility="{TemplateBinding EndIndicatorVisibility}"/>
                </Grid>
                <Grid x:Name="MouseOverGrid" Visibility="Collapsed" Opacity="0">
                    <Border x:Name="MouseOverVisual" IsHitTestVisible="False" Background="{telerik:Windows8Resource ResourceKey=StrongBrush}" Opacity="0.1"/>
                    <Border x:Name="PART_StartResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Top"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Height="6"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove"/>
                    <Border x:Name="PART_EndResizeGrip"
                            Background="Transparent"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Bottom"
                            Cursor="{TemplateBinding ResizeCursor}"
                            dragDrop:DragDropManager.AllowDrag="True"
                            Height="6"
                            Visibility="{Binding IsAllDay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                            telerik:TouchManager.DragStartTrigger="TouchMove"/>
                    <telerik:RadButton x:Name="DeleteButton"
                            Style="{StaticResource DeleteButtonStyle}"
                            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.DeleteAppointment}"
                            ClickMode="Press"
                            CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                            Visibility="{Binding RelativeSource={RelativeSource AncestorType=telerikScheduleView:RadScheduleView}, Path=ShowAppointmentDeleteButton, Converter={StaticResource BooleanToVisibilityConverter}}"
                            IsTabStop="False"/>
                </Grid>
            </Grid>
        </Grid>
    </ControlTemplate>
    <DataTemplate x:Key="AppointmentItemTemplate">
        <TextBlock Text="{Binding Subject}" TextWrapping="Wrap" TextTrimming="WordEllipsis" dragDrop:DragDropManager.AllowDrag="False"/>
    </DataTemplate>
    <DataTemplate x:Key="InlineEditTemplate">
        <TextBox Text="{Binding Appointment.Subject, Mode=TwoWay}" VerticalAlignment="Center" VerticalContentAlignment="Stretch" Padding="2 0" Margin="0" TextWrapping="Wrap"/>
    </DataTemplate>
    <DataTemplate x:Key="ToolTipTemplate">
        <StackPanel Orientation="Horizontal">
            <ContentControl x:Name="HighImportanceMark"
                    Template="{StaticResource HighImportanceMarkTemplate}"
                    Style="{StaticResource ImportanceMarkContentControlStyle}"
                    VerticalAlignment="Top"
                    Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=High}"
                    Margin="0 3 2 0"/>
            <ContentControl x:Name="LowImportanceMark"
                    Template="{StaticResource LowImportanceMarkTemplate}"
                    Style="{StaticResource ImportanceMarkContentControlStyle}"
                    VerticalAlignment="Top"
                    Visibility="{Binding Importance, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Low}"
                    Margin="0 3 2 0"/>
            <TextBlock Text="{Binding Subject}" TextWrapping="Wrap" MaxWidth="200" Margin="0" Padding="0"/>
        </StackPanel>
    </DataTemplate>
    <telerikScheduleView:AppointmentItemContentTemplateSelector x:Key="AppointmentItemTemplateSelector" DefaultTemplate="{StaticResource AppointmentItemTemplate}"/>
    <Style x:Key="AppointmentItemBaseStyle" TargetType="telerikScheduleView:AppointmentItem">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=AccentBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="2 0"/>
        <Setter Property="Template" Value="{StaticResource AppointmentItemHorizontalControlTemplate}"/>
        <Setter Property="telerik:TouchManager.DragStartTrigger" Value="TapHoldAndMove"/>
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="ContentTemplateSelector" Value="{StaticResource AppointmentItemTemplateSelector}"/>
        <Setter Property="Panel.ZIndex" Value="1"/>
    </Style>
    <telerikScheduleView:OrientedAppointmentItemStyleSelector x:Key="AppointmentItemStyleSelector">
        <telerikScheduleView:OrientedAppointmentItemStyleSelector.MonthViewStyle>
            <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                <Setter Property="Margin" Value="2 1 2 0"/>
                <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
            </Style>
        </telerikScheduleView:OrientedAppointmentItemStyleSelector.MonthViewStyle>
        <telerikScheduleView:OrientedAppointmentItemStyleSelector.HorizontalStyle>
            <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
                <Setter Property="Margin" Value="0 1 0 0"/>
            </Style>
        </telerikScheduleView:OrientedAppointmentItemStyleSelector.HorizontalStyle>
        <telerikScheduleView:OrientedAppointmentItemStyleSelector.VerticalStyle>
            <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                <Setter Property="Margin" Value="1 0 0 0"/>
                <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
                <Setter Property="ResizeCursor" Value="SizeNS"/>
                <Setter Property="Template" Value="{StaticResource AppointmentItemVerticalControlTemplate}"/>
            </Style>
        </telerikScheduleView:OrientedAppointmentItemStyleSelector.VerticalStyle>
    </telerikScheduleView:OrientedAppointmentItemStyleSelector>
    <Style x:Key="HighlightItemStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Canvas.ZIndex" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:HighlightItem">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ResizeHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid>
                        <Border Background="{TemplateBinding Background}" Opacity="0.1"/>
                        <Path
                                Data="M0,0 L2,0 L0,2 z"
                                Height="4"
                                Width="4"
                                Margin="1"
                                Stretch="Fill"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                        <TextBlock x:Name="StartTextBox"
                                Margin="8 4 2 2"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Text="{Binding ActualStart,StringFormat=t}"
                                Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                        <Path
                                Data="M2,0 L2,2 L0,2 z"
                                Height="4"
                                Width="4"
                                Stretch="Fill"
                                Margin="1"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"
                                Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                        <TextBlock x:Name="EndTextBox"
                                Margin="2 2 4 8"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"
                                Text="{Binding ActualEnd,StringFormat=t}"
                                Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DragDropHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid>
                        <Border Background="{TemplateBinding Background}" Opacity="0.1"/>
                        <Path
                                Data="M0,0 L2,0 L0,2 z"
                                Height="4"
                                Width="4"
                                Margin="1"
                                Stretch="Fill"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                        <TextBlock x:Name="StartTextBox"
                                Margin="4 2"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Text="{Binding ActualStart,StringFormat=t}"
                                Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                        <Path
                                Data="M2,0 L2,2 L0,2 z"
                                Height="4"
                                Width="4"
                                Stretch="Fill"
                                Margin="1"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"
                                Fill="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                        <TextBlock x:Name="EndTextBox"
                                Margin="4 2"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"
                                Text="{Binding ActualEnd,StringFormat=t}"
                                Foreground="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MouseOverHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0.1"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionHighlightStyle" TargetType="telerikScheduleView:HighlightItem">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0.1"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduleView:SpecialSlotStyleSelector x:Key="SpecialSlotStyleSelector">
        <telerikScheduleView:SpecialSlotStyleSelector.DefaultStyle>
            <Style TargetType="telerikScheduleView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}">
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=AccentBrush}"/>
                <Setter Property="Opacity" Value="0.1"/>
            </Style>
        </telerikScheduleView:SpecialSlotStyleSelector.DefaultStyle>
        <telerikScheduleView:SpecialSlotStyleSelector.ReadOnlyStyle>
            <Style TargetType="telerikScheduleView:HighlightItem" BasedOn="{StaticResource HighlightItemStyle}">
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                <Setter Property="Opacity" Value="0.1"/>
            </Style>
        </telerikScheduleView:SpecialSlotStyleSelector.ReadOnlyStyle>
    </telerikScheduleView:SpecialSlotStyleSelector>
    <Style x:Key="ViewModeSelectionListBoxItemStyle" TargetType="ListBoxItem">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Margin" Value="2 0"/>
        <Setter Property="MinWidth" Value="84"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0 3"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="BackgroundBorder" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="BackgroundBorder" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="BackgroundBorder" Background="Transparent" Opacity="0" BorderBrush="{telerik:Windows8Resource ResourceKey=MainBrush}" BorderThickness="1"/>
                        <ContentPresenter x:Name="Content"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                Margin="{TemplateBinding Padding}"
                                VerticalAlignment="{TemplateBinding VerticalAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                RecognizesAccessKey="True"
                                telerik:LocalizationManager.ResourceKey="{Binding Title, FallbackValue={x:Null}}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ViewModeSelectionListBoxStyle" TargetType="ListBox">
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource ViewModeSelectionListBoxItemStyle}"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikPrimitives:RadUniformGrid Rows="1"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                        <ScrollViewer x:Name="ScrollViewer" Margin="0" telerik:TouchManager.TouchMode="None" Padding="{TemplateBinding Padding}" Background="Transparent" BorderThickness="0">
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationButtonBaseStyle" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="1"/>
        <Setter Property="Width" Value="26"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
    <Style x:Key="NavigationButtonBackStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource NavigationButtonBaseStyle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid x:Name="Root" Opacity="0.7">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="Transparent"/>
                        <Grid>
                            <Path
                                    Fill="{telerik1:Windows8Resource ResourceKey=MainBrush}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Margin="-4 0 0 0"
                                    Width="8"
                                    Data="M8.4,0 L8.4,11.2 L0,5.6 z"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationButtonNextStyle" TargetType="telerik:RadButton" BasedOn="{StaticResource NavigationButtonBaseStyle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid x:Name="Root" Opacity="0.7">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="Transparent"/>
                        <Grid>
                            <Path
                                    Fill="{telerik1:Windows8Resource ResourceKey=MainBrush}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Margin="2 0 0 0"
                                    Width="8"
                                    Data="M0,0 L8.5,5.6 L0.0,11.3 z"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationCalendarToggleButton" TargetType="telerik:RadDropDownButton" BasedOn="{StaticResource NavigationButtonBaseStyle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid x:Name="Root" Opacity="0.7">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0" To="1" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="Transparent"/>
                        <ContentControl x:Name="CalendarIcon"
                                IsTabStop="False"
                                HorizontalContentAlignment="Center"
                                VerticalContentAlignment="Top"
                                Margin="0 -1 0 0"
                                Template="{StaticResource CalendarIcon}"
                                Background="{telerik1:Windows8Resource ResourceKey=MainBrush}"/>
                        <Popup x:Name="DropDownPopup"
                                IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}"
                                AllowsTransparency="True"
                                StaysOpen="False"
                                Focusable="False"
                                Placement="Bottom">
                            <ContentPresenter x:Name="DropDownPopupContent"
                                    Content="{TemplateBinding DropDownContent}"
                                    ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                    DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationDateTimePickerStyle" TargetType="telerik:RadDatePicker">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDatePicker">
                    <telerik:RadDropDownButton
                            telerik:DateTimePickerExtensions.FocusContentOnOpen="True"
                            Style="{StaticResource NavigationCalendarToggleButton}"
                            DropDownIndicatorVisibility="Collapsed"
                            IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                        <telerik:RadDropDownButton.DropDownContent>
                            <telerik:RadCalendar x:Name="PART_Calendar"
                                    IsReadOnly="{TemplateBinding IsReadOnly}"
                                    DateSelectionMode="{TemplateBinding DateSelectionMode}"
                                    Culture="{TemplateBinding Culture}"
                                    SelectionMode="Single"
                                    DisplayDateStart="{TemplateBinding DisplayDateStart}"
                                    DisplayDateEnd="{TemplateBinding DisplayDateEnd}"
                                    SelectableDateStart="{TemplateBinding SelectableDateStart}"
                                    SelectableDateEnd="{TemplateBinding SelectableDateEnd}"
                                    DisplayDate="{Binding DisplayDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                    SelectedDate="{Binding SelectedDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                        </telerik:RadDropDownButton.DropDownContent>
                    </telerik:RadDropDownButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NavigationIntervalStyle" TargetType="ContentControl">
        <Setter Property="Margin" Value="5 0 5 0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSizeL}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <TextBlock Margin="0" Text="{Binding}" Foreground="{telerik1:Windows8Resource ResourceKey=MainBrush}"/>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DragVisualContentTemplate">
        <TextBlock
                Text="{Binding Converter={StaticResource DraggedAppointmentsToLocalizedStringConverter}}"
                TextWrapping="Wrap"
                MaxWidth="200"
                MaxHeight="66"
                TextTrimming="WordEllipsis"/>
    </DataTemplate>
    <Style TargetType="telerikScheduleView:DragVisual" x:Key="DragVisualStyle">
        <Setter Property="Padding" Value="0 0 6 0"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduleView:DragVisual">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="EffectStates">
                                <VisualState x:Name="None">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NoneEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Move">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MoveEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Copy">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CopyEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Link">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LinkEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Scroll">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollEffect" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="SecondItemVisual"
                                Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=DraggedItemsSource, Converter={StaticResource EnumerableCountToVisibilityConverter}, ConverterParameter=3}"
                                Margin="4 4 0 0"
                                BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}"
                                Background="{telerik:Windows8Resource ResourceKey=MainBrush}"
                                BorderThickness="1"/>
                        <Border x:Name="ThirdthItemVisual"
                                Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=DraggedItemsSource, Converter={StaticResource EnumerableCountToVisibilityConverter}, ConverterParameter=2}"
                                Margin="2 2 2 2"
                                BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}"
                                Background="{telerik:Windows8Resource ResourceKey=MainBrush}"
                                BorderThickness="1"/>
                        <Border x:Name="DragBackgroundVisual"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"/>
                        <Border Padding="{TemplateBinding BorderThickness}">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Path x:Name="NoneEffect"
                                        Visibility="Collapsed"
                                        Width="10"
                                        Height="10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M2,8 L8,2 M9,5 C9,7.2 7.2,9 5,9 C2.7,9 1,7 1,5 C1,2.8 2.8,1 5,1 C7.2,1 9,2.8 9,5 z"
                                        Stroke="{telerik1:Windows8Resource ResourceKey=ValidationBrush}"
                                        StrokeThickness="2"
                                        Margin="10 3 2 5"/>
                                <Path x:Name="MoveEffect"
                                        Visibility="Collapsed"
                                        Width="10"
                                        Height="10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M0,5 L8,5 M4,1 L8,5 4,9"
                                        StrokeThickness="2"
                                        Margin="10 3 2 5"
                                        Stroke="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                                <Path x:Name="CopyEffect"
                                        Visibility="Collapsed"
                                        Width="10"
                                        Height="10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M5,1 L5,9 M1,5 L9,5"
                                        StrokeThickness="2"
                                        Margin="10 3 2 5"
                                        Stroke="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                                <Path x:Name="LinkEffect"
                                        Visibility="Collapsed"
                                        Height="6"
                                        Width="11"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M8,0.5 C9.4,0.5 10.5,1.6 10.5,3 C10.5,4.4 9.4,5.5 8,5.5 C6.6,5.5 5.5,4.4 5.5,3 C5.5,1.6 6.6,0.5 8,0.5 z M3,0.5 C4.4,0.5 5.5,1.6 5.5,3 C5.5,4.4 4.4,5.5 3,5.5 C1.6,5.5 0.5,4.4 0.5,3 C0.5,1.6 1.6,0.5 3,0.5 z"
                                        Stroke="{telerik1:Windows8Resource ResourceKey=ValidationBrush}"
                                        StrokeThickness="1"
                                        Margin="10 4 5 4"/>
                                <Path x:Name="ScrollEffect"
                                        Visibility="Collapsed"
                                        Width="10"
                                        Height="12"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Data="M0,5 L5,0 10,5Z M0,7 L5,12 10,7Z"
                                        Margin="10 4 5 4"
                                        Fill="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                                <ContentPresenter x:Name="Content"
                                        Grid.Column="1"
                                        Margin="{TemplateBinding Padding}"
                                        Content="{TemplateBinding DraggedItemsSource}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="RadScheduleViewControlTemplate" TargetType="telerikScheduleView:RadScheduleView">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OrienatationStates">
                    <VisualState x:Name="Horizontal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeadersHeight" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Vertical">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeadersWidth" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.ColumnSpan)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>0</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ItemsHost" Storyboard.TargetProperty="(Grid.RowSpan)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>2</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TimeRulerPanel" Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>0</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TimeRulerPanel" Storyboard.TargetProperty="(Grid.Row)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <sys:Int32>1</sys:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid>
                <Grid.InputBindings>
                    <KeyBinding Key="Del" Command="telerikScheduleView:RadScheduleViewCommands.DeleteAppointment"/>
                    <KeyBinding Command="telerikScheduleView:RadScheduleViewCommands.CreateAppointment" Key="O" Modifiers="Alt"/>
                    <KeyBinding Command="telerikScheduleView:RadScheduleViewCommands.CreateInlineAppointment" Key="Insert"/>
                    <KeyBinding Command="telerikScheduleView:RadScheduleViewCommands.CreateAppointment" Key="O" Modifiers="Ctrl"/>
                    <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduleView:RadScheduleViewCommands.CreateAppointment"/>
                </Grid.InputBindings>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Border x:Name="NavigationHeader" Visibility="{TemplateBinding NavigationHeaderVisibility}" Background="{telerik:Windows8Resource ResourceKey=AccentBrush}" Padding="0 2">
                    <Grid x:Name="ScheduleViewHeader">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ListBox x:Name="ViewModeSelection"
                                Grid.Column="0"
                                Style="{StaticResource ViewModeSelectionListBoxStyle}"
                                SelectionMode="Single"
                                ItemsSource="{TemplateBinding ViewDefinitions}"
                                SelectedIndex="{Binding ActiveViewDefinitionIndex, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                        <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="2 0">
                            <ContentControl x:Name="CurrentInterval"
                                    VerticalAlignment="Center"
                                    HorizontalAlignment="Right"
                                    Style="{StaticResource NavigationIntervalStyle}"
                                    Content="{TemplateBinding CurrentVisibleRangeText}"/>
                            <telerik:RadButton Style="{StaticResource NavigationButtonBackStyle}" Command="telerikScheduleView:RadScheduleViewCommands.DecreaseVisibleDateLarge"/>
                            <telerik:RadDatePicker x:Name="PART_NavigationPicker" Style="{StaticResource NavigationDateTimePickerStyle}" SelectedValue="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CurrentDate, Mode=TwoWay}"/>
                            <telerik:RadButton Style="{StaticResource NavigationButtonNextStyle}" Command="telerikScheduleView:RadScheduleViewCommands.IncreaseVisibleDateLarge"/>
                        </StackPanel>
                    </Grid>
                </Border>
                <telerik:RadTransitionControl x:Name="PART_TranstionControl" Grid.Row="1" Duration="00:00:00.500">
                    <telerik:RadTransitionControl.Transition>
                        <telerik:SlideAndZoomTransition MinZoom="1"/>
                    </telerik:RadTransitionControl.Transition>
                    <Grid x:Name="AppointmentsPanelGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Border x:Name="HeadersHeight" Grid.ColumnSpan="3" Height="{TemplateBinding HeadersLength}"/>
                        <Border x:Name="HeadersWidth" Grid.RowSpan="3" Width="{TemplateBinding HeadersLength}"/>
                        <telerikScheduleView:TimeRulerPanel x:Name="PART_TimeRulerPanel"
                                Grid.Row="0"
                                Grid.Column="1"
                                Orientation="{TemplateBinding EffectiveOrientation}"
                                Offset="{Binding HorizontalOffset, RelativeSource={RelativeSource TemplatedParent}}"
                                ClipToBounds="True"/>
                        <telerikScheduleView:AppointmentsPanel x:Name="PART_ItemsHost" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Background="{x:Null}" Orientation="{TemplateBinding EffectiveOrientation}" Panel.ZIndex="1"/>
                        <telerikPrimitives:LayoutTransformControl
                                Grid.Row="1"
                                Grid.Column="1"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Right"
                                Visibility="{TemplateBinding ComputedAppointmentNavigationButtonsVisibility}"
                                Canvas.ZIndex="1"
                                FocusVisualStyle="{x:Null}">
                            <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90"/>
                            </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                            <telerik:RadButton CornerRadius="2 2 0 0" HorizontalContentAlignment="Stretch" Command="telerikScheduleView:RadScheduleViewCommands.GoToNextAppointment" FocusVisualStyle="{x:Null}">
                                <Grid Width="160">
                                    <TextBlock telerik:LocalizationManager.ResourceKey="NextAppointment" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                    <TextBlock Text="▼" FontSize="8" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="8 0"/>
                                </Grid>
                            </telerik:RadButton>
                        </telerikPrimitives:LayoutTransformControl>
                        <telerikPrimitives:LayoutTransformControl
                                Grid.Row="1"
                                Grid.Column="1"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Left"
                                Visibility="{TemplateBinding ComputedAppointmentNavigationButtonsVisibility}"
                                Canvas.ZIndex="1"
                                FocusVisualStyle="{x:Null}">
                            <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90"/>
                            </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                            <telerik:RadButton CornerRadius="0 0 2 2" Command="telerikScheduleView:RadScheduleViewCommands.GoToPreviousAppointment" FocusVisualStyle="{x:Null}">
                                <Grid Width="160">
                                    <TextBlock telerik:LocalizationManager.ResourceKey="PreviousAppointment" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                    <TextBlock Text="▲" FontSize="8" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="8 0"/>
                                </Grid>
                            </telerik:RadButton>
                        </telerikPrimitives:LayoutTransformControl>
                        <Border BorderThickness="0 0 1 0" Grid.Row="1" Grid.Column="1" Canvas.ZIndex="1" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                        <telerikScheduleView:TimeRulerLinesPanel x:Name="PART_TimeRulerLinesPanel"
                                Grid.Row="1"
                                Grid.Column="1"
                                Background="Transparent"
                                Orientation="{TemplateBinding EffectiveOrientation}"
                                PixelLength="{TemplateBinding EffectivePixelLength}"
                                ClipToBounds="True">
                            <telerikScheduleView:TimeRulerLinesPanel.InputBindings>
                                <KeyBinding Command="telerikScheduleView:RadScheduleViewCommands.CreateAppointment" Key="O" Modifiers="Ctrl"/>
                                <MouseBinding MouseAction="LeftDoubleClick" Command="telerikScheduleView:RadScheduleViewCommands.CreateAppointment"/>
                            </telerikScheduleView:TimeRulerLinesPanel.InputBindings>
                        </telerikScheduleView:TimeRulerLinesPanel>
                        <telerikScheduleView:HighlightPanel x:Name="PART_HighlightPanel"
                                Grid.Row="1"
                                Grid.Column="1"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Stretch"
                                Background="Transparent"
                                Orientation="{TemplateBinding EffectiveOrientation}"
                                PixelLength="{TemplateBinding EffectivePixelLength}"
                                IsHitTestVisible="False"
                                ClipToBounds="True"
                                Panel.ZIndex="1"/>
                        <Border x:Name="AppointmentsBorder" Grid.Row="1" Grid.Column="1" BorderThickness="1" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                        <Border x:Name="VerticalHeadersBorder" Grid.Row="1" Grid.Column="0" BorderThickness="0 1" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}" Panel.ZIndex="3"/>
                        <Border x:Name="HorizontalHeadersBorder" Grid.Row="0" Grid.Column="1" BorderThickness="1 0" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}" Panel.ZIndex="3"/>
                        <ScrollBar x:Name="PART_HorizontalScrollBar"
                                Grid.Row="2"
                                Grid.Column="1"
                                Orientation="Horizontal"
                                ViewportSize="{TemplateBinding ViewportWidth}"
                                Maximum="{TemplateBinding ExtentWidth}"
                                Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
                                SmallChange="{TemplateBinding HorizontalSmallChange}"
                                LargeChange="{TemplateBinding HorizontalLargeChange}"/>
                        <ScrollBar x:Name="PART_VerticalScrollBar"
                                Grid.Row="1"
                                Grid.Column="2"
                                Orientation="Vertical"
                                ViewportSize="{TemplateBinding ViewportHeight}"
                                Maximum="{TemplateBinding ExtentHeight}"
                                Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                                SmallChange="{TemplateBinding VerticalSmallChange}"
                                LargeChange="{TemplateBinding VerticalLargeChange}"
                                Margin="1 0 0 0"/>
                        <Grid x:Name="WarningsPanel" Grid.Row="0" Grid.RowSpan="3" Grid.ColumnSpan="3" Panel.ZIndex="2">
                            <Grid x:Name="ViewDefinitionWarning" Background="White" Visibility="{Binding ActiveViewDefinition, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedNullToVisibilityConverter}}">
                                <TextBlock
                                        telerik:LocalizationManager.ResourceKey="{Binding ViewDefinitionWarning}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        FontSize="{telerik:Windows8Resource ResourceKey=FontSizeXXXL}"/>
                            </Grid>
                            <Grid x:Name="AppointmentSourceWarning" Background="White" Visibility="{Binding AppointmentsSource, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedNullToVisibilityConverter}}">
                                <TextBlock
                                        telerik:LocalizationManager.ResourceKey="{Binding AppointmentSourceWarning}"
                                        Foreground="Black"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        FontSize="{telerik:Windows8Resource ResourceKey=FontSizeXXXL}"/>
                            </Grid>
                        </Grid>
                    </Grid>
                </telerik:RadTransitionControl>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="CurrentTimeIndicatorStyle" TargetType="telerikScheduleView:CurrentTimeIndicator">
        <Setter Property="Canvas.ZIndex" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="0 0 -1 -1" MinWidth="2" MinHeight="2" Fill="{telerik1:Windows8Resource ResourceKey=AccentBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduleView:CategoryCollection x:Key="DefaultCategoryCollection">
        <telerikScheduleView:Category CategoryName="Red Category" CategoryBrush="{StaticResource RedCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Green Category" CategoryBrush="{StaticResource GreenCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Blue Category" CategoryBrush="{StaticResource BlueCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Purple Category" CategoryBrush="{StaticResource PurpleCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Yellow Category" CategoryBrush="{StaticResource YellowCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Olive Category" CategoryBrush="{StaticResource OliveCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Pink Category" CategoryBrush="{StaticResource PinkCategoryBrush}"/>
        <telerikScheduleView:Category CategoryName="Orange Category" CategoryBrush="{StaticResource OrangeCategoryBrush}"/>
    </telerikScheduleView:CategoryCollection>
    <telerikScheduleView:TimeMarkerCollection x:Key="DefaultTimeMarkerCollection">
        <telerikScheduleView:TimeMarker TimeMarkerName="Free" TimeMarkerBrush="{StaticResource FreeMarkerBrush}"/>
        <telerikScheduleView:TimeMarker TimeMarkerName="Tentative" TimeMarkerBrush="{StaticResource TentativeMarkerBrush}"/>
        <telerikScheduleView:TimeMarker TimeMarkerName="Busy" TimeMarkerBrush="{StaticResource BusyMarkerBrush}"/>
        <telerikScheduleView:TimeMarker TimeMarkerName="OutOfOffice" TimeMarkerBrush="{StaticResource OutOfOfficeMarkerBrush}"/>
    </telerikScheduleView:TimeMarkerCollection>
    <Style x:Key="ScheduleViewBaseStyle" TargetType="telerikScheduleView:ScheduleViewBase">
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="GroupHeaderStyleSelector" Value="{StaticResource GroupHeaderStyleSelector}"/>
        <Setter Property="GroupHeaderContentTemplateSelector" Value="{StaticResource GroupHeaderContentTemplateSelector}"/>
        <Setter Property="TimeRulerItemStyleSelector" Value="{StaticResource TimeRulerItemStyleSelector}"/>
        <Setter Property="TimeRulerItemTemplateSelector" Value="{StaticResource TimeRulerItemTemplateSelector}"/>
        <Setter Property="CurrentTimeIndicatorStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="CurrentTimeIndicatorAppointmentsAreaStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="ResizeHighlightStyle" Value="{StaticResource ResizeHighlightStyle}"/>
        <Setter Property="DragDropHighlightStyle" Value="{StaticResource DragDropHighlightStyle}"/>
        <Setter Property="MouseOverHighlightStyle" Value="{StaticResource MouseOverHighlightStyle}"/>
        <Setter Property="SelectionHighlightStyle" Value="{StaticResource SelectionHighlightStyle}"/>
        <Setter Property="SpecialSlotStyleSelector" Value="{StaticResource SpecialSlotStyleSelector}"/>
        <Setter Property="MinAppointmentWidth" Value="50"/>
        <Setter Property="AppointmentStyleSelector" Value="{StaticResource AppointmentItemStyleSelector}"/>
        <Setter Property="InlineEditingTemplate" Value="{StaticResource InlineEditTemplate}"/>
        <Setter Property="ToolTipTemplate" Value="{StaticResource ToolTipTemplate}"/>
        <Setter Property="DragVisualStyle" Value="{StaticResource DragVisualStyle}"/>
        <Setter Property="DragVisualTemplate" Value="{StaticResource DragVisualContentTemplate}"/>
        <Setter Property="CategoriesSource" Value="{StaticResource DefaultCategoryCollection}"/>
        <Setter Property="TimeMarkersSource" Value="{StaticResource DefaultTimeMarkerCollection}"/>
        <Setter Property="EditAppointmentDialogStyle" Value="{StaticResource EditAppointmentDialogStyle}"/>
        <Setter Property="EditRecurrenceDialogStyle" Value="{StaticResource EditRecurrenceDialogStyle}"/>
        <Setter Property="DeleteAppointmentConfirmDialogStyle" Value="{StaticResource DeleteAppointmentConfirmDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDialogStyle" Value="{StaticResource RecurrenceChoiceDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDeleteDialogStyle" Value="{StaticResource RecurrenceChoiceDeleteDialogStyle}"/>
        <Setter Property="RecurrenceChoiceResizeDialogStyle" Value="{StaticResource RecurrenceChoiceResizeDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDragDropDialogStyle" Value="{StaticResource RecurrenceChoiceDragDropDialogStyle}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style x:Key="RadScheduleViewStyle" TargetType="telerikScheduleView:RadScheduleView">
        <Setter Property="telerik:ScrollingSettingsBehavior.IsEnabled" Value="True"/>
        <Setter Property="telerik:ScrollingSettingsBehavior.ScrollAreaPadding" Value="30"/>
        <Setter Property="telerik:ScrollingSettingsBehavior.ScrollStep" Value="5"/>
        <Setter Property="telerik:ScrollingSettingsBehavior.ScrollStepTime" Value="00:00:00.01"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template" Value="{StaticResource RadScheduleViewControlTemplate}"/>
        <Setter Property="GroupHeaderStyleSelector" Value="{StaticResource GroupHeaderStyleSelector}"/>
        <Setter Property="GroupHeaderContentTemplateSelector" Value="{StaticResource GroupHeaderContentTemplateSelector}"/>
        <Setter Property="TimeRulerItemStyleSelector" Value="{StaticResource TimeRulerItemStyleSelector}"/>
        <Setter Property="TimeRulerItemTemplateSelector" Value="{StaticResource TimeRulerItemTemplateSelector}"/>
        <Setter Property="CurrentTimeIndicatorStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="CurrentTimeIndicatorAppointmentsAreaStyle" Value="{StaticResource CurrentTimeIndicatorStyle}"/>
        <Setter Property="ResizeHighlightStyle" Value="{StaticResource ResizeHighlightStyle}"/>
        <Setter Property="DragDropHighlightStyle" Value="{StaticResource DragDropHighlightStyle}"/>
        <Setter Property="MouseOverHighlightStyle" Value="{StaticResource MouseOverHighlightStyle}"/>
        <Setter Property="SelectionHighlightStyle" Value="{StaticResource SelectionHighlightStyle}"/>
        <Setter Property="SpecialSlotStyleSelector" Value="{StaticResource SpecialSlotStyleSelector}"/>
        <Setter Property="MinAppointmentWidth" Value="50"/>
        <Setter Property="AppointmentStyleSelector" Value="{StaticResource AppointmentItemStyleSelector}"/>
        <Setter Property="InlineEditingTemplate" Value="{StaticResource InlineEditTemplate}"/>
        <Setter Property="ToolTipTemplate" Value="{StaticResource ToolTipTemplate}"/>
        <Setter Property="DragVisualStyle" Value="{StaticResource DragVisualStyle}"/>
        <Setter Property="DragVisualTemplate" Value="{StaticResource DragVisualContentTemplate}"/>
        <Setter Property="CategoriesSource" Value="{StaticResource DefaultCategoryCollection}"/>
        <Setter Property="TimeMarkersSource" Value="{StaticResource DefaultTimeMarkerCollection}"/>
        <Setter Property="EditAppointmentDialogStyle" Value="{StaticResource EditAppointmentDialogStyle}"/>
        <Setter Property="EditRecurrenceDialogStyle" Value="{StaticResource EditRecurrenceDialogStyle}"/>
        <Setter Property="DeleteAppointmentConfirmDialogStyle" Value="{StaticResource DeleteAppointmentConfirmDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDialogStyle" Value="{StaticResource RecurrenceChoiceDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDeleteDialogStyle" Value="{StaticResource RecurrenceChoiceDeleteDialogStyle}"/>
        <Setter Property="RecurrenceChoiceResizeDialogStyle" Value="{StaticResource RecurrenceChoiceResizeDialogStyle}"/>
        <Setter Property="RecurrenceChoiceDragDropDialogStyle" Value="{StaticResource RecurrenceChoiceDragDropDialogStyle}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style TargetType="telerikScheduleView:RadScheduleView" BasedOn="{StaticResource RadScheduleViewStyle}"/>
    <Style TargetType="telerikScheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}"/>
    <Style TargetType="telerikScheduleView:GroupHeader" BasedOn="{StaticResource GroupHeaderBaseStyle}"/>
    <Style TargetType="telerikScheduleView:GroupHeaderButton" BasedOn="{StaticResource GroupHeaderButtonStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerItem" BasedOn="{StaticResource MinorVerticalTimeRulerItemStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerLine" BasedOn="{StaticResource TimeRulerLineStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerGroupItem" BasedOn="{StaticResource TimeRulerGroupItemStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerMonthViewItem" BasedOn="{StaticResource TimeRulerMonthViewItemStyle}"/>
    <Style TargetType="telerikScheduleView:TimeRulerMonthViewGroupItem" BasedOn="{StaticResource TimeRulerMonthViewGroupItemStyle}"/>
    <SolidColorBrush x:Key="WindowBorderBackground" Color="#FFCCE4FC"/>
    <SolidColorBrush x:Key="WindowModalBackground" Color="#333333FF"/>
    <Thickness x:Key="WindowButtonPadding">4 1</Thickness>
    <Thickness x:Key="WindowButtonMargin">1 3 0 2</Thickness>

    <!-- RadWindow Styles -->
    <DataTemplate x:Key="AlertIconTemplate">
        <Path
                Height="32"
                Stretch="Fill"
                Width="8"
                Data="F1M242.9,305.3L242.4,318.8L238.9,318.8L238.4,305.3z M243.1,322.9C243.1,323.6,242.9,324.1,242.5,324.5C242,325,241.4,325.2,240.7,325.2C239.9,325.2,239.3,325,238.8,324.5C238.4,324.1,238.1,323.5,238.1,322.9C238.1,322.3,238.4,321.7,238.9,321.3C239.3,320.9,239.9,320.7,240.7,320.7C241.4,320.7,242,320.9,242.4,321.3C242.9,321.7,243.1,322.3,243.1,322.9"
                Fill="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
    </DataTemplate>
    <DataTemplate x:Key="ConfirmIconTemplate">
        <Path
                Stretch="Fill"
                Width="22"
                Height="32"
                Data="M7.7,17.9 C9.1,17.9 10.2,19 10.2,20.4 C10.2,21.7 9.1,22.8 7.7,22.8 C6.4,22.8 5.3,21.7 5.3,20.4 C5.3,19 6.4,17.9 7.7,17.9 z M7.6,0 C9,0 10.3,0.2 11.3,0.6 C12.3,1 13,1.5 13.7,2.1 C14.3,2.7 14.7,3.3 14.9,4 C15.2,4.7 15.3,5.4 15.3,6 C15.3,7 15.2,7.8 14.9,8.4 C14.7,9.1 14.4,9.6 14,10.1 C13.6,10.6 13.2,11 12.7,11.3 C12.2,11.6 11.8,11.9 11.4,12.2 C11,12.6 10.6,12.9 10.3,13.4 C9.9,13.8 9.7,14.3 9.6,14.9 L9.6,16.1 L5.4,16.1 L5.4,14.7 C5.5,13.8 5.7,13.1 5.9,12.5 C6.2,11.8 6.5,11.3 6.9,10.9 C7.3,10.5 7.7,10.1 8.1,9.8 C8.5,9.5 8.9,9.2 9.3,8.9 C9.6,8.5 9.9,8.2 10.1,7.8 C10.4,7.5 10.5,7 10.4,6.4 C10.4,5.5 10.2,4.8 9.7,4.3 C9.3,3.8 8.6,3.6 7.8,3.6 C7.2,3.6 6.7,3.7 6.3,3.9 C5.9,4.2 5.6,4.4 5.3,4.8 C5.1,5.2 4.9,5.6 4.7,6.1 C4.6,6.6 4.5,7.1 4.5,7.7 L0,7.7 C0,6.5 0.2,5.5 0.5,4.6 C0.9,3.6 1.4,2.8 2.1,2.1 C2.7,1.4 3.5,0.9 4.4,0.5 C5.4,0.1 6.4,0 7.6,0 z"
                Fill="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
    </DataTemplate>
    <Style x:Key="WindowButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Padding" Value="{StaticResource WindowButtonPadding}"/>
        <Setter Property="Margin" Value="{StaticResource WindowButtonMargin}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="MinHeight" Value="24"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.7"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.3"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="Transparent" x:Name="Rectangle"/>
                        <ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WindowResizeThumbStyle" TargetType="Thumb">
        <Setter Property="MinWidth" Value="5"/>
        <Setter Property="MinHeight" Value="5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Rectangle Fill="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="RadWindowTemplate" TargetType="telerikNavigation:RadWindow">
        <Grid x:Name="LayoutRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Disabled"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="DragStates">
                    <VisualState x:Name="NotDragging"/>
                    <VisualState x:Name="Dragging"/>
                    <VisualState x:Name="Resizing"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="WindowStates">
                    <VisualState x:Name="NormalWindow"/>
                    <VisualState x:Name="MaximizedRestricted"/>
                    <VisualState x:Name="Maximized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="WindowOuterBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButtons" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Minimized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentOuterBorder" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButtons" Storyboard.TargetProperty="Margin">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Thickness>0</Thickness>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="HorizontalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <HorizontalAlignment>Left</HorizontalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="VerticalAlignment">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <VerticalAlignment>Top</VerticalAlignment>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="WindowOuterBorder" Grid.RowSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}">
                <AdornerDecorator>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" MinHeight="30"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid x:Name="Header" Background="{telerik:Windows8Resource ResourceKey=AccentBrush}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Thumb x:Name="titleThumb" Grid.ColumnSpan="2" Style="{StaticResource WindowResizeThumbStyle}"/>
                            <Grid Grid.Column="0" Margin="2 0 0 0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <ContentPresenter x:Name="IconContent"
                                        Grid.Column="0"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Center"
                                        Content="{TemplateBinding Icon}"
                                        ContentTemplate="{TemplateBinding IconTemplate}"
                                        Margin="2"/>
                                <ContentControl x:Name="HeaderContent"
                                        Grid.Column="1"
                                        IsTabStop="False"
                                        HorizontalAlignment="Stretch"
                                        VerticalAlignment="Center"
                                        HorizontalContentAlignment="Stretch"
                                        Content="{TemplateBinding Header}"
                                        ContentTemplate="{TemplateBinding HeaderTemplate}"
                                        SnapsToDevicePixels="True"
                                        ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
                                        FontSize="{telerik:Windows8Resource ResourceKey=FontSizeL}"
                                        FontFamily="{telerik:Windows8Resource ResourceKey=FontFamilyLight}"
                                        Foreground="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
                            </Grid>
                            <Border x:Name="PART_HeaderButtonsBorder" Grid.Column="1">
                                <StackPanel x:Name="HeaderButtons" Grid.Column="1" Orientation="Horizontal" Margin="0 0 3 0">
                                    <telerik:RadButton x:Name="PART_MinimizeButton"
                                            Command="{x:Static telerik:WindowCommands.Minimize}"
                                            Style="{StaticResource WindowButtonStyle}"
                                            Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                        <ToolTipService.ToolTip>
                                            <ToolTip telerik:LocalizationManager.ResourceKey="Minimize"/>
                                        </ToolTipService.ToolTip>
                                        <Path Data="M0,0 L10,0 L10,2 L0,2 z" Height="2" Width="10" VerticalAlignment="Bottom" Margin="0 0 0 6" Fill="{telerik1:Windows8Resource ResourceKey=MainBrush}"/>
                                    </telerik:RadButton>
                                    <telerik:RadButton x:Name="PART_RestoreButton"
                                            Command="{x:Static telerik:WindowCommands.Restore}"
                                            Style="{StaticResource WindowButtonStyle}"
                                            Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                        <ToolTipService.ToolTip>
                                            <ToolTip telerik:LocalizationManager.ResourceKey="Restore"/>
                                        </ToolTipService.ToolTip>
                                        <Path
                                                Fill="{telerik:Windows8Resource ResourceKey=MainBrush}"
                                                Width="10"
                                                Height="10"
                                                Data="M0,2.0009768 L8,2.0009768 L8,10.000977 L0,10.000977 z M1.0026064,0 L10.000999,0.015881581 L10.000999,9.0009928 L9.0009499,9.0010004 L9.0006638,1.0009757 L0.98699945,0.99989343 z"/>
                                    </telerik:RadButton>
                                    <telerik:RadButton x:Name="PART_MaximizeButton"
                                            Command="{x:Static telerik:WindowCommands.Maximize}"
                                            Style="{StaticResource WindowButtonStyle}"
                                            Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                        <ToolTipService.ToolTip>
                                            <ToolTip telerik:LocalizationManager.ResourceKey="Maximize"/>
                                        </ToolTipService.ToolTip>
                                        <Path Data="M1,1 L9,1 L9,9 L1,9 z" Stroke="{telerik1:Windows8Resource ResourceKey=MainBrush}" StrokeThickness="2" Width="10" Height="10"/>
                                    </telerik:RadButton>
                                    <telerik:RadButton x:Name="PART_CloseButton"
                                            Command="{x:Static telerik:WindowCommands.Close}"
                                            Style="{StaticResource WindowButtonStyle}"
                                            Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                        <ToolTipService.ToolTip>
                                            <ToolTip telerik:LocalizationManager.ResourceKey="Close"/>
                                        </ToolTipService.ToolTip>
                                        <Path Data="M1,1 L9,9 M1.0000687,9.0000982 L9.0000687,1.0000986" Stroke="{telerik:Windows8Resource ResourceKey=MainBrush}" StrokeThickness="2" Width="10" Height="10"/>
                                    </telerik:RadButton>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Border x:Name="ContentOuterBorder" Grid.Row="1" Margin="{TemplateBinding BorderThickness}">
                            <ContentPresenter x:Name="ContentElement" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        </Border>
                    </Grid>
                </AdornerDecorator>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadWindowStyle" TargetType="telerikNavigation:RadWindow">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="2 0 2 2"/>
        <Setter Property="MinHeight" Value="32"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="BorderBackground" Value="{StaticResource WindowBorderBackground}"/>
        <Setter Property="MinWidth" Value="100"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Header" Value="RadWindow"/>
        <Setter Property="WindowStartupLocation" Value="Manual"/>
        <Setter Property="WindowState" Value="Normal"/>
        <Setter Property="Template" Value="{StaticResource RadWindowTemplate}"/>
        <Setter Property="CaptionHeight" Value="28"/>
        <Setter Property="ResizeBorder" Value="5"/>
        <Setter Property="ModalBackground" Value="{StaticResource WindowModalBackground}"/>
        <Setter Property="animation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <animation:AnimationSelector>
                    <animation:AnimationGroup AnimationName="Show">
                        <animation:FadeAnimation Direction="In" TargetElementName="LayoutRoot"/>
                        <animation:ScaleAnimation Direction="In" TargetElementName="LayoutRoot" MinScale="0.9"/>
                    </animation:AnimationGroup>
                    <animation:AnimationGroup AnimationName="Hide">
                        <animation:FadeAnimation Direction="Out" TargetElementName="LayoutRoot"/>
                        <animation:ScaleAnimation Direction="Out" TargetElementName="LayoutRoot" MinScale="0.9"/>
                    </animation:AnimationGroup>
                </animation:AnimationSelector>
            </Setter.Value>
        </Setter>
        <Setter Property="navigation:RadWindowInteropHelper.OpaqueWindowBackground" Value="{StaticResource WindowBorderBackground}"/>
        <Style.Triggers>
            <Trigger Property="navigation:RadWindowInteropHelper.AllowTransparency" Value="False">
                <Setter Property="animation:AnimationManager.IsAnimationEnabled" Value="False"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="RadPromptStyle" TargetType="telerikNavigation:RadPrompt">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Width" Value="350"/>
        <Setter Property="IconTemplate" Value="{StaticResource ConfirmIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadPrompt">
                    <Grid x:Name="LayoutRoot">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ContentPresenter x:Name="Icon" VerticalAlignment="Center" Margin="16 0 8 0" ContentTemplate="{TemplateBinding IconTemplate}"/>
                        <StackPanel x:Name="PromptContent" Grid.Row="0" Grid.Column="1" FocusManager.FocusedElement="{Binding ElementName=PromptTextBox}">
                            <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8" BorderBrush="{x:Null}">
                                <ContentPresenter x:Name="PromptText" Margin="8 8 8 0"/>
                            </ScrollViewer>
                            <TextBox IsTabStop="True" TabIndex="0" x:Name="PromptTextBox" Margin="8 0 8 8" Focusable="True"/>
                        </StackPanel>
                        <Border x:Name="HorizontalRule" Grid.Row="1" Grid.ColumnSpan="2" Height="1" VerticalAlignment="Top" Background="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                        <StackPanel x:Name="DialogButtons" Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
                            <telerik:RadButton x:Name="OK"
                                    Command="{x:Static telerik:WindowCommands.Confirm}"
                                    telerikNavigation:RadWindow.ResponseButton="Accept"
                                    MinWidth="70"
                                    IsTabStop="True"
                                    TabIndex="1"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Ok"
                                    Margin="0 10 8 8"/>
                            <telerik:RadButton x:Name="Cancel"
                                    Command="{x:Static telerik:WindowCommands.Cancel}"
                                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                                    MinWidth="70"
                                    IsTabStop="True"
                                    TabIndex="2"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Cancel"
                                    Margin="0 10 8 8"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadPrompt" BasedOn="{StaticResource RadPromptStyle}"/>
    <Style x:Key="RadConfirmStyle" TargetType="telerikNavigation:RadConfirm">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IconTemplate" Value="{StaticResource ConfirmIconTemplate}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadConfirm">
                    <Grid x:Name="LayoutRoot" FocusManager.FocusedElement="{Binding ElementName=OK}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{TemplateBinding IconTemplate}"/>
                        <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8" BorderBrush="{x:Null}">
                            <ContentPresenter x:Name="ConfirmText" Margin="8 8 8 0"/>
                        </ScrollViewer>
                        <Border x:Name="HorizontalRule" Grid.Row="1" Grid.ColumnSpan="2" Height="1" VerticalAlignment="Top" Background="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                        <StackPanel x:Name="DialogButtons" Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
                            <telerik:RadButton x:Name="OK"
                                    Command="{x:Static telerik:WindowCommands.Confirm}"
                                    telerikNavigation:RadWindow.ResponseButton="Accept"
                                    MinWidth="70"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Ok"
                                    Margin="0 10 8 8"/>
                            <telerik:RadButton x:Name="Cancel"
                                    Command="{x:Static telerik:WindowCommands.Cancel}"
                                    telerikNavigation:RadWindow.ResponseButton="Cancel"
                                    MinWidth="70"
                                    HorizontalAlignment="Right"
                                    telerik:LocalizationManager.ResourceKey="Cancel"
                                    Margin="0 10 8 8"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadConfirm" BasedOn="{StaticResource RadConfirmStyle}"/>
    <Style x:Key="RadAlertStyle" TargetType="telerikNavigation:RadAlert">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="MinWidth" Value="275"/>
        <Setter Property="MaxWidth" Value="500"/>
        <Setter Property="IconTemplate" Value="{StaticResource AlertIconTemplate}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadAlert">
                    <Grid x:Name="LayoutRoot" FocusManager.FocusedElement="{Binding ElementName=OK}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.InputBindings>
                            <KeyBinding Key="Escape" Command="{x:Static telerik:WindowCommands.Confirm}"/>
                        </Grid.InputBindings>
                        <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{TemplateBinding IconTemplate}"/>
                        <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 7" BorderBrush="{x:Null}">
                            <ContentPresenter x:Name="AlertText" Margin="8 8 8 0"/>
                        </ScrollViewer>
                        <Border x:Name="HorizontalRule" Grid.Row="1" Grid.ColumnSpan="2" Height="1" VerticalAlignment="Top" Background="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                        <telerik:RadButton x:Name="OK"
                                Command="{x:Static telerik:WindowCommands.Confirm}"
                                telerikNavigation:RadWindow.ResponseButton="Accept"
                                Grid.Row="1"
                                Grid.ColumnSpan="2"
                                MinWidth="70"
                                HorizontalAlignment="Right"
                                telerik:LocalizationManager.ResourceKey="Ok"
                                Margin="0 10 8 8"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikNavigation:RadAlert" BasedOn="{StaticResource RadAlertStyle}"/>
    <ControlTemplate x:Key="NonEditableComboToggleButtonControlTemplate" TargetType="telerik:RadToggleButton">
        <Grid Background="{StaticResource TransparentBrush}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ToggleButtonBackgroundChecked">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ToggleButtonBackgroundChecked">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="ToggleButtonBackground" Storyboard.TargetProperty="Opacity" To="0.5"/>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Opacity" To="0.3"/>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.3"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Unfocused"/>
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusVisual">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckedStates">
                    <VisualState x:Name="Unchecked"/>
                    <VisualState x:Name="Checked">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ToggleButtonBackgroundChecked">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Indeterminate"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="ToggleButtonBackground"
                    Grid.ColumnSpan="2"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"/>
            <Border x:Name="ToggleButtonBackgroundChecked"
                    Grid.ColumnSpan="2"
                    Opacity="0.15"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                    Visibility="Collapsed"/>
            <Border x:Name="FocusVisual" Grid.ColumnSpan="2" Visibility="Collapsed" BorderThickness="1" Opacity="0.2" BorderBrush="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
            <Path x:Name="DropDownIcon"
                    Grid.Column="1"
                    Data="M0,0 L6,0 L3,4 z"
                    Stretch="Fill"
                    Fill="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                    Width="6"
                    Height="4"
                    Margin="5 0"/>
            <ContentPresenter x:Name="Content"
                    TextBlock.Foreground="{TemplateBinding Foreground}"
                    Margin="{TemplateBinding Padding}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                <ContentPresenter.Resources>
                    <Style TargetType="TextBlock">
                        <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                    </Style>
                </ContentPresenter.Resources>
            </ContentPresenter>
        </Grid>
    </ControlTemplate>
    <Style x:Key="NonEditableComboToggleButtonStyle" TargetType="telerik:RadToggleButton">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Template" Value="{StaticResource NonEditableComboToggleButtonControlTemplate}"/>
    </Style>
    <ControlTemplate x:Key="EditableComboToggleButtonControlTemplate" TargetType="telerik:RadToggleButton">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ToggleButtonBackground" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="ToggleButtonBackground" Storyboard.TargetProperty="Opacity" To="0.15"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ToggleButtonBackground" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIcon" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard/>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Unfocused"/>
                    <VisualState x:Name="Focused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckedStates">
                    <VisualState x:Name="Unchecked"/>
                    <VisualState x:Name="Checked"/>
                    <VisualState x:Name="Indeterminate"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="ToggleButtonBackground" Grid.ColumnSpan="2" Background="{TemplateBinding Background}"/>
            <Border Grid.ColumnSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
            <Path x:Name="DropDownIcon"
                    Grid.Column="1"
                    Data="M0,0 L6,0 L3,4 z"
                    Stretch="Fill"
                    Fill="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                    Width="6"
                    Height="4"
                    Margin="5 0"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="EditableComboToggleButtonStyle" TargetType="telerik:RadToggleButton">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Template" Value="{StaticResource EditableComboToggleButtonControlTemplate}"/>
    </Style>
    <Style x:Key="ComboBoxTextBoxStyle" TargetType="TextBox">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <ControlTemplate x:Key="EditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="PART_EditableTextBox" Storyboard.TargetProperty="Opacity" To="0.3"/>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="0.5"/>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="Border" Storyboard.TargetProperty="Opacity" To="0.5"/>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="PART_DropDownButton" Storyboard.TargetProperty="Opacity" To="0.5"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Watermark" Storyboard.TargetProperty="Foreground">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DropDownOpenBorder">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownOpenBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="FocusBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DropDownOpenBorder">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusBorder">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="WatermarkStates">
                    <VisualState x:Name="WatermarkVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Watermark" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="WatermarkInvisible"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="Background" Grid.ColumnSpan="2" IsHitTestVisible="False" Background="{TemplateBinding Background}"/>
            <TextBox x:Name="PART_EditableTextBox"
                    Grid.Column="0"
                    Margin="1 1 0 1"
                    VerticalAlignment="Stretch"
                    Padding="{TemplateBinding Padding}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    IsReadOnly="{TemplateBinding IsReadOnly}"
                    VerticalContentAlignment="Center"
                    Style="{StaticResource ComboBoxTextBoxStyle}">
                <TextBox.Template>
                    <ControlTemplate TargetType="TextBox">
                        <Grid>
                            <ScrollViewer
                                    Padding="{TemplateBinding Padding}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{TemplateBinding Background}"
                                    IsTabStop="False"
                                    VerticalScrollBarVisibility="Auto"
                                    x:Name="PART_ContentHost"
                                    VerticalContentAlignment="Stretch"/>
                        </Grid>
                    </ControlTemplate>
                </TextBox.Template>
            </TextBox>
            <telerik:RadToggleButton x:Name="PART_DropDownButton"
                    Grid.Column="1"
                    IsTabStop="False"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Style="{StaticResource EditableComboToggleButtonStyle}"
                    ClickMode="Press"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="Transparent"/>
            <Border x:Name="Border" Grid.ColumnSpan="2" IsHitTestVisible="False" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
            <Border x:Name="DropDownOpenBorder"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{telerik:Windows8Resource ResourceKey=AccentBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Visibility="Collapsed"/>
            <Border x:Name="FocusBorder"
                    Visibility="Collapsed"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{telerik:Windows8Resource ResourceKey=MarkerBrush}"
                    Opacity="0.2"/>
            <TextBlock x:Name="Watermark"
                    Text="{TemplateBinding EmptyText}"
                    IsHitTestVisible="False"
                    Padding="{TemplateBinding Padding}"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Left"
                    Visibility="Collapsed"
                    Margin="5 0 0 0"
                    Opacity="0.5"/>
            <Popup x:Name="PART_Popup" Margin="0 1" VerticalOffset="1">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            x:Name="PART_ResizeBorder"
                            Background="{telerik:Windows8Resource ResourceKey=MainBrush}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    FontSize="{TemplateBinding FontSize}"
                                    FontFamily="{TemplateBinding FontFamily}"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    Foreground="{TemplateBinding Foreground}"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"
                                    Padding="0 1 0 0">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="NonEditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver"/>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="BackgroundBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledBorder" Storyboard.TargetProperty="Opacity" To="0.5"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <DoubleAnimation Duration="0" Storyboard.TargetName="FocusBorder" Storyboard.TargetProperty="Opacity" To="0"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusBorder">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="BackgroundBorder" IsHitTestVisible="False" Background="{TemplateBinding Background}"/>
            <Border x:Name="DisabledBorder" IsHitTestVisible="False" Opacity="0" Background="{TemplateBinding Background}"/>
            <telerik:RadToggleButton x:Name="PART_DropDownButton"
                    IsTabStop="False"
                    Padding="{TemplateBinding Padding}"
                    Content="{TemplateBinding SelectionBoxItem}"
                    ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Style="{StaticResource NonEditableComboToggleButtonStyle}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{x:Null}"
                    FontFamily="{TemplateBinding FontFamily}"
                    FontSize="{TemplateBinding FontSize}"
                    ClickMode="Press"
                    Foreground="{TemplateBinding Foreground}"/>
            <Border x:Name="FocusBorder"
                    IsHitTestVisible="False"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Visibility="Collapsed"
                    Background="Transparent"
                    BorderBrush="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                    Opacity="0.2"/>
            <Popup x:Name="PART_Popup" Margin="0 1" VerticalOffset="1">
                <Grid x:Name="PopupRoot">
                    <Border
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            x:Name="PART_ResizeBorder"
                            Background="{telerik:Windows8Resource ResourceKey=MainBrush}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    FontSize="{TemplateBinding FontSize}"
                                    FontFamily="{TemplateBinding FontFamily}"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    Foreground="{TemplateBinding Foreground}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"
                                    Padding="0 1 0 0">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <Style x:Key="RadComboBoxItemStyle" TargetType="telerikInput:RadComboBoxItem">
        <Setter Property="Padding" Value="3 2"/>
        <Setter Property="MinHeight" Value="24"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadComboBoxItem">
                    <Border x:Name="BorderVisual" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HighlightVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.33"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Border x:Name="HighlightVisual"
                                    Visibility="Collapsed"
                                    Margin="0 -1 0 0"
                                    AutomationProperties.AutomationId="HighlightVisual"
                                    Background="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                                    Opacity="0.15"/>
                            <Border x:Name="SelectedVisual"
                                    Opacity="0"
                                    Background="{telerik1:Windows8Resource ResourceKey=BasicBrush}"
                                    BorderBrush="{telerik1:Windows8Resource ResourceKey=BasicBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Margin="0 -1 0 0"
                                    SnapsToDevicePixels="True"/>
                            <ContentPresenter x:Name="Content"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikInput:RadComboBox}}, Path=AllowMultipleSelection}" Value="True"/>
                                <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
                            </MultiDataTrigger.Conditions>
                            <MultiDataTrigger.Setters>
                                <Setter TargetName="HighlightVisual" Property="Opacity" Value="0"/>
                                <Setter TargetName="SelectedVisual" Property="Opacity" Value="1"/>
                            </MultiDataTrigger.Setters>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadComboBoxStyle" TargetType="telerikInput:RadComboBox">
        <Setter Property="Template" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}"/>
        <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Padding" Value="5 0"/>
        <Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamilyStrong}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8Resource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationTooltipTemplate}"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Continue"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
    </Style>
    <Style TargetType="telerikInput:RadComboBoxItem" BasedOn="{StaticResource RadComboBoxItemStyle}"/>
    <Style TargetType="telerikInput:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle}"/>
    <Style x:Key="RadSchedulerWindowStyle" BasedOn="{StaticResource RadWindowStyle}" TargetType="telerikNavigation:RadWindow"/>
    <Style x:Key="RadDurationPickerStyle" BasedOn="{StaticResource RadComboBoxStyle}" TargetType="telerikInput:RadComboBox"/>
    <Style TargetType="telerikScheduleView:SchedulerWindow" BasedOn="{StaticResource RadSchedulerWindowStyle}"/>
    <Style TargetType="telerikScheduleView:DurationPicker" BasedOn="{StaticResource RadDurationPickerStyle}"/>
</ResourceDictionary>
