<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"  
    xmlns:activity="clr-namespace:System.Windows.Controls;assembly=ActivityControl"
    xmlns:GridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"   
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"    
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"     
    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"          
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
    xmlns:telerikCalendar="clr-namespace:Telerik.Windows.Controls.Calendar;assembly=Telerik.Windows.Controls.Input" 
    xmlns:CustomControls="clr-namespace:CustomControls;assembly=CustomControls" 
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" 
    xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikAnimation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
    xmlns:telerikAnimationNavigation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation" 
    xmlns:telerikTreeView="clr-namespace:Telerik.Windows.Controls.TreeView;assembly=Telerik.Windows.Controls.Navigation" 
    xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:telerikPrimatives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls" 
    xmlns:Scheduler="clr-namespace:Telerik.Windows.Controls.Scheduler;assembly=Telerik.Windows.Controls.Scheduler" 
    xmlns:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"
    xmlns:telerikTransitionEffects="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"
    xmlns:telerikTransitionControl="clr-namespace:Telerik.Windows.Controls.TransitionControl;assembly=Telerik.Windows.Controls">

    <telerik:Office_BlackTheme x:Key="Theme"/>

    <!-- Templates -->
    <ControlTemplate x:Key="NavTransitioningFrame" TargetType="navigation:Frame">
        <Border Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"  
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
            <telerik:RadTransitionControl Content="{TemplateBinding Content}" 
                Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
	            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Style="{StaticResource SlideAndZoomTransitionStyle}"/>
        </Border>
    </ControlTemplate>

    <ControlTemplate x:Key="ValidationToolTipTemplate">
        <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OpenStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0"/>
                        <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
                            <Storyboard>
                                <DoubleAnimation Duration="0:0:0.2" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
                                    <DoubleAnimation.EasingFunction>
                                        <BackEase Amplitude=".3" EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                                <DoubleAnimation Duration="0:0:0.2" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="xform"/>
                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border Background="#052A2E31" CornerRadius="5" Margin="4,4,-4,-4"/>
            <Border Background="#152A2E31" CornerRadius="4" Margin="3,3,-3,-3"/>
            <Border Background="#252A2E31" CornerRadius="3" Margin="2,2,-2,-2"/>
            <Border Background="#352A2E31" CornerRadius="2" Margin="1,1,-1,-1"/>
            <Border Background="#FFDC000C" CornerRadius="2"/>
            <Border CornerRadius="2">
                <TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding (Validation.Errors)[0].ErrorContent}" UseLayoutRounding="false"/>
            </Border>
        </Grid>
    </ControlTemplate>

    <DataTemplate x:Key="WidgetAppointmentTemplate">
        <Grid Background="Transparent">
            <ToolTipService.ToolTip>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Occurrence.Appointment.Subject}"/>
                    <StackPanel Grid.Column="1" HorizontalAlignment="Right" Margin="5,0,0,0" Visibility="{Binding Occurrence.Appointment.Importance, ConverterParameter=High, Converter={StaticResource ImportanceToVisibilityConverter}}" VerticalAlignment="Center">
                        <Path Data="M200.39647,58.840393 C200.39337,58.336426 201.14566,57.683922 202.56244,57.684292 C204.06589,57.684685 204.73764,58.357765 204.72783,58.992363 C205.04649,61.795574 203.04713,64.181099 202.47388,66.133446 C201.93753,64.154961 199.9471,61.560352 200.39647,58.840393 z" HorizontalAlignment="Center" Height="10" Stretch="Fill" VerticalAlignment="Top" Width="5.451">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                    <GradientStop Color="#FFFF0606" Offset="0.609"/>
                                    <GradientStop Color="#FFBF0303" Offset="0.927"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Ellipse HorizontalAlignment="Center" Height="3" Margin="0,-1,0,0" VerticalAlignment="Top" Width="3">
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFF0606" Offset="0"/>
                                    <GradientStop Color="#FFBF0303" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                    </StackPanel>
                    <Path Grid.Column="1" Data="M222.40353,60.139881 L226.65768,60.139843 L226.63687,67.240196 L229.15347,67.240196 L224.37816,71.394943 L219.65274,67.240196 L222.37572,67.219345 z" HorizontalAlignment="Right" Height="12" Stretch="Fill" Stroke="#FF0365A7" Visibility="{Binding Occurrence.Appointment.Importance, ConverterParameter=Low, Converter={StaticResource ImportanceToVisibilityConverter}}" VerticalAlignment="Center" Width="9">
                        <Path.Fill>
                            <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                <GradientStop Color="#FFBBE4FF"/>
                                <GradientStop Color="#FF024572" Offset="0.836"/>
                                <GradientStop Color="#FF43ADF4" Offset="0.466"/>
                            </LinearGradientBrush>
                        </Path.Fill>
                    </Path>
                </Grid>
            </ToolTipService.ToolTip>
            <TextBox x:Name="PART_SubjectTextBox" Text="{Binding Path=Occurrence.Appointment.Subject}" Foreground="{StaticResource TextForegroundBrush}" HorizontalAlignment="Stretch" IsHitTestVisible="False" Margin="0 -3 18 0" Style="{StaticResource AppointmentSubjectTextBox}" TextWrapping="Wrap" VerticalAlignment="Top"/>
        </Grid>
    </DataTemplate>

    <!-- Global Values -->
    <System:Double x:Key="DropShadowOpacity">0.5</System:Double>
    <System:Double x:Key="DropShadowDepth">3</System:Double>

    <!-- Background Colors -->
    <Color x:Key="AppBackgroundColor">#FF222222</Color>
    <Color x:Key="ControlBackgroundColor">#FF353535</Color>
    <Color x:Key="PageContainerBackgroundColor1">#FF353535</Color>
    <Color x:Key="PageContainerBackgroundColor2">#FF353535</Color>
    <Color x:Key="FrameBackgroundColor1">#FF252525</Color>
    <Color x:Key="FrameBackgroundColor2">#FF1F1F1F</Color>
    <Color x:Key="FrameInnerBackgroundColor">#FF353535</Color>
    <Color x:Key="ButtonBackgroundColor1">#FF767676</Color>
    <Color x:Key="ButtonBackgroundColor2">#FF222222</Color>
    <Color x:Key="HoverBackgroundColor">#33E0E0E0</Color>
    <Color x:Key="PressedBackgroundColor">#33000000</Color>
    <Color x:Key="DisabledBackgroundColor">#FF898989</Color>
    <Color x:Key="ReadOnlyBackgroundColor">#19FFFFFF</Color>
    <Color x:Key="GridViewBackgroundColor1">#FF222222</Color>
    <Color x:Key="GridViewBackgroundColor2">#FF1F1F1F</Color>
    <Color x:Key="GridViewHeaderBackgroundColor1">#FF505050</Color>
    <Color x:Key="GridViewHeaderBackgroundColor2">#FF222222</Color>
    <Color x:Key="SchedulerHeaderBackgroundColor1">#FF505050</Color>
    <Color x:Key="SchedulerHeaderBackgroundColor2">#FF222222</Color>
    <Color x:Key="GridViewRowBackgroundColor">#FF303030</Color>
    <Color x:Key="GridViewAlternateRowBackgroundColor">#FF272727</Color>
    <Color x:Key="GridViewGroupRowBackgroundColor">#FF555555</Color>    
    <Color x:Key="ItemSelectedBackgroundColor1">#FFFFC979</Color>
    <Color x:Key="ItemSelectedBackgroundColor2">#FFFF9600</Color>
    <Color x:Key="NavigationLinkHoverBackgroundColor">#FF353535</Color>
    <Color x:Key="NavigationLinkDividerBackgroundColor">#FF858585</Color>
    <Color x:Key="TileViewItemContainerBackgroundColor">#FF222222</Color>
    <Color x:Key="TileViewItemHeaderBackgroundColor1">#FF222222</Color>
    <Color x:Key="TileViewItemHeaderBackgroundColor2">#FF222222</Color>
    <Color x:Key="TileViewItemContentsBackgroundColor">#FF353535</Color>
    <Color x:Key="TileViewItemToggleButtonBackgroundColor">#FF222222</Color>
    <Color x:Key="TabstripHeaderBackgroundColor">Transparent</Color>
    <Color x:Key="TabContentsBackgroundColor">#FF222222</Color>
    <Color x:Key="TabItemMouseOverBackgroundColor">#FF063955</Color>
    <Color x:Key="TabItemSelectedBackgroundColor">#FF222222</Color>
    <Color x:Key="TabItemBackgroundColor">#FF353535</Color>
    <Color x:Key="GridViewToggleButtonExpandedBackgroundColor">#FF222222</Color>    
    <Color x:Key="DragBetweenItemsFeedbackBackgroundColor">#FFFA8C3B</Color>
    <Color x:Key="GlyphBackgroundColor">#FF565656</Color>
    <Color x:Key="ValidationErrorTooltipBackgroundColor">#FFAD000A</Color>
    

    <!-- Foreground Colors -->
    <Color x:Key="TextForegroundColor">#FF000000</Color>
    <Color x:Key="ControlForegroundColor">#FFC8C8C8</Color>
    <Color x:Key="ButtonForegroundColor">#FFC8C8C8</Color>
    <Color x:Key="LogoForegroundColor1">#FFFFED00</Color>
    <Color x:Key="LogoForegroundColor2">#FFFF9600</Color>
    <Color x:Key="NavigationLinkForegroundColor">#FFFF9600</Color>
    <Color x:Key="GridViewHeaderForegroundColor1">#FFFFED00</Color>
    <Color x:Key="GridViewHeaderForegroundColor2">#FFFF9600</Color>
    <Color x:Key="SchedulerHeaderForegroundColor1">#FFFFED00</Color>
    <Color x:Key="SchedulerHeaderForegroundColor2">#FFFF9600</Color>

    <!-- Border Colors -->
    <Color x:Key="BorderColor">#FF975900</Color>
    <Color x:Key="FocusBorderColor">#FFDDAD31</Color>
    <Color x:Key="PageContainerBorderColor">#FFB26900</Color>
    <Color x:Key="PageContainerInnerBorderColor">#FF000000</Color>
    <!--<Color x:Key="PageContentBorderColor">#FF000000</Color>-->
    <Color x:Key="PageContentBorderColor">#FF252525</Color>
    <Color x:Key="PageContentInnerBorderColor1">#FF858585</Color>
    <Color x:Key="PageContentInnerBorderColor2">#FF606060</Color>
    <Color x:Key="PopupBorderColor">#FFB26900</Color>
    <Color x:Key="ButtonBorderColor">#FF252525</Color>
    <Color x:Key="ButtonInnerBorderColor1">#FFADADAD</Color>
    <Color x:Key="ButtonInnerBorderColor2">#FF606060</Color>
    <Color x:Key="ControlBorderColor">#FF000000</Color>
    <Color x:Key="MouseOverBorderColor">#FFFFFFFF</Color>
    <Color x:Key="GridViewBorderColor">Transparent</Color>
    <Color x:Key="GridViewActiveFunnelBorderColor">#FFE0E0E0</Color>
    <Color x:Key="GridViewRowDetailsBorderColor">#FF975900</Color>    
    <Color x:Key="HoverBorderColor">#33FFFFFF</Color>
    <Color x:Key="TileViewItemBorderColor">#FF222222</Color>
    <Color x:Key="TabMouseOverBorderColor">#FFCDCDCD</Color>
    <Color x:Key="ValidationErrorBorderColor">#FFAD000A</Color>

    <!-- Miscellaneous Colors -->
    <Color x:Key="OverlayColor">#7F000000</Color>



    <!-- Background Brushes -->
    <SolidColorBrush x:Key="AppBackgroundBrush" Color="{StaticResource AppBackgroundColor}" />
    <LinearGradientBrush x:Key="PageContainerBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource PageContainerBackgroundColor1}"/>
        <GradientStop Color="{StaticResource PageContainerBackgroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="FrameBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource FrameBackgroundColor1}"/>
        <GradientStop Color="{StaticResource FrameBackgroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="FrameInnerBackgroundBrush" Color="{StaticResource FrameInnerBackgroundColor}"/>
    <LinearGradientBrush x:Key="ButtonBackgroundBrush" EndPoint="0,1">
        <GradientStop Color="{StaticResource ButtonBackgroundColor1}" />
        <GradientStop Color="{StaticResource ButtonBackgroundColor2}" Offset="1" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlBackgroundBrush" Color="{StaticResource ControlBackgroundColor}" />
    <SolidColorBrush x:Key="HoverBackgroundBrush" Color="{StaticResource HoverBackgroundColor}"/>
    <SolidColorBrush x:Key="PressedBackgroundBrush" Color="{StaticResource PressedBackgroundColor}"/>
    <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="{StaticResource DisabledBackgroundColor}"/>
    <SolidColorBrush x:Key="ReadOnlyBackgroundBrush" Color="{StaticResource ReadOnlyBackgroundColor}"/>
    <LinearGradientBrush x:Key="GridViewBackgroundBrush" EndPoint="0,1">
        <GradientStop Color="{StaticResource GridViewBackgroundColor1}" />
        <GradientStop Color="{StaticResource GridViewBackgroundColor2}" Offset="1" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GridViewGroupRowBackgroundBrush" Color="{StaticResource GridViewGroupRowBackgroundColor}"/>
    <LinearGradientBrush x:Key="GridViewHeaderBackgroundBrush" EndPoint="0,1">
        <GradientStop Color="{StaticResource GridViewHeaderBackgroundColor1}" />
        <GradientStop Color="{StaticResource GridViewHeaderBackgroundColor2}" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SchedulerHeaderBackgroundBrush" EndPoint="0,1">
        <GradientStop Color="{StaticResource SchedulerHeaderBackgroundColor1}" />
        <GradientStop Color="{StaticResource SchedulerHeaderBackgroundColor2}" Offset="1" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GridViewRowBackgroundBrush" Color="{StaticResource GridViewRowBackgroundColor}" />
    <SolidColorBrush x:Key="GridViewAlternateRowBackgroundBrush" Color="{StaticResource GridViewAlternateRowBackgroundColor}" />
    <SolidColorBrush x:Key="NavigationLinkHoverBackgroundBrush" Color="{StaticResource NavigationLinkHoverBackgroundColor}"/>
    <SolidColorBrush x:Key="NavigationLinkDividerBackgroundBrush" Color="{StaticResource NavigationLinkDividerBackgroundColor}"/>
    <LinearGradientBrush x:Key="ItemSelectedBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource ItemSelectedBackgroundColor1}" Offset="0"/>
        <GradientStop Color="{StaticResource ItemSelectedBackgroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TileViewItemHeaderBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource TileViewItemHeaderBackgroundColor1}" Offset="0"/>
        <GradientStop Color="{StaticResource TileViewItemHeaderBackgroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="TileViewItemContentsBackgroundBrush" Color="{StaticResource TileViewItemContentsBackgroundColor}"/>
    <SolidColorBrush x:Key="TileViewItemContainerBackgroundBrush" Color="{StaticResource TileViewItemContainerBackgroundColor}"/>
    <SolidColorBrush x:Key="TileViewItemToggleButtonBackgroundBrush" Color="{StaticResource TileViewItemToggleButtonBackgroundColor}"/>
    <SolidColorBrush x:Key="TabContentsBackgroundBrush" Color="{StaticResource TabContentsBackgroundColor}"/>    
    <SolidColorBrush x:Key="TabItemBackgroundMouseOverBrush" Color="{StaticResource TabItemMouseOverBackgroundColor}"/>
    <SolidColorBrush x:Key="TabstripHeaderBackgroundBrush" Color="{StaticResource TabstripHeaderBackgroundColor}"/>
    <SolidColorBrush x:Key="TabItemBackgroundBrush" Color="{StaticResource TabItemBackgroundColor}"/>
    <SolidColorBrush x:Key="TabItemSelectedBackgroundBrush" Color="{StaticResource TabItemSelectedBackgroundColor}"/>
    <SolidColorBrush x:Key="GridViewToggleButtonExpandedBackgroundBrush" Color="{StaticResource GridViewToggleButtonExpandedBackgroundColor}"/>
    <SolidColorBrush x:Key="DragBetweenItemsFeedbackBackgroundBrush" Color="{StaticResource DragBetweenItemsFeedbackBackgroundColor}"/>
    <SolidColorBrush x:Key="GlyphBackgroundBrush" Color="{StaticResource GlyphBackgroundColor}" />
    <SolidColorBrush x:Key="ValidationErrorTooltipBackgroundBrush" Color="{StaticResource ValidationErrorTooltipBackgroundColor}" />    

    <!-- Foreground Brushes -->
    <SolidColorBrush x:Key="TextForegroundBrush" Color="{StaticResource TextForegroundColor}" />
    <SolidColorBrush x:Key="FormLabelForegroundBrush" Color="{StaticResource ControlForegroundColor}"/>
    <SolidColorBrush x:Key="ButtonForegroundBrush" Color="{StaticResource ButtonForegroundColor}"/>
    <SolidColorBrush x:Key="ControlForegroundBrush" Color="{StaticResource ControlForegroundColor}" />
    <SolidColorBrush x:Key="NavigationLinkForegroundBrush" Color="{StaticResource NavigationLinkForegroundColor}"/>
    <LinearGradientBrush x:Key="LogoForegroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource LogoForegroundColor1}"/>
        <GradientStop Color="{StaticResource LogoForegroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GridViewHeaderForegroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource GridViewHeaderForegroundColor1}"/>
        <GradientStop Color="{StaticResource GridViewHeaderForegroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SchedulerHeaderForegroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource SchedulerHeaderForegroundColor1}"/>
        <GradientStop Color="{StaticResource SchedulerHeaderForegroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ActivityControlForegroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource LogoForegroundColor1}"/>
        <GradientStop Color="{StaticResource LogoForegroundColor2}" Offset="1"/>
    </LinearGradientBrush>

    <!-- Border Brushes -->
    <SolidColorBrush x:Key="PageContainerBorderBrush" Color="{StaticResource PageContainerBorderColor}"/>
    <SolidColorBrush x:Key="PageContainerInnerBorderBrush" Color="{StaticResource PageContainerInnerBorderColor}"/>
    <SolidColorBrush x:Key="PageContentBorderBrush" Color="{StaticResource PageContentBorderColor}"/>
    <LinearGradientBrush x:Key="PageContentInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource PageContentInnerBorderColor1}"/>
        <GradientStop Color="{StaticResource PageContentInnerBorderColor2}" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonBorderBrush" Color="{StaticResource ButtonBorderColor}"/>
    <LinearGradientBrush x:Key="ButtonInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource ButtonInnerBorderColor1}"/>
        <GradientStop Color="{StaticResource ButtonInnerBorderColor2}" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="NormalBorderBrush" Color="{StaticResource BorderColor}"/>
    <SolidColorBrush x:Key="ControlBorderBrush" Color="{StaticResource ControlBorderColor}"/>
    <SolidColorBrush x:Key="FocusBorderBrush" Color="{StaticResource FocusBorderColor}"/>
    <SolidColorBrush x:Key="HoverBorderBrush" Color="{StaticResource HoverBorderColor}"/>
    <SolidColorBrush x:Key="GridViewBorderBrush" Color="{StaticResource GridViewBorderColor}"/>
    <SolidColorBrush x:Key="GridViewHeaderActiveFunnelBorderBrush" Color="{StaticResource GridViewActiveFunnelBorderColor}" />
    <SolidColorBrush x:Key="GridViewRowDetailsBorderBrush" Color="{StaticResource GridViewRowDetailsBorderColor}"/>
    <SolidColorBrush x:Key="PopupBorderBrush" Color="{StaticResource PopupBorderColor}"/>
    <SolidColorBrush x:Key="ItemSelectedBorderBrush" Color="{StaticResource PopupBorderColor}"/>
    <SolidColorBrush x:Key="TileViewItemBorderBrush" Color="{StaticResource TileViewItemBorderColor}"/>   
    <SolidColorBrush x:Key="TabItemBorderMouseOverBrush" Color="{StaticResource TabItemMouseOverBackgroundColor}"/>
    <SolidColorBrush x:Key="TabContentsBorderBrush" Color="{StaticResource BorderColor}"/>
    <SolidColorBrush x:Key="TabItemSelectedBorderBrush" Color="{StaticResource BorderColor}"/>
    <SolidColorBrush x:Key="ValidationErrorBorderBrush" Color="{StaticResource ValidationErrorBorderColor}"/>

    <!-- Miscellaneous Brushes -->
    <LinearGradientBrush x:Key="FocusedBrush" EndPoint="0.5,0.971" StartPoint="0.5,0.042">
        <GradientStop Color="#4CFFFFFF" Offset="0" />
        <GradientStop Color="#26FFFFFF" Offset="1" />
        <GradientStop Color="#26FFFFFF" Offset="0.467" />
        <GradientStop Color="#00FFFFFF" Offset="0.475" />
        <GradientStop Color="#00FFFFFF" Offset="0.856" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="OverlayBrush" Color="{StaticResource OverlayColor}"/>
    
    <!-- NavigationButton Brushes -->
    <LinearGradientBrush x:Key="NavigationButtonBrush1" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF870707" Offset="0.572"/>
        <GradientStop Color="#FFEF1C1C" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NavigationButtonBrush2" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF92992B" Offset="0.572"/>
        <GradientStop Color="#FFCBE400" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NavigationButtonBrush3" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF1250C1" Offset="0.572"/>
        <GradientStop Color="#FF00C3ED" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NavigationButtonBrush4" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF167850" Offset="0.572"/>
        <GradientStop Color="#FF09D287" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NavigationButtonBrush5" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF2E0960" Offset="0.572"/>
        <GradientStop Color="#FF5609D2" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NavigationButtonBrush6" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF9D6C00" Offset="0.572"/>
        <GradientStop Color="#FFEDA400" Offset="1"/>
    </LinearGradientBrush>

    <!-- RadScheduler Brushes -->
    <SolidColorBrush x:Key="InboxBorderBrush" Color="#FF417542"/>
    <SolidColorBrush x:Key="ActionsBorderBrush" Color="#FF0465B3"/>
    <SolidColorBrush x:Key="WaitingBorderBrush" Color="#FF973FA8"/>
    <SolidColorBrush x:Key="SomedayBorderBrush" Color="#FFE69E07"/>
    <SolidColorBrush x:Key="TicklersBorderBrush" Color="#FFE74220"/>
    <SolidColorBrush x:Key="ReferenceBorderBrush" Color="#FF9A561B"/>

    <LinearGradientBrush x:Key="InboxBrush" EndPoint="0,1">
        <GradientStop Color="#FF9ACD68" />
        <GradientStop Color="#FFC6F993" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ActionsBrush" EndPoint="0,1">
        <GradientStop Color="#FF6E92BE" />
        <GradientStop Color="#FFABC1DB" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="WaitingBrush" EndPoint="0,1">
        <GradientStop Color="#FFB788B9" />
        <GradientStop Color="#FFE6D4E8" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SomedayBrush" EndPoint="0,1">
        <GradientStop Color="#FFFED353" />
        <GradientStop Color="#FFFEFD96" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="TicklersBrush" EndPoint="0,1">
        <GradientStop Color="#FFE7827F" />
        <GradientStop Color="#FFF6D1CF" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ReferenceBrush" EndPoint="0,1">
        <GradientStop Color="#FFCB7B36" Offset="0.003" />
        <GradientStop Color="#FFF2CCA9" Offset="1" />
    </LinearGradientBrush>

    <!--TextBlock-->
    <Style TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
    </Style>

    <!-- TextBox -->
    <Style TargetType="TextBox">
        <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlBorderBrush}"/>
        <Setter Property="SelectionBackground" Value="{StaticResource HoverBackgroundBrush}"/>
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Padding" Value="3,1" />
        <Setter Property="Width" Value="350" />
        <Setter Property="Height" Value="22" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid x:Name="RootElement">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation Duration="0" To="{StaticResource HoverBackgroundColor}" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="MouseOverBorder"/>                                        
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ReadOnly">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ReadOnlyVisualElement"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ValidationStates">
                                <VisualState x:Name="Valid"/>
                                <VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Opacity="1">
                            <Grid>
                                <Border x:Name="ReadOnlyVisualElement" Background="{StaticResource ReadOnlyBackgroundBrush}" Opacity="0" CornerRadius="3"/>
                                <Border x:Name="MouseOverBorder" BorderBrush="Transparent" BorderThickness="1" CornerRadius="2">
                                    <ScrollViewer x:Name="ContentElement" BorderThickness="0" IsTabStop="False" Padding="{TemplateBinding Padding}"/>
                                </Border>
                            </Grid>
                        </Border>
                        <Border x:Name="DisabledOverlay" IsHitTestVisible="False" Opacity="0" Background="{StaticResource DisabledBackgroundBrush}" BorderBrush="#A5F7F7F7" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3"/>
                        <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource FocusBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" IsHitTestVisible="False" Margin="1" CornerRadius="2" Opacity="0"/>
                        <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ValidationErrorBorderBrush}" BorderThickness="1" CornerRadius="3" Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                    <ToolTip.Triggers>
                                        <EventTrigger RoutedEvent="Canvas.Loaded">
                                            <BeginStoryboard>
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>true</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </BeginStoryboard>
                                        </EventTrigger>
                                    </ToolTip.Triggers>
                                </ToolTip>
                            </ToolTipService.ToolTip>
                            <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12">
                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="{StaticResource ValidationErrorTooltipBackgroundBrush}" Margin="1,3,0,0"/>
                                <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="{StaticResource ControlForegroundBrush}" Margin="1,3,0,0"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--PasswordBox-->
    <Style TargetType="PasswordBox">
        <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}" />
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource ControlBorderBrush}" />
        <Setter Property="SelectionBackground" Value="{StaticResource HoverBackgroundBrush}"/>
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Padding" Value="3,1" />
        <Setter Property="Width" Value="350" />
        <Setter Property="Height" Value="22" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="PasswordBox">
                    <Grid x:Name="RootElement">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                    <VisualTransition GeneratedDuration="00:00:00.1" To="Disabled" />
                                    <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                    <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation Duration="0" To="{StaticResource HoverBackgroundColor}" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="MouseOverBorder"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".7" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition From="Focused" GeneratedDuration="00:00:00.5000000" To="Unfocused" />
                                    <VisualTransition From="Unfocused" GeneratedDuration="00:00:00.3000000" To="Focused" />
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Border" Opacity="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
                            <Grid>                                                                
                                <Border x:Name="MouseOverBorder" BorderBrush="Transparent" BorderThickness="1" CornerRadius="2">
                                    <Border Margin="{TemplateBinding Padding}" x:Name="ContentElement" />
                                </Border>
                            </Grid>
                        </Border>
                        <Border x:Name="DisabledOverlay" IsHitTestVisible="False" Opacity="0" Background="{StaticResource DisabledBackgroundBrush}" BorderBrush="{StaticResource DisabledBackgroundBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3"/>
                        <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource FocusBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" IsHitTestVisible="False" Margin="1" CornerRadius="2" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Button -->
    <Style TargetType="Button">
        <Setter Property="Background" Value="{StaticResource ButtonBackgroundBrush}" />
        <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource ButtonBorderBrush}" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="MinWidth" Value="80" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                    <VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                                    <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                    <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                    <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.1000000" To="Pressed" />
                                    <VisualTransition From="Pressed" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="PressedBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".6" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
                            <Border Background="{TemplateBinding Background}" BorderBrush="{StaticResource ButtonInnerBorderBrush}" BorderThickness="1" CornerRadius="2"/>
                        </Border>
                        <Border x:Name="HoverBackground" Background="{StaticResource HoverBackgroundBrush}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Opacity="0"/>
                        <Border x:Name="PressedBackground" Background="{StaticResource PressedBackgroundBrush}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Opacity="0"/>
                        <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                        <Border x:Name="DisabledOverlay" Background="{StaticResource DisabledBackgroundBrush}" CornerRadius="4" Opacity="0" IsHitTestVisible="false"/>
                        <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource FocusedBrush}" BorderThickness="1" CornerRadius="4" Margin="1" Visibility="Collapsed" IsHitTestVisible="false" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ImageButton -->
    <Style TargetType="CustomControls:ImageButton">
        <Setter Property="Background" Value="{StaticResource ButtonBackgroundBrush}" />
        <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource ButtonBorderBrush}" />
    </Style>

    <!-- CheckBox -->
    <Style TargetType="CheckBox">
        <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Padding" Value="4,1,0,0"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.55"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CheckIcon">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Indeterminate">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="IndeterminateIcon">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ValidationStates">
                                <VisualState x:Name="Valid"/>
                                <VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="16"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                            <Rectangle x:Name="Background" Fill="{TemplateBinding Background}" Height="14" Margin="1" RadiusY="3" RadiusX="3" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Width="14"/>
                            <Path x:Name="CheckIcon" Fill="{TemplateBinding Foreground}" Data="M102.03442,598.79645 L105.22962,597.78918 L106.78825,600.42358 C106.78825,600.42358 108.51028,595.74304 110.21724,593.60419 C112.00967,591.35822 114.89314,591.42316 114.89314,591.42316 C114.89314,591.42316 112.67844,593.42645 111.93174,594.44464 C110.7449,596.06293 107.15683,604.13837 107.15683,604.13837 z" FlowDirection="LeftToRight" Height="10" Margin="1,1,0,1.5" Opacity="0" Stretch="Fill" Width="10.5"/>
                            <Rectangle x:Name="IndeterminateIcon" Fill="#FF333333" Height="2" Opacity="0" Width="6"/>
                            <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" Width="14" Height="14" Opacity="0" RadiusY="3" RadiusX="3"/>
                            <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" RadiusY="2" RadiusX="2" Stroke="{StaticResource FocusBorderBrush}" StrokeThickness="1" Margin="2"/>
                            <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ValidationErrorBorderBrush}" BorderThickness="1" CornerRadius="3" Margin="1" ToolTipService.PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed">
                                <ToolTipService.ToolTip>
                                    <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                        <ToolTip.Triggers>
                                            <EventTrigger RoutedEvent="Canvas.Loaded">
                                                <BeginStoryboard>
                                                    <Storyboard>
                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                                <DiscreteObjectKeyFrame.Value>
                                                                    <System:Boolean>true</System:Boolean>
                                                                </DiscreteObjectKeyFrame.Value>
                                                            </DiscreteObjectKeyFrame>
                                                        </ObjectAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </BeginStoryboard>
                                            </EventTrigger>
                                        </ToolTip.Triggers>
                                    </ToolTip>
                                </ToolTipService.ToolTip>
                                <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
                                    <Path Data="M 1,0 L5,0 A 2,2 90 0 1 7,2 L7,6 z" Fill="#FFDC000C" Margin="0,3,0,0"/>
                                    <Path Data="M 0,0 L2,0 L 7,5 L7,7" Fill="#ffffff" Margin="0,3,0,0"/>
                                </Grid>
                            </Border>
                        </Grid>
                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ListBox -->
    <Style TargetType="ListBox">
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundColor}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="TabNavigation" Value="Once"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="ValidationStates">
                                <VisualState x:Name="Valid"/>
                                <VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border>
                            <ScrollViewer x:Name="ScrollViewer" BorderBrush="Transparent" BorderThickness="0" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Border>
                        <Border x:Name="ValidationErrorElement" BorderBrush="{StaticResource ValidationErrorBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                    <ToolTip.Triggers>
                                        <EventTrigger RoutedEvent="Canvas.Loaded">
                                            <BeginStoryboard>
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>true</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </BeginStoryboard>
                                        </EventTrigger>
                                    </ToolTip.Triggers>
                                </ToolTip>
                            </ToolTipService.ToolTip>
                            <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="-1,3,0,0"/>
                                <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="-1,3,0,0"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!-- ListBoxItem -->
    <Style TargetType="ListBoxItem">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="TabNavigation" Value="Local"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBackground">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".3"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBackground">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="SelectedBackground" Fill="{StaticResource ItemSelectedBackgroundBrush}" IsHitTestVisible="False" Opacity="0" RadiusY="3" RadiusX="3" Stroke="{StaticResource ItemSelectedBorderBrush}" StrokeThickness="2"/>
                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
                        <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="#FF6DBDD1" StrokeThickness="1" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ItemsControl -->
    <Style TargetType="ItemsControl">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
    </Style>

    <!-- ScrollBar -->
    <Style TargetType="ScrollBar">
        <Setter Property="MinWidth" Value="17" />
        <Setter Property="MinHeight" Value="17" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ScrollBar">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root" Background="Transparent">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Root" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="HorizontalIncrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                                <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                                <VisualTransition From="Pressed" GeneratedDuration="00:00:00.5000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.3000000" To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.8" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path Height="10" Width="9" Stretch="Uniform" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z " Fill="{StaticResource GlyphBackgroundBrush}" x:Name="path" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="HorizontalDecrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                                <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                                <VisualTransition From="Pressed" GeneratedDuration="00:00:00.5000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.3000000" To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.8" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path Height="10" Width="9" Stretch="Uniform" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z " x:Name="path" Fill="{StaticResource GlyphBackgroundBrush}" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="VerticalIncrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                                <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                                <VisualTransition From="Pressed" GeneratedDuration="00:00:00.5000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.3000000" To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.7" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="path" Height="10" Width="9" Stretch="Uniform" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z " Fill="{StaticResource GlyphBackgroundBrush}" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="VerticalDecrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                                <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                                <VisualTransition From="Pressed" GeneratedDuration="00:00:00.5000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.3000000" To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.7" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="path" Height="10" Width="9" Stretch="Uniform" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Fill="{StaticResource GlyphBackgroundBrush}" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="VerticalThumbTemplate" TargetType="Thumb">
                                <Grid>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.7" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid Margin="1,0,1,0" x:Name="ThumbVisual">
                                        <Rectangle x:Name="Background" Fill="{StaticResource GlyphBackgroundBrush}" StrokeThickness="1" RadiusX="3" RadiusY="4" Stroke="{x:Null}" Margin="4.5,-2,5,-2" />
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="HorizontalThumbTemplate" TargetType="Thumb">
                                <Grid>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                                <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                                <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                                <VisualTransition From="Pressed" GeneratedDuration="00:00:00.5000000" To="MouseOver" />
                                                <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.3000000" To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.7" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid Margin="0,1,0,1" x:Name="ThumbVisual">
                                        <Rectangle x:Name="Background" Fill="{StaticResource GlyphBackgroundBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Stroke="{x:Null}" Margin="-2,3.5,-2,4" />
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver" />
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.5" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="HorizontalRoot">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Rectangle Grid.ColumnSpan="5" Stroke="#00000000" StrokeThickness="1" RadiusX="1" RadiusY="1" Fill="{StaticResource FrameBackgroundBrush}" />
                            <RepeatButton Margin="1" x:Name="HorizontalSmallDecrease" Width="16" IsTabStop="False" Template="{StaticResource HorizontalDecrementTemplate}" Grid.Column="0" Interval="50" />
                            <RepeatButton x:Name="HorizontalLargeDecrease" Width="0" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="1" Interval="50" />
                            <Thumb MinWidth="18" x:Name="HorizontalThumb" Width="18" Background="{TemplateBinding Background}" Template="{StaticResource HorizontalThumbTemplate}" Grid.Column="2" />
                            <RepeatButton x:Name="HorizontalLargeIncrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="3" Interval="50" />
                            <RepeatButton Margin="1" x:Name="HorizontalSmallIncrease" Width="16" IsTabStop="False" Template="{StaticResource HorizontalIncrementTemplate}" Grid.Column="4" Interval="50" />
                        </Grid>
                        <Grid x:Name="VerticalRoot" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Rectangle Grid.RowSpan="5" Stroke="#00000000" StrokeThickness="1" RadiusX="1" RadiusY="1" Fill="{StaticResource FrameBackgroundBrush}" />
                            <RepeatButton Height="16" Margin="1" x:Name="VerticalSmallDecrease" IsTabStop="False" Template="{StaticResource VerticalDecrementTemplate}" Grid.Row="0" Interval="50" />
                            <RepeatButton Height="0" x:Name="VerticalLargeDecrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="1" Interval="50" />
                            <Thumb Height="18" MinHeight="18" x:Name="VerticalThumb" Template="{StaticResource VerticalThumbTemplate}" Grid.Row="2" />
                            <RepeatButton x:Name="VerticalLargeIncrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="3" Interval="50" />
                            <RepeatButton Height="16" Margin="1" x:Name="VerticalSmallIncrease" IsTabStop="False" Template="{StaticResource VerticalIncrementTemplate}" Grid.Row="4" Interval="50" />
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!-- ScrollViewer -->
    <Style TargetType="ScrollViewer">
        <Setter Property="BorderThickness" Value="0"/>
    </Style>

    <!-- FormPanel -->
    <Style TargetType="CustomControls:FormPanel">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>

    <!-- Label -->
    <Style TargetType="CustomControls:FormLabel">
        <Setter Property="Foreground" Value="{StaticResource FormLabelForegroundBrush}"/>
    </Style>
    
    <!-- RadProgressBar -->
    <Style TargetType="telerik:RadProgressBar">
        <Setter Property="Background" Value="{StaticResource FrameBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource NormalBorderBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="IsIndeterminate" Value="True"/>
        <Setter Property="Height" Value="15"/>
    </Style>

    <!-- Activity -->
    <Style TargetType="activity:Activity">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ActivityControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="ActiveContent" Value="Loading..."/>
        <Setter Property="DisplayAfter" Value="00:00:00.05"/>
        <Setter Property="MinDisplayTime" Value="00:00:00.75"/>
        <Setter Property="AutoBind" Value="False"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="OverlayStyle">
            <Setter.Value>
                <Style TargetType="Rectangle">
                    <Setter Property="Fill" Value="{StaticResource OverlayBrush}"/>
                    <Setter Property="Opacity" Value="1"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="activity:Activity">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="ActivityDisplay">
                                <VisualState x:Name="Hidden">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="contentPresenter">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Displaying">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="contentPresenter">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="Activity">
                                <VisualState x:Name="Inactive">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="contentControl">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="contentControl">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Active">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="contentControl">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>False</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="contentControl">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>False</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Name="contentControl" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}">
                            <ContentPresenter x:Name="contentPresenter1" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Canvas.ZIndex="0"/>
                        </ContentControl>
                        <Rectangle x:Name="rectangle" Style="{TemplateBinding OverlayStyle}" Visibility="Collapsed" Canvas.ZIndex="1"/>
                        <ContentPresenter x:Name="contentPresenter" Visibility="Collapsed" Canvas.ZIndex="2">
                            <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                                <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="10" Padding="12">
                                    <Border.Effect>
                                        <DropShadowEffect ShadowDepth="{StaticResource DropShadowDepth}" Opacity="{StaticResource DropShadowOpacity}"/>
                                    </Border.Effect>
                                    <StackPanel MinWidth="150">
                                        <ContentControl Foreground="{TemplateBinding Foreground}" ContentTemplate="{TemplateBinding ActiveContentTemplate}" Content="{TemplateBinding ActiveContent}" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
                                        <Rectangle Height="8"/>
                                        <telerik:RadProgressBar Grid.Row="1"/>
                                    </StackPanel>
                                </Border>
                            </Grid>
                        </ContentPresenter>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadRadioButton -->
    <Style TargetType="telerik:RadRadioButton">
        <Setter Property="Margin" Value="1"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadRadioButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <!--<VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                        <VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                                        <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                        <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                        <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.1000000" To="Pressed" />
                                        <VisualTransition From="Pressed" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                    </VisualStateGroup.Transitions>-->
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="PressedBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledOverlay">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PressedBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused"/>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Background" Background="Transparent" CornerRadius="2"/>
                        <Border x:Name="HoverBackground" Background="{StaticResource HoverBackgroundBrush}" CornerRadius="2" Opacity="0"/>
                        <Border x:Name="PressedBackground" Background="{StaticResource ItemSelectedBackgroundBrush}" BorderBrush="{StaticResource ItemSelectedBorderBrush}" BorderThickness="1" CornerRadius="2" Opacity="0"/>
                        <Border BorderThickness="{TemplateBinding BorderThickness}">
                            <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <Border x:Name="DisabledOverlay" Background="{StaticResource DisabledBackgroundBrush}" CornerRadius="2" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadTabControl Templates -->
    <ControlTemplate x:Key="TabControlLeftTemplate" TargetType="telerikNavigation:RadTabControl">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border Grid.Column="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                <ContentPresenter x:Name="ContentElement" Content="{TemplateBinding SelectedContent}" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
            </Border>
            <Grid>
                <Rectangle Fill="{StaticResource TabstripHeaderBackgroundBrush}" Visibility="{TemplateBinding BackgroundVisibility}"/>
                <ItemsPresenter x:Name="ItemsPresenterElement" Margin="2 4 0 0"/>
            </Grid>
            <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" Visibility="Collapsed" Grid.ColumnSpan="2"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="TabControlTopTemplate" TargetType="telerikNavigation:RadTabControl">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Border Margin="0" Grid.Row="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
                <ContentPresenter x:Name="ContentElement" Content="{TemplateBinding SelectedContent}" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
            </Border>
            <Grid>
                <Rectangle Fill="{StaticResource TabstripHeaderBackgroundBrush}" Visibility="{TemplateBinding BackgroundVisibility}"/>
                <ItemsPresenter Margin="8,0,0,0"/>
            </Grid>
            <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" Visibility="Collapsed" Grid.RowSpan="2"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="TabControlRightTemplate" TargetType="telerikNavigation:RadTabControl">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                <ContentPresenter x:Name="ContentElement" Content="{TemplateBinding SelectedContent}" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
            </Border>
            <Grid Grid.Column="1">
                <Rectangle Fill="{StaticResource TabstripHeaderBackgroundBrush}" Visibility="{TemplateBinding BackgroundVisibility}"/>
                <ItemsPresenter x:Name="ItemsPresenterElement" Margin="0 2 4 0"/>
            </Grid>
            <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" Visibility="Collapsed" Grid.ColumnSpan="2"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="TabControlBottomTemplate" TargetType="telerikNavigation:RadTabControl">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled"/>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                <ContentPresenter x:Name="ContentElement" Content="{TemplateBinding SelectedContent}" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/>
            </Border>
            <Grid Grid.Row="1">
                <Rectangle Fill="{StaticResource TabstripHeaderBackgroundBrush}" Visibility="{TemplateBinding BackgroundVisibility}"/>
                <ItemsPresenter x:Name="ItemsPresenterElement" Margin="2 0 0 4"/>
            </Grid>
            <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" Visibility="Collapsed" Grid.RowSpan="2"/>
        </Grid>
    </ControlTemplate>

    <!-- RadTabControl -->
    <Style TargetType="telerikNavigation:RadTabControl">
        <Setter Property="Background" Value="{StaticResource TabContentsBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TabContentsBorderBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="MinWidth" Value="5"/>
        <Setter Property="MinHeight" Value="26"/>
        <Setter Property="IsEnabled" Value="True"/>
        <Setter Property="IsTabStop" Value="true"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikPrimitives:TabStripPanel x:Name="TabStripPanel"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template" Value="{StaticResource TabControlTopTemplate}"/>
        <Setter Property="TopTemplate" Value="{StaticResource TabControlTopTemplate}"/>
        <Setter Property="BottomTemplate" Value="{StaticResource TabControlBottomTemplate}"/>
        <Setter Property="RightTemplate" Value="{StaticResource TabControlRightTemplate}"/>
        <Setter Property="LeftTemplate" Value="{StaticResource TabControlLeftTemplate}"/>
    </Style>

    <!-- RadTabItem -->
    <CornerRadius x:Key="TabItem_OuterCornerRadius">5 5 0 0</CornerRadius>
    <ControlTemplate x:Key="TabItemTemplate" TargetType="telerikNavigation:RadTabItem">
        <Grid x:Name="wrapper">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionVisual"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="SelectedMouseOver">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionVisual"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.1" To="0.3" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HeaderElement"/>
                            <DoubleAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="NormalVisual"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="PlacementStates">
                    <VisualState x:Name="HorizontalTop"/>
                    <VisualState x:Name="HorizontalLeft">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="LayoutTransform" Storyboard.TargetName="OrientationTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="180"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="HorizontalRight"/>
                    <VisualState x:Name="HorizontalBottom">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="LayoutTransform" Storyboard.TargetName="OrientationTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="180"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalTop">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="LayoutTransform" Storyboard.TargetName="OrientationTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="-90"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalLeft">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="LayoutTransform" Storyboard.TargetName="OrientationTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="90"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalRight">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="LayoutTransform" Storyboard.TargetName="OrientationTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="-90"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="VerticalBottom">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="LayoutTransform" Storyboard.TargetName="OrientationTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="-90"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Unfocused"/>
                    <VisualState x:Name="Focused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="NormalVisual" Background="{TemplateBinding Background}" CornerRadius="{StaticResource TabItem_OuterCornerRadius}" Margin="{TemplateBinding Margin}"/>
            <Border x:Name="MouseOverVisual" Background="{StaticResource HoverBackgroundBrush}" CornerRadius="{StaticResource TabItem_OuterCornerRadius}" Margin="{TemplateBinding Margin}" Opacity="0"/>
            <Border x:Name="SelectionVisual" Background="{StaticResource TabItemSelectedBackgroundBrush}" CornerRadius="{StaticResource TabItem_OuterCornerRadius}" Margin="{TemplateBinding Margin}" Opacity="0"/>
            <telerikPrimatives:LayoutTransformControl x:Name="OrientationTransform">
                <ContentPresenter x:Name="HeaderElement" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            </telerikPrimatives:LayoutTransformControl>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerikNavigation:RadTabItem">
        <Setter Property="Background" Value="{StaticResource TabItemBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="MinWidth" Value="5"/>                
        <Setter Property="MinHeight" Value="5"/>                
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Cursor" Value="Arrow"/>
        <Setter Property="Padding" Value="15 4"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template" Value="{StaticResource TabItemTemplate}"/>
    </Style>

    <!-- RadComboBox -->
    <SolidColorBrush x:Key="TextBlock_Foreground_Disabled" Color="#FF999999"/>
    <SolidColorBrush x:Key="TextBlock_Background" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonChrome_BorderBrush_Normal" Color="#FF888688"/>
    <Style x:Key="ComboBox_NonEditableIconStyle" TargetType="ContentPresenter">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Path Data="M0,0 L4,4 8,0 Z" Fill="{StaticResource ControlForegroundBrush}" Height="4" Width="8"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
    <Style x:Key="ComboBox_PopupRootStyle" TargetType="ContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border Background="{StaticResource FrameInnerBackgroundBrush}" BorderBrush="{StaticResource PopupBorderBrush}" BorderThickness="2" Margin="0 0 0 3" CornerRadius="3">
                        <Border.Effect>
                            <DropShadowEffect ShadowDepth="{StaticResource DropShadowDepth}" Opacity="{StaticResource DropShadowOpacity}"/>
                        </Border.Effect>
                        <ContentPresenter/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <CornerRadius x:Key="SplitButton_SpanCornerRadius">1</CornerRadius>
    <SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF000000"/>
    <ControlTemplate x:Key="ArrowTemplateNonEditableCombobox" TargetType="ContentControl">
        <Grid Margin="5 0">
            <Path x:Name="BackgroundIcon" Data="M0,0 L2,0 1,1 Z" Fill="{TemplateBinding Background}" Height="3" Margin="0 2 0 0" Stretch="Fill" Width="5"/>
            <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Fill="{TemplateBinding Foreground}" Height="3" Margin="0 1 0 1" Stretch="Fill" Width="5"/>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF8D8D8D"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Disabled" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF000000"/>
    <SolidColorBrush x:Key="ButtonIconBackground_MouseOver" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FF000000"/>
    <SolidColorBrush x:Key="ButtonIconBackground_Pressed" Color="#FFFFFFFF"/>
    <ControlTemplate x:Key="NonEditableComboBox2" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DropDownIcon">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource HoverBorderBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ValidationStates">
                    <VisualState x:Name="Valid"/>
                    <VisualState x:Name="InvalidUnfocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InvalidFocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="ValidationTooltip">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <System:Boolean>True</System:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" ClickMode="Press" IsTabStop="False" Margin="0" Padding="0">
                <telerik:RadToggleButton.Template>
                    <ControlTemplate TargetType="telerik:RadToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </telerik:RadToggleButton.Template>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Border x:Name="ButtonChrome" BorderBrush="{StaticResource ControlBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" CornerRadius="3" Background="{StaticResource ControlBackgroundBrush}">
                        <Border x:Name="MouseOverBorder" BorderBrush="Transparent" BorderThickness="1" CornerRadius="2"/>
                    </Border>
                    <ContentPresenter x:Name="DropDownIcon" Grid.Column="1" IsHitTestVisible="False" Style="{StaticResource ComboBox_NonEditableIconStyle}"/>
                    <ContentPresenter x:Name="Content" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" Content="{TemplateBinding SelectionBoxItem}" Grid.Column="0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    <TextBlock Text="{Binding ElementName=Content, Path=Content}" Foreground="{TemplateBinding Foreground}" Grid.Column="0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </Grid>
            </telerik:RadToggleButton>
            <Border x:Name="FocusVisual" BorderBrush="{StaticResource FocusBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="1" CornerRadius="2" Visibility="Collapsed"/>
            <Border x:Name="ValidationVisual" BorderBrush="Red" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Visibility="Collapsed"/>
            <Popup x:Name="PART_Popup">
                <ContentControl x:Name="PopupRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding MinDropDownWidth}" Style="{StaticResource ComboBox_PopupRootStyle}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <telerik:RadButton x:Name="PART_ClearButton" Content="{TemplateBinding ClearSelectionButtonContent}" Margin="-1 -1 -1 0" Grid.Row="0" Visibility="{TemplateBinding ClearSelectionButtonVisibility}"/>
                        <ScrollViewer x:Name="PART_ScrollViewer" BorderThickness="0" telerik:ScrollViewerExtensions.EnableMouseWheel="True" Padding="1 1 1 0" Grid.Row="1" VerticalScrollBarVisibility="Auto">
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </Grid>
                </ContentControl>
            </Popup>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FFFFC92B"/>
    <SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="Transparent"/>
    <CornerRadius x:Key="SplitButton_SpanInnerCornerRadius">0</CornerRadius>
    <CornerRadius x:Key="SplitButton_RightPartCornerRadius">0 1 1 0</CornerRadius>
    <System:Boolean x:Key="ComboboxButtonNormalState">True</System:Boolean>
    <ControlTemplate x:Key="ArrowTemplateEditableCombobox" TargetType="ContentControl">
        <Grid Margin="5 0">
            <Path x:Name="BackgroundIcon" Data="M0,0 L2,0 1,1 Z" Fill="{TemplateBinding Background}" Height="3" Margin="0 2 0 0" Stretch="Fill" Width="5"/>
            <Path x:Name="ForegroundIcon" Data="M0,0 L2,0 1,1 Z" Fill="{TemplateBinding Foreground}" Height="3" Margin="0 1 0 1" Stretch="Fill" Width="5"/>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FF989898"/>
    <LinearGradientBrush x:Key="ControlOuterBorder_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF282828"/>
        <GradientStop Color="#FF5F5F5F" Offset="1"/>
    </LinearGradientBrush>
    <ControlTemplate x:Key="EditableComboBox2" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.050">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PART_EditableTextBox">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource TextBlock_Foreground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.150" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.150">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderActive" Storyboard.TargetName="ButtonChrome">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <System:Boolean>True</System:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.115" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_MouseOver}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DropDownOpen">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.050">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Collapsed</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DropDownIcon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderFocused" Storyboard.TargetName="ButtonChrome">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <System:Boolean>True</System:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ValidationStates">
                    <VisualState x:Name="Valid"/>
                    <VisualState x:Name="InvalidUnfocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationTooltip">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InvalidFocused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationTooltip">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="ValidationTooltip">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <System:Boolean>True</System:Boolean>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="WatermarkStates">
                    <VisualState x:Name="WatermarkVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Watermark">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="WatermarkInvisible"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" IsHitTestVisible="False"/>
            <Border x:Name="MouseOverVisual" BorderBrush="{StaticResource ControlOuterBorder_MouseOver}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" IsHitTestVisible="False" Opacity="0" Visibility="Collapsed"/>
            <telerik:PickerTextBox x:Name="PART_EditableTextBox" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Column="0" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{TemplateBinding IsReadOnly}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
            <Border x:Name="FocusVisual" BorderBrush="{StaticResource ControlOuterBorder_Focused}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" IsHitTestVisible="False" Visibility="Collapsed">
                <Border BorderBrush="{StaticResource ControlInnerBorder_Focused}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}"/>
            </Border>
            <telerik:RadToggleButton x:Name="PART_DropDownButton" ClickMode="Press" Grid.Column="1" IsTabStop="False" Margin="0" Padding="0">
                <telerik:RadToggleButton.Template>
                    <ControlTemplate TargetType="telerik:RadToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </telerik:RadToggleButton.Template>
                <Grid>
                    <telerikChromes:ButtonChrome x:Name="ButtonChrome" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource SplitButton_RightPartCornerRadius}" RenderNormal="{StaticResource ComboboxButtonNormalState}" RenderMouseOver="{Binding IsMouseOver, ElementName=PART_DropDownButton}" RenderPressed="{TemplateBinding IsDropDownOpen}" RenderFocused="{TemplateBinding IsFocused}" RenderEnabled="{TemplateBinding IsEnabled}" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <ContentControl x:Name="DropDownIcon" Background="{StaticResource ButtonIconBackground_Normal}" Grid.Column="1" Foreground="{StaticResource ButtonIconForeground_Normal}" IsTabStop="False" Template="{StaticResource ArrowTemplateEditableCombobox}"/>
                </Grid>
            </telerik:RadToggleButton>
            <TextBlock x:Name="Watermark" HorizontalAlignment="Left" IsHitTestVisible="False" Margin="5,0,0,0" Opacity=".5" Text="{TemplateBinding EmptyText}" Visibility="Collapsed" VerticalAlignment="Center"/>
            <telerikChromes:ValidationTooltip x:Name="ValidationTooltip" Grid.ColumnSpan="2" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed"/>
            <Popup x:Name="PART_Popup">
                <Grid x:Name="PopupRoot">
                    <telerikChromes:ShadowChrome Margin="0 0 0 3" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" MaxHeight="{TemplateBinding MaxDropDownHeight}" Margin="0 0 0 3" MinWidth="{TemplateBinding MinDropDownWidth}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton" Content="{TemplateBinding ClearSelectionButtonContent}" Margin="-1 -1 -1 0" Grid.Row="0" Visibility="{TemplateBinding ClearSelectionButtonVisibility}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer" BorderThickness="0" telerik:ScrollViewerExtensions.EnableMouseWheel="True" Padding="1 1 1 0" Grid.Row="1" VerticalScrollBarVisibility="Auto">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerikInput:RadComboBox">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="Background" Value="{StaticResource TextBlock_Background}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonChrome_BorderBrush_Normal}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template" Value="{StaticResource NonEditableComboBox2}"/>
        <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox2}"/>
        <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox2}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Padding" Value="5 0"/>
        <Setter Property="UseLayoutRounding" Value="True"/>
        <Setter Property="telerikAnimation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <telerikAnimation:AnimationSelector>
                    <telerikAnimation:AnimationGroup AnimationName="Expand">
                        <telerikAnimation:SlideAnimation Direction="In" SlideMode="Top" TargetElementName="PopupRoot"/>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="Collapse">
                        <telerikAnimation:SlideAnimation Direction="Out" SlideMode="Top" TargetElementName="PopupRoot"/>
                    </telerikAnimation:AnimationGroup>
                </telerikAnimation:AnimationSelector>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadComboBoxItem -->
    <Style TargetType="telerikInput:RadComboBoxItem">
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="Padding" Value="3,1"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadComboBoxItem">
                    <Grid Background="Transparent">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OverlayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.33"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OverlayBorder" Background="{StaticResource HoverBackgroundBrush}" Opacity="0" CornerRadius="2"/>
                        <ContentControl x:Name="Content" Foreground="{StaticResource ControlForegroundBrush}" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadTreeView -->    
    <Style TargetType="telerikNavigation:RadTreeView">
        <Setter Property="telerikDragDrop:RadDragAndDropManager.AllowDrop" Value="True"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="IsDragTooltipEnabled" Value="True"/>
        <Setter Property="IsEnabled" Value="True"/>
        <Setter Property="IsDropPreviewLineEnabled" Value="True"/>
        <Setter Property="IsRootLinesEnabled" Value="True"/>
        <Setter Property="IsExpandOnDblClickEnabled" Value="True"/>
        <Setter Property="IsDragPreviewEnabled" Value="True"/>
        <Setter Property="SelectionMode" Value="Single"/>
        <Setter Property="ItemsIndent" Value="20"/>
        <Setter Property="telerikAnimation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <telerikAnimation:AnimationSelector>
                    <telerikAnimationNavigation:TreeViewExpandCollapseAnimation AnimationName="Expand" Direction="In"/>
                    <telerikAnimationNavigation:TreeViewExpandCollapseAnimation AnimationName="Collapse" Direction="Out"/>
                </telerikAnimation:AnimationSelector>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikTreeView:TreeViewPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>        
        <Setter Property="ItemEditTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBox/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ExpanderStyle">
            <Setter.Value>
                <Style TargetType="ToggleButton">
                    <Setter Property="IsEnabled" Value="True"/>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="Cursor" Value="Hand"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid Margin="5,0,0,0">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0:0:0.05" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ExpandedVisualOver"/>
                                                    <DoubleAnimation Duration="0:0:0.05" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CollapsedVisualOver"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CheckStates">
                                            <VisualState x:Name="Checked">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0:0:0.05" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ExpandedStates"/>
                                                    <DoubleAnimation Duration="0:0:0.05" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CollapsedStates"/>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unchecked">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0:0:0.05" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ExpandedStates"/>
                                                    <DoubleAnimation Duration="0:0:0.05" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CollapsedStates"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="CollapsedStates">
                                        <Path x:Name="CollapsedVisual" Data="M0.5,0.5 L5.2,5.4 L5.2,5.4 L0.5,10.5 z" Fill="{StaticResource ControlForegroundBrush}" HorizontalAlignment="Left" Width="6" Height="9" Margin="3,1,0,0" RenderTransformOrigin="0.5,1" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Center"/>
                                        <Path x:Name="CollapsedVisualOver" Data="M0.5,0.5 L5.2,5.4 L5.2,5.4 L0.5,10.5 z" Fill="{StaticResource ItemSelectedBackgroundBrush}" HorizontalAlignment="Left" Width="6" Height="9" Margin="3,1,0,0" RenderTransformOrigin="0.5,1" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Center" Opacity="0"/>
                                    </Grid>
                                    <Grid x:Name="ExpandedStates" Opacity="0">
                                        <Path x:Name="ExpandedVisual" Data="M3.27,3.75 L6.5,0.5 L6.5,6.5 L0.5,6.5 z" Fill="{StaticResource ControlForegroundBrush}" HorizontalAlignment="Left" Width="7" Height="7" Margin="2,1,0,0" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Center"/>
                                        <Path x:Name="ExpandedVisualOver" Data="M3.27,3.75 L6.5,0.5 L6.5,6.5 L0.5,6.5 z" Fill="{StaticResource ItemSelectedBackgroundBrush}" HorizontalAlignment="Left" Width="7" Height="7" Margin="2,1,0,0" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Center" Opacity="0"/>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadTreeView">
                    <Grid x:Name="RootElement">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="DropStates">
                                <VisualState x:Name="DropImpossible"/>
                                <VisualState x:Name="DropPossible"/>
                                <VisualState x:Name="DropRootPossible">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ScrollViewer">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="#7fFCD590"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                            <Grid>
                                <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" telerik:ScrollViewerExtensions.EnableMouseWheel="True" IsTabStop="False" Padding="{TemplateBinding Padding}" telerik:StyleManager.Theme="{StaticResource Theme}">
                                    <ItemsPresenter/>
                                </ScrollViewer>
                                <Grid x:Name="DragBetweenItemsFeedback" HorizontalAlignment="Left" Height="8" IsHitTestVisible="False" Margin="{TemplateBinding Padding}" Visibility="Collapsed" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="8"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <Ellipse HorizontalAlignment="Left" Height="8" Stroke="{StaticResource DragBetweenItemsFeedbackBackgroundBrush}" StrokeThickness="2" VerticalAlignment="Center" Width="8"/>
                                    <Rectangle Grid.Column="1" Fill="{StaticResource DragBetweenItemsFeedbackBackgroundBrush}" Height="2" Margin="-2,3,0,0" RadiusY="2" RadiusX="2" VerticalAlignment="Top"/>
                                </Grid>
                            </Grid>
                        </Border>
                        <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" IsHitTestVisible="true" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!-- RadTreeViewItem -->
    <SolidColorBrush x:Key="LineBrush" Color="#FFCCCCCC"/>
    <ControlTemplate x:Key="TreeViewItemDefaultTemplate" TargetType="telerikNavigation:RadTreeViewItem">
        <Grid x:Name="RootElement">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="EditStates">
                    <VisualState x:Name="Display"/>
                    <VisualState x:Name="Edit">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EditHeaderElement">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Header">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledVisual">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0:0:0.0" To="0.35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header"/>
                            <DoubleAnimation Duration="0:0:0.0" To="0.35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Image"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.1" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="SelectionVisual">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="SelectionText">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="SelectedUnfocused">
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.1" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionUnfocusedVisual"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="LoadingOnDemandStates">
                    <VisualState x:Name="LoadingOnDemand">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="LoadingVisual">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Expander">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0:0:1" From="0" RepeatBehavior="Forever" To="359" Storyboard.TargetProperty="Angle" Storyboard.TargetName="LoadingVisualAngleTransform"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="LoadingOnDemandReverse"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ExpandStates">
                    <VisualState x:Name="Expanded"/>
                    <VisualState x:Name="Collapsed"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid x:Name="HeaderRow" Background="Transparent" MinHeight="{TemplateBinding MinHeight}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Rectangle Grid.ColumnSpan="6" Grid.Column="2" Fill="{TemplateBinding Background}" RadiusY="2" RadiusX="2" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="0"/>
                <Rectangle x:Name="MouseOverVisual" Grid.ColumnSpan="6" Grid.Column="2" Fill="{StaticResource HoverBackgroundBrush}" Opacity="0" RadiusY="3" RadiusX="3" StrokeThickness="0"/>
                <Rectangle x:Name="SelectionUnfocusedVisual" Grid.ColumnSpan="6" Grid.Column="2" Fill="{StaticResource ItemSelectedBackgroundBrush}" IsHitTestVisible="False" RadiusY="3" RadiusX="3" Stroke="{StaticResource ItemSelectedBorderBrush}" Opacity="0"/>
                <Rectangle x:Name="SelectionVisual" Grid.ColumnSpan="6" Grid.Column="2" Fill="{StaticResource ItemSelectedBackgroundBrush}" IsHitTestVisible="False" RadiusY="3" RadiusX="3" Stroke="{StaticResource ItemSelectedBorderBrush}" Visibility="Collapsed"/>
                <StackPanel x:Name="IndentContainer" Orientation="Horizontal">
                    <Rectangle x:Name="IndentFirstVerticalLine" Stroke="{StaticResource LineBrush}" Visibility="Collapsed" VerticalAlignment="Top" Width="1">
                        <Rectangle.Clip>
                            <RectangleGeometry Rect="0,0,1,10000"/>
                        </Rectangle.Clip>
                    </Rectangle>
                </StackPanel>
                <Grid x:Name="ListRootContainer" Grid.Column="1" HorizontalAlignment="Center" MinWidth="20">
                    <Rectangle x:Name="HorizontalLine" HorizontalAlignment="Right" Height="1" Stroke="{StaticResource LineBrush}" VerticalAlignment="Center">
                        <Rectangle.Clip>
                            <RectangleGeometry Rect="0,0,10000,1"/>
                        </Rectangle.Clip>
                    </Rectangle>
                    <Rectangle x:Name="VerticalLine" HorizontalAlignment="Center" Stroke="{StaticResource LineBrush}" VerticalAlignment="Top" Width="1">
                        <Rectangle.Clip>
                            <RectangleGeometry Rect="0,0,1,10000"/>
                        </Rectangle.Clip>
                    </Rectangle>
                    <ToggleButton x:Name="Expander" Background="{TemplateBinding Background}" IsTabStop="False"/>
                    <Grid x:Name="LoadingVisual" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" VerticalAlignment="Center">
                        <Grid.RenderTransform>
                            <TransformGroup>
                                <RotateTransform x:Name="LoadingVisualAngleTransform" Angle="0" CenterY="0.5" CenterX="0.5"/>
                            </TransformGroup>
                        </Grid.RenderTransform>
                        <Path Data="M1,0 A1,1,90,1,1,0,-1" Height="10" StrokeStartLineCap="Round" Stretch="Fill" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" Width="10"/>
                        <Path Data="M0,-1.1 L0.1,-1 L0,-0.9" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Left" Height="4" Margin="5,-1.5,0,0" Stretch="Fill" StrokeThickness="1" VerticalAlignment="Top" Width="4"/>
                    </Grid>
                </Grid>
                <CheckBox x:Name="CheckBoxElement" Grid.Column="2" IsTabStop="False" Margin="5,0,0,0" telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed" VerticalAlignment="Center"/>
                <RadioButton x:Name="RadioButtonElement" Grid.Column="2" IsTabStop="False" Margin="5,0,0,0" telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="Collapsed" VerticalAlignment="Center"/>
                <Image x:Name="Image" Grid.Column="3" HorizontalAlignment="Center" MaxWidth="16" MaxHeight="16" Margin="2" Source="{TemplateBinding DefaultImageSrc}" VerticalAlignment="Center"/>
                <Rectangle x:Name="FocusVisual" Grid.ColumnSpan="6" Grid.Column="2" IsHitTestVisible="False" RadiusY="3" RadiusX="3" Stroke="Transparent" StrokeThickness="0" Visibility="Collapsed"/>
                <Grid Grid.ColumnSpan="2" Grid.Column="4">
                    <ContentPresenter x:Name="Header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}"/>
                    <TextBlock x:Name="SelectionText" Text="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Foreground="Black" Visibility="Collapsed"/>
                    <ContentPresenter x:Name="EditHeaderElement" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Visibility="Collapsed" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </Grid>
                <Rectangle x:Name="DisabledVisual" Grid.ColumnSpan="3" Grid.Column="2" IsHitTestVisible="true" Visibility="Collapsed"/>
            </Grid>
            <ItemsPresenter x:Name="ItemsHost" Grid.Row="1" Visibility="Collapsed"/>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerikNavigation:RadTreeViewItem">
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="CheckState" Value="Off"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1 0 5 0"/>
        <Setter Property="IsDropAllowed" Value="True"/>
        <Setter Property="ItemsOptionListType" Value="Default"/>
        <Setter Property="IsEnabled" Value="True"/>
        <Setter Property="MinHeight" Value="24"/>
        <Setter Property="Template" Value="{StaticResource TreeViewItemDefaultTemplate}"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikTreeView:TreeViewPanel VerticalAlignment="Bottom"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!-- RadTransitionControl -->
    <Style TargetType="telerik:RadTransitionControl">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Transition">
            <Setter.Value>
                <telerikTransitionEffects:FadeTransition/>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadTransitionControl">
                    <Grid x:Name="PART_RootElement">
                        <telerikTransitionControl:TransitionPresenter x:Name="PART_ContentPresenter" Cursor="{TemplateBinding Cursor}" CurrentContent="{TemplateBinding Content}" CurrentContentTemplate="{TemplateBinding ContentTemplate}" Duration="{TemplateBinding Duration}" Easing="{TemplateBinding Easing}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Transition="{TemplateBinding Transition}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="SlideAndZoomTransitionStyle" TargetType="telerik:RadTransitionControl">
        <Setter Property="Transition">
            <Setter.Value>
                <telerikTransitionEffects:SlideAndZoomTransition/>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadChart -->
    <Style TargetType="telerikChart:RadChart">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikChart:RadChart">
					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Grid Background="{TemplateBinding Background}" Margin="{TemplateBinding Padding}">
							<Grid x:Name="PART_DefaultLayoutGrid">
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto"/>
									<RowDefinition Height="*"/>
								</Grid.RowDefinitions>
								<ContentPresenter x:Name="PART_DefaultChartTitleContainer"/>
								<telerik:RadDockPanel LastChildFill="True" Grid.Row="1">
									<ContentPresenter x:Name="PART_DefaultChartLegendContainer" telerik:RadDockPanel.Dock="{Binding DefaultView.ChartLegendPosition, RelativeSource={RelativeSource TemplatedParent}}"/>
									<ContentPresenter x:Name="PART_DefaultChartAreaContainer"/>
								</telerik:RadDockPanel>
							</Grid>
							<ContentPresenter/>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Background" Value="Transparent"/>            
		<Setter Property="BorderThickness" Value="0"/>
	</Style>
    
    <Style TargetType="chart:ChartLegend" >
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}" />
    </Style>

    <Style TargetType="chart:ChartTitle">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="OuterBorderThickness" Value="0" />
    </Style>

    <Style TargetType="chart:ChartLegendItem" >
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}" />
    </Style>

    <!-- RadContextMenu -->
    <Style TargetType="telerikNavigation:RadContextMenu">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadContextMenu">
                    <Border x:Name="backgroundBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="5">
                        <Border.Effect>
                            <DropShadowEffect ShadowDepth="{StaticResource DropShadowDepth}" Opacity="{StaticResource DropShadowOpacity}"/>
                        </Border.Effect>
                        <ItemsPresenter Margin="{TemplateBinding Padding}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadContextMenuItem -->
    <SolidColorBrush x:Key="RadMenuTabBorder" Color="Green"/>
    <Thickness x:Key="RadMenuTabBorderThickness">1</Thickness>
    <LinearGradientBrush x:Key="RadMenuTabBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="Red" Offset="1"/>
        <GradientStop Color="Green" Offset="0"/>
    </LinearGradientBrush>
    <CornerRadius x:Key="RadMenuTabCornerRadius">0</CornerRadius>
    <Thickness x:Key="RadMenuTabMargin">2</Thickness>
    <Thickness x:Key="RadMenuTabContentMargin">8,2,8,0</Thickness>
    <Thickness x:Key="RadMenuTabContentPadding">0</Thickness>
    <LinearGradientBrush x:Key="RadMenuPopUpOuterBorder" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEAEAEA" Offset="0"/>
        <GradientStop Color="#FFC4C4C4" Offset="1"/>
    </LinearGradientBrush>
    <Thickness x:Key="RadMenuPopUpOuterBorderThickness">0</Thickness>
    <SolidColorBrush x:Key="RadMenuPopUpInnerBorder" Color="#FFB2B2B2"/>
    <Thickness x:Key="RadMenuPopUpInnerBorderThickness">0</Thickness>
    <SolidColorBrush x:Key="RadMenuPopUp" Color="#FFf5f5f5"/>
    <SolidColorBrush x:Key="RadMenuPopUpLeftColumnInnerBorder" Color="#FFe2e0e3"/>
    <SolidColorBrush x:Key="RadMenuPopUpLeftColumnOuterBorder" Color="#7FFFFFFF"/>
    <SolidColorBrush x:Key="RadMenuPopUpLeftColumnBackground" Color="#e2e2e2"/>
    <CornerRadius x:Key="RadMenuPopUpInnerBorderCornerRadius">1</CornerRadius>
    <CornerRadius x:Key="RadMenuPopUpOuterBorderCornerRadius">2</CornerRadius>
    <SolidColorBrush x:Key="RadMenuNavigationDisabledBackground" Color="#99FFFFFF"/>
    <SolidColorBrush x:Key="RadMenuTabBorder_pressed" Color="#FFFA8C3B"/>
    <LinearGradientBrush x:Key="RadMenuTabBackground_pressed" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="Pink" Offset="1"/>
        <GradientStop Color="Olive" Offset="0"/>
    </LinearGradientBrush>
    <ControlTemplate x:Key="TopLevelHeaderTemplate" TargetType="telerikNavigation:RadMenuItem">
        <Grid x:Name="RootElement" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadMenuTabBorder_pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadMenuTabBackground_pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBox">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0.33"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckStateGroup">
                    <VisualState x:Name="Checked">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="GlyphPanel">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unchecked"/>
                    <VisualState x:Name="HideIcon">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
            <Border x:Name="OverlayBackground" BorderBrush="{StaticResource RadMenuTabBorder}" BorderThickness="{StaticResource RadMenuTabBorderThickness}" Background="{StaticResource RadMenuTabBackground}" CornerRadius="{StaticResource RadMenuTabCornerRadius}" Margin="{StaticResource RadMenuTabMargin}" Opacity="0"/>
            <Border Padding="{StaticResource RadMenuTabContentPadding}">
                <telerik:RadDockPanel MinHeight="24">
                    <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" Margin="4,0,0,0" VerticalAlignment="Center"/>
                    <Path x:Name="GlyphPanel" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" Fill="{TemplateBinding Foreground}" Margin="4,0,0,0" Visibility="Collapsed" VerticalAlignment="Center"/>
                    <ContentPresenter x:Name="Content" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{StaticResource RadMenuTabContentMargin}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </telerik:RadDockPanel>
            </Border>
            <Popup x:Name="PART_Popup">
                <Border x:Name="DropDownBorder" BorderBrush="{StaticResource RadMenuPopUpOuterBorder}" BorderThickness="{StaticResource RadMenuPopUpOuterBorderThickness}" Background="{Binding BorderBrush, ElementName=backgroundBorder}" CornerRadius="{StaticResource RadMenuPopUpOuterBorderCornerRadius}">
                    <Border x:Name="backgroundBorder" BorderBrush="{StaticResource RadMenuPopUpInnerBorder}" BorderThickness="{StaticResource RadMenuPopUpInnerBorderThickness}" Background="{StaticResource RadMenuPopUp}" CornerRadius="{StaticResource RadMenuPopUpInnerBorderCornerRadius}">
                        <Grid>
                            <Border BorderBrush="{StaticResource RadMenuPopUpLeftColumnInnerBorder}" BorderThickness="0 0 1 0" HorizontalAlignment="Left" Width="25">
                                <Border BorderBrush="{StaticResource RadMenuPopUpLeftColumnOuterBorder}" BorderThickness="0 0 1 0" Background="{StaticResource RadMenuPopUpLeftColumnBackground}" Width="24"/>
                            </Border>
                            <ItemsPresenter/>
                        </Grid>
                    </Border>
                </Border>
            </Popup>
            <Rectangle x:Name="DisabledBox" Fill="{StaticResource RadMenuNavigationDisabledBackground}" IsHitTestVisible="False" Visibility="Collapsed"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="TopLevelItemTemplate" TargetType="telerikNavigation:RadMenuItem">
        <Grid x:Name="RootElement" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadMenuTabBorder_pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="OverlayBackground">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadMenuTabBackground_pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBox">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0.33"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckStateGroup">
                    <VisualState x:Name="Checked">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="GlyphPanel">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unchecked"/>
                    <VisualState x:Name="HideIcon">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
            <Border x:Name="OverlayBackground" BorderBrush="{StaticResource RadMenuTabBorder}" BorderThickness="{StaticResource RadMenuTabBorderThickness}" Background="{StaticResource RadMenuTabBackground}" CornerRadius="{StaticResource RadMenuTabCornerRadius}" Margin="{StaticResource RadMenuTabMargin}" Opacity="0"/>
            <Border Padding="{StaticResource RadMenuTabContentPadding}">
                <telerik:RadDockPanel MinHeight="24">
                    <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" HorizontalAlignment="Center" Margin="4,0,0,0" VerticalAlignment="Center"/>
                    <Path x:Name="GlyphPanel" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" Fill="{TemplateBinding Foreground}" Margin="4,0,0,0" Visibility="Collapsed" VerticalAlignment="Center"/>
                    <ContentPresenter x:Name="Content" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{StaticResource RadMenuTabContentMargin}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                </telerik:RadDockPanel>
            </Border>
            <Rectangle x:Name="DisabledBox" Fill="{StaticResource RadMenuNavigationDisabledBackground}" IsHitTestVisible="False" Visibility="Collapsed"/>
        </Grid>
    </ControlTemplate>
    <Thickness x:Key="RadMenuNavigationMargin">2</Thickness>
    <ControlTemplate x:Key="SubMenuHeaderTemplate" TargetType="telerikNavigation:RadMenuItem">
        <Grid x:Name="RootElement" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InnerBorder"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBox">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InnerBorder"/>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0.33"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="InnerBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckStateGroup">
                    <VisualState x:Name="Checked">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="GlyphPanel">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unchecked"/>
                    <VisualState x:Name="HideIcon">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Rectangle x:Name="OverlayBackground" Fill="{TemplateBinding Background}"/>
            <Border x:Name="InnerBorder" Background="{StaticResource HoverBackgroundBrush}" CornerRadius="2" Margin="{StaticResource RadMenuNavigationMargin}"/>
            <Grid MinHeight="26">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MinWidth="24" Width="Auto"/>
                    <ColumnDefinition Width="4"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="37"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="17"/>
                </Grid.ColumnDefinitions>
                <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" HorizontalAlignment="Center" Margin="1,0,0,0" VerticalAlignment="Center"/>
                <Path x:Name="GlyphPanel" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" Fill="{TemplateBinding Foreground}" Height="11" Margin="1,0,0,0" Visibility="Collapsed" Width="9"/>
                <TextBlock x:Name="ActiveElement" Foreground="Black" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Header}" Grid.Column="2" Opacity="0"/>
                <ContentPresenter x:Name="Content" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Grid.Column="2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                <Path Grid.Column="5" Data="M 0,0 L 4,3.5 L 0,7 Z" Fill="{TemplateBinding Foreground}" Margin="1,0,0,0" VerticalAlignment="Center" Width="9"/>
            </Grid>
            <Popup x:Name="PART_Popup" HorizontalOffset="-3" VerticalOffset="-2">
                <Border x:Name="backgroundBorder" BorderBrush="{StaticResource PopupBorderBrush}" BorderThickness="2" Background="{StaticResource FrameInnerBackgroundBrush}" CornerRadius="5">
                    <Border.Effect>
                        <DropShadowEffect ShadowDepth="{StaticResource DropShadowDepth}" Opacity="{StaticResource DropShadowOpacity}"/>
                    </Border.Effect>
                    <ItemsPresenter Margin="{TemplateBinding Padding}"/>
                </Border>
            </Popup>
            <Rectangle x:Name="DisabledBox" Fill="{StaticResource RadMenuNavigationDisabledBackground}" IsHitTestVisible="False" Visibility="Collapsed"/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="SubMenuItemTemplate" TargetType="telerikNavigation:RadMenuItem">
        <Grid x:Name="RootElement" Background="Transparent">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="Highlighted">
                        <Storyboard>
                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InnerBorder"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBox">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InnerBorder"/>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0.33"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckStateGroup">
                    <VisualState x:Name="Checked">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="GlyphPanel">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unchecked"/>
                    <VisualState x:Name="HideIcon">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Icon">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Rectangle x:Name="OverlayBackground" Fill="{TemplateBinding Background}"/>
            <Border x:Name="InnerBorder" Background="{StaticResource HoverBackgroundBrush}" CornerRadius="2" Margin="{StaticResource RadMenuNavigationMargin}" Opacity="0"/>
            <Grid MinHeight="26">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MinWidth="24" Width="Auto"/>
                    <ColumnDefinition Width="4"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="37"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="17"/>
                </Grid.ColumnDefinitions>
                <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" Margin="1,0,0,0" VerticalAlignment="Center"/>
                <Path x:Name="GlyphPanel" Data="M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z" Fill="{TemplateBinding Foreground}" Height="11" Margin="1,0,0,0" Visibility="Collapsed" Width="9"/>
                <TextBlock x:Name="ActiveElement" Foreground="Black" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Header}" Grid.Column="2" Opacity="0"/>
                <ContentPresenter x:Name="Content" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Grid.Column="2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            </Grid>
            <Rectangle x:Name="DisabledBox" Fill="{StaticResource RadMenuNavigationDisabledBackground}" IsHitTestVisible="False" Visibility="Collapsed"/>
        </Grid>
    </ControlTemplate>
    <SolidColorBrush x:Key="RadMenuItemSeparatorTopStroke" Color="#FFe2e0e3"/>
    <SolidColorBrush x:Key="RadMenuItemSeparatorBottomStroke" Color="#7FFFFFFF"/>
    <ControlTemplate x:Key="SeparatorTemplate" TargetType="telerikNavigation:RadMenuItem">
        <Grid>
            <Rectangle Fill="{StaticResource RadMenuItemSeparatorTopStroke}" Height="1" Margin="24,6,1,5"/>
            <Rectangle Fill="{StaticResource RadMenuItemSeparatorBottomStroke}" Height="1" Margin="25,7,1,4"/>
            <Rectangle x:Name="OverlayBackground" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1"/>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerikNavigation:RadMenuItem">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="TopLevelHeaderTemplateKey" Value="{StaticResource TopLevelHeaderTemplate}"/>
        <Setter Property="TopLevelItemTemplateKey" Value="{StaticResource TopLevelItemTemplate}"/>
        <Setter Property="SubmenuHeaderTemplateKey" Value="{StaticResource SubMenuHeaderTemplate}"/>
        <Setter Property="SubmenuItemTemplateKey" Value="{StaticResource SubMenuItemTemplate}"/>
        <Setter Property="SeparatorTemplateKey" Value="{StaticResource SeparatorTemplate}"/>
        <Setter Property="Template" Value="{StaticResource SubMenuItemTemplate}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>        
    </Style>
    
    <!-- RadScheduler -->
    <LinearGradientBrush x:Key="SchedulerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF535353" Offset="0"/>
        <GradientStop Color="#FF0C0C0C" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="HeaderTopSeparatorBrush" Color="#FFA7A7A7"/>
    <LinearGradientBrush x:Key="ChangeViewHeaderBackgroundTop" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616A76" Offset="0"/>
        <GradientStop Color="#FF353A41" Offset="1"/>
        <GradientStop Color="#FF4C535C" Offset="0.02"/>
        <GradientStop Color="#FF393E45" Offset="0.4"/>
        <GradientStop Color="#FF23262A" Offset="0.41"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewButtonForeground" Color="#FFFFFFFF"/>
    <LinearGradientBrush x:Key="ViewButtonOverBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFE391" Offset="1"/>
        <GradientStop Color="#FFFFFDEB" Offset="0"/>
        <GradientStop Color="#FFFFD563" Offset="0.43"/>
        <GradientStop Color="#FFFFEDB3" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewButtonOverForeground" Color="#FF000000"/>
    <LinearGradientBrush x:Key="ViewButtonSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFFFF" Offset="0"/>
        <GradientStop Color="#FFFEE07A" Offset="0.992"/>
        <GradientStop Color="#FFFFD9AA" Offset="0.02"/>
        <GradientStop Color="#FFFFBC6F" Offset="0.4"/>
        <GradientStop Color="#FFFFAB3F" Offset="0.41"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ViewButtonSelectedForeground" Color="#FF000000"/>
    <Style x:Key="ViewModeButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="8 5 8 5"/>
        <Setter Property="Foreground" Value="{StaticResource ViewButtonForeground}"/>
        <Setter Property="FontSize" Value="15"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewButtonOverBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentHolder">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewButtonOverForeground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Background">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewButtonSelectedBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentHolder">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ViewButtonSelectedForeground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Background="Transparent"/>
                        <ContentControl x:Name="contentHolder" Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" Foreground="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduler:AvailableViewModesToVisibilityConverter x:Key="AvailableViewModesToVisibilityConverter"/>
    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <SolidColorBrush x:Key="RadSchedulerStackPanelSeparatorRectangleFill" Color="#FF919191"/>
    <SolidColorBrush x:Key="SchedulerNavigationBackground" Color="#00FFFFFF"/>
    <Style x:Key="NavigationButton" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="Grid">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                    <VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                                    <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                    <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                                    <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.1000000" To="Pressed" />
                                    <VisualTransition From="Pressed" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="PressedBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="black_normal" BorderBrush="{StaticResource ButtonBorderBrush}" BorderThickness="1" Background="{StaticResource ButtonBackgroundBrush}" CornerRadius="3" Height="18" VerticalAlignment="Stretch" Width="20">
                            <Border x:Name="Chevron" BorderBrush="{StaticResource ButtonInnerBorderBrush}" BorderThickness="1" CornerRadius="2">
                                <Path Data="M4.0000001,0 L5,0 5,1 5,2 4.0000001,2 4.0000001,3 3.0000001,3 3.0000001,4 4.0000001,4 5,4 6,4 7,4 8,4 9,4 10,4 10,5 9,5 8,5 7,5 6,5 5,5 4.0000001,5 3.0000001,5 3.0000001,6&#xa;4.0000001,6 4.0000001,7 5,7 5,7.9999999 5,9 4.0000001,9 4.0000001,7.9999999 3.0000001,7.9999999 3.0000001,7 2,7 2,6 1,6 1,5 0,5 0,4 1,4 1,3 2,3 2,2 3,2 3,1 4.0000001,1 z" Fill="{StaticResource ButtonForegroundBrush}" Margin="3,3,3,3" Stretch="Fill" Stroke="{x:Null}"/>
                            </Border>
                        </Border>
                        <Border x:Name="HoverBackground" Background="{StaticResource HoverBackgroundBrush}" BorderThickness="1" CornerRadius="3" Opacity="0"/>
                        <Border x:Name="PressedBackground" Background="{StaticResource PressedBackgroundBrush}" BorderThickness="1" CornerRadius="3" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="CurrentIntervalTextBlockForeground" Color="#FFFFFFFF"/>
    <Style x:Key="CurrentIntervalTextBlock" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource CurrentIntervalTextBlockForeground}"/>
        <Setter Property="Margin" Value="12 0 0 0"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
    <LinearGradientBrush x:Key="RadSchedulerPresenterOpacityMask" EndPoint="0,0.5" StartPoint="1,0.5">
        <GradientStop Color="#FFFFFFFF" Offset="0"/>
        <GradientStop Color="#FFFFFFFF" Offset="1"/>
    </LinearGradientBrush>
    <ControlTemplate x:Key="RadSchedulerTemplate" TargetType="telerikScheduler:RadScheduler">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <Grid>
                <Grid.Resources>
                    <Storyboard x:Key="Fade" FillBehavior="Stop">
                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(OpacityMask).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="presenter">
                            <SplineColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.3" Value="White"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.7" Value="White"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(OpacityMask).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="presenter">
                            <SplineColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.3" Value="Transparent"/>
                            <SplineColorKeyFrame KeyTime="00:00:00.7" Value="White"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="SlideLeft" FillBehavior="Stop">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)" Storyboard.TargetName="presenter">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="600"/>
                            <SplineDoubleKeyFrame KeySpline="0,0.5,0,1" KeyTime="00:00:00.7" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="SlideRight" FillBehavior="Stop">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)" Storyboard.TargetName="presenter">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="-600"/>
                            <SplineDoubleKeyFrame KeySpline="0,0.5,0,1" KeyTime="00:00:00.7" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </Grid.Resources>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Border x:Name="PART_Header" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="{Binding IsViewModeNavigationEnabled, Converter={StaticResource BooleanToVisibilityConverter}}">
                    <Border BorderBrush="{StaticResource HeaderTopSeparatorBrush}" BorderThickness="0" Background="{StaticResource ChangeViewHeaderBackgroundTop}" HorizontalAlignment="Stretch" Padding="23 0 0 0">
                        <StackPanel Orientation="Horizontal">
                            <telerik:RadButton x:Name="DayBtn" Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" MinWidth="85" telerik:LocalizationManager.ResourceKey="Day" Style="{StaticResource ViewModeButtonStyle}" Visibility="{Binding AvailableViewModes, ConverterParameter=Day, Converter={StaticResource AvailableViewModesToVisibilityConverter}}"/>
                            <telerik:RadButton x:Name="WeekBtn" Command="telerikScheduler:RadSchedulerCommands.SetWeekViewMode" MinWidth="85" telerik:LocalizationManager.ResourceKey="Week" Style="{StaticResource ViewModeButtonStyle}" Visibility="{Binding AvailableViewModes, ConverterParameter=Week, Converter={StaticResource AvailableViewModesToVisibilityConverter}}"/>
                            <telerik:RadButton x:Name="MonthBtn" Command="telerikScheduler:RadSchedulerCommands.SetMonthViewMode" MinWidth="85" telerik:LocalizationManager.ResourceKey="Month" Style="{StaticResource ViewModeButtonStyle}" Visibility="{Binding AvailableViewModes, ConverterParameter=Month, Converter={StaticResource AvailableViewModesToVisibilityConverter}}"/>
                            <telerik:RadButton x:Name="TimelineBtn" Command="telerikScheduler:RadSchedulerCommands.SetTimelineViewMode" MinWidth="85" telerik:LocalizationManager.ResourceKey="Timeline" Style="{StaticResource ViewModeButtonStyle}" Visibility="{Binding AvailableViewModes, ConverterParameter=Timeline, Converter={StaticResource AvailableViewModesToVisibilityConverter}}"/>
                        </StackPanel>
                    </Border>
                </Border>
                <StackPanel Orientation="Vertical" Grid.Row="1">
                    <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" Background="{StaticResource SchedulerNavigationBackground}" HorizontalAlignment="Stretch" Height="26" Padding="30 0 0 0">
                        <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                            <Grid DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Left" Margin="10,0,0,0" Visibility="{Binding IsBackAndForwardNavigationEnabled, Converter={StaticResource BooleanToVisibilityConverter}}" VerticalAlignment="Center">
                                <telerik:RadButton x:Name="Back" CommandTarget="{Binding ElementName=presenter}" Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateLarge" HorizontalAlignment="Left" Height="18" Margin="0,0,25,0" Style="{StaticResource NavigationButton}" Width="20"/>
                                <telerik:RadButton x:Name="Forward" CommandTarget="{Binding ElementName=presenter}" Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateLarge" HorizontalAlignment="Right" Height="18" Margin="25,0,0,0" RenderTransformOrigin="0.5,0.5" Style="{StaticResource NavigationButton}" Width="20">
                                    <telerik:RadButton.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform ScaleY="1" ScaleX="-1"/>
                                        </TransformGroup>
                                    </telerik:RadButton.RenderTransform>
                                </telerik:RadButton>
                            </Grid>
                            <TextBlock Style="{StaticResource CurrentIntervalTextBlock}" Text="{Binding View.DisplayInterval, RelativeSource={RelativeSource TemplatedParent}}"/>
                        </StackPanel>
                    </Border>
                </StackPanel>
                <Grid Grid.Row="2" telerikScheduler:ClipHelper.ToBounds="True">
                    <telerikScheduler:SchedulerPresenter x:Name="presenter" OpacityMask="{StaticResource RadSchedulerPresenterOpacityMask}" Scheduler="{Binding RelativeSource={RelativeSource TemplatedParent}}">
                        <telerikScheduler:SchedulerPresenter.RenderTransform>
                            <TransformGroup>
                                <TranslateTransform/>
                            </TransformGroup>
                        </telerikScheduler:SchedulerPresenter.RenderTransform>
                    </telerikScheduler:SchedulerPresenter>
                </Grid>
            </Grid>
        </Border>
    </ControlTemplate>
    <LinearGradientBrush x:Key="ChangeViewHeaderBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF616A76" Offset="0"/>
        <GradientStop Color="#FF353A41" Offset="1"/>
        <GradientStop Color="#FF4C535C" Offset="0.02"/>
        <GradientStop Color="#FF393E45" Offset="0.4"/>
        <GradientStop Color="#FF23262A" Offset="0.41"/>
    </LinearGradientBrush>
    <Style x:Key="NavigationHeaderStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="{StaticResource HeaderTopSeparatorBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 0 1"/>
        <Setter Property="Background" Value="{StaticResource ChangeViewHeaderBackground}"/>
    </Style>
    <DataTemplate x:Key="IconDataEditTemplate">
        <Image Height="16" Margin="3,3,0,0" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/cal.png" Width="16"/>
    </DataTemplate>
    <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
    <telerikScheduler:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>
    <telerikScheduler:InvertedNullToVisibilityConverter x:Key="InvertedNullToVisibilityConverter"/>
    <DataTemplate x:Key="AppointmentDialogWindowHeaderDataTemplate">
        <StackPanel MaxWidth="400" Orientation="Horizontal">
            <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>
    <SolidColorBrush x:Key="DialogWindowBackground" Color="#FFF6F7F8"/>
    <LinearGradientBrush x:Key="RadToolBar_InnerBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFC7CCCF" Offset="0.11903503041793578"/>
        <GradientStop Color="#FFBCC0C6" Offset="0.52385987832825676"/>
        <GradientStop Color="#FF969EA8" Offset="0.99256031059887906"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="CategorySelectorBorderBrush" Color="#FFFFAB3F"/>
    <telerikScheduler:ImportanceToBooleanConverter x:Key="ImportanceToBooleanConverter"/>
    <Style x:Key="FormElementTextBlockStyle" TargetType="TextBlock">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="15, 15, 0, 2"/>
    </Style>
    <Style x:Key="FormElementStyle" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="10, 10, 0, 2"/>
    </Style>
    <SolidColorBrush x:Key="GenericShallowBorderBrush" Color="#FF979994"/>
    <Scheduler:ResourcesSeparatorConverter x:Key="ResourcesSeparatorConverter"/>
    <DataTemplate x:Key="MultipleSelectionTemplate">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition MinWidth="84" Width="Auto"/>
                <ColumnDefinition MinWidth="200" Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="SelectionNameLabel" Grid.Column="0" Margin="0,13,4,2" Style="{StaticResource FormElementTextBlockStyle}" Text="{Binding ResourceType.DisplayName}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SingleSelectionTemplate">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition MinWidth="84" Width="Auto"/>
                <ColumnDefinition MinWidth="200" Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="SelectionNameLabel" Grid.Column="0" Margin="0,13,4,2" Style="{StaticResource FormElementTextBlockStyle}" Text="{Binding ResourceType.DisplayName}"/>
        </Grid>
    </DataTemplate>
    <Scheduler:ResourceTypeTemplateSelector x:Key="ItemTemplateSelector" MultipleSelectionTemplate="{StaticResource MultipleSelectionTemplate}" SingleSelectionTemplate="{StaticResource SingleSelectionTemplate}"/>
    <ControlTemplate x:Key="EditAppointmentTemplate" TargetType="telerikScheduler:AppointmentDialogWindow">
        <StackPanel Background="{TemplateBinding Background}" UseLayoutRounding="True">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="RecurrenceRuleState">
                    <VisualState x:Name="RecurrenceRuleIsNull">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="StartDateTime">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="True"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="EndDateTime">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="True"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="AllDayEventCheckbox">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="True"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="RecurrenceRuleIsNotNull">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="StartDateTime">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="EndDateTime">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="AllDayEventCheckbox">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <StackPanel Background="{StaticResource RadToolBar_InnerBackground}" Grid.ColumnSpan="2" Height="28" Orientation="Horizontal" Grid.Row="0">
                <telerik:RadButton x:Name="EditRecurrenceRuleBtn" BorderBrush="Transparent" BorderThickness="0" Background="Transparent" Grid.Column="1" Command="telerikScheduler:RadSchedulerCommands.EditRecurrenceRule" Margin="2" Grid.Row="5" telerik:StyleManager.Theme="{StaticResource Theme}">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Center" Height="16" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/recc16x16.png" Width="16"/>
                        <TextBlock Margin="5,0,0,0" telerik:LocalizationManager.ResourceKey="EditRecurrence" VerticalAlignment="Center"/>
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton x:Name="EditParentAppointmentBtn" BorderBrush="Transparent" BorderThickness="0" Background="Transparent" Grid.Column="1" Command="telerikScheduler:RadSchedulerCommands.EditParentAppointment" Margin="2" Grid.Row="5" telerik:LocalizationManager.ResourceKey="EditParentAppointment" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                <Border Background="#50000000" HorizontalAlignment="Left" Height="16" Margin="1,1,0,0" VerticalAlignment="Center" Width="2">
                    <Border Background="#80FFFFFF" HorizontalAlignment="Left" Margin="0,0,1,1" Width="1"/>
                </Border>
                <telerik:RadToggleButton x:Name="categoryButton" BorderBrush="Transparent" BorderThickness="0" Background="Transparent" IsChecked="{Binding IsOpen, ElementName=PART_categoryMenu, Mode=TwoWay}" Margin="2,2,0,2" telerik:StyleManager.Theme="{StaticResource Theme}">
                    <telerikNavigation:RadContextMenu.ContextMenu>
                        <telerikNavigation:RadContextMenu x:Name="PART_categoryMenu" ItemsSource="{TemplateBinding Categories}" Placement="Bottom" telerik:StyleManager.Theme="{StaticResource Theme}">
                            <telerikNavigation:RadContextMenu.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <Grid>
                                            <Border Background="{StaticResource CategorySelectorBorderBrush}" Height="14" Margin="-32,2,2,2" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}" Width="14"/>
                                            <Rectangle Fill="{Binding CategoryBrush}" Height="12" Margin="-32,2,2,2" Width="12"/>
                                        </Grid>
                                        <TextBlock Margin="2" Text="{Binding DisplayName}"/>
                                    </StackPanel>
                                </DataTemplate>
                            </telerikNavigation:RadContextMenu.ItemTemplate>
                        </telerikNavigation:RadContextMenu>
                    </telerikNavigation:RadContextMenu.ContextMenu>
                    <StackPanel Margin="2,0,2,0" Orientation="Horizontal">
                        <Image HorizontalAlignment="Center" Height="16" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/categorize.png" ToolTipService.ToolTip="Categorize" Width="16"/>
                        <TextBlock Margin="5,0,0,0" telerik:LocalizationManager.ResourceKey="Categorize" VerticalAlignment="Center"/>
                    </StackPanel>
                </telerik:RadToggleButton>
                <Border Background="#50000000" HorizontalAlignment="Left" Height="16" Margin="1,1,0,0" VerticalAlignment="Center" Width="2">
                    <Border Background="#80FFFFFF" HorizontalAlignment="Left" Margin="0,0,1,1" Width="1"/>
                </Border>
                <TextBlock Margin="5,0,0,0" telerik:LocalizationManager.ResourceKey="ShowAs" VerticalAlignment="Center"/>
                <telerik:RadToggleButton x:Name="High" BorderThickness="0" Background="{StaticResource RadToolBar_InnerBackground}" DataContext="{TemplateBinding EditedAppointment}" HorizontalContentAlignment="Center" Height="23" IsChecked="{Binding Importance, ConverterParameter=High, Converter={StaticResource ImportanceToBooleanConverter}, Mode=TwoWay}" Margin="2,2,0,2" telerik:StyleManager.Theme="{StaticResource Theme}" ToolTipService.ToolTip="High importance" Width="23">
                    <StackPanel HorizontalAlignment="Center">
                        <Path Data="M200.39647,58.840393 C200.39337,58.336426 201.14566,57.683922 202.56244,57.684292 C204.06589,57.684685 204.73764,58.357765 204.72783,58.992363 C205.04649,61.795574 203.04713,64.181099 202.47388,66.133446 C201.93753,64.154961 199.9471,61.560352 200.39647,58.840393 z" HorizontalAlignment="Center" Height="10" Stretch="Fill" VerticalAlignment="Top" Width="5.451">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                    <GradientStop Color="#FFFF0606" Offset="0.609"/>
                                    <GradientStop Color="#FFBF0303" Offset="0.927"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Ellipse HorizontalAlignment="Center" Height="3" Margin="0,-1,0,0" VerticalAlignment="Top" Width="3">
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFF0606" Offset="0"/>
                                    <GradientStop Color="#FFBF0303" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                    </StackPanel>
                </telerik:RadToggleButton>
                <telerik:RadToggleButton x:Name="Low" BorderThickness="0" Background="{StaticResource RadToolBar_InnerBackground}" DataContext="{TemplateBinding EditedAppointment}" HorizontalContentAlignment="Center" Height="23" IsChecked="{Binding Importance, ConverterParameter=Low, Converter={StaticResource ImportanceToBooleanConverter}, Mode=TwoWay}" Margin="0,2,0,2" telerik:StyleManager.Theme="{StaticResource Theme}" ToolTipService.ToolTip="Low importance" Width="23">
                    <Path Data="M222.40353,60.139881 L226.65768,60.139843 L226.63687,67.240196 L229.15347,67.240196 L224.37816,71.394943 L219.65274,67.240196 L222.37572,67.219345 z" HorizontalAlignment="Center" Height="12" Stretch="Fill" Stroke="#FF0365A7" VerticalAlignment="Top" Width="9">
                        <Path.Fill>
                            <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                <GradientStop Color="#FFBBE4FF"/>
                                <GradientStop Color="#FF024572" Offset="0.836"/>
                                <GradientStop Color="#FF43ADF4" Offset="0.466"/>
                            </LinearGradientBrush>
                        </Path.Fill>
                    </Path>
                </telerik:RadToggleButton>
            </StackPanel>
            <Border Background="{Binding Category.CategoryBrush}" CornerRadius="3" DataContext="{TemplateBinding EditedAppointment}" Height="20" Margin="5,10,5,0" Visibility="{Binding Category, Converter={StaticResource NullToVisibilityConverter}}">
                <TextBlock Margin="5,0,0,0" Text="{Binding Category.DisplayName}" VerticalAlignment="Center"/>
            </Border>
            <Grid Background="{TemplateBinding Background}" DataContext="{TemplateBinding EditedAppointment}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MinWidth="100" Width="Auto"/>
                    <ColumnDefinition MinWidth="200" Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBlock x:Name="SubjectLabel" Grid.Column="0" Margin="0,15,0,2" Grid.Row="0" telerik:LocalizationManager.ResourceKey="Subject" Style="{StaticResource FormElementTextBlockStyle}"/>
                <TextBox x:Name="Subject" Grid.Column="1" HorizontalAlignment="Left" Margin="10,12,20,2" MinHeight="22" MaxLength="255" Padding="4 2" Grid.Row="0" Text="{Binding Subject, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" Width="340"/>
                <TextBlock x:Name="DescriptionLabel" Grid.Column="0" Margin="0,13,0,2" Grid.Row="1" telerik:LocalizationManager.ResourceKey="Body" Style="{StaticResource FormElementTextBlockStyle}"/>
                <TextBox x:Name="Body" AcceptsReturn="true" Grid.Column="1" HorizontalAlignment="Left" Height="Auto" HorizontalScrollBarVisibility="Auto" MaxHeight="82" Margin="10,10,20,2" MinHeight="22" Padding="4 2" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Body, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Auto" VerticalAlignment="top" Width="340"/>
                <TextBlock x:Name="StartDateLabel" Grid.Column="0" Margin="0,13,0,2" Grid.Row="2" telerik:LocalizationManager.ResourceKey="StartTime" Style="{StaticResource FormElementTextBlockStyle}"/>
                <telerikScheduler:DateTimePicker x:Name="StartDateTime" Grid.Column="1" telerikScheduler:StartEndDatePicker.EndPicker="{Binding ElementName=EndDateTime}" HorizontalAlignment="Left" Height="22" IsTabStop="False" IsEnabled="False" Margin="10,10,20,2" Grid.Row="2" Style="{StaticResource FormElementStyle}" SelectedDateTime="{Binding Start, Mode=TwoWay}"/>
                <TextBlock x:Name="EndDateLabel" Grid.Column="0" Margin="0,13,0,2" Grid.Row="3" telerik:LocalizationManager.ResourceKey="EndTime" Style="{StaticResource FormElementTextBlockStyle}"/>
                <telerikScheduler:DateTimePicker x:Name="EndDateTime" Grid.Column="1" HorizontalAlignment="Left" Height="22" IsTabStop="False" IsEnabled="False" Margin="10,10,20,2" Grid.Row="3" Style="{StaticResource FormElementStyle}" SelectedDateTime="{Binding End, Mode=TwoWay}"/>
                <CheckBox x:Name="AllDayEventCheckbox" Grid.Column="1" HorizontalAlignment="Left" IsChecked="{Binding IsAllDayEvent, Mode=TwoWay}" Margin="10,10,20,2" Grid.Row="4" telerik:LocalizationManager.ResourceKey="AllDayEvent" telerik:StyleManager.Theme="{StaticResource Theme}">
                    <telerik:CommandManager.InputBindings>
                        <telerik:InputBindingCollection>
                            <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.ChangeTimePickersVisibility" Gesture="LeftClick"/>
                        </telerik:InputBindingCollection>
                    </telerik:CommandManager.InputBindings>
                </CheckBox>
                <Grid x:Name="ResourcesLayout" Grid.ColumnSpan="2" Grid.Column="0" MaxHeight="130" Margin="20,5,20,0" Grid.Row="6">
                    <Border BorderBrush="{StaticResource GenericShallowBorderBrush}" BorderThickness="1" Margin="0" Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=ResourcesScrollViewer}"/>
                    <ScrollViewer x:Name="ResourcesScrollViewer" Grid.ColumnSpan="2" Grid.Column="0" IsTabStop="false" Margin="1" Grid.Row="6" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Auto">
                        <Scheduler:ResourcesItemsControl x:Name="PART_Resources" HorizontalAlignment="Left" IsTabStop="false" ItemsSource="{TemplateBinding ResourceTypeModels}" ItemTemplateSelector="{StaticResource ItemTemplateSelector}" Padding="0,2,0,5"/>
                    </ScrollViewer>
                </Grid>
                <StackPanel x:Name="FooterControls" Grid.Column="1" HorizontalAlignment="Left" Margin="5 10 10 10" Orientation="Horizontal" Grid.Row="7">
                    <telerik:RadButton x:Name="OKButton" Command="telerikScheduler:RadSchedulerCommands.SaveAppointment" Margin="5" MinWidth="80" Padding="10 0" telerik:LocalizationManager.ResourceKey="SaveAndCloseCommandText" telerikNavigation:RadWindow.ResponseButton="Accept" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    <telerik:RadButton x:Name="CancelButton" Command="telerik:WindowCommands.Close" Margin="5" MinWidth="80" Padding="10 0" telerik:LocalizationManager.ResourceKey="Cancel" telerikNavigation:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                </StackPanel>
            </Grid>
        </StackPanel>
    </ControlTemplate>
    <Style x:Key="EditAppointmentStyle" TargetType="telerikScheduler:AppointmentDialogWindow">
        <Setter Property="IconTemplate" Value="{StaticResource IconDataEditTemplate}"/>
        <Setter Property="HeaderTemplate" Value="{StaticResource AppointmentDialogWindowHeaderDataTemplate}"/>
        <Setter Property="Background" Value="{StaticResource DialogWindowBackground}"/>
        <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}"/>
    </Style>
    <Style x:Key="TimeRulerHostStyle" TargetType="Border">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Width" Value="75"/>
        <Setter Property="BorderThickness" Value="0 0 0 1"/>
        <Setter Property="BorderBrush" Value="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}"/>
    </Style>    
    <SolidColorBrush x:Key="AppointmentSubjectTextBoxBackground" Color="#00FFFFFF"/>
    <Style x:Key="AppointmentSubjectTextBox" TargetType="TextBox">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="MaxHeight" Value="50"/>
        <Setter Property="Background" Value="{StaticResource AppointmentSubjectTextBoxBackground}"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Border x:Name="MouseOverBorder" BorderBrush="Transparent" BorderThickness="1" UseLayoutRounding="True">
                        <ScrollViewer x:Name="ContentElement" BorderThickness="0" IsTabStop="False" Padding="{TemplateBinding Padding}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <telerikScheduler:TooltipConverter x:Key="TooltipConverter"/>
    <telerikScheduler:ImportanceToVisibilityConverter x:Key="ImportanceToVisibilityConverter"/>
    <DataTemplate x:Key="AppointmentTemplate">
        <Grid Background="Transparent">
            <ToolTipService.ToolTip>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Occurrence.Appointment, Converter={StaticResource TooltipConverter}}"/>
                    <StackPanel Grid.Column="1" HorizontalAlignment="Right" Margin="5,0,0,0" Visibility="{Binding Occurrence.Appointment.Importance, ConverterParameter=High, Converter={StaticResource ImportanceToVisibilityConverter}}" VerticalAlignment="Center">
                        <Path Data="M200.39647,58.840393 C200.39337,58.336426 201.14566,57.683922 202.56244,57.684292 C204.06589,57.684685 204.73764,58.357765 204.72783,58.992363 C205.04649,61.795574 203.04713,64.181099 202.47388,66.133446 C201.93753,64.154961 199.9471,61.560352 200.39647,58.840393 z" HorizontalAlignment="Center" Height="10" Stretch="Fill" VerticalAlignment="Top" Width="5.451">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                    <GradientStop Color="#FFFF0606" Offset="0.609"/>
                                    <GradientStop Color="#FFBF0303" Offset="0.927"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Ellipse HorizontalAlignment="Center" Height="3" Margin="0,-1,0,0" VerticalAlignment="Top" Width="3">
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FFFF0606" Offset="0"/>
                                    <GradientStop Color="#FFBF0303" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                    </StackPanel>
                    <Path Grid.Column="1" Data="M222.40353,60.139881 L226.65768,60.139843 L226.63687,67.240196 L229.15347,67.240196 L224.37816,71.394943 L219.65274,67.240196 L222.37572,67.219345 z" HorizontalAlignment="Right" Height="12" Stretch="Fill" Stroke="#FF0365A7" Visibility="{Binding Occurrence.Appointment.Importance, ConverterParameter=Low, Converter={StaticResource ImportanceToVisibilityConverter}}" VerticalAlignment="Center" Width="9">
                        <Path.Fill>
                            <LinearGradientBrush EndPoint="1.059,0.375" StartPoint="-0.457,0.519">
                                <GradientStop Color="#FFBBE4FF"/>
                                <GradientStop Color="#FF024572" Offset="0.836"/>
                                <GradientStop Color="#FF43ADF4" Offset="0.466"/>
                            </LinearGradientBrush>
                        </Path.Fill>
                    </Path>
                </Grid>
            </ToolTipService.ToolTip>
            <TextBox x:Name="PART_SubjectTextBox" Foreground="{StaticResource TextForegroundBrush}" HorizontalAlignment="Stretch" IsHitTestVisible="False" Margin="0 -3 18 0" Style="{StaticResource AppointmentSubjectTextBox}" TextWrapping="Wrap" VerticalAlignment="Top"/>
        </Grid>
    </DataTemplate>
    <SolidColorBrush x:Key="AllDayAreaBrush" Color="#dbdbdb"/>
    <LinearGradientBrush x:Key="DayHeaderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF8F8F9" Offset="0"/>
        <GradientStop Color="#FFDBDEE1" Offset="1"/>
        <GradientStop Color="#FFDFE2E5" Offset="0.5"/>
        <GradientStop Color="#FFC7CBD1" Offset="0.51"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="DayHeaderForegroundShadowBrush" Color="#FF000000"/>
    <LinearGradientBrush x:Key="DayHeaderOverBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFE391" Offset="1"/>
        <GradientStop Color="#FFFFFDEB" Offset="0"/>
        <GradientStop Color="#FFFFD563" Offset="0.43"/>
        <GradientStop Color="#FFFFEDB3" Offset="0.42"/>
    </LinearGradientBrush>
    <Style x:Key="WeekDayHeaderStyle" TargetType="ContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border x:Name="DayHeaderBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused">
                                    <Storyboard/>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="DayHeaderBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource DayHeaderOverBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="DayHeaderBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ViewButtonSelectedBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DayHeaderListItemTemplate">
        <telerik:RadButton x:Name="Holder" BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="0,1,1,1" Background="{StaticResource DayHeaderBrush}" Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" DataContext="{Binding TimeSlots[0]}" HorizontalContentAlignment="Left" Height="24" Style="{StaticResource WeekDayHeaderStyle}" VerticalContentAlignment="Center">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="25"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Foreground="{StaticResource DayHeaderForegroundShadowBrush}" Padding="10,0,0,0" Text="{Binding FormattedStart}"/>
                <TextBlock Grid.Column="1" Foreground="{StaticResource DayHeaderForegroundShadowBrush}" FontWeight="Bold" Padding="5,0,0,0" Text="{Binding TimeSlotStartDay}"/>
            </Grid>
        </telerik:RadButton>
    </DataTemplate>
    <SolidColorBrush x:Key="AppointmentsControl_Background" Color="#FFB3B3B3"/>
    <LinearGradientBrush x:Key="TodayHeaderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFD9AA" Offset="0"/>
        <GradientStop Color="#FFFEE07A" Offset="1"/>
        <GradientStop Color="#FFFFBC6F" Offset="0.5"/>
        <GradientStop Color="#FFFFAB3F" Offset="0.512"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="AllDayAreaOverBrush" Color="#FFFFE5AD"/>
    <SolidColorBrush x:Key="AllDayAreaSelectedBrush" Color="#ffe0a2"/>
    <Style x:Key="AllDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Border x:Name="PART_ContentHost" BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="0,0,1,0" Background="{StaticResource AllDayAreaBrush}" UseLayoutRounding="True">
                        <telerik:CommandManager.InputBindings>
                            <telerik:InputBindingCollection>
                                <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" MouseAction="LeftDoubleClick"/>
                            </telerik:InputBindingCollection>
                        </telerik:CommandManager.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="PART_ContentHost">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AllDayAreaOverBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="PART_ContentHost">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource AllDayAreaSelectedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="TodayDayStates">
                                <VisualState x:Name="Today">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="TodayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Border x:Name="TodayBorder" Background="{StaticResource TodayHeaderBrush}" Opacity="0.3" Visibility="Collapsed"/>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="MonthViewAppointmentItemResizeStartPartRectangleFill" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="MonthViewAppointmentItemResizeEndPartRectangleFill" Color="#00FFFFFF"/>
    <telerik:InvertedBooleanToOpacityConverter x:Key="InvertedBooleanToOpacityConverter"/>
    <SolidColorBrush x:Key="DeleteButtonBorder" Color="#FFB3B3B3"/>
    <LinearGradientBrush x:Key="DeleteButton" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF8F8F9" Offset="0"/>
        <GradientStop Color="#FFDBDEE1" Offset="1"/>
        <GradientStop Color="#FFDFE2E5" Offset="0.4"/>
        <GradientStop Color="#FFC7CBD1" Offset="0.4"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="DeleteButtonIcon" Color="#FF000000"/>
    <LinearGradientBrush x:Key="DeleteButton_Over" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFE391" Offset="1"/>
        <GradientStop Color="#FFFFFDEB" Offset="0"/>
        <GradientStop Color="#FFFFD563" Offset="0.43"/>
        <GradientStop Color="#FFFFEDB3" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="DeleteButtonBorder_Over" Color="#FFFFAB3F"/>
    <ControlTemplate x:Key="DeleteButtonTemplate" TargetType="Button">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Unfocused"/>
                    <VisualState x:Name="Focused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="CloseButton">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource DeleteButton_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CloseButton">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource DeleteButtonBorder_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Pressed"/>
                    <VisualState x:Name="Disabled"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="CloseButton" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="1" UseLayoutRounding="True" VerticalAlignment="Center">
                <Path Data="M4,4 L5,4 5,5 4,5 z M0,4 L1,4 1,5 0,5 z M3,3 L4,3 4,4 3,4 z M1,3 L2,3 2,4 1,4 z M2,2 L3,2 3,3 2,3 z M4,0 L5,0 5,1 4,1 4,2 3,2 3,0.99999994 4,0.99999994 z M0,0 L1,0 1,0.99999994 2,0.99999994 2,2 1,2 1,1 0,1 z" Fill="{StaticResource DeleteButtonIcon}" Margin="{TemplateBinding Padding}" Stretch="Fill"/>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="DeleteButtonStyle" TargetType="Button">
        <Setter Property="BorderBrush" Value="{StaticResource DeleteButtonBorder}"/>
        <Setter Property="Background" Value="{StaticResource DeleteButton}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Width" Value="10"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="Template" Value="{StaticResource DeleteButtonTemplate}"/>
    </Style>
    <SolidColorBrush x:Key="MonthViewAppointmentItemBorderBrush" Color="#FFFFFFFF"/>
    <Style x:Key="chromeMonthAppointmentStyle" TargetType="telerikScheduler:ChromeControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:ChromeControl">
                    <Border x:Name="border" BorderBrush="{StaticResource MonthViewAppointmentItemBorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" CornerRadius="2" UseLayoutRounding="True">
                        <telerik:CommandManager.InputBindings>
                            <telerik:InputBindingCollection>
                                <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.EditAppointment" Gesture="LeftDoubleClick"/>
                            </telerik:InputBindingCollection>
                        </telerik:CommandManager.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedMouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="SelectedAppointmentItemBorderBrush" Color="#FFFEAE46"/>
    <ControlTemplate x:Key="MonthAppointmentItemTemplate" TargetType="telerikScheduler:AppointmentItem">
        <Border x:Name="outMostBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Cursor="Hand" CornerRadius="3" MaxHeight="18">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_DeleteButton">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="SelectedMouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_DeleteButton">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="outMostBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SelectedAppointmentItemBorderBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="OccurrenceStates">
                    <VisualState x:Name="SingleOccurrence"/>
                    <VisualState x:Name="Occurrence">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="recurrenceMark">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Exception">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Source" Storyboard.TargetName="recurrenceMark">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/no_rec_black.png"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="recurrenceMark">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikScheduler:ChromeControl Background="{TemplateBinding Background}" IsSelected="{TemplateBinding IsSelected}" MouseOverBackground="{TemplateBinding MouseOverBackground}" Style="{StaticResource chromeMonthAppointmentStyle}" SelectedBackground="{TemplateBinding SelectedBackground}" telerikScheduler:ClipHelper.ToBounds="True">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Rectangle x:Name="PART_TimeMarker" Grid.Column="0" Fill="{Binding Occurrence.Appointment.TimeMarker.TimeMarkerBrush}" HorizontalAlignment="Left" Margin="-1,-1,1,-1" Width="3" Canvas.ZIndex="1"/>
                    <telerikScheduler:AppointmentSlotPresenter Margin="1,0,0,0"/>
                    <Rectangle x:Name="PART_ResizeStart" Cursor="SizeWE" Fill="{StaticResource MonthViewAppointmentItemResizeStartPartRectangleFill}" HorizontalAlignment="Left" Width="2"/>
                    <Rectangle x:Name="PART_ResizeEnd" Cursor="SizeWE" Fill="{StaticResource MonthViewAppointmentItemResizeEndPartRectangleFill}" HorizontalAlignment="Right" Width="2"/>
                    <telerik:RadButton x:Name="PART_DeleteButton" CommandParameter="{Binding AppointmentSlot.Occurrence}" Command="telerikScheduler:RadSchedulerCommands.DeleteAppointment" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Right" Margin="0,2,2,0" Opacity="{Binding Scheduler.IsReadOnly, Converter={StaticResource InvertedBooleanToOpacityConverter}}" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Top"/>
                    <Image x:Name="recurrenceMark" HorizontalAlignment="Right" Height="10" Margin="1, 2, 13, 1" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/rec_black.png" Visibility="Collapsed" VerticalAlignment="Top" Width="10"/>
                </Grid>
            </telerikScheduler:ChromeControl>
        </Border>
    </ControlTemplate>
    <SolidColorBrush x:Key="MouseOverAppointmentItemBackgroundBrush" Color="#FFFFE5AD"/>
    <LinearGradientBrush x:Key="SelectedAppointmentItemBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFDC9C" Offset="0"/>
        <GradientStop Color="#FFFFCA5D" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="AppointementBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFF8F8F9" Offset="0"/>
        <GradientStop Color="#FFD9DBE0" Offset="1"/>
    </LinearGradientBrush>
    <Style x:Key="MonthAppointmentItemStyle" TargetType="telerikScheduler:AppointmentItem">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template" Value="{StaticResource MonthAppointmentItemTemplate}"/>
        <Setter Property="MouseOverBackground" Value="{StaticResource MouseOverAppointmentItemBackgroundBrush}"/>
        <Setter Property="SelectedBackground" Value="{StaticResource SelectedAppointmentItemBackgroundBrush}"/>
        <Setter Property="Background" Value="{StaticResource AppointementBackground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}"/>
        <Setter Property="MaxHeight" Value="20"/>
        <Setter Property="Margin" Value="1, 1, 1, 0"/>
    </Style>
    <ControlTemplate x:Key="AllDaysAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1,0,0,0" Background="{TemplateBinding Background}" Margin="1,0,1,0">
            <Grid Background="{TemplateBinding Background}">
                <telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl" ItemContainerStyle="{StaticResource AllDayStyle}">
                    <telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimatives:RadUniformGrid Rows="{Binding ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}" UseLayoutRounding="True"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                </telerikScheduler:TimeSlotItemsControl>
                <telerikScheduler:AppointmentItemsControl x:Name="PART_AppointmentItemsControl" ItemContainerStyle="{StaticResource MonthAppointmentItemStyle}">
                    <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikScheduler:AppointmentPanel AppointmentsRightPadding="5" MinHeight="{Binding Scheduler.AllDayAreaHeight}" Orientation="Vertical"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentItemsControl.ItemsPanel>
                </telerikScheduler:AppointmentItemsControl>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="AllDayAppointmentsControl" TargetType="telerikScheduler:AppointmentsControl">
        <Setter Property="Background" Value="{StaticResource AppointmentsControl_Background}"/>
        <Setter Property="Template" Value="{StaticResource AllDaysAppointmentsControlTemplate}"/>
    </Style>
    <Style x:Key="AllDayAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1,1,1,0" Background="{StaticResource AllDayAreaBrush}" Margin="1,0,1,0">
                        <StackPanel Background="{Binding ResourceStyleMapping.ResourceBrush}">
                            <Scheduler:ResourceHeaderControl Content="{Binding Resource}" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <Scheduler:ResourceHeaderControl.ContentTemplate>
                                    <DataTemplate>
                                        <TextBlock Height="20" Margin="10,0,0,0" Padding="0,4,0,1" Text="{Binding DisplayName}"/>
                                    </DataTemplate>
                                </Scheduler:ResourceHeaderControl.ContentTemplate>
                            </Scheduler:ResourceHeaderControl>
                            <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1,0,0,0" Margin="2,2,2,0">
                                <ItemsControl x:Name="DayHeaderList" ItemTemplate="{StaticResource DayHeaderListItemTemplate}" ItemsSource="{Binding Scheduler.View.TimeSlotsView.Groups}">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <telerikPrimatives:RadUniformGrid HorizontalAlignment="Stretch" Rows="1" UseLayoutRounding="True"/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                </ItemsControl>
                            </Border>
                            <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="0,0,0,1" Height="{Binding Scheduler.AllDayAreaHeight}">
                                <ScrollViewer x:Name="PART_AllDayScrollViewer" telerik:ScrollViewerExtensions.EnableMouseWheel="True" Height="{Binding Scheduler.AllDayAreaHeight}" Margin="1,0,0,0" Padding="0" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Hidden">
                                    <telerikScheduler:AppointmentsControl x:Name="AllDayAppointmentsControl" Appointments="{Binding Appointments.AllDayAppointmentsView}" Margin="0 0 1 0" Style="{StaticResource AllDayAppointmentsControl}" Scheduler="{Binding Scheduler}" TimeSlots="{Binding Scheduler.View.AllDayTimeSlotsView}"/>
                                </ScrollViewer>
                            </Border>
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="SchedulerBorderBrush" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="TimeSlotItemBorderBrush" Color="#FFB3B3B3"/>
    <SolidColorBrush x:Key="TimeSlotItemBrush" Color="#FFFFFFFF"/>
    <SolidColorBrush x:Key="MonthTimeSlotItemOverBrush" Color="#FFFFEDB3"/>
    <SolidColorBrush x:Key="MonthTimeSlotItemSelectedBrush" Color="#fad17e"/>
    <Style x:Key="OneWeekDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="Background" Value="{StaticResource TimeSlotItemBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Border x:Name="PART_ContentHost" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Margin="0,0,1,1" MinHeight="20">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="PART_ContentHost">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthTimeSlotItemOverBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="PART_ContentHost">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthTimeSlotItemSelectedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerik:CommandManager.InputBindings>
                            <telerik:InputBindingCollection>
                                <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" MouseAction="LeftDoubleClick"/>
                            </telerik:InputBindingCollection>
                        </telerik:CommandManager.InputBindings>
                        <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="DayViewAppointmentItemResizeStartPartRectangleFill" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DayViewAppointmentItemResizeEndPartRectangleFill" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="DayViewAppointmentItemBorderBrush" Color="#FFFFFFFF"/>
    <Style x:Key="chromeAppointmentStyle" TargetType="telerikScheduler:ChromeControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:ChromeControl">
                    <Border x:Name="border" BorderBrush="{StaticResource DayViewAppointmentItemBorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" CornerRadius="2" UseLayoutRounding="True">
                        <telerik:CommandManager.InputBindings>
                            <telerik:InputBindingCollection>
                                <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.EditAppointment" Gesture="LeftDoubleClick"/>
                            </telerik:InputBindingCollection>
                        </telerik:CommandManager.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedMouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="AppointmentItemTemplate" TargetType="telerikScheduler:AppointmentItem">
        <Border x:Name="outMostBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Cursor="Hand" CornerRadius="3" Margin="0">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_DeleteButton">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="SelectedMouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_DeleteButton">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="outMostBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SelectedAppointmentItemBorderBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="OccurrenceStates">
                    <VisualState x:Name="SingleOccurrence"/>
                    <VisualState x:Name="Occurrence">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="recurrenceMark">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Exception">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Source" Storyboard.TargetName="recurrenceMark">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/no_rec_black.png"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="recurrenceMark">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <telerikScheduler:ChromeControl Background="{TemplateBinding Background}" IsSelected="{TemplateBinding IsSelected}" MouseOverBackground="{TemplateBinding MouseOverBackground}" Style="{StaticResource chromeAppointmentStyle}" SelectedBackground="{TemplateBinding SelectedBackground}" telerikScheduler:ClipHelper.ToBounds="True">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="4"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Rectangle x:Name="PART_TimeMarker" Grid.Column="0" Fill="{Binding Occurrence.Appointment.TimeMarker.TimeMarkerBrush}" Margin="-3,-3,1,-3" Width="3" Canvas.ZIndex="1"/>
                    <Rectangle x:Name="PART_ResizeStart" Cursor="SizeNS" Grid.Column="1" Fill="{StaticResource DayViewAppointmentItemResizeStartPartRectangleFill}" Height="2" VerticalAlignment="Top" Canvas.ZIndex="1"/>
                    <telerikScheduler:AppointmentSlotPresenter Grid.Column="1" Margin="1,0,0,0"/>
                    <Rectangle x:Name="PART_ResizeEnd" Cursor="SizeNS" Grid.Column="1" Fill="{StaticResource DayViewAppointmentItemResizeEndPartRectangleFill}" Height="2" VerticalAlignment="Bottom"/>
                    <Image x:Name="recurrenceMark" Grid.Column="1" HorizontalAlignment="Right" Height="10" Margin="1, 2, 13, 0" Grid.Row="1" Source="/Telerik.Windows.Controls.Scheduler;component/Themes/Office/Images/rec_black.png" Visibility="Collapsed" VerticalAlignment="Top" Width="10"/>
                    <telerik:RadButton x:Name="PART_DeleteButton" Grid.Column="1" CommandParameter="{Binding AppointmentSlot.Occurrence}" Command="telerikScheduler:RadSchedulerCommands.DeleteAppointment" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Right" Margin="0,2,2,0" Opacity="{Binding Scheduler.IsReadOnly, Converter={StaticResource InvertedBooleanToOpacityConverter}}" Grid.Row="1" Style="{StaticResource DeleteButtonStyle}" Visibility="Collapsed" VerticalAlignment="Top"/>
                </Grid>
            </telerikScheduler:ChromeControl>
        </Border>
    </ControlTemplate>
    <Style x:Key="AppointmentItemStyle" TargetType="telerikScheduler:AppointmentItem">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template" Value="{StaticResource AppointmentItemTemplate}"/>
        <Setter Property="Background" Value="{StaticResource AppointementBackground}"/>
        <Setter Property="MouseOverBackground" Value="{StaticResource MouseOverAppointmentItemBackgroundBrush}"/>
        <Setter Property="SelectedBackground" Value="{StaticResource SelectedAppointmentItemBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}"/>
        <Setter Property="Margin" Value="1, 1, 1, 1"/>
    </Style>
    <ControlTemplate x:Key="NotAllDaysAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Border BorderBrush="{StaticResource TimeSlotItemBorderBrush}" BorderThickness="1,0,0,0" Margin="2,0,2,0">
            <Grid Background="{TemplateBinding Background}">
                <telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl" Background="{TemplateBinding Background}" ItemContainerStyle="{StaticResource OneWeekDayStyle}">
                    <telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimatives:RadUniformGrid ChildrenFlow="Vertical" Columns="{Binding ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}" UseLayoutRounding="True"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                </telerikScheduler:TimeSlotItemsControl>
                <telerikScheduler:AppointmentItemsControl x:Name="PART_AppointmentItemsControl" ItemContainerStyle="{StaticResource AppointmentItemStyle}">
                    <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikScheduler:AppointmentPanel AppointmentsRightPadding="5" Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentItemsControl.ItemsPanel>
                </telerikScheduler:AppointmentItemsControl>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="NotAllDayAppointmentsControl" TargetType="telerikScheduler:AppointmentsControl">
        <Setter Property="Background" Value="{StaticResource AppointmentsControl_Background}"/>
        <Setter Property="Template" Value="{StaticResource NotAllDaysAppointmentsControlTemplate}"/>
    </Style>
    <Style x:Key="NotAllDayAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1,0,1,1" Background="{StaticResource AllDayAreaBrush}" Margin="1,0,1,0">
                        <Border Background="{Binding ResourceStyleMapping.ResourceBrush}">
                            <telerikScheduler:AppointmentsControl x:Name="NotAllDayAppointmentsControl" Appointments="{Binding Appointments.NotAllDayAppointmentsView}" Grid.Column="1" Style="{StaticResource NotAllDayAppointmentsControl}" Scheduler="{Binding Scheduler}" TimeSlots="{Binding Scheduler.View.TimeSlotsView}"/>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="DayTemplate" TargetType="telerikScheduler:SchedulerPresenter">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <telerik:RadDockPanel>
                <Grid telerik:RadDockPanel.Dock="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Border x:Name="AboveTimeRulerBorder" Grid.Column="0" Style="{Binding Scheduler.TimeRulerHostStyle, RelativeSource={RelativeSource TemplatedParent}}"/>
                    <Grid Grid.Column="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition Width="16"/>
                        </Grid.ColumnDefinitions>
                        <telerikScheduler:AppointmentsControlsContainer AttachedScrollBar="{Binding ElementName=AllDayAreaScrollBar}" Grid.Column="0" ItemContainerStyle="{StaticResource AllDayAppointmentsControlsContainerItemContainerStyle}" Margin="0,0,-1,0">
                            <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <telerikPrimatives:RadUniformGrid HorizontalAlignment="Stretch" Rows="1" UseLayoutRounding="True"/>
                                </ItemsPanelTemplate>
                            </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                        </telerikScheduler:AppointmentsControlsContainer>
                        <ScrollBar x:Name="AllDayAreaScrollBar" Grid.Column="1" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                    </Grid>
                </Grid>
                <ScrollViewer x:Name="scrollViewer" BorderBrush="{StaticResource SchedulerBorderBrush}" BorderThickness="0,0,0,0" telerik:ScrollViewerExtensions.EnableMouseWheel="True" HorizontalScrollBarVisibility="Disabled" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Visible">
                    <Grid Background="{StaticResource SchedulerNavigationBackground}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Border x:Name="TimeRulerBorder" BorderBrush="{StaticResource SchedulerBorderBrush}" BorderThickness="0, 0, 0, 0" Grid.Column="0" Width="75">
                            <telerikScheduler:TimeRuler ItemsSource="{Binding TimeSlotsView.GroupedFirstGroupItems, RelativeSource={RelativeSource TemplatedParent}}" Margin="0 0 0 1">
                                <telerikScheduler:TimeRuler.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerikPrimatives:RadUniformGrid Columns="1" UseLayoutRounding="True"/>
                                    </ItemsPanelTemplate>
                                </telerikScheduler:TimeRuler.ItemsPanel>
                            </telerikScheduler:TimeRuler>
                        </Border>
                        <telerikScheduler:AppointmentsControlsContainer Grid.Column="1" ItemContainerStyle="{StaticResource NotAllDayAppointmentsControlsContainerItemContainerStyle}" Margin="0,0,-1,0">
                            <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <telerikPrimatives:RadUniformGrid HorizontalAlignment="Stretch" Rows="1" UseLayoutRounding="True"/>
                                </ItemsPanelTemplate>
                            </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                        </telerikScheduler:AppointmentsControlsContainer>
                    </Grid>
                </ScrollViewer>
            </telerik:RadDockPanel>
        </Border>
    </ControlTemplate>
    <SolidColorBrush x:Key="MonthViewDayHeaderBorder" Color="#FFBBBBBB"/>
    <SolidColorBrush x:Key="MonthWeekHeaderForegroundBrush" Color="Black"/>
    <SolidColorBrush x:Key="WeekHeaderBorderBrush" Color="#FFBBBBBB"/>
    <LinearGradientBrush x:Key="WeekHeaderBrush" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFF8F8F9" Offset="0"/>
        <GradientStop Color="#FFDFE2E5" Offset="0.5"/>
        <GradientStop Color="#FFC7CBD1" Offset="0.51"/>
        <GradientStop Color="#FFDBDEE1" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MonthWeekHeaderOverBrush" EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFFFE391" Offset="1"/>
        <GradientStop Color="#FFFFFDEB" Offset="0"/>
        <GradientStop Color="#FFFFD563" Offset="0.43"/>
        <GradientStop Color="#FFFFEDB3" Offset="0.42"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthWeekHeaderOverForegroundBrush" Color="#FF000000"/>
    <Style x:Key="MonthViewWeekHeaderButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Margin="-1,2,4,0">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused">
                                    <Storyboard/>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthWeekHeaderOverBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentHolder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Black"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="border">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthWeekHeaderOverBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentHolder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthWeekHeaderOverForegroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="border" BorderBrush="{StaticResource WeekHeaderBorderBrush}" BorderThickness="1" Background="{StaticResource WeekHeaderBrush}" Opacity="1"/>
                        <telerikPrimatives:LayoutTransformControl>
                            <telerikPrimatives:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-90"/>
                            </telerikPrimatives:LayoutTransformControl.LayoutTransform>
                            <ContentControl x:Name="contentHolder" Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" Foreground="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}" FontSize="10" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </telerikPrimatives:LayoutTransformControl>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="MonthWeekHeaderTemplate">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="18"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Border BorderBrush="{StaticResource MonthViewDayHeaderBorder}" BorderThickness="0,0,1,0" Grid.Column="0" Margin="0,-1,0,-2" Grid.Row="0"/>
            <Button x:Name="Holder" Content="{Binding DateTimePeriod}" Foreground="{StaticResource MonthWeekHeaderForegroundBrush}" HorizontalAlignment="Stretch" Grid.Row="1" Style="{StaticResource MonthViewWeekHeaderButtonStyle}" VerticalAlignment="Stretch" Width="24">
                <telerik:CommandManager.InputBindings>
                    <telerik:InputBindingCollection>
                        <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.SetWeekViewMode" Gesture="LeftClick"/>
                    </telerik:InputBindingCollection>
                </telerik:CommandManager.InputBindings>
            </Button>
        </Grid>
    </DataTemplate>
    <SolidColorBrush x:Key="DayHeaderBorderBrush" Color="#FFB3B3B3"/>
    <Style x:Key="DayHeaderStyle" TargetType="ContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border x:Name="DayHeaderBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" UseLayoutRounding="True">
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="MonthDayHeaderTemplate">
        <Button BorderBrush="{StaticResource DayHeaderBorderBrush}" BorderThickness="0, 0, 0, 1" Background="{StaticResource AllDayAreaBrush}" HorizontalContentAlignment="Center" Height="24" Style="{StaticResource DayHeaderStyle}" VerticalContentAlignment="Center">
            <StackPanel>
                <TextBlock Foreground="{StaticResource DayHeaderForegroundShadowBrush}" Padding="0,2,0,5" Text="{Binding MonthFormattedStart}"/>
            </StackPanel>
        </Button>
    </DataTemplate>
    <SolidColorBrush x:Key="MonthViewDayHeaderTextBlockForeground" Color="#FF000000"/>
    <SolidColorBrush x:Key="ShowMoreButtonBackground" Color="#FFBBBBBB"/>
    <SolidColorBrush x:Key="ShowMoreButtonSelectedBackground" Color="#FFFFAB3F"/>
    <Style x:Key="ShowMoreButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="Grid" Background="Transparent">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="triangle">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ShowMoreButtonSelectedBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="triangle">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ShowMoreButtonSelectedBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Path x:Name="triangle" Data="M175.93642,-23.999537 L179.99951,-20 L184.27405,-23.983667 z" Fill="{StaticResource ShowMoreButtonBackground}" HorizontalAlignment="Right" Height="8" Stretch="Fill" VerticalAlignment="Top" Width="12"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="TodayBorderBrush" Color="#FFFFAB3F"/>
    <SolidColorBrush x:Key="TodayHeaderBrushTop" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="UnSelectedDay" Color="#FFC7CBD1"/>
    <LinearGradientBrush x:Key="UnSelectedDayHeader_Over" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEFF0F2" Offset="0"/>
        <GradientStop Color="#FF9EA4AD" Offset="1"/>
        <GradientStop Color="#FFC7CBD1" Offset="0.5"/>
        <GradientStop Color="#FFAEB4BD" Offset="0.51"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="UnSelectedDay_Over" Color="#FFAEB4BD"/>
    <SolidColorBrush x:Key="MonthHeaderInOtherMonthForegroundBrush" Color="Black"/>
    <LinearGradientBrush x:Key="MonthHeaderSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFFFF" Offset="0"/>
        <GradientStop Color="#FFFEE07A" Offset="0.992"/>
        <GradientStop Color="#FFFFD9AA" Offset="0.02"/>
        <GradientStop Color="#FFFFBC6F" Offset="0.4"/>
        <GradientStop Color="#FFFFAB3F" Offset="0.41"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="MonthViewDayContentBorderIsSelectedBackground" Color="#00FFFFFF"/>
    <Style x:Key="MonthDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="Background" Value="{StaticResource TimeSlotItemBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Border x:Name="DayBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,0" Background="{TemplateBinding Background}" Margin="0,1,0,0" UseLayoutRounding="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ContentBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="HeaderCommonStates">
                                <VisualState x:Name="HeaderOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="HeaderBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="HeaderNormal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="HeaderBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="TodayDayStates">
                                <VisualState x:Name="Today">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Header">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TodayHeaderBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="DayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="DayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="-1,0,0,0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TodayBorderBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="HeaderTop">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TodayHeaderBrushTop}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="HeaderTop">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="0,0,0,1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="HeaderTop">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="0,0,0,-1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="HeaderTop">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TodayBorderBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="MonthName">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="2,2,0,1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="DayName">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="2,2,2,1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="DayStates">
                                <VisualState x:Name="FirstDay">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MonthName">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="DayName">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="5,2,0,0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="MonthStates">
                                <VisualState x:Name="UnSelectedMonth">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource UnSelectedDay}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="HeaderBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource UnSelectedDayHeader_Over}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ContentBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource UnSelectedDay_Over}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DayName">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthHeaderInOtherMonthForegroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="MonthName">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthHeaderInOtherMonthForegroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="SelectedMonth"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="DayBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthTimeSlotItemSelectedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="HeaderBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthHeaderSelectedBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Background" Storyboard.TargetName="ContentBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MonthViewDayContentBorderIsSelectedBackground}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerik:CommandManager.InputBindings>
                            <telerik:InputBindingCollection>
                                <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" Gesture="LeftDoubleClick"/>
                            </telerik:InputBindingCollection>
                        </telerik:CommandManager.InputBindings>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="ContentBorder" Background="{StaticResource MonthTimeSlotItemOverBrush}" Grid.RowSpan="3" Visibility="Collapsed"/>
                            <Grid Margin="0,0,0,1">
                                <Border x:Name="HeaderBorder" Background="{StaticResource DayHeaderOverBrush}" Visibility="Collapsed"/>
                                <Border x:Name="HeaderTop" BorderBrush="{StaticResource MonthViewDayHeaderBorder}" BorderThickness="0,1,1,1" Background="Transparent" Margin="0,-1,-1,-1">
                                    <Grid x:Name="Header" Background="{StaticResource DayHeaderBrush}">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition/>
                                        </Grid.ColumnDefinitions>
                                        <TextBlock x:Name="MonthName" Grid.Column="0" Foreground="{StaticResource MonthViewDayHeaderTextBlockForeground}" HorizontalAlignment="Left" Margin="2,2,0,2" Text="{Binding FormattedMonthName}" Visibility="Collapsed"/>
                                        <TextBlock x:Name="DayName" Grid.Column="1" Foreground="{StaticResource MonthViewDayHeaderTextBlockForeground}" FontWeight="Bold" Margin="2" Text="{Binding FormattedDayStart}"/>
                                        <Button Grid.ColumnSpan="2" Opacity="0">
                                            <telerik:CommandManager.InputBindings>
                                                <telerik:InputBindingCollection>
                                                    <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" Gesture="LeftClick"/>
                                                </telerik:InputBindingCollection>
                                            </telerik:CommandManager.InputBindings>
                                        </Button>
                                    </Grid>
                                </Border>
                            </Grid>
                            <Grid x:Name="PART_ContentHost" Grid.Row="1">
                                <Border x:Name="DayContentBorder">
                                    <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                </Border>
                            </Grid>
                            <telerik:RadButton x:Name="PART_ShowMoreButton" Background="Transparent" Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" HorizontalAlignment="Right" Height="14" Margin="0,0,5,0" Grid.Row="2" Style="{StaticResource ShowMoreButtonStyle}" Visibility="Collapsed" Width="31"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="MonthAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Grid Background="{TemplateBinding Background}">
            <telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl" ItemContainerStyle="{StaticResource MonthDayStyle}">
                <telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikPrimatives:RadUniformGrid Rows="{Binding Groups.Count}" UseLayoutRounding="True"/>
                    </ItemsPanelTemplate>
                </telerikScheduler:TimeSlotItemsControl.ItemsPanel>
            </telerikScheduler:TimeSlotItemsControl>
            <telerikScheduler:AppointmentItemsControl x:Name="PART_AppointmentItemsControl" ItemContainerStyle="{StaticResource MonthAppointmentItemStyle}">
                <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <telerikScheduler:AppointmentPanel Orientation="Vertical"/>
                    </ItemsPanelTemplate>
                </telerikScheduler:AppointmentItemsControl.ItemsPanel>
            </telerikScheduler:AppointmentItemsControl>
        </Grid>
    </ControlTemplate>
    <Style x:Key="MonthAppointmentsControl" TargetType="telerikScheduler:AppointmentsControl">
        <Setter Property="Background" Value="{StaticResource AppointmentsControl_Background}"/>
        <Setter Property="Template" Value="{StaticResource MonthAppointmentsControlTemplate}"/>
    </Style>
    <Style x:Key="MonthAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1" Background="{StaticResource AllDayAreaBrush}" Margin="1">
                        <Grid Background="{Binding ResourceStyleMapping.ResourceBrush}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="20"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="20"/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <Border Background="{StaticResource AllDayAreaBrush}" Grid.Column="0" Margin="0" Grid.Row="1" Grid.RowSpan="2">
                                <ItemsControl DataContext="{Binding Scheduler.View.TimeSlotsView}" ItemTemplate="{StaticResource MonthWeekHeaderTemplate}" ItemsSource="{Binding Groups}" Margin="0,21,0,-1">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <telerikPrimatives:RadUniformGrid Columns="1" UseLayoutRounding="True"/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                </ItemsControl>
                            </Border>
                            <Scheduler:ResourceHeaderControl Content="{Binding Resource}" Grid.Column="1" Grid.Row="0" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <Scheduler:ResourceHeaderControl.ContentTemplate>
                                    <DataTemplate>
                                        <TextBlock Height="22" Margin="0,5,0,0" Text="{Binding DisplayName}"/>
                                    </DataTemplate>
                                </Scheduler:ResourceHeaderControl.ContentTemplate>
                            </Scheduler:ResourceHeaderControl>
                            <ItemsControl Grid.Column="1" DataContext="{Binding Scheduler.View.TimeSlotsView}" ItemTemplate="{StaticResource MonthDayHeaderTemplate}" ItemsSource="{Binding FirstGroupItems}" Grid.Row="1" VerticalAlignment="Bottom">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <telerikPrimatives:RadUniformGrid Rows="1" UseLayoutRounding="True"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                            </ItemsControl>
                            <telerikScheduler:AppointmentsControl x:Name="MonthAppointmentsControl" Appointments="{Binding Appointments}" Grid.Column="1" Grid.Row="2" Style="{StaticResource MonthAppointmentsControl}" Scheduler="{Binding Scheduler}" TimeSlots="{Binding Scheduler.View.TimeSlotsView}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="VerticalSchedulerScrollBarTemplate" TargetType="telerikScheduler:SchedulerScrollBar">
        <ScrollBar x:Name="PART_ScrollBar" Orientation="Vertical" telerik:StyleManager.Theme="{StaticResource Theme}" Width="16"/>
    </ControlTemplate>
    <telerikScheduler:MouseWheelGesture x:Key="MouseWheelDownGesture" MouseWheelAction="WheelDown"/>
    <telerikScheduler:MouseWheelGesture x:Key="MouseWheelUpGesture" MouseWheelAction="WheelUp"/>
    <ControlTemplate x:Key="MonthTemplate" TargetType="telerikScheduler:SchedulerPresenter">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{StaticResource AllDayAreaBrush}">
            <telerik:CommandManager.InputBindings>
                <telerik:InputBindingCollection>
                    <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateSmall" Gesture="{StaticResource MouseWheelDownGesture}"/>
                    <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateSmall" Gesture="{StaticResource MouseWheelUpGesture}"/>
                </telerik:InputBindingCollection>
            </telerik:CommandManager.InputBindings>
            <Grid x:Name="monthViewGrid">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <telerikScheduler:AppointmentsControlsContainer x:Name="appointmentsControl" Grid.Column="1" ItemContainerStyle="{StaticResource MonthAppointmentsControlsContainerItemContainerStyle}" Grid.Row="1">
                    <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimatives:RadUniformGrid Background="{StaticResource SchedulerBackground}" HorizontalAlignment="Stretch" Rows="1" UseLayoutRounding="True"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                </telerikScheduler:AppointmentsControlsContainer>
                <telerikScheduler:SchedulerScrollBar x:Name="PART_MonthViewScrollBar" Grid.Column="2" Grid.RowSpan="2" Scheduler="{TemplateBinding Scheduler}" Template="{StaticResource VerticalSchedulerScrollBarTemplate}" Visibility="{Binding Scheduler.MonthViewScrollBarVisibility, RelativeSource={RelativeSource TemplatedParent}}"/>
            </Grid>
        </Border>
    </ControlTemplate>
    <DataTemplate x:Key="TimelineHeaderListItemTemplate">
        <telerik:RadButton x:Name="Holder" BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="0,1,1,1" Background="{StaticResource SchedulerHeaderBackgroundBrush}" Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" HorizontalContentAlignment="Left" Height="24" MinWidth="70" Style="{StaticResource WeekDayHeaderStyle}" VerticalContentAlignment="Center">
            <Grid>
                <TextBlock x:Name="HeaderTextBlock" Foreground="{StaticResource SchedulerHeaderForegroundBrush}" FontWeight="Bold" Padding="8,2,0,1" Text="{Binding FormattedTimelineStart}"/>
            </Grid>
        </telerik:RadButton>
    </DataTemplate>
    <Style x:Key="TimelineDayStyle" TargetType="telerikScheduler:TimeSlotItem">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeSlotItemBorderBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:TimeSlotItem">
                    <Border x:Name="contentBorder" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Margin="0,0,1,1" MinHeight="20">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="Opacity">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerik:CommandManager.InputBindings>
                            <telerik:InputBindingCollection>
                                <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.CreateAppointment" MouseAction="LeftDoubleClick"/>
                            </telerik:InputBindingCollection>
                        </telerik:CommandManager.InputBindings>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="PART_ContentHost" BorderThickness="0" Grid.Row="0">
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>                            
                            <telerik:RadButton x:Name="PART_ShowMoreButton" Background="Transparent" Command="telerikScheduler:RadSchedulerCommands.SetDayViewMode" HorizontalAlignment="Right" Height="14" Margin="0,1,5,0" Grid.Row="1" Style="{StaticResource ShowMoreButtonStyle}" Visibility="Collapsed" VerticalAlignment="Bottom" Width="31"/>
                            <Border x:Name="HoverBackground" Background="{StaticResource HoverBackgroundBrush}" Opacity="0"/>                                                        
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="TimelineAppointmentsControlTemplate" TargetType="telerikScheduler:AppointmentsControl">
        <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1,0,0,0" Background="{TemplateBinding Background}">
            <Grid Background="{TemplateBinding Background}">
                <telerikScheduler:TimeSlotItemsControl x:Name="PART_TimeSlotItemsControl" HorizontalAlignment="Stretch" ItemContainerStyle="{StaticResource TimelineDayStyle}" UseLayoutRounding="True">
                    <telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimatives:RadUniformGrid Rows="{Binding ItemsSource.Groups.Count, ElementName=PART_TimeSlotItemsControl}" UseLayoutRounding="True"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:TimeSlotItemsControl.ItemsPanel>
                </telerikScheduler:TimeSlotItemsControl>
                <telerikScheduler:AppointmentItemsControl x:Name="PART_AppointmentItemsControl" ItemContainerStyle="{StaticResource MonthAppointmentItemStyle}">
                    <telerikScheduler:AppointmentItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikScheduler:AppointmentPanel AppointmentsRightPadding="5" Orientation="Vertical"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentItemsControl.ItemsPanel>
                </telerikScheduler:AppointmentItemsControl>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style x:Key="TimelineAppointmentsControl" TargetType="telerikScheduler:AppointmentsControl">
        <Setter Property="Background" Value="{StaticResource AppointmentsControl_Background}"/>
        <Setter Property="Template" Value="{StaticResource TimelineAppointmentsControlTemplate}"/>
    </Style>
    <Style x:Key="TimelineAppointmentsControlsContainerItemContainerStyle" TargetType="telerikScheduler:AppointmentsControlsContainerItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikScheduler:AppointmentsControlsContainerItem">
                    <Grid Background="{StaticResource AllDayAreaBrush}" UseLayoutRounding="True">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="0,0,0,1" Background="{Binding ResourceStyleMapping.ResourceBrush}" Grid.Column="0" HorizontalAlignment="Stretch">
                            <Scheduler:ResourceHeaderControl Content="{Binding Resource}" HorizontalContentAlignment="Center" Visibility="{Binding Scheduler.View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" VerticalContentAlignment="Center" Width="60">
                                <Scheduler:ResourceHeaderControl.ContentTemplate>
                                    <DataTemplate>
                                        <TextBlock HorizontalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" Text="{Binding DisplayName}" VerticalAlignment="Center"/>
                                    </DataTemplate>
                                </Scheduler:ResourceHeaderControl.ContentTemplate>
                            </Scheduler:ResourceHeaderControl>
                        </Border>
                        <telerikScheduler:AppointmentsControl Appointments="{Binding Appointments}" Grid.Column="1" Style="{StaticResource TimelineAppointmentsControl}" Scheduler="{Binding Scheduler}" TimeSlots="{Binding Scheduler.View.TimeSlotsView}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="TimelineTemplate" TargetType="telerikScheduler:SchedulerPresenter">
        <ScrollViewer HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" HorizontalScrollBarVisibility="Visible" MinHeight="150" telerik:StyleManager.Theme="{StaticResource Theme}" VerticalScrollBarVisibility="Hidden">
            <telerik:CommandManager.InputBindings>
                <telerik:InputBindingCollection>
                    <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.IncreaseVisibleDateSmall" Gesture="{StaticResource MouseWheelDownGesture}"/>
                    <telerik:MouseBinding Command="telerikScheduler:RadSchedulerCommands.DecreaseVisibleDateSmall" Gesture="{StaticResource MouseWheelUpGesture}"/>
                </telerik:InputBindingCollection>
            </telerik:CommandManager.InputBindings>
            <Grid HorizontalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Border x:Name="resourceNamesBorder" BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="0,0,0,1" Grid.Column="0" DataContext="{TemplateBinding Scheduler}" Grid.Row="0" Visibility="{Binding View.IsGrouped, Converter={StaticResource BooleanToVisibilityConverter}}" Width="60"/>
                <Border BorderBrush="{StaticResource RadSchedulerStackPanelSeparatorRectangleFill}" BorderThickness="1,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" Grid.Row="0">
                    <ItemsControl x:Name="DayHeaderList" HorizontalAlignment="Stretch" ItemTemplate="{StaticResource TimelineHeaderListItemTemplate}" ItemsSource="{Binding TimeSlotsView.FirstGroupItems, RelativeSource={RelativeSource TemplatedParent}}">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <telerikPrimatives:RadUniformGrid HorizontalAlignment="Stretch" Rows="1" UseLayoutRounding="True"/>
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                    </ItemsControl>
                </Border>
                <telerikScheduler:AppointmentsControlsContainer x:Name="appointmentsControl" Grid.ColumnSpan="2" ItemContainerStyle="{StaticResource TimelineAppointmentsControlsContainerItemContainerStyle}" Grid.Row="1">
                    <telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerikPrimatives:RadUniformGrid Columns="1" HorizontalAlignment="Stretch" UseLayoutRounding="True"/>
                        </ItemsPanelTemplate>
                    </telerikScheduler:AppointmentsControlsContainer.ItemsPanel>
                </telerikScheduler:AppointmentsControlsContainer>
            </Grid>
        </ScrollViewer>
    </ControlTemplate>
    <Style TargetType="telerikScheduler:RadScheduler">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template" Value="{StaticResource RadSchedulerTemplate}"/>
        <Setter Property="NavigationHeaderStyle" Value="{StaticResource NavigationHeaderStyle}"/>
        <Setter Property="EditAppointmentStyle" Value="{StaticResource EditAppointmentStyle}"/>
        <Setter Property="TimeRulerHostStyle" Value="{StaticResource TimeRulerHostStyle}"/>
        <Setter Property="AppointmentTemplate" Value="{StaticResource AppointmentTemplate}"/>
        <Setter Property="DayTemplate" Value="{StaticResource DayTemplate}"/>
        <Setter Property="MonthTemplate" Value="{StaticResource MonthTemplate}"/>
        <Setter Property="TimelineTemplate" Value="{StaticResource TimelineTemplate}"/>
        <Setter Property="IsViewModeNavigationEnabled" Value="False"/>
        <Setter Property="IsInlineEditingEnabled" Value="False"/>
        <Setter Property="OpenModalDialogs" Value="True"/>
        <Setter Property="TimelineHeaderFormat" Value="{}{0:d}"/>
        <Setter Property="AvailableViewModes" Value="Timeline"/>
        <Setter Property="ViewMode" Value="Timeline"/>
        <Setter Property="MonthViewScrollBarVisibility" Value="Collapsed"/> 
        <Setter Property="IsReadOnly" Value="True"/>
    </Style>

    <!-- RadTileViewItem -->
    <Style x:Key="TileViewItemHeaderTextStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="5,0,0,0"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="FontWeight" Value="Bold"/>        
    </Style>
    <Style x:Key="TileViewItemContentsStyle" TargetType="CustomControls:ClippingBorder">
        <Setter Property="CornerRadius" Value="7"/>
        <Setter Property="Margin" Value="2,0,2,2"/>
        <Setter Property="Background" Value="{StaticResource TileViewItemContentsBackgroundBrush}"/>
    </Style>
    <Style x:Key="TileViewItemToggleButtonStyle" TargetType="ToggleButton">
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Margin" Value="0,0,3,0"/>
        <Setter Property="Width" Value="20"/>
        <Setter Property="Height" Value="20"/>
        <Setter Property="Cursor" Value="Hand"/>
    </Style>
    <Style x:Key="TileViewItemToggleButtonInnerBorderStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="{StaticResource TileViewItemToggleButtonBackgroundBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="1"/>
        <Setter Property="Width" Value="16"/>
        <Setter Property="Height" Value="16"/>
    </Style>

	<SolidColorBrush x:Key="RadTileView_ButtonBackground" Color="#FF535353"/>
	<SolidColorBrush x:Key="RadTileView_ButtonOuterBorder" Color="Transparent"/>
	<SolidColorBrush x:Key="RadTileView_ButtonInnerBorder" Color="#FF3A3C3D"/>
	<SolidColorBrush x:Key="RadTileView_ButtonInnerBorderRectangle" Color="{StaticResource TileViewItemHeaderBackgroundColor1}"/>
    <LinearGradientBrush x:Key="RadTileView_ButtonBackgroundOver" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="{StaticResource ItemSelectedBackgroundColor1}" Offset="0"/>
        <GradientStop Color="{StaticResource ItemSelectedBackgroundColor2}" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="RadTileView_ButtonInnerBorderOver" Color="#FF543E0C"/>
    <SolidColorBrush x:Key="RadTileView_ButtonBackgroundPressed" Color="{StaticResource PopupBorderColor}"/>
    <SolidColorBrush x:Key="RadTileView_ButtonInnerBorderPressed" Color="#FF573510"/>
    <Style TargetType="telerikNavigation:RadTileViewItem">
        <Setter Property="Background" Value="{StaticResource TileViewItemContainerBackgroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource TileViewItemBorderBrush}" />
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Margin" Value="3"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikNavigation:RadTileViewItem">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOver"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="8">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <!-- Content -->
                                <CustomControls:ClippingBorder Style="{StaticResource TileViewItemContentsStyle}" Grid.Row="1">
                                    <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Grid.Row="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                                </CustomControls:ClippingBorder>
                                <!-- Header -->
                                <Border Background="{StaticResource TileViewItemHeaderBackgroundBrush}" CornerRadius="7,7,0,0" Padding="7,0,7,0">
                                    <Grid MinHeight="28">
                                        <Border x:Name="GripBarElement" Background="Transparent">
                                            <ContentPresenter HorizontalAlignment="Left" Margin="0,0,10,0" VerticalAlignment="Center" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}"/>
                                        </Border>
                                        <ToggleButton x:Name="MaximizeToggleButton" HorizontalAlignment="Right" Height="17" VerticalAlignment="Center" Width="17">
                                            <ToggleButton.Template>
                                                <ControlTemplate TargetType="ToggleButton">
                                                    <Grid>
                                                        <VisualStateManager.VisualStateGroups>
                                                            <VisualStateGroup x:Name="FocusStates">
                                                                <VisualState x:Name="Focused"/>
                                                                <VisualState x:Name="Unfocused"/>
                                                            </VisualStateGroup>
                                                            <VisualStateGroup x:Name="CommonStates">
                                                                <VisualState x:Name="Disabled"/>
                                                                <VisualState x:Name="Normal"/>
                                                                <VisualState x:Name="MouseOver">
                                                                    <Storyboard>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path1">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonBackgroundOver}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path5">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonInnerBorderOver}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path1Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonBackgroundOver}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path2Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonBackgroundOver}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path3Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonInnerBorderOver}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path5Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonInnerBorderOver}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                    </Storyboard>
                                                                </VisualState>
                                                                <VisualState x:Name="Pressed">
                                                                    <Storyboard>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path1">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonBackgroundPressed}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path5">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonInnerBorderPressed}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path1Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonBackgroundPressed}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path2Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonBackgroundPressed}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path3Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonInnerBorderPressed}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Path5Check">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadTileView_ButtonInnerBorderPressed}"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                    </Storyboard>
                                                                </VisualState>
                                                            </VisualStateGroup>
                                                            <VisualStateGroup x:Name="CheckStates">
                                                                <VisualState x:Name="Checked">
                                                                    <Storyboard>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="checkedArrow">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="uncheckedArrow">
                                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                                                        </ObjectAnimationUsingKeyFrames>
                                                                    </Storyboard>
                                                                </VisualState>
                                                                <VisualState x:Name="Unchecked"/>
                                                                <VisualState x:Name="Indeterminate"/>
                                                            </VisualStateGroup>
                                                        </VisualStateManager.VisualStateGroups>
                                                        <Grid x:Name="uncheckedArrow" Background="Transparent" Height="13" Visibility="Visible" Width="17">
                                                            <ToolTipService.ToolTip>
                                                                <ToolTip telerik:LocalizationManager.ResourceKey="TileViewItemMaximizeText"/>
                                                            </ToolTipService.ToolTip>
                                                            <Path x:Name="Path1" Data="M3,4 L3,8 L12,8 L12,4 z M1.4999999,1.4210855E-14 L13.5,1.4210855E-14 C14.328427,-1.0430811E-07 15,0.67157274 15,1.4999999 L15,9.5 C15,10.328427 14.328427,11 13.5,11 L1.4999999,11 C0.67157286,11 0,10.328427 0,9.5 L0,1.4999999 C0,0.67157274 0.67157286,-1.0430811E-07 1.4999999,1.4210855E-14 z" Fill="{StaticResource RadTileView_ButtonBackground}" HorizontalAlignment="Center" Height="11" Stretch="Fill" VerticalAlignment="Center" Width="15"/>
                                                            <Rectangle x:Name="Path4" HorizontalAlignment="Center" Height="13" RadiusY="2" RadiusX="2" Stroke="{StaticResource RadTileView_ButtonOuterBorder}" VerticalAlignment="Center" Width="17"/>
                                                            <Path x:Name="Path5" Data="M11.956482,4.9564972 L12.956482,4.9564972 L12.956482,8.9564972 L11.956482,8.9564972 L3.9564819,8.9564972 L3.9564819,7.9564972 L11.956482,7.9564972 z M1.5000182,0 L13.500164,0 C14.121492,3.0788389E-08 14.654589,0.37776613 14.882304,0.91614765 L14.912999,1.0000155 L1.0000072,1.0000155 L1.0000072,10.913 L0.91614342,10.882306 C0.37776428,10.65459 -5.9605348E-08,10.12149 7.0536E-15,9.5001593 L7.0536E-15,1.5000254 C-5.9605348E-08,0.67158419 0.67158097,3.0788389E-08 1.5000182,0 z" Fill="{StaticResource RadTileView_ButtonInnerBorder}" HorizontalAlignment="Center" Height="10.914" Opacity="0.7" Stretch="Fill" VerticalAlignment="Center" Width="14.913"/>
                                                            <Rectangle x:Name="Path6" HorizontalAlignment="Center" Height="4" Stroke="{StaticResource RadTileView_ButtonInnerBorderRectangle}" VerticalAlignment="Center" Width="9"/>
                                                        </Grid>
                                                        <Grid x:Name="checkedArrow" Background="Transparent" Height="17" Margin="0 1 0 0" Visibility="Collapsed" Width="17">
                                                            <ToolTipService.ToolTip>
                                                                <ToolTip telerik:LocalizationManager.ResourceKey="TileViewItemMinimizeText"/>
                                                            </ToolTipService.ToolTip>
                                                            <Path x:Name="PathCheck" Data="M2.5,0.5 L10.5,0.5 C11.6,0.5 12.5,1.31 12.5,2.5 L12.5,10.5 C12.5,11.6 11.6,12.5 10.5,12.5 L6.5,12.5 L6.5,7.5 L0.5,7.5 L0.5,2.5 C0.5,1.4 1.4,0.5 2.5,0.5 z" HorizontalAlignment="Right" Height="13" Stretch="Fill" Stroke="{StaticResource RadTileView_ButtonOuterBorder}" VerticalAlignment="Top" Width="13"/>
                                                            <Path x:Name="Path1Check" Data="M3,4 L3,8 L8,8 L8,4 z M1.5,0 L9.5,0 C10.3,0 11,0.6 11,1.5 L11,9.5 C11,10.3 10.3,11 9.5,11 L1.5,11 C0.6,11 0,10.3 0,9.5 L0,1.5 C0,0.6 0.6,0 1.5,0 z" Fill="{StaticResource RadTileView_ButtonBackground}" Margin="1,5,5,1" Stretch="Fill"/>
                                                            <Path x:Name="Path2Check" Data="M1.5,0 L9.5,0 C10.3,0 11,0.6 11,1.5 L11,3.5 L11,9.5 C11,10.3 10.3,11 9.5,11 L7,11 L7,8.5 L7,8 L7,4 L7,3.5 L0,3.5 L0,1.5 C0,0.6 0.6,0 1.5,0 z" Fill="{StaticResource RadTileView_ButtonBackground}" Margin="5.05,1,1,5" Stretch="Fill"/>
                                                            <Path x:Name="Path3Check" Data="M7.9,4.25 L8.9,4.25 L8.9,11.25 L7.9,11.25 z M1.5,0 L9.5,0 C10.1,0 10.6,0.4 10.9,0.9 L10.914,0.9 L0.99,0.99 L0.99,2.5 L0,2.5 L0,1.5 C0,0.6 0.6,0 1.5,0 z" Fill="{StaticResource RadTileView_ButtonInnerBorder}" Margin="5.05,1,1.05,5" Opacity="0.7" Stretch="Fill"/>
                                                            <Rectangle x:Name="Path4Check" HorizontalAlignment="Right" Height="13" Margin="0,3.5,4,0" RadiusY="2" RadiusX="2" Stroke="{StaticResource RadTileView_ButtonOuterBorder}" VerticalAlignment="Top" Width="13"/>
                                                            <Path x:Name="Path5Check" Data="M7.99,5 L9,5 L9,8.99 L8,8.99 L4,9 L4,8 L7.99,8 z M1.4,0 L9.4,0 C10,0 10.69,0.4 10.9,0.98 L10.914,0.99 L0.99,0.99 L0.99,10.914 L0.98,10.90 C0.4,10.69 0,10.14 0,9.5 L0,1.5 C0,0.675 0.675,0 1.5,0 z" Fill="{StaticResource RadTileView_ButtonInnerBorder}" Margin="1,5,5.05,1.1" Opacity="0.7" Stretch="Fill"/>
                                                            <Rectangle x:Name="Path6Check" Height="4" Margin="4,0,8,4" Stroke="{StaticResource RadTileView_ButtonInnerBorderRectangle}" VerticalAlignment="Bottom"/>
                                                        </Grid>
                                                    </Grid>
                                                </ControlTemplate>
                                            </ToggleButton.Template>
                                        </ToggleButton>
                                    </Grid>
                                </Border>
                                <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" RadiusX="4" RadiusY="4" Visibility="Collapsed" Grid.RowSpan="2"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding}" Style="{StaticResource TileViewItemHeaderTextStyle}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>   

    <!-- RadDatePicker -->
    <Thickness x:Key="CalendarItemsMargin">1,0,1,1</Thickness>
    <Style x:Key="MonthViewStyle" TargetType="telerikCalendar:CalendarView">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundColor}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikCalendar:CalendarView">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Border x:Name="BackgroundVisual" Background="{TemplateBinding Background}" Grid.RowSpan="2"/>
                        <Border x:Name="Header" Visibility="{TemplateBinding HeaderVisibility}">
                            <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <Grid x:Name="WeekHeaders" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="7*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="6*"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="VerticalOuterBorder" BorderBrush="{StaticResource ControlForegroundBrush}" BorderThickness="0,0,1,0" Margin="0,0,-1,0" Grid.RowSpan="2" Visibility="{Binding HideColumn, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" Canvas.ZIndex="0"/>
                            <Border x:Name="HorizontalOuterBorder" BorderBrush="{StaticResource ControlForegroundBrush}" BorderThickness="0,0,0,1" Grid.ColumnSpan="2" Margin="0" Visibility="{Binding HideRow, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" Canvas.ZIndex="0"/>
                            <Rectangle x:Name="VerticalBackground" Fill="Transparent" Margin="2,2,1,2" Grid.RowSpan="2" Visibility="{Binding HideColumn, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" Canvas.ZIndex="0"/>
                            <Rectangle x:Name="HorizontalBackground" Grid.ColumnSpan="2" Fill="Transparent" Margin="2,1,2,2" Visibility="{Binding HideRow, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" Canvas.ZIndex="0"/>
                        </Grid>
                        <ItemsPresenter Margin="{StaticResource CalendarItemsMargin}" Grid.Row="1"/>
                        <Border x:Name="BorderBrush" Grid.RowSpan="2"/>
                        <Rectangle x:Name="MinDesiredSize" Height="155" Grid.Row="1" Width="240"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="0"/>
    </Style>
    <Style x:Key="CalendarViewStyle" TargetType="telerikCalendar:CalendarView">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikCalendar:CalendarView">
                    <Grid Margin="-1,-1,0,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Border x:Name="BackgroundVisual" Grid.RowSpan="2"/>
                        <Border x:Name="Header" Margin="0" Visibility="{TemplateBinding HeaderVisibility}">
                            <Border>
                                <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                        </Border>
                        <ItemsPresenter Margin="{StaticResource CalendarItemsMargin}" Grid.Row="1"/>
                        <Border x:Name="BorderBrush" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.RowSpan="2"/>
                        <Rectangle x:Name="MinDesiredSize" Height="155" Grid.Row="1" Width="240"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="0"/>
    </Style>
    <Style x:Key="CalendarButtonStyle" TargetType="telerikCalendar:CalendarButton">
        <Setter Property="Padding" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikCalendar:CalendarButton">
                    <Grid x:Name="LayoutRoot">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="LayoutRoot">
                                            <DiscreteDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ViewStates">
                                <VisualState x:Name="IsInAnotherView"/>
                                <VisualState x:Name="IsNotFromCurrentView">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                            <DiscreteDoubleKeyFrame KeyTime="0" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ButtonType">
                                <VisualState x:Name="Year"/>
                                <VisualState x:Name="Decade"/>
                                <VisualState x:Name="Date"/>
                                <VisualState x:Name="WeekName">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="SelectionChrome">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="WeekNumber">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="SelectionChrome">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="TodayDate">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="TodayVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Month"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <telerikChromes:ButtonChrome x:Name="SelectionChrome" CornerRadius="2" Margin="2" RenderNormal="False" RenderSelected="{TemplateBinding IsSelected}" RenderFocused="{TemplateBinding IsFocused}" RenderHighlighted="{TemplateBinding IsMouseOver}"/>
                        <Border x:Name="TodayVisual" BorderBrush="{StaticResource FocusBorderBrush}" BorderThickness="1" CornerRadius="2" Margin="1" Visibility="Collapsed"/>
                        <ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DateToggleButtonStyle" TargetType="ToggleButton">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ToggleButton">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="OverlayBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource HoverBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OverlayBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="OverlayBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ItemSelectedBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="BorderChecked">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unhecked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="BorderChecked">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="OverlayBackground" CornerRadius="2" Margin="2"/>
                        <Border x:Name="BorderChecked" Visibility="Collapsed"/>
                        <ContentPresenter x:Name="DropDownIcon" IsHitTestVisible="False" Style="{StaticResource ComboBox_NonEditableIconStyle}"/>
                        <Grid x:Name="FocusVisual" Opacity="0" Visibility="Collapsed"/>
                        <Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBackgroundBrush}" Opacity="0"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerikInput:RadDatePicker">
        <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ControlBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Padding" Value="5,1"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Columns" Value="1"/>
        <Setter Property="Rows" Value="1"/>
        <Setter Property="ViewsHeaderVisibility" Value="Collapsed"/>
        <Setter Property="MonthViewStyle" Value="{StaticResource MonthViewStyle}"/>
        <Setter Property="YearViewStyle" Value="{StaticResource CalendarViewStyle}"/>
        <Setter Property="DecadeViewStyle" Value="{StaticResource CalendarViewStyle}"/>
        <Setter Property="CenturyViewStyle" Value="{StaticResource CalendarViewStyle}"/>
        <Setter Property="DayButtonStyle" Value="{StaticResource CalendarButtonStyle}"/>
        <Setter Property="MonthButtonStyle" Value="{StaticResource CalendarButtonStyle}"/>
        <Setter Property="YearButtonStyle" Value="{StaticResource CalendarButtonStyle}"/>
        <Setter Property="DecadeButtonStyle" Value="{StaticResource CalendarButtonStyle}"/>
        <Setter Property="telerikAnimation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <telerikAnimation:AnimationSelector>
                    <telerikAnimation:SlideAnimation AnimationName="Expand" Direction="In" SlideMode="Top" TargetElementName="DropDownRoot"/>
                    <telerikAnimation:SlideAnimation AnimationName="Collapse" Direction="Out" SlideMode="Top" TargetElementName="DropDownRoot"/>
                </telerikAnimation:AnimationSelector>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadDatePicker">
                    <Grid x:Name="LayoutRoot">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                            <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.50">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="InputBox">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource TextBlock_Foreground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PickerIcon">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconForeground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="PickerIcon">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonIconBackground_Disabled}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                            <LinearDoubleKeyFrame KeyTime="0:0:0.150" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                            <LinearDoubleKeyFrame KeyTime="0:0:0.115" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="MouseOverVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownOpen">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual">
                                            <LinearDoubleKeyFrame KeyTime="0:0:0.050" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ValidationStates">
                                <VisualState x:Name="Valid"/>
                                <VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="ValidationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" CornerRadius="3" IsHitTestVisible="False"/>
                        <Border x:Name="MouseOverVisual" BorderBrush="{StaticResource HoverBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="1" Grid.ColumnSpan="2" CornerRadius="2" IsHitTestVisible="False" Opacity="0" Visibility="Collapsed"/>
                        <telerik:PickerTextBox x:Name="InputBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{TemplateBinding IsReadOnly}" Padding="{TemplateBinding Padding}" TabIndex="{TemplateBinding TabIndex}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        <Border x:Name="FocusVisual" BorderBrush="{StaticResource FocusBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" CornerRadius="2" IsHitTestVisible="False" Visibility="Collapsed"/>
                        <ToggleButton x:Name="ToggleButtonElement" Grid.Column="1" IsTabStop="False" IsEnabled="{TemplateBinding IsEnabled}" MinWidth="20" Style="{StaticResource DateToggleButtonStyle}"/>
                        <Popup x:Name="PART_Popup">
                            <CustomControls:ClippingBorder x:Name="DropDownRoot" BorderBrush="{StaticResource PopupBorderBrush}" BorderThickness="2" CornerRadius="5">
                                <CustomControls:ClippingBorder.Effect>
                                    <DropShadowEffect ShadowDepth="{StaticResource DropShadowDepth}" Opacity="{StaticResource DropShadowOpacity}"/>
                                </CustomControls:ClippingBorder.Effect>
                                <telerikInput:RadCalendar x:Name="CalendarElement" AreWeekNumbersVisible="{TemplateBinding AreWeekNumbersVisible}" AreWeekNamesVisible="{TemplateBinding AreWeekNamesVisible}" CalendarWeekRule="{TemplateBinding CalendarWeekRule}" Culture="{TemplateBinding Culture}" CenturyViewHeaderFormat="{TemplateBinding CenturyViewHeaderFormat}" CenturyViewPanel="{TemplateBinding CenturyViewPanel}" Columns="{TemplateBinding Columns}" CenturyViewStyle="{TemplateBinding CenturyViewStyle}" DecadeButtonStyleSelector="{TemplateBinding DecadeButtonStyleSelector}" DayTemplateSelector="{TemplateBinding DayTemplateSelector}" DecadeViewPanel="{TemplateBinding DecadeViewPanel}" DisplayDateEnd="{TemplateBinding DisplayDateEnd}" DisplayMode="{TemplateBinding DisplayMode}" DecadeTemplateSelector="{TemplateBinding DecadeTemplateSelector}" DecadeTemplate="{TemplateBinding DecadeTemplate}" DayTemplate="{TemplateBinding DayTemplate}" DisplayDateStart="{TemplateBinding DisplayDateStart}" DecadeViewStyle="{TemplateBinding DecadeViewStyle}" DayButtonStyle="{TemplateBinding DayButtonStyle}" DecadeButtonStyle="{TemplateBinding DecadeButtonStyle}" DisplayDate="{TemplateBinding DisplayDate}" DecadeViewHeaderFormat="{TemplateBinding DecadeViewHeaderFormat}" DayButtonStyleSelector="{TemplateBinding DayButtonStyleSelector}" FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}" HeaderVisibility="{TemplateBinding HeaderVisibility}" IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" IsReadOnly="{TemplateBinding IsReadOnly}" IsEnabled="{TemplateBinding IsEnabled}" MonthButtonStyleSelector="{TemplateBinding MonthButtonStyleSelector}" MonthViewPanel="{TemplateBinding MonthViewPanel}" MonthTemplateSelector="{TemplateBinding MonthTemplateSelector}" MonthViewStyle="{TemplateBinding MonthViewStyle}" Margin="0" MonthButtonStyle="{TemplateBinding MonthButtonStyle}" MonthTemplate="{TemplateBinding MonthTemplate}" MonthViewHeaderFormat="{TemplateBinding MonthViewHeaderFormat}" Orientation="{TemplateBinding Orientation}" Rows="{TemplateBinding Rows}" SelectableDateEnd="{TemplateBinding SelectableDateEnd}" SelectionMode="Single" SelectedDate="{TemplateBinding SelectedDate}" SelectableDateStart="{TemplateBinding SelectableDateStart}" ViewsHeaderVisibility="{TemplateBinding ViewsHeaderVisibility}" YearViewPanel="{TemplateBinding YearViewPanel}" YearButtonStyle="{TemplateBinding YearButtonStyle}" YearTemplate="{TemplateBinding YearTemplate}" YearViewHeaderFormat="{TemplateBinding YearViewHeaderFormat}" YearButtonStyleSelector="{TemplateBinding YearButtonStyleSelector}" YearTemplateSelector="{TemplateBinding YearTemplateSelector}" YearViewStyle="{TemplateBinding YearViewStyle}"/>
                            </CustomControls:ClippingBorder>
                        </Popup>
                        <telerikChromes:ValidationTooltip x:Name="ValidationTooltip" Grid.ColumnSpan="2" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MonthViewPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikCalendar:CalendarPanel ChildrenFlow="Horizontal" Columns="8" FirstColumn="1" PreserveSpaceForCollapsedChildren="True" Rows="7"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="YearViewPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikCalendar:CalendarPanel Columns="4" PreserveSpaceForCollapsedChildren="True" Rows="3" VerticalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DecadeViewPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikCalendar:CalendarPanel Columns="4" PreserveSpaceForCollapsedChildren="True" Rows="3" VerticalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CenturyViewPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerikCalendar:CalendarPanel Columns="4" PreserveSpaceForCollapsedChildren="True" Rows="3" VerticalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DayTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding Text}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MonthTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding Text}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DecadeTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding Text}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="YearTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding Text}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RadWindow -->
    <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>
    <Style x:Key="WindowButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Margin" Value="1,1,0,1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <telerikChromes:ButtonChrome CornerRadius="3" RenderNormal="False" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}"/>
                    </Grid>
                </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="Maximized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="CornerRadius" Storyboard.TargetName="WindowOuterBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="WindowOuterBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="ContentBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0 1 0 0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="ContentBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="HeaderButtons">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Minimized">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ContentBorder">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="HeaderButtons">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5" Grid.RowSpan="2">
                <Border.Effect>
                    <DropShadowEffect Opacity="{StaticResource DropShadowOpacity}" ShadowDepth="{StaticResource DropShadowDepth}"/>
                </Border.Effect>
                <Border Background="{StaticResource FrameBackgroundBrush}" CornerRadius="4" Padding="4">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid x:Name="Header">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <StackPanel Grid.Column="0" Margin="2 0 0 0" Orientation="Horizontal">
                                <ContentPresenter x:Name="IconContent" ContentTemplate="{TemplateBinding IconTemplate}" Content="{TemplateBinding Icon}" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Center"/>
                                <ContentPresenter x:Name="HeaderContent" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                            </StackPanel>
                            <Thumb x:Name="titleThumb" Grid.ColumnSpan="2" Style="{StaticResource WindowResizeThumbStyle}"/>
                            <Border x:Name="PART_HeaderButtonsBorder" Grid.Column="1">
                                <StackPanel x:Name="HeaderButtons" Grid.Column="1" Margin="0 0 3 0" Orientation="Horizontal">
                                    <!--<telerik:RadButton x:Name="PART_MinimizeButton" Visibility="Collapsed" Command="telerik:WindowCommands.Minimize" Style="{StaticResource WindowButtonStyle}">
                                            <Path Data="M1.5,7.5 L12.5,7.5 12.5,11.5 1.5,11.5 Z" Fill="{StaticResource WindowButtonIconFill}" Height="14" Stroke="{StaticResource WindowButtonIconStroke}" Width="14"/>
                                        </telerik:RadButton>
                                        <telerik:RadButton x:Name="PART_RestoreButton" Visibility="Collapsed" Command="telerik:WindowCommands.Restore" Style="{StaticResource WindowButtonStyle}">
                                            <Path Data="M0.5,4.5 0.5,11.5 1.5,12.5 8.5,12.5 9.5,11.5 9.5,3.5 1.5,3.5 Z M3.5,6.5 L3.5,9.5 L6.5,9.5 6.5,6.5 Z M3.5,3.5 3.5,1.5 4.5,0.5 11.5,0.5 12.5,1.5 12.5,9.5 11.5,10.5 9.5,10.5 9.5,3.5 Z" Fill="{StaticResource WindowButtonIconFill}" Height="14" Stroke="{StaticResource WindowButtonIconStroke}" Width="14"/>
                                        </telerik:RadButton>
                                        <telerik:RadButton x:Name="PART_MaximizeButton" Visibility="Collapsed" Command="telerik:WindowCommands.Maximize" Style="{StaticResource WindowButtonStyle}">
                                            <Path Data="M1.5,2.5 L12.5,2.5 12.5,11.5 1.5,11.5 Z M4.5,5.5 L9.5,5.5 9.5,8.5 4.5,8.5 Z" Fill="{StaticResource WindowButtonIconFill}" Height="14" Stroke="{StaticResource WindowButtonIconStroke}" Width="14"/>
                                        </telerik:RadButton>-->
                                    <telerik:RadButton x:Name="PART_CloseButton" Command="telerik:WindowCommands.Close" Style="{StaticResource WindowButtonStyle}">
                                        <Path Data="M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z" Fill="{StaticResource ControlForegroundBrush}" Height="14" Width="14"/>
                                    </telerik:RadButton>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Border x:Name="ContentBorder" Background="{StaticResource FrameInnerBackgroundBrush}" Padding="8" CornerRadius="4" Grid.Row="1">
                            <ContentPresenter x:Name="ContentElement" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Margin="{TemplateBinding Padding}"/>
                        </Border>
                    </Grid>
                </Border>
            </Border>
            <Thumb x:Name="W" Cursor="SizeWE" HorizontalAlignment="Left" Style="{StaticResource WindowResizeThumbStyle}"/>
            <Thumb x:Name="N" Cursor="SizeNS" Style="{StaticResource WindowResizeThumbStyle}" VerticalAlignment="Top"/>
            <Thumb x:Name="E" Cursor="SizeWE" HorizontalAlignment="Right" Style="{StaticResource WindowResizeThumbStyle}"/>
            <Thumb x:Name="S" Cursor="SizeNS" Style="{StaticResource WindowResizeThumbStyle}" VerticalAlignment="Bottom"/>
            <Thumb x:Name="NW" Cursor="Hand" HorizontalAlignment="Left" Style="{StaticResource WindowResizeThumbStyle}" VerticalAlignment="Top"/>
            <Thumb x:Name="NE" Cursor="Hand" HorizontalAlignment="Right" Style="{StaticResource WindowResizeThumbStyle}" VerticalAlignment="Top"/>
            <Thumb x:Name="SE" Cursor="Hand" HorizontalAlignment="Right" Style="{StaticResource WindowResizeThumbStyle}" VerticalAlignment="Bottom"/>
            <Thumb x:Name="SW" Cursor="Hand" HorizontalAlignment="Left" Style="{StaticResource WindowResizeThumbStyle}" VerticalAlignment="Bottom"/>
        </Grid>
    </ControlTemplate>
    <Style TargetType="telerikNavigation:RadWindow">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="CanMove" Value="false"/>
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="ModalBackground" Value="{StaticResource OverlayBrush}"/>
        <Setter Property="MinHeight" Value="26"/>
        <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="CenterScreen"/>
        <Setter Property="WindowState" Value="Normal"/>
        <Setter Property="Template" Value="{StaticResource RadWindowTemplate}"/>
        <Setter Property="TabNavigation" Value="Cycle"/>
        <Setter Property="telerikAnimation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <telerikAnimation:AnimationSelector>
                    <telerikAnimation:AnimationGroup AnimationName="Show">
                        <telerikAnimation:FadeAnimation Direction="In" TargetElementName="LayoutRoot">
                            <telerikAnimation:FadeAnimation.Easing>
                                <QuarticEase EasingMode="EaseOut"/>
                            </telerikAnimation:FadeAnimation.Easing>
                        </telerikAnimation:FadeAnimation>
                        <telerikAnimation:ScaleAnimation Direction="In" MinScale="0.9" TargetElementName="LayoutRoot">
                            <telerikAnimation:ScaleAnimation.Easing>
                                <QuarticEase EasingMode="EaseOut"/>
                            </telerikAnimation:ScaleAnimation.Easing>
                        </telerikAnimation:ScaleAnimation>
                    </telerikAnimation:AnimationGroup>
                    <telerikAnimation:AnimationGroup AnimationName="Hide">
                        <telerikAnimation:FadeAnimation Direction="Out" TargetElementName="LayoutRoot">
                            <telerikAnimation:FadeAnimation.Easing>
                                <QuarticEase EasingMode="EaseOut"/>
                            </telerikAnimation:FadeAnimation.Easing>
                        </telerikAnimation:FadeAnimation>
                        <telerikAnimation:ScaleAnimation Direction="Out" MinScale="0.9" TargetElementName="LayoutRoot">
                            <telerikAnimation:ScaleAnimation.Easing>
                                <QuarticEase EasingMode="EaseIn"/>
                            </telerikAnimation:ScaleAnimation.Easing>
                        </telerikAnimation:ScaleAnimation>
                    </telerikAnimation:AnimationGroup>
                </telerikAnimation:AnimationSelector>
            </Setter.Value>
        </Setter>
    </Style>
        
    <!-- RadWindow Busy Indicator -->
    <!--<ControlTemplate x:Key="RadWindowBusyIndicatorTemplate" TargetType="telerikNavigation:RadWindow">
        <Grid x:Name="LayoutRoot">
            <CustomControls:ClippingBorder Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="10" Padding="12">
                <CustomControls:ClippingBorder.Effect>
                    <DropShadowEffect Opacity="{StaticResource DropShadowOpacity}" ShadowDepth="{StaticResource DropShadowDepth}"/>
                </CustomControls:ClippingBorder.Effect>
                <StackPanel>
                    <TextBlock Text="{Binding ApplicationStrings.Message_BusyIndicator, Source={StaticResource ResourceWrapper}}" Foreground="{StaticResource ActivityControlForegroundBrush}"/>
                    <Rectangle Style="{StaticResource StandardSpacerStyle}"/>
                    <telerik:RadProgressBar IsIndeterminate="true" Width="150" Height="15" />
                </StackPanel>
            </CustomControls:ClippingBorder>
        </Grid>
    </ControlTemplate>
    <Style x:Name="BusyIndicatorStyle" TargetType="telerikNavigation:RadWindow">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="Template" Value="{StaticResource RadWindowBusyIndicatorTemplate}"/>
        <Setter Property="WindowStartupLocation" Value="CenterOwner"/>
    </Style>-->

    <!-- Child Window -->
    <Style x:Key="ChildWindowStyle" TargetType="controls:ChildWindow">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="OverlayBrush" Value="{StaticResource OverlayBrush}"/>
        <Setter Property="OverlayOpacity" Value="1"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="TabNavigation" Value="Cycle"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:ChildWindow">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <Style x:Key="CloseButtonStyle" TargetType="Button">
                                <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
                                <Setter Property="Padding" Value="3"/>
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="Button">
                                            <Grid x:Name="grid" HorizontalAlignment="Center" Width="15" Height="14" VerticalAlignment="Center">
                                                <VisualStateManager.VisualStateGroups>
                                                    <VisualStateGroup x:Name="CommonStates">
                                                        <VisualState x:Name="Normal"/>
                                                        <VisualState x:Name="MouseOver">
                                                            <Storyboard>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="X_Fuzz2">
                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="X_Fuzz1">
                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="X_Fuzz0">
                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <DoubleAnimation Duration="0" To="0.95" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="X"/>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState x:Name="Pressed">
                                                            <Storyboard>
                                                                <DoubleAnimation Duration="0" To="0.85" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="X"/>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="X_Fuzz2">
                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="X_Fuzz1">
                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="X_Fuzz0">
                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                                                </ObjectAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="X"/>
                                                            </Storyboard>
                                                        </VisualState>
                                                    </VisualStateGroup>
                                                </VisualStateManager.VisualStateGroups>
                                                <Path x:Name="X_Fuzz2" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" Fill="#14C51900" HorizontalAlignment="Center" Height="8" Margin="0,-1,0,0" Opacity="1" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#14C51900" Visibility="Collapsed" VerticalAlignment="Center" Width="9">
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform ScaleY="1.3" ScaleX="1.3"/>
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                                <Path x:Name="X_Fuzz1" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" Fill="#1EC51900" HorizontalAlignment="Center" Height="8" Margin="0,-1,0,0" Opacity="1" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#1EC51900" Visibility="Collapsed" VerticalAlignment="Center" Width="9">
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform ScaleY="1.1" ScaleX="1.1"/>
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                                <Path x:Name="X_Fuzz0" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" Fill="#FFC51900" HorizontalAlignment="Center" Height="8" Margin="0,-1,0,0" Opacity="1" Stretch="Fill" Stroke="#FFC51900" Visibility="Collapsed" VerticalAlignment="Center" Width="9"/>
                                                <Path x:Name="X" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" Fill="#FFFFFFFF" HorizontalAlignment="Center" Height="8" Margin="0,-1,0,0" Opacity="0.7" Stretch="Fill" VerticalAlignment="Center" Width="9">
                                                    <Path.Stroke>
                                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                            <GradientStop Color="#FF313131" Offset="1"/>
                                                            <GradientStop Color="#FF8E9092" Offset="0"/>
                                                        </LinearGradientBrush>
                                                    </Path.Stroke>
                                                </Path>
                                            </Grid>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Grid.Resources>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="WindowStates">
                                <VisualState x:Name="Open">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Overlay">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX" Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/>
                                            <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY" Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/>
                                            <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Closed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Overlay">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX" Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY" Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="Overlay" Background="{TemplateBinding OverlayBrush}" HorizontalAlignment="Stretch" Margin="0" Opacity="{TemplateBinding OverlayOpacity}" VerticalAlignment="Top"/>
                        <Grid x:Name="ContentRoot" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Height="{TemplateBinding Height}" RenderTransformOrigin="0.5,0.5" VerticalAlignment="{TemplateBinding VerticalAlignment}" Width="{TemplateBinding Width}">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
                                <Border.Effect>
                                    <DropShadowEffect Opacity="{StaticResource DropShadowOpacity}" ShadowDepth="{StaticResource DropShadowDepth}"/>
                                </Border.Effect>
                                <Border Background="{StaticResource FrameBackgroundBrush}" CornerRadius="4" Padding="4">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Grid Height="Auto" Width="Auto" Margin="0,0,0,4">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition Width="30"/>
                                            </Grid.ColumnDefinitions>
                                            <TextBlock Text="{TemplateBinding Title}" FontWeight="Bold" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
                                            <Button x:Name="CloseButton" Grid.Column="1" HorizontalAlignment="Center" Width="15" Height="14" IsTabStop="False" Style="{StaticResource CloseButtonStyle}" VerticalAlignment="Center"/>
                                        </Grid>
                                        <Border Background="{TemplateBinding Background}" Padding="8" CornerRadius="4" Grid.Row="1">
                                            <ContentPresenter x:Name="ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                        </Border>
                                    </Grid>
                                </Border>
                            </Border>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Child Window -->
    <!--<Style TargetType="controls:ChildWindow">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="TabNavigation" Value="Cycle"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="OverlayBrush" Value="{StaticResource OverlayBrush}"/>
        <Setter Property="OverlayOpacity" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:ChildWindow">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="WindowStates">
                                <VisualState x:Name="Open">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/>
                                            <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1"/>
                                            <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Closed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity">
                                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05"/>
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="Overlay" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Top" Opacity="{TemplateBinding OverlayOpacity}" Background="{TemplateBinding OverlayBrush}"/>
                        <Grid x:Name="ContentRoot" Height="{TemplateBinding Height}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Width="{TemplateBinding Width}" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Border HorizontalAlignment="Stretch" Margin="-1" VerticalAlignment="Stretch" Background="#14000000" BorderBrush="#14000000" BorderThickness="1" CornerRadius="2"/>
                            <Border HorizontalAlignment="Stretch" Margin="-2" VerticalAlignment="Stretch" Background="#0F000000" BorderBrush="#0F000000" BorderThickness="1" CornerRadius="2.25"/>
                            <Border HorizontalAlignment="Stretch" Margin="-3" VerticalAlignment="Stretch" Background="#0C000000" BorderBrush="#0C000000" BorderThickness="1" CornerRadius="2.5"/>
                            <Border HorizontalAlignment="Stretch" Margin="-4" VerticalAlignment="Stretch" Background="#0A000000" BorderBrush="#0A000000" BorderThickness="1" CornerRadius="2.75"/>
                            <Border Background="{StaticResource FrameBackgroundBrush}" BorderBrush="{StaticResource NormalBorderBrush}" CornerRadius="5" BorderThickness="2,2,0,0">
                                <Border CornerRadius="4" BorderThickness="0">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Border x:Name="Chrome" Width="Auto" BorderThickness="0" Background="{StaticResource FrameBackgroundBrush}" Padding="0,3">
                                            <Grid Height="Auto" Width="Auto">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition/>
                                                    <ColumnDefinition Width="30"/>
                                                </Grid.ColumnDefinitions>
                                                <ContentControl FontWeight="Bold" IsTabStop="False" HorizontalAlignment="Stretch" Margin="6,0,6,0" VerticalAlignment="Center" Content="{TemplateBinding Title}" Foreground="{StaticResource ControlForegroundBrush}"/>
                                                <Button x:Name="CloseButton" IsTabStop="False" Height="14" HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Grid.Column="1"/>
                                            </Grid>
                                        </Border>
                                        <Border Margin="7" Grid.Row="1" Background="{TemplateBinding Background}">
                                            <ContentPresenter x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                                        </Border>
                                    </Grid>
                                </Border>
                            </Border>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>-->


    <!-- Start Explicit Styles -->


    <!-- Page Container Style -->
    <Style x:Key="PageContainerStyle" TargetType="Grid">
        <Setter Property="Margin" Value="8,0,8,8"/>
    </Style>

    <!-- Panel Container Style -->
    <Style x:Key="PanelContainerStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="{StaticResource PageContainerBorderBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="CornerRadius" Value="8"/>
    </Style>

    <!-- Panel Inner Container Style -->
    <Style x:Key="PanelInnerContainerStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="{StaticResource PageContainerInnerBorderBrush}"/>
        <Setter Property="Background" Value="{StaticResource PageContainerBackgroundBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="7"/>
        <Setter Property="Padding" Value="6"/>
    </Style>

    <!-- Page Content Container Style -->
    <Style x:Name="PageContentContainerStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource FrameBackgroundBrush}"/>
        <Setter Property="CornerRadius" Value="7"/>
        <Setter Property="Padding" Value="4"/>
    </Style>

    <!-- Page Content Header Style -->
    <Style x:Name="PageContentHeaderStyle" TargetType="Grid">
        <Setter Property="Height" Value="26"/>
    </Style>

    <!-- Page Content Inner Container Style -->
    <Style x:Name="PageContentInnerContainerStyle" TargetType="CustomControls:ClippingBorder">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="CornerRadius" Value="5"/>
    </Style>

    <!-- Content Inner Container Style -->
    <Style x:Name="ContentInnerContainerStyle" TargetType="CustomControls:ClippingBorder">
        <Setter Property="Background" Value="{StaticResource FrameInnerBackgroundBrush}"/>
        <Setter Property="CornerRadius" Value="5"/>
    </Style>

    <!-- Toolbar Container Style -->
    <Style x:Key="ToolbarContainerStyle" TargetType="telerik:RadDockPanel">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="4,0,4,4"/>
    </Style>

    <!-- Header Container Style -->
    <Style x:Key="HeaderContainerStyle" TargetType="telerik:RadDockPanel">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="18,0"/>
        <Setter Property="Height" Value="40"/>
    </Style>

    <!-- Logo Icon Style -->
    <Style x:Key="LogoIconStyle" TargetType="Path">
        <Setter Property="Fill" Value="{StaticResource LogoForegroundBrush}"/>
        <Setter Property="Stretch" Value="Fill"/>
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Width" Value="16"/>
        <Setter Property="Height" Value="16"/>
        <Setter Property="Margin" Value="0,2,4,0"/>
    </Style>

    <!-- Logo Style -->
    <Style x:Key="LogoStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource LogoForegroundBrush}"/>
        <Setter Property="FontFamily" Value="Candara"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontSize" Value="24"/>
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <!-- Navigation Link Style -->
    <Style x:Key="NavigationLinkStyle" TargetType="HyperlinkButton">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Foreground" Value="{StaticResource NavigationLinkForegroundBrush}"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="MinHeight" Value="16"/>
        <Setter Property="MinWidth" Value="66"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid x:Name="ButtonGrid" Cursor="{TemplateBinding Cursor}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="InteractiveElementBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="InteractiveElementBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="InteractiveBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="InteractiveElementBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="InteractiveElementBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="InteractiveBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Center</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <VerticalAlignment>Center</VerticalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Center</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <VerticalAlignment>Center</VerticalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="LinkStates">
                                <VisualState x:Name="ActiveLink">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ActiveBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InactiveLink"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.35"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(Rectangle.RadiusX)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(Rectangle.RadiusY)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="FocusVisualElement" Stroke="Transparent" StrokeThickness="2" Opacity="0" Margin="-1" RadiusX="3" RadiusY="3"/>
                        <Border x:Name="ContentBorder" MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}" Opacity="1">
                            <ContentPresenter x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Opacity="1"/>
                        </Border>
                        <Border x:Name="ActiveBorder" MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}" Background="{StaticResource ItemSelectedBackgroundBrush}" BorderBrush="{StaticResource ItemSelectedBorderBrush}" BorderThickness="1" CornerRadius="3" Opacity="0">
                            <TextBlock x:Name="ActiveElement" Foreground="Black" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Content}"/>
                        </Border>
                        <Border x:Name="InteractiveBorder" MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}" Background="{StaticResource NavigationLinkHoverBackgroundBrush}" BorderThickness="0" Opacity="0" CornerRadius="3"/>
                        <Border x:Name="InteractiveElementBorder" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Collapsed">
                            <TextBlock x:Name="InteractiveElement" Foreground="{StaticResource ControlForegroundBrush}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Content}"/>
                        </Border>
                        <TextBlock x:Name="DisabledOverlay" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Content}" Foreground="#FFAAAAAA" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Divider Style -->
    <Style x:Key="NavigationLinkDividerStyle" TargetType="Rectangle">
        <Setter Property="Fill" Value="{StaticResource NavigationLinkDividerBackgroundBrush}"/>
        <Setter Property="Stroke" Value="Transparent"/>
        <Setter Property="Width" Value="1"/>
        <Setter Property="Margin" Value="4,2"/>
    </Style>

    <!-- Button Image Style -->
    <Style x:Key="ButtonImageStyle" TargetType="Image">
        <Setter Property="Width" Value="16"/>
        <Setter Property="Height" Value="16"/>
        <Setter Property="Margin" Value="0,1,0,0"/>
    </Style>

    <!-- Scheduler Widget Style -->
    <!--<Style x:Key="WidgetSchedulerStyle" TargetType="telerikScheduler:RadScheduler">
        <Setter Property="TimelineHeaderFormat" Value="{}{0:d}"/>
        <Setter Property="AvailableViewModes" Value="Timeline"/>
        <Setter Property="ViewMode" Value="Timeline"/>
        <Setter Property="IsViewModeNavigationEnabled" Value="False"/>
        <Setter Property="IsInlineEditingEnabled" Value="False"/>
        <Setter Property="MonthViewScrollBarVisibility" Value="Collapsed"/>
        <Setter Property="OpenModalDialogs" Value="True"/>
        <Setter Property="DayHeaderFormat" Value="{}{0:M/d/yy}"/>               
    </Style>-->

    <!-- Scheduler Legend Container Style -->
    <Style x:Key="SchedulerLegendContainerStyle" TargetType="StackPanel">
        <Setter Property="Orientation" Value="Horizontal"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>

    <!-- Scheduler Legend Item Outer Border Style -->
    <Style x:Key="SchedulerLegendItemOuterBorderStyle" TargetType="Border">
        <Setter Property="Height" Value="20"/>
        <Setter Property="BorderBrush" Value="#FFFFFFFF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="Width" Value="32"/>
    </Style>

    <!-- Scheduler Legend Item Inner Border Style -->
    <Style x:Key="SchedulerLegendItemInnerBorderStyle" TargetType="Border">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="2"/>
    </Style>

    <!-- Scheduler Legend Item Text Style -->
    <Style x:Key="SchedulerLegendItemTextStyle" TargetType="TextBlock">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="6,0,0,0"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
    </Style>

    <!-- Scheduler Legend Spacer Style -->
    <Style x:Key="SchedulerLegendItemSpacerStyle" TargetType="Rectangle">
        <Setter Property="Width" Value="20"/>
    </Style>

    <LinearGradientBrush x:Key="ItemInnerBorder_Invalid" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBF4FD"/>
        <GradientStop Color="#FFDBEAFD" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ItemBackground_Invalid" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFCDCDC"/>
        <GradientStop Color="#FFFCC1C1" Offset="1"/>
    </LinearGradientBrush>
    <telerik:BooleanToOpacityConverter x:Key="BooleanToOpacityConverter"/>
    <GridView:GridLineWidthToThicknessConverter x:Key="GridLineWidthToThicknessConverter"/>
    <SolidColorBrush x:Key="ControlOuterBorder" Color="#FF848484"/>
    <SolidColorBrush x:Key="GridView_HierarchyBackground" Color="#FFBBBBBB"/>
    <SolidColorBrush x:Key="ControlInnerBorder" Color="White"/>
    <SolidColorBrush x:Key="GridView_RowIndicatorCellBackground" Color="#FFE4E4E4"/>
    <LinearGradientBrush x:Key="GridView_ErrorIndicatorBackground1" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFC9999" Offset="0"/>
        <GradientStop Color="#FFC26666" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GridView_ErrorIndicatorBackground2" Color="White"/>
    <LinearGradientBrush x:Key="GridView_ErrorIndicatorBackground3" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="Red" Offset="0"/>
        <GradientStop Color="#FF990000" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GridView_NavigatorIndicatorBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="White"/>
        <GradientStop Color="#FF4D4D4D" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GridView_NavigatorIndicatorBorder" Color="#E5343434"/>
    <SolidColorBrush x:Key="GridView_EditIndicatorBackground1" Color="#7F848484"/>
    <SolidColorBrush x:Key="GridView_EditIndicatorBackground2" Color="#FFCBCBCB"/>
    <SolidColorBrush x:Key="GridView_EditIndicatorBackground3" Color="#FF848484"/>
    <SolidColorBrush x:Key="GridView_EditIndicatorBackground4" Color="White"/>
    <ControlTemplate x:Key="GridViewRowTemplate" TargetType="GridView:GridViewRow">
        <GridView:SelectiveScrollingGrid x:Name="grid">
            <GridView:SelectiveScrollingGrid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                </GridView:SelectiveScrollingGrid.ColumnDefinitions>
            <GridView:SelectiveScrollingGrid.RowDefinitions>
                <RowDefinition Height="*" MinHeight="20"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </GridView:SelectiveScrollingGrid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Unfocused"/>
                    <VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="NavigatorIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="NavigatorIndicatorBackground">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF848484" Offset="0"/>
                                            <GradientStop Color="#FFE4E4E4" Offset="1"/>
                                        </LinearGradientBrush>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SelectionStates">
                    <VisualState x:Name="Unselected"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="00:00:00.2000000" To="Normal"/>
                        <VisualTransition GeneratedDuration="00:00:00.2000000" To="MouseOver"/>
                        <VisualTransition GeneratedDuration="00:00:00.2000000" To="Selected"/>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Background_Over">
                                <EasingDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Selected">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Background_Selected">
                                <EasingDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PART_DataCellsPresenter">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Black"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ToggleButton">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="Black"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ValueStates">
                    <VisualState x:Name="Valid"/>
                    <VisualState x:Name="Invalid">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Background_Invalid">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ErrorIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EditIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="NavigatorIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="EditStates">
                    <VisualState x:Name="ReadOnlyMode"/>
                    <VisualState x:Name="EditMode">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EditIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="NavigatorIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="SelectionBackground" BorderBrush="{x:Null}" BorderThickness="0" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Column="2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Margin}" Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            <Border x:Name="Background_Over" Background="{StaticResource HoverBackgroundBrush}" Grid.ColumnSpan="2" Grid.Column="2" Opacity="0"/>
            <Border x:Name="Background_Selected" Background="{StaticResource ItemSelectedBackgroundBrush}" BorderBrush="{StaticResource ItemSelectedBorderBrush}" BorderThickness="1" Grid.ColumnSpan="2" Grid.Column="2" Opacity="0"/>
            <Border x:Name="Background_Invalid" Background="{StaticResource ItemBackground_Invalid}" BorderBrush="{StaticResource ItemInnerBorder_Invalid}" BorderThickness="1" Grid.ColumnSpan="2" Grid.Column="2" Opacity="0"/>
            <telerikGridView:GridViewToggleButton x:Name="ToggleButton" Grid.Column="2" IsHitTestVisible="{Binding IsExpandable, RelativeSource={RelativeSource TemplatedParent}}" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Opacity="{Binding IsExpandable, Converter={StaticResource BooleanToOpacityConverter}, RelativeSource={RelativeSource TemplatedParent}}" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{Binding HasHierarchy, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}" Width="20"/>
            <Border Grid.Column="2" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{Binding HasHierarchy, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}"/>
            <GridView:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="3"/>
            <Border x:Name="PART_RowBorder" BorderBrush="{TemplateBinding HorizontalGridLinesBrush}" BorderThickness="{Binding HorizontalGridLinesWidth, ConverterParameter=Bottom, Converter={StaticResource GridLineWidthToThicknessConverter}, RelativeSource={RelativeSource TemplatedParent}}" Grid.ColumnSpan="4" Grid.Column="1" Grid.RowSpan="4" VerticalAlignment="Bottom"/>
            <Border BorderBrush="{StaticResource ControlOuterBorder}" BorderThickness="0,1" Background="{StaticResource GridView_HierarchyBackground}" Grid.ColumnSpan="2" Grid.Column="2" Padding="6" Grid.Row="2" Visibility="{Binding IsExpanded, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}">
                <ContentPresenter x:Name="PART_HierarchyChildPresenter"/>
            </Border>
            <GridView:DetailsPresenter x:Name="PART_DetailsPresenter" Grid.ColumnSpan="2" Grid.Column="2" DetailsProvider="{TemplateBinding DetailsProvider}" Grid.Row="1" Visibility="Collapsed"/>
            <GridView:IndentPresenter x:Name="PART_IndentPresenter" Grid.Column="1" IndentLevel="{TemplateBinding IndentLevel}" Grid.RowSpan="4" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="PART_IndicatorPresenter" BorderBrush="{StaticResource ControlOuterBorder}" BorderThickness="0,0,1,1" Grid.Column="0" Grid.RowSpan="3" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{TemplateBinding RowIndicatorVisibility}" VerticalAlignment="Stretch" Width="20">
                <Border x:Name="NavigatorIndicatorBackground" BorderBrush="{StaticResource ControlInnerBorder}" BorderThickness="1" Background="{StaticResource GridView_RowIndicatorCellBackground}">
                    <Grid>
                        <Grid x:Name="ErrorIndicator" HorizontalAlignment="Center" Height="16" Visibility="Collapsed" VerticalAlignment="Center" Width="16">
                            <Path Data="M3,12.999999 L4,12.999999 5,12.999999 6,12.999999 7,12.999999 8,12.999999 9,12.999999 10,12.999999 11,12.999999 11,13.999999 10,13.999999 9,13.999999 8,13.999999 7,13.999999 6,13.999999 5,13.999999 4,13.999999 3,13.999999 z M11,11.999999 L12,11.999999 12,12.999999 11,12.999999 z M2.0000001,11.999999 L3,11.999999 3,12.999999 2.0000001,12.999999 z M12,10.999999 L13,10.999999 13,11.999999 12,11.999999 z M1,10.999999 L2.0000001,10.999999 2.0000001,11.999999 1,11.999999 z M13,2.9999992 L14,2.9999992 14,3.9999992 14,4.9999992 14,5.9999992 14,6.9999992 14,7.9999992 14,8.9999992 14,9.9999992 14,10.999999 13,10.999999 13,9.9999992 13,8.9999992 13,7.9999992 13,6.9999992 13,5.9999992 13,4.9999992 13,3.9999992 z M0,2.9999992 L1,2.9999992 1,3.9999992 1,4.9999992 1,5.9999992 1,6.9999992 1,7.9999992 1,8.9999992 1,9.9999992 1,10.999999 0,10.999999 0,9.9999992 0,8.9999992 0,7.9999992 0,6.9999992 0,5.9999992 0,4.9999992 0,3.9999992 z M12,1.9999999 L13,1.9999999 13,2.9999992 12,2.9999992 z M1,1.9999999 L2.0000001,1.9999999 2.0000001,2.9999992 1,2.9999992 z M11,0.99999994 L12,0.99999994 12,1.9999999 11,1.9999999 z M2.0000001,0.99999994 L2.9999998,0.99999994 2.9999998,1.9999999 2.0000001,1.9999999 z M2.9999998,0 L3.9999998,0 5,0 6,0 7,0 8,0 9,0 10,0 11,0 11,0.99999994 10,0.99999994 9,0.99999994 8,0.99999994 7,0.99999994 6,0.99999994 5,0.99999994 3.9999998,0.99999994 2.9999998,0.99999994 z" Fill="{StaticResource GridView_ErrorIndicatorBackground1}" Margin="1" Stretch="Fill"/>
                            <Path Data="M1.4901161E-07,8 L1.0000001,8 2.0000002,8 2.0000002,9 2.0000002,10 1.0000003,10 1.0000003,9 1.0000001,10 1.4901161E-07,10 1.4901161E-07,9 z M1.4901161E-07,0 L1.0000001,0 2.0000002,0 2.0000002,1 2.0000002,2 2.0000002,3 2.0000002,4.0000001 2.0000002,5 2.0000002,5.9999999 2.0000002,7 1.0000001,7 1.4901161E-07,7 1.4901161E-07,5.9999999 1.4901161E-07,5 1.4901161E-07,4.0000001 1.4901161E-07,3 1.4901161E-07,2 0,1 z" Fill="{StaticResource GridView_ErrorIndicatorBackground2}" Margin="7,3" Stretch="Fill"/>
                            <Path Data="M4,15 L5,15 6,15 7,15 8,15 9,15 10,15 11,15 12,15 12,16 11,16 10,16 9,16 8,16 7,16 6,16 5,16 4,16 z M12,14 L13,14 13,15 12,15 z M3,14 L4,14 4,15 3,15 z M13,13 L14,13 14,14 13,14 z M2,13 L3,13 3,14 2,14 z M14,12 L15,12 15,13 14,13 z M1,12 L2,12 2,13 1,13 z M7,11 L7,12 7,13 8,13 9,13 9,12 9,11 8,11 z M15,4 L16,4 16,5 16,6 16,7 16,8 16,9 16,10 16,11 16,12 15,12 15,11 15,10 15,9 15,8 15,7 15,6 15,5 z M0,4 L1,4 1,5 1,6 1,7 1,8 1,9 1,10 1,11 1,12 0,12 0,11 0,10 0,9 0,8 0,7 0,6 0,5 z M14,3 L15,3 15,4 14,4 z M7,3 L7,4 7,5 7,6 7,7 7,8 7,9 7,10 8,10 9,10 9,9 9,8 9,7 9,6 9,5 9,4 9,3 8,3 z M1,3 L2,3 2,4 1,4 z M13,2 L14,2 14,3 13,3 z M4,2 L5,2 6,2 7,2 8,2 9,2 10,2 11,2 12,2 12,3 13,3 13,4 14,4 14,5 14,6 14,7 14,8 14,9 14,10 14,11 14,12 13,12 13,13 12,13&#xa;12,14 11,14 10,14 9,14 8,14 7,14 6,14 5,14 4,14 4,13 3,13 3,12 2,12 2,11 2,10 2,9 2,8 2,7 2,6 2,5 2,4 3,4 3,3&#xa;4,3 z M2,2 L3,2 3,3 2,3 z M12,1 L13,1 13,2 12,2 z M3,1 L4,1 4,2 3,2 z M4,0 L5,0 6,0 7,0 8,0 9,0 10,0 11,0 12,0 12,1 11,1 10,1 9,1 8,1 7,1 6,1 5,1 4,1 z" Fill="{StaticResource GridView_ErrorIndicatorBackground3}" Stretch="Fill"/>
                        </Grid>
                        <Grid x:Name="NavigatorIndicator" HorizontalAlignment="Center" Height="9" Visibility="Collapsed" VerticalAlignment="Center" Width="9">
                            <Path Data="M0.5,0.5 L8.5,4.4375 0.5,8.5 z" Fill="{StaticResource GridView_NavigatorIndicatorBackground}" Stroke="{StaticResource GridView_NavigatorIndicatorBorder}" StrokeThickness="1"/>
                        </Grid>
                        <Grid x:Name="EditIndicator" HorizontalAlignment="Center" Height="10" Visibility="Collapsed" VerticalAlignment="Center" Width="16">
                            <Path Data="M14,9 L15,9 15,10 14,10 z M1,9 L2,9 2,10 1,10 z M15,8 L16,8 16,9 15,9 z M0,8 L1,8 1,9 0,9 z M15,1 L16,1 16,2 15,2 z M0,1 L1,1 1,2 0,2 z M14,0 L15,0 15,1 14,1 z M1,0 L2,0 2,1 1,1 z" Fill="{StaticResource GridView_EditIndicatorBackground1}" Stretch="Fill"/>
                            <Path Data="M0.99999994,6.9999995 L2,6.9999995 3,6.9999995 4,6.9999995 5,6.9999995 6,6.9999995 7,6.9999995 8,6.9999995 9,6.9999995 10,6.9999995 11,6.9999995 12,6.9999995 13,6.9999995 13,7.9999995 12,7.9999995 11,7.9999995 10,7.9999995 9,7.9999995 8,7.9999995 7,7.9999995 6,7.9999995 5,7.9999995 4,7.9999995 3,7.9999995&#xa;2,7.9999995 0.99999994,7.9999995 z M13,0.99999994 L14,0.99999994 14,1.9999999 14,2.9999995 14,3.9999995 14,4.9999995 14,5.9999995 14,6.9999995 13,6.9999995 13,5.9999995 13,4.9999995 13,3.9999995 13,2.9999995 13,1.9999999 z M0,0.99999994 L0.99999994,0.99999994 0.99999994,1.9999999 0.99999994,2.9999995 0.99999994,3.9999995 0.99999994,4.9999995 0.99999994,5.9999995 0.99999994,6.9999995 0,6.9999995 0,5.9999995 0,4.9999995 0,3.9999995 0,2.9999995 0,1.9999999 z M11,0 L12,0 13,0 13,0.99999994 12,0.99999994 11,0.99999994 10,0.99999994 9,0.99999994 8,0.99999994 7,0.99999994 6,0.99999994 5,0.99999994 4,0.99999994 3,0.99999994 2,0.99999994 0.99999994,0.99999994 0.99999994,2.3841858E-07 2,2.3841858E-07 3,2.3841858E-07 4,2.3841858E-07 5,2.3841858E-07 6,2.3841858E-07 7,2.3841858E-07 8,2.3841858E-07&#xa;9,2.3841858E-07 10,2.3841858E-07 z" Fill="{StaticResource GridView_EditIndicatorBackground2}" Margin="1" Stretch="Fill"/>
                            <Path Data="M2,9 L3,9 4,9 5,9 6,9 7,9 8,9 9,9 10,9 11,9 12,9 13,9 14,9 14,10 13,10 12,10 11,10 10,10 9,10 8,10 7,10 6,10 5,10 4,10&#xa;3,10 2,10 z M14,8 L15,8 15,9 14,9 z M1,8 L2,8 2,9 1,9 z M15,2 L16,2 16,3 16,4 16,5 16,6 16,7 16,8 15,8 15,7 15,6 15,5 15,4 15,3 z M3,2 L4,2 5,2 6,2 6,3 5,3 5,4 5,5 5,6 5,7 6,7 6,8 5,8 4,8 3,8 3,7 4,7 4,6 4,5 4,4 4,3 3,3 z M0,2 L1,2 1,3 1,4 1,5 1,6 1,7 1,8 0,8 0,7 0,6 0,5 0,4 0,3 z M14,1 L15,1 15,2 14,2 z M1,1 L2,1 2,2 1,2 z M2,0 L3,0 4,0 5,0 6,0 7,0 8,0 9,0 10,0 11,0 12,0 13,0 14,0 14,1 13,1 12,1 11,1 10,1 9,1 8,1 7,1 6,1 5,1 4,1&#xa;3,1 2,1 z" Fill="{StaticResource GridView_EditIndicatorBackground3}" Stretch="Fill"/>
                            <Path Data="M4,0 L5,0 6,0 7,0 8,0 9,0 10,0 11,0 12,0 12,1 12,2 12,3 12,4 12,5.0000001 12,6 11,6 10,6 9,6 8,6 7,6 6,6 5,6 4,6 4,5.0000001&#xa;3,5.0000001 3,4 3,3 3,2 3,1 4,1 z M0,0 L1,0 1,1 2,1 2,2 2,3 2,4 2,5.0000001 1,5.0000001 1,6 0,6 0,5.0000001 0,4 0,3 0,2 0,1 z" Fill="{StaticResource GridView_EditIndicatorBackground4}" Margin="2" Stretch="Fill"/>
                        </Grid>
                    </Grid>
                </Border>
            </Border>
        </GridView:SelectiveScrollingGrid>
    </ControlTemplate>
    <Style x:Key="GridViewRowStyle" TargetType="GridView:GridViewRow">
        <Setter Property="telerikDragDrop:RadDragAndDropManager.AllowDrag" Value="True"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template" Value="{StaticResource GridViewRowTemplate}"/>
        <Setter Property="Background" Value="{StaticResource GridViewRowBackgroundBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="MinHeight" Value="20"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Margin" Value="0"/>
    </Style>

    <!-- GridView Alternate Row Style -->
    <Style x:Key="GridViewAlternateRowStyle" TargetType="GridView:GridViewRow">
        <Setter Property="telerikDragDrop:RadDragAndDropManager.AllowDrag" Value="True"/>
        <Setter Property="Background" Value="{StaticResource GridViewAlternateRowBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="Template" Value="{StaticResource GridViewRowTemplate}"/>
    </Style>

    <!-- GridView Header -->
    <SolidColorBrush x:Key="GridViewHeaderCellBorderBrush" Color="#FFB3B3B3"/>
    <SolidColorBrush x:Key="GridLinesFill" Color="#FFB3B3B3"/>
    <SolidColorBrush x:Key="GridViewHeaderCellMouseOverBorderBrush" Color="#FFFFFDE6"/>
    <SolidColorBrush x:Key="GridViewHeaderCellSortingAndFilteringContentBackground" Color="Transparent"/>
    <SolidColorBrush x:Key="GridViewForeground" Color="#FF000000"/>
    <Style x:Key="ColumnHeaderGripperStyle" TargetType="Thumb">
        <Setter Property="Width" Value="8"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="DistinctFilterControlTemplate" TargetType="GridView:FilteringDropDown">
        <Grid>
            <ToggleButton x:Name="PART_DropDownButton" Height="20" Width="20">
                <ToggleButton.Template>
                    <ControlTemplate TargetType="ToggleButton">
                        <ContentPresenter/>
                    </ControlTemplate>
                </ToggleButton.Template>
                <Grid Height="12" Width="11" Background="Transparent">
                    <Path Fill="{StaticResource GridViewHeaderForegroundBrush}" Stretch="Fill" Height="12" Width="11" Data="M0,0 L11,0 11,1 10,1 10,2 9,2 9,3 8,3 8,3.9999999 7,3.9999999 7,12 4,12 4,3.9999999 3.0000001,3.9999999 3.0000001,3 2,3 2,2 1,2 1,1 0,1 z"/>
                    <Grid Height="12" Width="11" Visibility="{TemplateBinding FunnelFillVisibility}">
                        <Path Fill="{StaticResource GridViewHeaderBackgroundBrush}" Stretch="Fill" Height="3" Margin="3.016,1.016,2.984,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" Data="M0,0 L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Path Fill="{StaticResource GridViewHeaderForegroundBrush}" Stretch="Fill" Data="M2.9999999,0.99999994 L2.9999999,2 3.9999999,2 3.9999999,3 4.9999999,3 4.9999999,4 5.9999999,4 5.9999999,3 6.9999999,3 6.9999999,2 7.9999999,2 7.9999999,0.99999994 6.9999999,0.99999994 5.9999999,0.99999994 4.9999999,0.99999994 3.9999999,0.99999994 z M0,0 L11,0 11,0.99999994 9.9999999,0.99999994 9.9999999,2 8.9999999,2 8.9999999,3 7.9999999,3 7.9999999,4 6.9999999,4 6.9999999,12 3.9999999,12 3.9999999,4 2.9999999,4 2.9999999,3 1.9999999,3 1.9999999,2 0.99999994,2 0.99999994,0.99999994 0,0.99999994 z"/>
                    </Grid>
                </Grid>
            </ToggleButton>
            <Popup x:Name="PART_DropDownPopup"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="FilteringDropDownStyle" TargetType="GridView:FilteringDropDown">
        <Setter Property="Template" Value="{StaticResource DistinctFilterControlTemplate}"/>
        <Setter Property="Foreground" Value="{StaticResource GridViewForeground}"/>
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>

    <!-- RadGridView Header Row Style -->
    <DataTemplate x:Key="GridViewHeaderIndentCellDataTemplate">
        <GridView:GridViewHeaderIndentCell/>
    </DataTemplate>
    <ControlTemplate x:Key="GridViewHeaderRowTemplate" TargetType="GridView:GridViewHeaderRow">
        <GridView:SelectiveScrollingGrid>
            <GridView:SelectiveScrollingGrid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </GridView:SelectiveScrollingGrid.ColumnDefinitions>
            <Border x:Name="PART_GridViewHeaderRowBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            <GridView:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="3"/>
            <Border x:Name="PART_IndicatorPresenter" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,1" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{TemplateBinding RowIndicatorVisibility}" Width="25"/>
            <GridView:IndentPresenter x:Name="PART_IndentPresenter" Grid.Column="1" ItemTemplate="{StaticResource GridViewHeaderIndentCellDataTemplate}" IndentLevel="{TemplateBinding IndentLevel}" MinHeight="{TemplateBinding MinHeight}" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="PART_HierarchyIndentPresenter" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,1" Grid.Column="2" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{Binding HasHierarchy, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}" Width="25"/>
        </GridView:SelectiveScrollingGrid>
    </ControlTemplate>
    <Style TargetType="GridView:GridViewHeaderRow">
        <Setter Property="Template" Value="{StaticResource GridViewHeaderRowTemplate}"/>
        <Setter Property="Background" Value="{StaticResource GridViewHeaderBackgroundBrush}"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
    </Style>

    <!-- GridViewHeaderCell -->
    <ControlTemplate x:Key="GridViewHeaderCellTemplate" TargetType="GridView:GridViewHeaderCell">
        <Border BorderBrush="{StaticResource GridViewHeaderCellBorderBrush}" BorderThickness="0,0,1,1">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="SortingStates">
                    <VisualState x:Name="Ascending">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_SortIndicator" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_SortIndicator" Storyboard.TargetProperty="RenderTransform">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <ScaleTransform ScaleX="1" ScaleY="-1"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Descending">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_SortIndicator" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_SortIndicator" Storyboard.TargetProperty="RenderTransform">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="None">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_SortIndicator" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid>
                <Border x:Name="GridViewHeaderCell" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                <Border x:Name="GridViewHeaderCell_Over" Opacity="0" Background="{StaticResource HoverBackgroundBrush}" BorderBrush="{StaticResource GridViewHeaderCellMouseOverBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                <Grid x:Name="PART_HeaderCellGrid">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <GridView:AlignmentContentPresenter Margin="5,0,3,0" VerticalAlignment="Center" Grid.Column="0" TextAlignment="{TemplateBinding TextAlignment}"/>
                    <Grid HorizontalAlignment="Right" Background="{StaticResource GridViewHeaderCellSortingAndFilteringContentBackground}" Grid.Column="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Path x:Name="PART_SortIndicator" Fill="{StaticResource ControlBackgroundBrush}" Stretch="Fill" Height="3" HorizontalAlignment="Left" Margin="1,0,4,0" VerticalAlignment="Center" Width="5" RenderTransformOrigin="0.5,0.5" Data="M0,0 L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="-1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <GridView:FilteringDropDown x:Name="PART_DistinctFilterControl" Margin="0,0,8,0" Visibility="{TemplateBinding FilteringUIVisibility}" Grid.Column="1" Style="{StaticResource FilteringDropDownStyle}"/>
                    </Grid>
                </Grid>
                <Thumb x:Name="PART_LeftHeaderGripper" HorizontalAlignment="Left" Style="{StaticResource ColumnHeaderGripperStyle}"/>
                <Thumb x:Name="PART_RightHeaderGripper" HorizontalAlignment="Right" Style="{StaticResource ColumnHeaderGripperStyle}"/>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style TargetType="GridView:GridViewHeaderCell">
        <Setter Property="Template" Value="{StaticResource GridViewHeaderCellTemplate}"/>
        <Setter Property="Background" Value="{StaticResource GridViewHeaderBackgroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource GridViewHeaderForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GridViewHeaderBackgroundBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="FontWeight" Value="Bold"/>
    </Style>

    <!-- RadGridView Group Panel Item -->
    <SolidColorBrush x:Key="GridViewGroupPanelItemInsertionPointFill" Color="Red"/>
    <SolidColorBrush x:Key="GridViewGroupPanelItemConnectingLineFill" Color="#FFC9C6C6"/>            
    <SolidColorBrush x:Key="GridViewIndentCellBorderBrush" Color="#FFB3B3B3"/>  
    <ControlTemplate x:Key="CloseButtonTemplate" TargetType="Button">
        <Grid Height="11" Width="11">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Unfocused"/>
                    <VisualState x:Name="Focused"/>
                </VisualStateGroup>                
                <VisualStateGroup x:Name="CommonStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                        <VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                        <VisualTransition From="Normal" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                        <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.5000000" To="Normal" />
                        <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.1000000" To="Pressed" />
                        <VisualTransition From="Pressed" GeneratedDuration="00:00:00.3000000" To="MouseOver" />
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HoverBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="PressedBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Disabled"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="CloseButton" BorderBrush="{StaticResource ButtonInnerBorderBrush}" BorderThickness="1" Background="{StaticResource FrameInnerBackgroundBrush}" CornerRadius="1" UseLayoutRounding="True">
                <Path Data="M4,4 L5,4 5,5 4,5 z M0,4 L1,4 1,5 0,5 z M3,3 L4,3 4,4 3,4 z M1,3 L2,3 2,4 1,4 z M2,2 L3,2 3,3 2,3 z M4,0 L5,0 5,1 4,1 4,2 3,2 3,0.99999994 4,0.99999994 z M0,0 L1,0 1,0.99999994 2,0.99999994 2,2 1,2 1,1 0,1 z" Fill="{StaticResource ControlForegroundBrush}" Margin="1.5"/>                
            </Border>
            <Border x:Name="HoverBackground" Background="{StaticResource HoverBackgroundBrush}" Margin="1" CornerRadius="1" Opacity="0"/>
            <Border x:Name="PressedBackground" Background="{StaticResource PressedBackgroundBrush}" Margin="1" CornerRadius="1" Opacity="0"/>            
        </Grid>
    </ControlTemplate>
    <Style x:Key="ButtonCloseStyle" TargetType="Button">
        <Setter Property="Template" Value="{StaticResource CloseButtonTemplate}"/>
    </Style>
    <ControlTemplate x:Key="GridViewGroupPanelCellTemplate" TargetType="GridView:GridViewGroupPanelCell">        
        <Border Background="{StaticResource FrameInnerBackgroundBrush}" BorderBrush="{StaticResource PopupBorderBrush}" BorderThickness="1" CornerRadius="3" Margin="0,0,0,7" UseLayoutRounding="True">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="SortDirection">
                    <VisualState x:Name="Ascending">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_SortIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderTransform" Storyboard.TargetName="PART_SortIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <ScaleTransform ScaleY="-1" ScaleX="1"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Descending">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_SortIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderTransform" Storyboard.TargetName="PART_SortIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <ScaleTransform ScaleY="1" ScaleX="1"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="None">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_SortIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="10"/>
                        <ColumnDefinition Width="20"/>
                    </Grid.ColumnDefinitions>
                    <Button x:Name="PART_CloseButton" Grid.Column="2" HorizontalAlignment="Right" Margin="0,3,3,0" Style="{StaticResource ButtonCloseStyle}" UseLayoutRounding="True" VerticalAlignment="Top"/>
                    <Path x:Name="PART_SortIndicator" Grid.Column="1" Data="M0,0 L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" Fill="{StaticResource ControlForegroundBrush}" HorizontalAlignment="Right" Height="3" Margin="0,0,3,0" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Visibility="Collapsed" VerticalAlignment="Center" Width="5"/>
                    <ContentPresenter Content="{Binding DisplayContent}" Margin="3,4,2,3"/>
                </Grid>
            </Grid>
        </Border>
    </ControlTemplate>    
    <Style x:Key="GridViewGroupPanelCellStyle" TargetType="GridView:GridViewGroupPanelCell">
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelCellTemplate}"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundColor}"/>
    </Style>
    <ControlTemplate x:Key="GridViewGroupPanelItemTemplate" TargetType="GridView:GridViewGroupPanelItem">
        <StackPanel x:Name="PART_GroupPanelItemStackPanel" Background="Transparent" Orientation="Horizontal" VerticalAlignment="Stretch">
            <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" MinHeight="4"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Path x:Name="PART_InsertionPoint" Data="M206.66812,170.31108 L212.08199,170.31108 209.36058,173.98834 z" Fill="{StaticResource GridViewGroupPanelItemInsertionPointFill}" HorizontalAlignment="Center" Height="4.677" Grid.Row="0" Stretch="Fill" Visibility="Collapsed" VerticalAlignment="Top" Width="6.414"/>
                <Path x:Name="PART_ConnectingLine" Data="F1 M-10,-4 L-7,-4 -7,-3 -4,-3 -3,-3 -3,-1.9999999 -3,0.99999988 -1.4901161E-08,0.99999988 -1.4901161E-08,-2.9802322E-08 3,-2.9802322E-08 3,3 -1.4901161E-08,3 -1.4901161E-08,2 -4,2 -4,0.99999988 -4,-1.9999999 -7,-1.9999999 -7,-1 -10,-1 -10,-4 z" Fill="{StaticResource GridViewGroupPanelItemConnectingLineFill}" Height="7" Margin="1,-7,1,3" Grid.Row="1" Stretch="Fill" Visibility="Visible"/>
            </Grid>
            <GridView:GridViewGroupPanelCell Content="{Binding DisplayContent}" SortDirection="{Binding SortDirection}" telerik:StyleManager.Theme="{StaticResource Theme}" Style="{StaticResource GridViewGroupPanelCellStyle}"/>            
        </StackPanel>
    </ControlTemplate>
    <Style TargetType="GridView:GridViewGroupPanelItem">
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelItemTemplate}"/>
    </Style>

    <!-- RadGridView Group Row Style -->
    <ControlTemplate x:Key="GridViewGroupToggleButtonTemplate" TargetType="ToggleButton">
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <ContentPresenter/>
        </Border>
    </ControlTemplate>
    <Style x:Key="GridViewGroupToggleButtonStyle" TargetType="ToggleButton">
        <Setter Property="Template" Value="{StaticResource GridViewGroupToggleButtonTemplate}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="9,0,0,0"/>
    </Style>
    <ControlTemplate x:Key="GridViewGroupRowTemplate" TargetType="GridView:GridViewGroupRow">
        <Grid x:Name="PART_GroupExpanderGrid" Background="{TemplateBinding Background}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition x:Name="PART_HeaderRow" MinHeight="25"/>
                <RowDefinition x:Name="ContentRow"/>
            </Grid.RowDefinitions>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="ExpandStateGroup">
                    <VisualState x:Name="Expanded">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Content">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="BottomBorder">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="IconOuterBorder">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="0,0,0,0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="IconInnerBorder">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="1,1,0,0"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="ExpanderButton">
                                <EasingDoubleKeyFrame KeyTime="00:00:00.2" Value="180"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Collapsed">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="ExpanderButton">
                                <EasingDoubleKeyFrame KeyTime="00:00:00.2" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="ToggleButtonBorder" BorderBrush="{StaticResource ControlForegroundBrush}" BorderThickness="0,0,0,1" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" Grid.Column="2">
                <Border x:Name="ToggleButtonInnerBorder">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="25"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Border Grid.Column="2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <GridView:AggregateResultsList HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ItemsSource="{TemplateBinding AggregateResults}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                                <GridView:AggregateResultsList.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <StackPanel Orientation="Horizontal"/>
                                    </ItemsPanelTemplate>
                                </GridView:AggregateResultsList.ItemsPanel>
                                <GridView:AggregateResultsList.ItemTemplate>
                                    <DataTemplate>
                                        <GridView:GridViewAggregateResultCell AggregateResult="{Binding}"/>
                                    </DataTemplate>
                                </GridView:AggregateResultsList.ItemTemplate>
                            </GridView:AggregateResultsList>
                        </Border>
                        <Border x:Name="IconOuterBorder" BorderBrush="{StaticResource ControlOuterBorder}" BorderThickness="0,0,0,1" Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" Margin="-1,-1,0,-2" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                            <Border x:Name="IconInnerBorder" BorderBrush="{StaticResource ControlInnerBorder}" BorderThickness="1,1,0,1">
                                <Path x:Name="ExpanderButton" Grid.Column="0" Data="M0,0L1,0 2,0 2,0.99999991 3,0.99999991 3,2 4,2 4,0.99999991 5,0.99999991 5,0 5.9999999,0 7,0 7,0.99999991 5.9999999,0.99999991 5.9999999,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,0.99999991 0,0.99999991z" Fill="{StaticResource ControlForegroundBrush}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Height="5" Margin="{TemplateBinding Padding}" RenderTransformOrigin="0.5,0.5" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="7">
                                    <Path.RenderTransform>
                                        <RotateTransform/>
                                    </Path.RenderTransform>
                                </Path>
                            </Border>
                        </Border>
                        <ToggleButton x:Name="HeaderButton" Background="{TemplateBinding Background}" Grid.ColumnSpan="3" Grid.Column="0" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Opacity="0" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
                        <ToggleButton BorderBrush="{x:Null}" BorderThickness="0" Foreground="{StaticResource ControlForegroundBrush}" Background="{TemplateBinding Background}" Grid.Column="1" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Padding="0,0,10,0" Style="{StaticResource GridViewGroupToggleButtonStyle}" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical">
                            <ContentPresenter ContentTemplate="{TemplateBinding GroupHeaderTemplate}" Content="{TemplateBinding GroupViewModel}" Grid.Column="1" Margin="0,0,10,0" VerticalAlignment="Center"/>
                        </ToggleButton>
                    </Grid>
                </Border>
            </Border>
            <Border x:Name="PART_IndicatorPresenter" BorderBrush="{StaticResource ControlOuterBorder}" BorderThickness="0,0,1,1" Grid.Column="0" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{TemplateBinding RowIndicatorVisibility}" VerticalAlignment="Stretch" Width="25">
                <Border BorderBrush="{StaticResource ControlInnerBorder}" BorderThickness="1" Background="{StaticResource GridView_RowIndicatorCellBackground}"/>
            </Border>
            <GridView:IndentPresenter Background="{TemplateBinding Background}" Grid.Column="1" IndentLevel="{TemplateBinding Level}" GridView:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>
            <Border x:Name="Content" Grid.ColumnSpan="5" Grid.Column="0" Grid.Row="1" Visibility="Collapsed">
                <StackPanel>
                    <GridView:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
                    <GridView:GridViewGroupFooterRow x:Name="Footer"/>
                </StackPanel>
            </Border>
            <Border x:Name="BottomBorder" BorderBrush="{StaticResource ControlOuterBorder}" BorderThickness="0,0,0,1" Grid.Column="2" Grid.Row="1" Visibility="Collapsed" VerticalAlignment="Bottom"/>
        </Grid>
    </ControlTemplate>
    <DataTemplate x:Key="GroupHeaderTemplate">
        <ContentPresenter Content="{Binding Header}"/>
    </DataTemplate>
    <Style TargetType="GridView:GridViewGroupRow">
        <Setter Property="Template" Value="{StaticResource GridViewGroupRowTemplate}"/>
        <Setter Property="GroupHeaderTemplate" Value="{StaticResource GroupHeaderTemplate}"/>
        <Setter Property="Background" Value="{StaticResource GridViewGroupRowBackgroundBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="10,0,0,0"/>
    </Style>

    <!-- RadGridView -->
    <ControlTemplate x:Key="RadGridViewTemplate" TargetType="telerikGridView:RadGridView">
        <Border x:Name="PART_MasterGridContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="GridViewActivity">
                    <VisualState x:Name="Idle">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_GridViewLoadingIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Busy">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_GridViewLoadingIndicator">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ColumnHeadersVisibility">
                    <VisualState x:Name="ColumnHeadersVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_HeaderRow">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ColumnHeadersCollapsed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_HeaderRow">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ColumnFootersVisibility">
                    <VisualState x:Name="ColumnFootersVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_FooterRow">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="ColumnFootersCollapsed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_FooterRow">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="GroupPanelVisibility">
                    <VisualState x:Name="GroupPanelVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_GroupPanel">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="GroupPanelCollapsed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_GroupPanel">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="InsertRowVisibility">
                    <VisualState x:Name="InsertRowVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_AddNewRow">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="InsertRowCollapsed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PART_AddNewRow">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid x:Name="HierrarchyBackground" Background="{TemplateBinding Background}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition x:Name="ScrollBarColumn" MinWidth="0" Width="0"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition x:Name="PART_AttachedBehaviorRow" Height="Auto"/>
                    <RowDefinition/>
                    <RowDefinition x:Name="ScrollBarRow" Height="0" MinHeight="0"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <GridView:GridViewGroupPanel x:Name="PART_GroupPanel" BorderThickness="0" Background="{TemplateBinding GroupPanelBackground}" Grid.ColumnSpan="2" Foreground="{TemplateBinding GroupPanelForeground}" Grid.Row="0"/>
                <GridView:GridViewScrollViewer x:Name="PART_ItemsScrollViewer" Background="Transparent" CanContentScroll="True" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2">
                    <GridView:GridViewScrollViewer.FooterRow>
                        <GridView:GridViewFooterRow x:Name="PART_FooterRow" IndentLevel="{TemplateBinding GroupCount}"/>
                    </GridView:GridViewScrollViewer.FooterRow>
                    <GridView:GridViewScrollViewer.HeaderRow>
                        <GridView:GridViewHeaderRow x:Name="PART_HeaderRow" IndentLevel="{TemplateBinding GroupCount}"/>
                    </GridView:GridViewScrollViewer.HeaderRow>
                    <GridView:GridViewScrollViewer.NewRow>
                        <GridView:GridViewNewRow x:Name="PART_AddNewRow" IndentLevel="{TemplateBinding GroupCount}" Visibility="Collapsed"/>
                    </GridView:GridViewScrollViewer.NewRow>
                    <GridView:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
                </GridView:GridViewScrollViewer>
                <GridView:ScrollPositionIndicator x:Name="PART_ScrollPositionIndicator" Grid.ColumnSpan="2" ContentTemplate="{TemplateBinding ScrollPositionIndicatorTemplate}" HorizontalAlignment="Right" IsHitTestVisible="False" Margin="0,0,28,0" Grid.Row="2" Visibility="{Binding IsScrolling, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                <Border x:Name="PART_FrozenColumnsPreview" Background="#33000000" HorizontalAlignment="Left" Grid.Row="1" Grid.RowSpan="4" Visibility="Collapsed" VerticalAlignment="Stretch" Width="6"/>
                <GridView:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Grid.ColumnSpan="2" Grid.RowSpan="4" Visibility="Collapsed"/>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style TargetType="telerikGridView:RadGridView">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template" Value="{StaticResource RadGridViewTemplate}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="AlternationCount" Value="2"/>
        <Setter Property="RowStyle" Value="{StaticResource GridViewRowStyle}"/>
        <Setter Property="AlternateRowStyle" Value="{StaticResource GridViewAlternateRowStyle}"/>
        <Setter Property="AlternateRowBackground" Value="{StaticResource GridViewAlternateRowBackgroundBrush}"/>
        <!--<Setter Property="HorizontalGridLinesBrush" Value="{StaticResource GridView_GridLinesItemBorder}"/>-->
        <Setter Property="GroupPanelBackground" Value="Transparent"/>
        <Setter Property="GroupPanelForeground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="AutoGenerateColumns" Value="False"/>
        <Setter Property="CanUserFreezeColumns" Value="False"/>
        <Setter Property="CanUserInsertRows" Value="False"/>
        <Setter Property="RowIndicatorVisibility" Value="Collapsed"/>
        <Setter Property="GridLinesVisibility" Value="None"/>
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="IsSynchronizedWithCurrentItem" Value="False"/>
    </Style>

    <!-- GridView - RowDetails -->
    <ControlTemplate x:Key="DetailsPresenterTemplate" TargetType="GridView:DetailsPresenter">
        <Border x:Name="DetailsBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" MinHeight="{TemplateBinding MinHeight}" Visibility="Collapsed">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="DetailsStates">
                    <VisualState x:Name="DetailsVisible">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DetailsBorder">
                                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="Visible"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="DetailsCollapsed"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <ContentPresenter x:Name="PART_ContentPresenter"/>
        </Border>
    </ControlTemplate>   
    <Style TargetType="GridView:DetailsPresenter">
        <Setter Property="Template" Value="{StaticResource DetailsPresenterTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource GridViewRowDetailsBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1,0,1,1"/>        
        <Setter Property="UseLayoutRounding" Value="True"/>
        <Setter Property="IsTabStop" Value="False"/>
    </Style>

    <!-- GridViewToggleButton -->
    <ControlTemplate x:Key="GridViewToggleButtonTemplate" TargetType="telerikGridView:GridViewToggleButton">
        <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver"/>
                    <VisualState x:Name="Disabled"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="CheckStates">
                    <VisualState x:Name="Checked">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="plus">
                                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="minus">
                                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Unchecked"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                    <VisualState x:Name="Unfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid>
                <Path x:Name="plus" Data="M19.5,0 L27.5,0 L27.5,19.5 L47,19.5 L47,27.5 L27.5,27.5 L27.5,47 L19.5,47 L19.5,27.5 L0,27.5 L0,19.5 L19.5,19.5 z" Fill="{StaticResource ControlForegroundBrush}" HorizontalAlignment="Center" Height="8" Margin="0" Stretch="Fill" StrokeThickness="1" VerticalAlignment="Center" Width="8"/>
                <Path x:Name="minus" Data="M0,0 L8,0 L8,47 L0,47 z" Fill="{StaticResource GridViewToggleButtonExpandedBackgroundBrush}" HorizontalAlignment="Center" Height="2" Margin="0" Opacity="0" RenderTransformOrigin="0.5,0.5" Stretch="Fill" StrokeThickness="1" VerticalAlignment="Center" Width="8"/>
            </Grid>
        </Border>
    </ControlTemplate>
    <Style TargetType="telerikGridView:GridViewToggleButton">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="{StaticResource GridLinesFill}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Template" Value="{StaticResource GridViewToggleButtonTemplate}"/>
    </Style>

    <ControlTemplate x:Key="GridViewGroupPanelTemplate" TargetType="GridView:GridViewGroupPanel">
        <Grid>
            <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="{TemplateBinding Margin}"/>
            <StackPanel x:Name="panel" VerticalAlignment="Center">
                <TextBlock Margin="{TemplateBinding Padding}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" telerik:LocalizationManager.ResourceKey="GridViewGroupPanelText" IsHitTestVisible="False" x:Name="panelText" />
            </StackPanel>
            <ItemsPresenter x:Name="panelItemsPresenter" Margin="0,3,0,0" />
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="Grouping">
                    <VisualState x:Name="NoGroups" />
                    <VisualState x:Name="HasGroups">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="panelText" Storyboard.TargetProperty="Visibility">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
        </Grid>
    </ControlTemplate>
    <ItemsPanelTemplate x:Key="GridViewGroupPanelItemsPanelTemplate">
        <StackPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
    <Style TargetType="GridView:GridViewGroupPanel">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}" />
        <Setter Property="Template" Value="{StaticResource GridViewGroupPanelTemplate}" />
        <Setter Property="ItemsPanel" Value="{StaticResource GridViewGroupPanelItemsPanelTemplate}" />
        <Setter Property="Padding" Value="10,0" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
    </Style>

    <!-- Standard Spacer Style -->
    <Style x:Key="StandardSpacerStyle" TargetType="Rectangle">
        <Setter Property="Width" Value="8"/>
        <Setter Property="Height" Value="8"/>
    </Style>

    <!-- Small Spacer Style -->
    <Style x:Key="SmallSpacerStyle" TargetType="Rectangle">
        <Setter Property="Width" Value="4"/>
        <Setter Property="Height" Value="4"/>
    </Style>

    <!-- Large Spacer Style -->
    <Style x:Key="LargeSpacerStyle" TargetType="Rectangle">
        <Setter Property="Width" Value="12"/>
        <Setter Property="Height" Value="12"/>
    </Style>

    <!-- Navigation Link Spacer Style -->
    <Style x:Key="NavigationLinkSpacerStyle" TargetType="Rectangle">
        <Setter Property="Width" Value="25"/>
    </Style>

    <!-- Message Label Style -->
    <Style x:Key="MessageLabelStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="Margin" Value="8"/>
    </Style>

    <!-- Book Page Style -->
    <Style x:Key="BookPageStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource FrameBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PopupBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="16"/>
    </Style>

    <!-- Book Page Header Image Style -->
    <Style x:Key="BookPageHeaderImageStyle" TargetType="Image">
        <Setter Property="Width" Value="32"/>
        <Setter Property="Height" Value="32"/>
    </Style>

    <!-- Book Page Header Text Style -->
    <Style x:Key="BookPageHeaderTitleStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="FontSize" Value="16"/>
    </Style>

    <!-- Book Page Description Style -->
    <Style x:Key="BookPageDescriptionStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <!-- Book Page Book Title Style -->
    <Style x:Key="BookPageBookTitleStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource LogoForegroundBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
    </Style>

    <!-- Book Page Header Line Style -->
    <Style x:Key="BookPageHeaderLineStyle" TargetType="Rectangle">
        <Setter Property="Fill" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Height" Value="1"/>
    </Style>

    <!-- Header Text Style -->
    <Style x:Key="HeaderTextStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource ControlForegroundBrush}"/>
        <Setter Property="FontSize" Value="20"/>
    </Style>

    <!-- RadScheduler Appointment Subject Text Box -->
    <Style x:Key="AppointmentTextBox" TargetType="TextBox">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="MaxHeight" Value="100"/>
        <Setter Property="MinHeight" Value="100"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
    </Style>

</ResourceDictionary>    
