<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents" xmlns:telerikUI="clr-namespace:Telerik.Windows.Documents.UI;assembly=Telerik.Windows.Documents" xmlns:telerikUIAnotations="clr-namespace:Telerik.Windows.Documents.UI.Annotations;assembly=Telerik.Windows.Documents" xmlns:view="clr-namespace:Telerik.Windows.Documents.ItemsControlPresentation;assembly=Telerik.Windows.Documents" xmlns:sys="clr-namespace:System;assembly=mscorlib">
  <!-- Brushes-->
  <SolidColorBrush x:Key="ValidationToolTipTemplateBorder1Background" Color="#052A2E31" />
  <SolidColorBrush x:Key="ValidationToolTipTemplateBorder2Background" Color="#152A2E31" />
  <SolidColorBrush x:Key="ValidationToolTipTemplateBorder3Background" Color="#252A2E31" />
  <SolidColorBrush x:Key="ValidationToolTipTemplateBorder4Background" Color="#352A2E31" />
  <SolidColorBrush x:Key="ValidationToolTipTemplateBorder5Background" Color="#FFDC000C" />
  <SolidColorBrush x:Key="ValidationToolTipTemplateTextBlockForeground" Color="White" />
  <SolidColorBrush x:Key="RichTextBoxBorderBrush" Color="#7F000000" />
  <SolidColorBrush x:Key="RichTextBoxSelectionStroke" Color="#601B81E7" />
  <SolidColorBrush x:Key="RichTextBoxSelectionFill" Color="#604BB1FF" />
  <Color x:Key="MouseOverBorderBorderBrush_MouseOver">#FF99C1E2</Color>
  <SolidColorBrush x:Key="MouseOverBorderBorderBrush_MouseNotOver" Color="Transparent" />
  <SolidColorBrush x:Key="BorderBetweenScrollBarsBackground" Color="#F5F5F5" />
  <SolidColorBrush x:Key="PrintingScreenGridBackground" Color="White" />
  <SolidColorBrush x:Key="DisabledVisualElementBorderBackground" Color="#A5F7F7F7" />
  <SolidColorBrush x:Key="DisabledVisualElementBorderBorderBrush" Color="#A5F7F7F7" />
  <SolidColorBrush x:Key="FocusVisualElementBorderBorderBrush" Color="#FF6DBDD1" />
  <SolidColorBrush x:Key="ValidationErrorElementBorderBorderBrush" Color="#FFDB000C" />
  <Color x:Key="Page_ShadowColor">Black</Color>
  <SolidColorBrush x:Key="PageContentPresenterBackground" Color="White" />
  <SolidColorBrush x:Key="RichTextBoxBackground" Color="Transparent" />
  <SolidColorBrush x:Key="DropPositionMarkerControlTemplateRectangleFill" Color="Black" />
  <SolidColorBrush x:Key="CommentBalloonBorderBrush" Color="Red" />
  <SolidColorBrush x:Key="CommentBalloonBackground" Color="Pink" />
  <SolidColorBrush x:Key="CommentPane_BorderBrush" Color="#FFDFDFDF" />
  <SolidColorBrush x:Key="CommentPane_Background" Color="#FFF4F4F4" />
  <Color x:Key="CommentPane_Background_MouseOver">#FFE9E9E9</Color>
  <Color x:Key="CommentPane_BorderBrush_MouseOver">#FFBFBFBF</Color>
  <!-- RadRichTextBox-->
  <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
  <!--Caret-->
  <Style x:Key="CaretStyle" TargetType="telerikUI:Caret">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:Caret">
          <Grid x:Name="RootElement">
            <ScrollViewer x:Name="PART_ContentHost" BorderThickness="0" Padding="0" />
            <Rectangle x:Name="Rectangle" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="HorizontalAlignment" Value="Left" />
    <Setter Property="VerticalAlignment" Value="Top" />
    <Setter Property="AcceptsReturn" Value="True" />
    <Setter Property="Padding" Value="-3 0 0 0" />
    <Setter Property="Foreground" Value="Transparent" />
  </Style>
  <Style TargetType="telerikUI:Caret" BasedOn="{StaticResource CaretStyle}" />
  <!--End Caret-->
  <!-- RadRichTextBox-->
  <ControlTemplate x:Key="ValidationToolTipTemplate">
    <Grid x:Name="Root" Margin="5,0" RenderTransformOrigin="0,0" Opacity="0">
      <Grid.RenderTransform>
        <TranslateTransform x:Name="xform" X="-25" />
      </Grid.RenderTransform>
      <VisualStateManager.VisualStateGroups>
        <VisualStateGroup Name="OpenStates">
          <VisualStateGroup.Transitions>
            <VisualTransition GeneratedDuration="0" />
            <VisualTransition To="Open" GeneratedDuration="0:0:0.2">
              <Storyboard>
                <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.2">
                  <DoubleAnimation.EasingFunction>
                    <BackEase Amplitude=".3" EasingMode="EaseOut" />
                  </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.2" />
              </Storyboard>
            </VisualTransition>
          </VisualStateGroup.Transitions>
          <VisualState x:Name="Closed">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0" Duration="0" />
            </Storyboard>
          </VisualState>
          <VisualState x:Name="Open">
            <Storyboard>
              <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0" />
              <DoubleAnimation Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
            </Storyboard>
          </VisualState>
        </VisualStateGroup>
      </VisualStateManager.VisualStateGroups>
      <Border Margin="4,4,-4,-4" Background="{StaticResource ValidationToolTipTemplateBorder1Background}" CornerRadius="5" />
      <Border Margin="3,3,-3,-3" Background="{StaticResource ValidationToolTipTemplateBorder2Background}" CornerRadius="4" />
      <Border Margin="2,2,-2,-2" Background="{StaticResource ValidationToolTipTemplateBorder3Background}" CornerRadius="3" />
      <Border Margin="1,1,-1,-1" Background="{StaticResource ValidationToolTipTemplateBorder4Background}" CornerRadius="2" />
      <Border Background="{StaticResource ValidationToolTipTemplateBorder5Background}" CornerRadius="2" />
      <Border CornerRadius="2">
        <TextBlock UseLayoutRounding="false" Foreground="{StaticResource ValidationToolTipTemplateTextBlockForeground}" Margin="8,4,8,4" MaxWidth="250" TextWrapping="Wrap" Text="{Binding ValidationErrors[0].ErrorContent}" />
      </Border>
    </Grid>
  </ControlTemplate>
  <Style x:Key="RadRichTextBoxStyle" TargetType="telerikControls:RadRichTextBox">
    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
    <Setter Property="VerticalContentAlignment" Value="Stretch" />
    <Setter Property="Padding" Value="0" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource RichTextBoxBorderBrush}" />
    <Setter Property="Background" Value="#FFFFFFFF" />
    <Setter Property="SelectionStroke" Value="{StaticResource RichTextBoxSelectionStroke}" />
    <Setter Property="SelectionFill" Value="{StaticResource RichTextBoxSelectionFill}" />
    <Setter Property="MouseOverBorderThickness" Value="1" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikControls:RadRichTextBox">
          <Grid x:Name="LayoutRoot">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="PagedMode">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(Border.BorderThickness)">
                      <DiscreteObjectKeyFrame KeyTime="00:00:00">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.BorderThickness)">
                      <DiscreteObjectKeyFrame KeyTime="00:00:00">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(Border.BorderThickness)">
                      <DiscreteObjectKeyFrame KeyTime="00:00:00">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ColorAnimation Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" To="{StaticResource MouseOverBorderBorderBrush_MouseOver}" Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="ReadOnly" />
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Unfocused">
                  <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity" To="0" Duration="0" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="ValidationStates">
                <VisualState x:Name="Valid" />
                <VisualState x:Name="InvalidUnfocused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="InvalidFocused">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <sys:Boolean>True</sys:Boolean>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Canvas Width="0" Height="0" Name="MeasuringPanel" />
            <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" Opacity="1" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
              <Border x:Name="MouseOverBorder" BorderThickness="{TemplateBinding MouseOverBorderThickness}" BorderBrush="{StaticResource MouseOverBorderBorderBrush_MouseNotOver}" Margin="-1">
                <Grid Background="{TemplateBinding Background}">
                  <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                  </Grid.RowDefinitions>
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                  </Grid.ColumnDefinitions>
                  <ContentControl x:Name="ViewPresenter" IsTabStop="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
                  <Border Grid.Column="1" Grid.Row="1" Background="{StaticResource BorderBetweenScrollBarsBackground}" />
                  <ScrollBar x:Name="HorizontalScrollBar" Height="16" IsTabStop="False" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" Minimum="0" />
                  <ScrollBar x:Name="VerticalScrollBar" Width="16" IsTabStop="False" Grid.Column="1" Grid.Row="0" Orientation="Vertical" Minimum="0" />
                  <Grid x:Name="PrintingScreen" Grid.ColumnSpan="2" Grid.RowSpan="2" Background="{StaticResource PrintingScreenGridBackground}" Visibility="Collapsed">
                    <TextBlock Text="Printing..." HorizontalAlignment="Center" VerticalAlignment="Center" />
                  </Grid>
                </Grid>
              </Border>
            </Border>
            <Border x:Name="DisabledVisualElement" Background="{StaticResource DisabledVisualElementBorderBackground}" BorderBrush="{StaticResource DisabledVisualElementBorderBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0" IsHitTestVisible="False" />
            <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource FocusVisualElementBorderBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Opacity="0" IsHitTestVisible="False" />
            <Border x:Name="ValidationErrorElement" BorderThickness="1" CornerRadius="1" BorderBrush="{StaticResource ValidationErrorElementBorderBorderBrush}" Visibility="Collapsed">
              <ToolTipService.ToolTip>
                <ToolTip x:Name="validationTooltip" Template="{StaticResource ValidationToolTipTemplate}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">
                  <ToolTip.Triggers>
                    <EventTrigger RoutedEvent="Canvas.Loaded">
                      <EventTrigger.Actions>
                        <BeginStoryboard>
                          <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible">
                              <DiscreteObjectKeyFrame KeyTime="0">
                                <DiscreteObjectKeyFrame.Value>
                                  <sys:Boolean>true</sys:Boolean>
                                </DiscreteObjectKeyFrame.Value>
                              </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                          </Storyboard>
                        </BeginStoryboard>
                      </EventTrigger.Actions>
                    </EventTrigger>
                  </ToolTip.Triggers>
                </ToolTip>
              </ToolTipService.ToolTip>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikControls:RadRichTextBox" BasedOn="{StaticResource RadRichTextBoxStyle}" />
  <!--End RadRichTextBox-->
  <!--Validation ToolTip-->
  <!--End Validation ToolTip-->
  <!-- Page -->
  <Style TargetType="telerikUI:Page" x:Key="PageStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:Page">
          <Border Margin="-4" CornerRadius="7" BorderThickness="1">
            <Border.BorderBrush>
              <SolidColorBrush Color="{StaticResource Page_ShadowColor}" Opacity="0.01" />
            </Border.BorderBrush>
            <Border CornerRadius="5" BorderThickness="1">
              <Border.BorderBrush>
                <SolidColorBrush Color="{StaticResource Page_ShadowColor}" Opacity="0.04" />
              </Border.BorderBrush>
              <Border CornerRadius="3" BorderThickness="1">
                <Border.BorderBrush>
                  <SolidColorBrush Color="{StaticResource Page_ShadowColor}" Opacity="0.10" />
                </Border.BorderBrush>
                <Border CornerRadius="1" BorderThickness="1">
                  <Border.BorderBrush>
                    <SolidColorBrush Color="{StaticResource Page_ShadowColor}" Opacity="0.18" />
                  </Border.BorderBrush>
                  <Canvas x:Name="PageContentPresenter" Background="{StaticResource PageContentPresenterBackground}" />
                </Border>
              </Border>
            </Border>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="HorizontalAlignment" Value="Center" />
    <Setter Property="VerticalAlignment" Value="Top" />
  </Style>
  <Style TargetType="telerikUI:Page" BasedOn="{StaticResource PageStyle}" />
  <!--End Page-->
  <!-- HeaderFooterPresenterBase -->
  <Style TargetType="telerikUI:HeaderFooterPresenterBase" x:Key="HeaderFooterPresenterBaseStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:HeaderFooterPresenterBase">
          <Grid>
            <StackPanel x:Name="WrappingStackPanel">
              <telerikControls:RadRichTextBox x:Name="BodyRichTextBox" AllowScaling="False" BorderThickness="0" Background="Transparent" Margin="0" Padding="0" MouseOverBorderThickness="0" />
            </StackPanel>
            <!-- TODO: Extract Fill to brushes. -->
            <Rectangle x:Name="FadingRectangle" Fill="#80FFFFFF" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUI:HeaderFooterPresenterBase" BasedOn="{StaticResource HeaderFooterPresenterBaseStyle}" />
  <!--End HeaderFooterPresenterBase-->
  <Style x:Key="HeaderFooterEditModeOverlayDashedLine" TargetType="Line">
    <!-- TODO Extract to Brushes.xml -->
    <Setter Property="Stroke" Value="#FF9BBBE3" />
    <Setter Property="StrokeThickness" Value="2" />
    <Setter Property="X2" Value="100" />
    <Setter Property="Stretch" Value="UniformToFill" />
  </Style>
  <Style x:Key="HeaderFooterEditModeOverlayTextBorderStyle" TargetType="Border">
    <Setter Property="BorderThickness" Value="1" />
    <!-- TODO Extract to Brushes.xml -->
    <Setter Property="Background" Value="#FFD8E8F5" />
    <!-- TODO Extract to Brushes.xml -->
    <Setter Property="BorderBrush" Value="#FF9BBBE3" />
    <Setter Property="Padding" Value="4,2" />
  </Style>
  <Style x:Key="HeaderFooterEditModeOverlayTextBoxStyle" TargetType="TextBlock">
    <Setter Property="FontWeight" Value="Normal" />
    <Setter Property="FontFamily" Value="Arial" />
    <Setter Property="FontStyle" Value="Normal" />
    <Setter Property="FontSize" Value="11" />
    <!-- TODO Extract to Brushes.xml -->
    <Setter Property="Foreground" Value="#FF3D428B" />
    <Setter Property="VerticalAlignment" Value="Center" />
  </Style>
  <!-- HeaderFooterEditModeOverlay -->
  <Style TargetType="telerikUI:HeaderFooterEditModeOverlay" x:Key="HeaderFooterEditModeOverlayStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:HeaderFooterEditModeOverlay">
          <Grid>
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto" />
              <RowDefinition Height="Auto" />
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Line Style="{StaticResource HeaderFooterEditModeOverlayDashedLine}" StrokeDashArray="3 2" />
            <!-- TODO Extract to Brushes.xml -->
            <Rectangle Grid.Row="1" Grid.RowSpan="3" Fill="#80FFFFFF" />
            <Border Grid.Row="1" DataContext="{TemplateBinding IsHeaderLinkedToPrevious}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}}" Style="{StaticResource HeaderFooterEditModeOverlayTextBorderStyle}" CornerRadius="0,0,4,4" Margin="0,0,5,0" HorizontalAlignment="Right">
              <TextBlock Style="{StaticResource HeaderFooterEditModeOverlayTextBoxStyle}" telerik:LocalizationManager.ResourceKey="Documents_HeadersFooters_SameAsPrevious" />
            </Border>
            <Border Grid.Row="1" Style="{StaticResource HeaderFooterEditModeOverlayTextBorderStyle}" CornerRadius="0,0,4,4" Margin="5,0,0,0" HorizontalAlignment="Left">
              <TextBlock Style="{StaticResource HeaderFooterEditModeOverlayTextBoxStyle}" Text="{TemplateBinding HeaderText}" />
            </Border>
            <Border Grid.Row="3" DataContext="{TemplateBinding IsFooterLinkedToPrevious}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}}" Style="{StaticResource HeaderFooterEditModeOverlayTextBorderStyle}" CornerRadius="4,4,0,0" Margin="0,0,5,0" HorizontalAlignment="Right">
              <TextBlock Style="{StaticResource HeaderFooterEditModeOverlayTextBoxStyle}" telerik:LocalizationManager.ResourceKey="Documents_HeadersFooters_SameAsPrevious" />
            </Border>
            <Border Grid.Row="3" Style="{StaticResource HeaderFooterEditModeOverlayTextBorderStyle}" CornerRadius="4,4,0,0" Margin="5,0,0,0" HorizontalAlignment="Left">
              <TextBlock Style="{StaticResource HeaderFooterEditModeOverlayTextBoxStyle}" Text="{TemplateBinding FooterText}" />
            </Border>
            <Line Grid.Row="4" Style="{StaticResource HeaderFooterEditModeOverlayDashedLine}" StrokeDashArray="3 2" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUI:HeaderFooterEditModeOverlay" BasedOn="{StaticResource HeaderFooterEditModeOverlayStyle}" />
  <!-- End HeaderFooterEditModeOverlay -->
  <!-- WebLayoutUi-->
  <Style TargetType="telerikUI:WebLayoutUI" x:Key="WebLayoutUIStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:WebLayoutUI">
          <Grid>
            <Canvas x:Name="PageContentPresenter" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="HorizontalAlignment" Value="Center" />
    <Setter Property="VerticalAlignment" Value="Top" />
  </Style>
  <Style TargetType="telerikUI:WebLayoutUI" BasedOn="{StaticResource WebLayoutUIStyle}" />
  <!--End Page-->
  <!--<Style TargetType="telerikUI:Caret">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikUI:Caret">
                    <Grid x:Name="RootElement">
                        <ScrollViewer x:Name="PART_ContentHost"
                                      BorderThickness="0" Padding="0" />                   
                        <Rectangle x:Name="Rectangle" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="AcceptsReturn" Value="True" />
        <Setter Property="Padding" Value="-3 0 0 0" />
        <Setter Property="Foreground" Value="Transparent" />
    </Style>-->
  <Style TargetType="telerikUI:DocumentPrintLayoutPresenter" x:Key="DocumentPrintLayoutPresenterStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:DocumentPrintLayoutPresenter">
          <Border Background="{StaticResource RichTextBoxBackground}">
            <Grid>
              <ContentPresenter />
              <telerikUI:DropPositionMarker x:Name="DropPositionMarker" />
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUI:DocumentPrintLayoutPresenter" BasedOn="{StaticResource DocumentPrintLayoutPresenterStyle}" />
  <Style TargetType="telerikUI:DocumentWebLayoutPresenter" x:Key="DocumentWebLayoutPresenterStyle">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:DocumentWebLayoutPresenter">
          <Border Background="Transparent">
            <Grid>
              <ContentPresenter />
              <telerikUI:DropPositionMarker x:Name="DropPositionMarker" />
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUI:DocumentWebLayoutPresenter" BasedOn="{StaticResource DocumentWebLayoutPresenterStyle}" />
  <Style TargetType="telerikControls:RadRichTextPageView" x:Key="RadRichTextPageViewStyle">
    <Setter Property="SelectionStroke" Value="{StaticResource RichTextBoxSelectionStroke}" />
    <Setter Property="SelectionFill" Value="{StaticResource RichTextBoxSelectionFill}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikControls:RadRichTextPageView">
          <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <view:RichTextPageViewPresenter x:Name="PagePresenter"></view:RichTextPageViewPresenter>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikControls:RadRichTextPageView" BasedOn="{StaticResource RadRichTextPageViewStyle}" />
  <Style TargetType="telerikUI:DropPositionMarker" x:Key="DropPositionMarkerStyle">
    <Setter Property="Width" Value="1" />
    <Setter Property="HorizontalAlignment" Value="Left" />
    <Setter Property="VerticalAlignment" Value="Top" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUI:DropPositionMarker">
          <Rectangle Fill="{StaticResource DropPositionMarkerControlTemplateRectangleFill}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUI:DropPositionMarker" BasedOn="{StaticResource DropPositionMarkerStyle}" />
  <Style TargetType="telerikUIAnotations:CommentBalloon" x:Key="CommentBalloonStyle">
    <Setter Property="BorderBrush" Value="{StaticResource CommentBalloonBorderBrush}" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="Background" Value="{StaticResource CommentBalloonBackground}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUIAnotations:CommentBalloon">
          <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="6,6,6,6">
            <Grid>
              <Grid.RowDefinitions>
                <RowDefinition />
              </Grid.RowDefinitions>
              <telerikControls:RadRichTextBox x:Name="CommentRichTextBox" BorderThickness="0" Background="Transparent" IsSpellCheckingEnabled="false" IsContextMenuEnabled="false" IsSelectionMiniToolBarEnabled="false" Margin="2.5, 3, 2.5, 3" AllowScaling="False" Padding="0" MouseOverBorderThickness="0" IsReadOnly="{TemplateBinding IsReadOnly}" />
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUIAnotations:CommentBalloon" BasedOn="{StaticResource CommentBalloonStyle}" />
  <Style TargetType="telerikUIAnotations:CommentsPane" x:Key="CommentsPaneStyle">
    <Setter Property="BorderBrush" Value="{StaticResource CommentPane_BorderBrush}" />
    <Setter Property="BorderThickness" Value="1 0 0 0" />
    <Setter Property="Background" Value="{StaticResource CommentPane_Background}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="telerikUIAnotations:CommentsPane">
          <Grid x:Name="LayoutRoot">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal" />
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ColorAnimation Duration="0" To="{StaticResource CommentPane_Background_MouseOver}" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="MouseOverBorder" />
                    <ColorAnimation Duration="0" To="{StaticResource CommentPane_BorderBrush_MouseOver}" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="MouseOverBorder" />
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="MouseOverBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"></Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style TargetType="telerikUIAnotations:CommentsPane" BasedOn="{StaticResource CommentsPaneStyle}" />
</ResourceDictionary>