	  
	   
    
		

<!--// Copyright Â© ComponentOne LLC.
// This file is part of ComponentOne Studio WPF Edition
// Please visit www.componentone.com for details
// All other rights reserved.
-->

<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:c1="clr-namespace:C1.WPF;assembly=C1.WPF.4" xmlns:c1doc="clr-namespace:C1.WPF.RichTextBox.Documents;assembly=C1.WPF.RichTextBox.4" xmlns:c1rtbtb="clr-namespace:C1.WPF.RichTextBox" xmlns:c1tb="clr-namespace:C1.WPF.Toolbar;assembly=C1.WPF.Toolbar.4" xmlns:c1rtbtb_Resources="clr-namespace:C1.Silverlight.RichTextBox.Resources" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/C1.WPF.4;component/themes/C1ComboBox.xaml" />
        <ResourceDictionary Source="/C1.WPF.4;component/themes/C1Menu.xaml" />
        <ResourceDictionary Source="/C1.WPF.Toolbar.4;component/themes/generic.xaml" />
        <ResourceDictionary Source="/C1.WPF.RichTextBox.Toolbar.4;component/themes/LengthToolCombo.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <c1rtbtb_Resources:C1_Silverlight_RichTextBox_Toolbar x:Key="RichTextBoxToolbarResources" />

    <Style TargetType="c1rtbtb:C1RichTextBoxToolbar">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1RichTextBoxToolbar">
                    <c1tb:C1Toolbar>
                        <c1tb:C1ToolbarTabItem Header="{Binding Path=HomeTab_Header, Source={StaticResource RichTextBoxToolbarResources}}">

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Edit_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1rtbtb:C1PasteLargeTool ToolTipService.ToolTip="{Binding Tools_Paste, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1CutTool ToolTipService.ToolTip="{Binding Tools_Cut, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1UndoTool ToolTipService.ToolTip="{Binding Tools_Undo, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1:C1Separator Width="0" Height="20" />
                                <c1rtbtb:C1CopyTool ToolTipService.ToolTip="{Binding Tools_Copy, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1RedoTool ToolTipService.ToolTip="{Binding Tools_Redo, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1FormatPainterTool ToolTipService.ToolTip="{Binding FormatPainter, Source={StaticResource RichTextBoxToolbarResources}}" />

                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Font_Title, Source={StaticResource RichTextBoxToolbarResources}}" VerticalContentAlignment="Center">

                                <c1tb:C1ToolbarStrip Overflow="None">

                                    <c1rtbtb:C1FontFamilyTool ToolTipService.ToolTip="{Binding Font_Font, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1:C1Separator />
                                    <c1rtbtb:C1FontSizeTool ToolTipService.ToolTip="{Binding Font_FontSize, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1:C1Separator />
                                    <c1rtbtb:C1IncreaseFontSizeTool ToolTipService.ToolTip="{Binding Font_GrowFont, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1DecreaseFontSizeTool ToolTipService.ToolTip="{Binding Font_ShrinkFont , Source={StaticResource RichTextBoxToolbarResources}}" />

                                </c1tb:C1ToolbarStrip>

                                <c1tb:C1ToolbarStrip Overflow="None">

                                    <c1rtbtb:C1BoldTool ToolTipService.ToolTip="{Binding Font_Bold, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1ItalicTool ToolTipService.ToolTip="{Binding Font_Italic, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1UnderlineTool ToolTipService.ToolTip="{Binding Font_Underline, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1StrikethroughTool ToolTipService.ToolTip="{Binding Font_Strikethrough, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1ChangeCaseTool ToolTipService.ToolTip="{Binding Font_ChangeCase, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1SuperscriptTool ToolTipService.ToolTip="{Binding Font_Superscript, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1SubscriptTool ToolTipService.ToolTip="{Binding Font_Subscript, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1:C1Separator />
                                    <c1rtbtb:C1FontColorTool ToolTipService.ToolTip="{Binding Font_FontColor, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1TextHighlightTool ToolTipService.ToolTip="{Binding Font_TextHighlightColor, Source={StaticResource RichTextBoxToolbarResources}}" />

                                </c1tb:C1ToolbarStrip>

                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Paragraph_Title, Source={StaticResource RichTextBoxToolbarResources}}" VerticalContentAlignment="Center">

                                <c1tb:C1ToolbarStrip Overflow="None" Margin="0 4 0 3">

                                    <c1rtbtb:C1LeftAlignTool ToolTipService.ToolTip="{Binding Paragraph_AlignTextLeft, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1CenterAlignTool ToolTipService.ToolTip="{Binding Paragraph_AlignTextCenter, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1RightAlignTool ToolTipService.ToolTip="{Binding Paragraph_AlignTextRight, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1JustifyTool ToolTipService.ToolTip="{Binding Paragraph_Justify, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1:C1Separator />
                                    <c1rtbtb:C1BulletsTool ToolTipService.ToolTip="{Binding Paragraph_Bullets, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1NumberingTool ToolTipService.ToolTip="{Binding Paragraph_Numbering, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1:C1Separator />
                                    <c1rtbtb:C1TextWrappingTool ToolTipService.ToolTip="{Binding Paragraph_TextWrapping, Source={StaticResource RichTextBoxToolbarResources}}" />

                                </c1tb:C1ToolbarStrip>

                                <c1tb:C1ToolbarStrip Overflow="None">

                                    <c1rtbtb:C1ParagraphColorTool ToolTipService.ToolTip="{Binding Paragraph_ParagraphColor, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1BorderTool ToolTipService.ToolTip="{Binding Tools_BorderTool, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1:C1Separator />
                                    <c1rtbtb:C1MarginTool ToolTipService.ToolTip="{Binding Paragraph_Margin, Source={StaticResource RichTextBoxToolbarResources}}" />
                                    <c1rtbtb:C1PaddingTool ToolTipService.ToolTip="{Binding Paragraph_Padding, Source={StaticResource RichTextBoxToolbarResources}}" />

                                </c1tb:C1ToolbarStrip>

                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Insert_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1rtbtb:C1InsertImageLargeTool ToolTipService.ToolTip="{Binding Insert_InsertImage, Source={StaticResource RichTextBoxToolbarResources}}" />
                                  <c1rtbtb:C1InsertSymbolTool ToolTipService.ToolTip="{Binding Insert_InsertSymbol, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1InsertHyperlinkTool ToolTipService.ToolTip="{Binding Insert_InsertHyperlink, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1RemoveHyperlinkTool ToolTipService.ToolTip="{Binding Insert_RemoveHyperlink, Source={StaticResource RichTextBoxToolbarResources}}" />

                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Tools_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                        <c1tb:C1ToolbarControlSize>Medium</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>

                                <c1rtbtb:C1SpellCheckLargeTool ToolTipService.ToolTip="{Binding Tools_SpellCheck, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1FindAndReplaceLargeTool ToolTipService.ToolTip="{Binding Tools_FindAndReplace, Source={StaticResource RichTextBoxToolbarResources}}" />

                            </c1tb:C1ToolbarGroup>

                        </c1tb:C1ToolbarTabItem>

                        <c1tb:C1ToolbarTabItem Header="{Binding Path=TablesTab_Header, Source={StaticResource RichTextBoxToolbarResources}}">

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Table_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>

                                <c1rtbtb:C1InsertTableTool ToolTipService.ToolTip="{Binding Tools_InsertTable, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1SelectTableTool ToolTipService.ToolTip="{Binding Tools_SelectTable, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1ShowGridlinesTool ToolTipService.ToolTip="{Binding Tools_ShowGridlines, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1TableWidthTool VerticalAlignment="Top" />

                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup Header="{Binding Path=RowsAndColumns_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>

                                <c1rtbtb:C1DeleteTableTool ToolTipService.ToolTip="{Binding Tools_DeleteTable, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1InsertColumnsLeftTool ToolTipService.ToolTip="{Binding Tools_InsertColumnsLeft, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1InsertColumnsRightTool ToolTipService.ToolTip="{Binding Tools_InsertColumnsRight, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1InsertRowsAboveTool ToolTipService.ToolTip="{Binding Tools_InsertRowsAbove, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1InsertRowsBelowTool ToolTipService.ToolTip="{Binding Tools_InsertRowsBelow, Source={StaticResource RichTextBoxToolbarResources}}" />
                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup Header="{Binding Path=Merge_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>

                                <c1rtbtb:C1MergeCellsTool ToolTipService.ToolTip="{Binding Tools_MergeCells, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1UnmergeCellTool ToolTipService.ToolTip="{Binding Tools_UnmergeCell, Source={StaticResource RichTextBoxToolbarResources}}" />

                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup VerticalContentAlignment="Center" Header="{Binding Path=Cell_Title, Source={StaticResource RichTextBoxToolbarResources}}">

                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Small</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>

                                <c1rtbtb:C1ColumnWidthTool />
                                <c1rtbtb:C1RowHeightTool />
                                <c1:C1Separator Background="Transparent" Width="130" />
                                <c1:C1Separator Orientation="Vertical" Height="68" />
                                <c1:C1Separator Width="0" Height="0" />
                                <c1:C1Separator Width="0" Height="0" />
                                <c1rtbtb:C1TopAlignTool ToolTipService.ToolTip="{Binding Tools_TopAlign, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1VerticalCenterAlignTool ToolTipService.ToolTip="{Binding Tools_VerticalCenterAlign, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1BottomAlignTool ToolTipService.ToolTip="{Binding Tools_BottomAlign, Source={StaticResource RichTextBoxToolbarResources}}" />

                            </c1tb:C1ToolbarGroup>

                        </c1tb:C1ToolbarTabItem>

                        <c1tb:C1ToolbarTabItem Header="{Binding Path=ViewTab_Header, Source={StaticResource RichTextBoxToolbarResources}}">

                            <c1tb:C1ToolbarGroup Header="{Binding Path=View_DocumentViews, Source={StaticResource RichTextBoxToolbarResources}}">
                                
                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                
                                <c1rtbtb:C1PrintViewLargeTool ToolTipService.ToolTip="{Binding View_PrintLayout, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1DraftViewLargeTool ToolTipService.ToolTip="{Binding View_Draft, Source={StaticResource RichTextBoxToolbarResources}}" />
                                
                            </c1tb:C1ToolbarGroup>

                            <c1tb:C1ToolbarGroup MaxHeight="100" Header="{Binding Path=View_Zoom, Source={StaticResource RichTextBoxToolbarResources}}">
                                <c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                    <c1tb:C1ToolbarGroupSizeDefinition>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                        <c1tb:C1ToolbarControlSize>Large</c1tb:C1ToolbarControlSize>
                                        <c1tb:C1ToolbarControlSize>Small</c1tb:C1ToolbarControlSize>
                                        <c1tb:C1ToolbarControlSize>Small</c1tb:C1ToolbarControlSize>
                                        <c1tb:C1ToolbarControlSize>Small</c1tb:C1ToolbarControlSize>
                                    </c1tb:C1ToolbarGroupSizeDefinition>
                                </c1tb:C1ToolbarGroup.GroupSizeDefinitions>
                                <c1rtbtb:C1ZoomInTool ToolTipService.ToolTip="{Binding Tools_ZoomIn, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1ZoomOutTool ToolTipService.ToolTip="{Binding Tools_ZoomOut, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1Zoom100PercentTool ToolTipService.ToolTip="{Binding Tools_Zoom100PercentTool, Source={StaticResource RichTextBoxToolbarResources}}" />
                                <c1rtbtb:C1OnePageTool ToolTipService.ToolTip="{Binding View_OnePage, Source={StaticResource RichTextBoxToolbarResources}}" HorizontalAlignment="Left" />
                                <c1rtbtb:C1TwoPagesTool ToolTipService.ToolTip="{Binding View_TwoPages, Source={StaticResource RichTextBoxToolbarResources}}" HorizontalAlignment="Left" />
                                <c1rtbtb:C1FitWidthTool ToolTipService.ToolTip="{Binding View_FitWidth, Source={StaticResource RichTextBoxToolbarResources}}" HorizontalAlignment="Left" />
                            </c1tb:C1ToolbarGroup>
                            
                        </c1tb:C1ToolbarTabItem>
                    </c1tb:C1Toolbar>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="ContentControl" x:Key="DropDownContent">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <Rectangle RadiusX="2" RadiusY="2" Fill="{TemplateBinding Background}" />
                        <c1:SmallShapePresenter>
                            <Path Margin="1,4,1,1" VerticalAlignment="Stretch" Stretch="Fill" StrokeThickness="1" Data="M97.5,3.02317 L97.5,46.713001 C97.5,46.713001 97.510521,48.713001 97.510521,48.713001 L0.51441199,48.713001 C0.50036031,47.842781 0.49999982,46.950779 0.5,46.056 C0.49999982,20.896116 40.5,2.9937413 97.5,3.02317 z" d:LayoutOverrides="GridBox" Opacity="0.85">
                                <Path.Fill>
                                    <RadialGradientBrush GradientOrigin="0.7,0.7">
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleY="1.887" ScaleX="1.78" />
                                                <SkewTransform CenterX="0.5" CenterY="0.5" />
                                                <RotateTransform CenterX="0.5" CenterY="0.5" />
                                                <TranslateTransform Y="0.4" X="0.4" />
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#07000000" />
                                        <GradientStop Color="#0F000000" Offset="1" />
                                    </RadialGradientBrush>
                                </Path.Fill>
                            </Path>
                        </c1:SmallShapePresenter>
                        <ContentPresenter Content="{TemplateBinding Content}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FontFamilyTool" BasedOn="{StaticResource C1ComboBoxStyle}">
        <Setter Property="Width" Value="111" />
        <Setter Property="Height" Value="22" />
        <Setter Property="Margin" Value="0 4 0 3" />
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Grid.Resources>
                            <c1rtbtb:FontFamilyConverter x:Key="converter" />
                        </Grid.Resources>
                        <TextBlock Text="{Binding Converter={StaticResource converter}}" FontFamily="{Binding}" VerticalAlignment="Center" Margin="2" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FontSizeTool" BasedOn="{StaticResource C1ComboBoxStyle}">
        <Setter Property="Width" Value="40" />
        <Setter Property="Height" Value="22" />
        <Setter Property="IsEditable" Value="True" />
        <Setter Property="Margin" Value="0 4 0 3" />
    </Style>

    <Style x:Key="ArrowStyle" TargetType="Path">
        <Setter Property="Fill">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF43637C" />
                    <GradientStop Color="#FF2C475C" Offset="1" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Width" Value="5" />
        <Setter Property="Height" Value="3" />
    </Style>

    <Style TargetType="c1rtbtb:C1IncreaseFontSizeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="Height" Value="20" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Height="13" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <TextBlock FontFamily="Times New Roman" Foreground="Black" FontSize="15" Text="A" Margin="0 0 -2 0" TextWrapping="Wrap" FontWeight="Bold" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" />
                        <Path HorizontalAlignment="Right" VerticalAlignment="Top" Stretch="Fill" StrokeThickness="1" Data="M0,0 L5,0 L2.5,-0.43323728 L2.5,-0.43751192 z" Style="{StaticResource ArrowStyle}" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1DecreaseFontSizeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="Height" Value="20" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Height="13" Width="17" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Bottom">
                        <TextBlock Text="A" Foreground="Black" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="9" FontWeight="Bold" TextAlignment="Center" Margin="4,3,-1,0" />
                        <Path HorizontalAlignment="Right" VerticalAlignment="Top" Stretch="Fill" StrokeThickness="1" Data="M0,0 L5,0 L2.5,3 L2.5,3 z" Margin="0" Style="{StaticResource ArrowStyle}" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1BoldTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Foreground="Black" Text="{Binding Path=Font_BoldInitial, Source={StaticResource RichTextBoxToolbarResources}}" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="13" FontWeight="Bold" TextAlignment="Center" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ItalicTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Foreground="Black" Text="{Binding Path=Font_ItalicInitial, Source={StaticResource RichTextBoxToolbarResources}}" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="13" FontWeight="Normal" FontStyle="Italic" TextAlignment="Left" Margin="4 0 6 0" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1UnderlineTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Foreground="Black" Text="{Binding Path=Font_UnderlineInitial, Source={StaticResource RichTextBoxToolbarResources}}" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="13" FontWeight="Normal" TextDecorations="Underline" TextAlignment="Left" Margin="4 0 3 0" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1StrikethroughTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <TextBlock Foreground="Black" Text="{Binding Path=Font_StrikethroughInitial, Source={StaticResource RichTextBoxToolbarResources}}" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="13" FontWeight="ExtraLight" VerticalAlignment="Center" TextAlignment="Left" Margin="4 0 3 0" />
                        <Line X1="4" Y1="10" X2="22" Y2="10" StrokeThickness="1" Stroke="Black" />                        
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FormatPainterTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="16" Width="16">
                        <Path Data="M7.4171519,5.6968203 L5.9697661,6.0132909 L4.7442551,7.2922525 L3.0056367,8.0297527 L2.4849195,9.6563511 L5.9464121,13.221107 L7.0963049,13.586586 L7.512547,13.314686 L10.00655,10.708601 L11.078279,10.029639 z" Fill="White" Margin="2.5,5.5,4.5,2.5" Stretch="Fill" />
                        <Path Data="M6.4797058,5.4606853 L11.584419,10.601841 L13.589431,8.4869881 L13.224961,7.2471957 L12.495901,6.5542588 L15.485611,3.4184258 L14.53784,2.5064814 L11.474932,5.6426215 L9.0683613,3.0900373 z" Margin="6.479,2.507,0.514,5.398" Stretch="Fill" Stroke="#FFED2E03" StrokeThickness="0">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.027,0.849" StartPoint="0.994,0.844">
                                    <GradientStop Color="#FF6E7DBD" Offset="0.377" />
                                    <GradientStop Color="#FFECEEF6" Offset="0.708" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path Data="M3.0025091,5.0024648 L4.0031223,5.0024648 L4.0031223,6.0019021 L3.0025091,6.0019021 z M8.9824791,4.0173316 L9.9830914,4.0173316 L9.9830914,5.0167689 L8.9824724,5.0167608 z M5.0274239,6.9950528 L4.9874325,7.0156364 L6.9812489,7.0156364 L6.9812555,6.0162072 L7.9818602,6.0161991 L7.9818668,5.0167694 L8.9825144,5.0167694 L8.98248,6.0162072 L7.9819012,6.0162072 L7.9818668,7.0156446 L6.9836521,7.0156446 L6.9836521,8.0148668 L4.9840159,8.0148668 L4.9840159,7.0156446 L5.0037346,7.0074997 L4.9960556,7.0013399 L4.0031223,7.0013399 L4.0031223,6.0019021 L5.0037346,6.0019021 C5.0037346,6.0019021 5.0274239,6.9950528 5.0274239,6.9950528 z M3.0025091,5.0024648 L2.0018966,5.0024648 L2.0018966,4.003027 L2.9969082,4.003027 C2.9969082,4.003027 3.0025091,5.0024648 3.0025091,5.0024648 z M0,0.99943745 L1.0006127,0.99943745 L1.0006127,1.9988749 L2.0012255,1.9988749 L2.0012255,3.9977503 L1.0006127,3.9977503 L1.0006127,2.998312 L0,2.998312 z M4.0024443,0.99942958 L4.00245,1.9988749 L3.0018375,1.9988749 L2.0012197,1.998867 L2.0012255,0.99943745 L3.0018375,0.99943745 z M4.00245,0 L5.0030627,0 L5.0030627,0.99943745 L4.00245,0.99943745 z" Fill="#FF676256" Margin="1,6,5,2" RenderTransformOrigin="0.85574996471405,0.622015951186498" Stretch="Fill" StrokeThickness="0" />
                        <Path Data="M8.017561,8.0086699 L9.017561,8.0086699 L9.017561,9.0086699 L8.017561,9.0086708 L8.017561,10.008669 L7.0175614,10.008669 L7.0175614,9.0086699 L8.017561,9.0086699 z M9.0135155,5.993434 L9.9356003,5.993434 L9.9356003,8.0089235 L9.0135155,8.0089235 z M7.9999995,5 L8.999999,5 L8.999999,6 L7.9999995,6 z M8.999999,4 L9.999999,4 L9.999999,5 L8.999999,5 z M9.999999,3 L10.999999,3 L10.999999,4 L9.999999,4 z M6.0270786,3.027128 L7.0270786,3.027128 L7.027091,4.0271282 L6.027091,4.0271282 z M9.999999,1.0000001 L10.999999,1.0000001 L10.999999,2 L9.999999,2 z M7.027091,2.0271285 L8.0270786,2.0271285 L8.027091,3.027128 L7.027091,3.027128 z M5.027091,2.0271285 L6.027091,2.0271285 L6.027091,3.027128 L5.027091,3.027128 z M2.0270913,2.0271285 L3.0270913,2.0271285 L3.0270913,3.027128 L2.0270793,3.027128 L2.0270915,4.0271282 L1.0270916,4.0271282 L1.0270916,3.027128 L2.0270913,3.027128 z M8.999999,0 L9.999999,0 L9.999999,1.0000001 L8.999999,1.0000001 z M8.027091,1.0271282 L9.027092,1.0271282 L9.027092,2.0271285 L8.027091,2.0271285 z" Margin="6,1,0,5" Stretch="Fill" StrokeThickness="0" Fill="#66495161" />
                        <Path Data="M7.9918761,9.0000067 L8.991889,9 L8.9919157,10.000007 L7.9918704,10 z M5.0001984,9 L6.0002379,9 L6.0002379,9.9920006 L7.891994,9.9920006 L7.8919997,10.000007 L7.9918551,10.000007 L7.9918761,11.000007 L6.9918308,11 L6.9918365,10.992007 L7.000277,10.992001 L7.000277,11 L6.0002375,11 L6.0002375,10.992001 L5.8930049,10.992001 L5.8930049,10 L5.0001984,10 z M8.9919157,8.0000067 L9.9919291,8 L9.9919558,9.0000067 L8.9919157,9.0000067 z M4.0001588,8 L5.0001984,8 L5.0001984,9 L4.0001588,9 z M9.9919558,7.0000067 L10.991995,7.0000067 L10.991995,8.0000067 L9.9919558,8.0000067 z M3.0001192,7 L4.0001588,7 L4.0001588,8 L3.0001192,8 z M2.0000792,6 L3.0001187,6 L3.0001187,7 L2.0000792,7 z M1.0000396,5 L2.0000792,5 L2.0000792,6 L1.0000396,6 z M9.6805388E-07,1.9844396 L1.0000396,1.9844396 L1.0000396,5 L0,5 L9.6805388E-07,1.9844396 z M1.9995008,2.9843149 L2.9995408,2.9843185 L2.9995408,3.9843183 L1.9995008,3.9843183 z M3.9995809,1.9843183 L4.9996209,1.9843147 L4.9996209,2.9843185 L3.9995809,2.9843185 z M0.99946147,1.9843183 L1.9995008,1.9843183 L1.9995008,2.9843185 L0.99946147,2.9843185 z M4.9996209,0.98431832 L5.9996605,0.98431832 L5.9996605,1.9843183 L4.9996209,1.9843183 z" Fill="#7F676256" Margin="0,5,5,1" Stretch="Fill" StrokeThickness="0" />
                        <Path Data="M4.9510961,7.9913211 L5.9865203,7.9913206 L6.0027685,8.991437 L4.9673443,8.991437 z M6.0027685,6.9912171 L7.0042872,6.9912105 L7.0028787,7.9913273 L6.0027685,7.9913273 z M3.9733374,6.973671 L4.9734478,6.973671 L4.9734478,7.9737806 L3.9733374,7.9737806 z M6.9689736,4.9909921 L7.9690828,4.9909992 L7.9690828,6.9912171 L6.9866281,6.9912171 z M2.973227,5.9735622 L3.9733374,5.9735622 L3.9733374,6.973671 L2.973227,6.973671 z M2.0002205,4.9734526 L2.973227,4.9734526 L2.973227,5.9735622 L1.9731165,5.9735622 L1.9731165,5.0005841 L2.0002205,5.0005841 z M1.0001101,4.0004749 L2.0002205,4.0004749 L2.0002205,4.9734526 L1.9731165,4.9734526 L1.9731165,5.0005841 L1.0001101,5.0005841 z M6.000576,3.9733431 L6.9736691,3.9733431 L6.9736691,4.9734526 L5.9735584,4.9734526 L5.9735584,4.0004377 L6.000576,4.0004377 z M0,3.0003648 L1.0000629,3.0003648 L1.0000629,4.0004749 L0,4.0004749 z M7.0006862,2.9732337 L7.9737792,2.9732337 L7.9737792,3.9733431 L6.9736691,3.9733431 L6.9736691,3.0003285 L7.0006862,3.0003285 z M1.0001101,2.0002551 L2.0001733,2.0002551 L2.0002205,3.0003648 L1.0001101,3.0003648 z M8.0007982,1.9731245 L8.9738894,1.9731245 L8.9738894,2.9732337 L7.9737792,2.9732337 L7.9737792,2.0002186 L8.0007982,2.0002186 z M2.0002205,1.000146 L3.0003312,1.000146 L4.0004416,1.000146 L4.0004416,1.9739991 L4.973999,1.9739991 L4.973999,2.973999 L3.9739993,2.973999 L3.9739993,2.0003293 L3.0003312,2.0002551 L2.0002205,2.0002551 z M9.0009079,0.97301483 L9.974,0.97301483 L9.974,1.9731245 L8.9738894,1.9731245 L8.9738894,1.0001094 L9.0009079,1.0001094 z M8.0007982,0 L9.0009079,0 L9.0009079,0.97301483 L8.9738894,0.97301483 L8.9738894,1.0001094 L8.0007982,1.0001094 L8.0007982,1.9731245 L7.9737792,1.9731245 L7.9737792,2.0002186 L7.0006862,2.0002186 L7.0006862,2.9732337 L6.9736691,2.9732337 L6.9736691,3.0003285 L6.000576,3.0003285 L6.000576,3.9733431 L5.9735584,3.9733431 L5.9735584,4.0004377 L5.0004654,4.0004377 L5.0004654,3.0002527 L6.000576,3.0002913 L6.000576,2.0002186 L7.0006862,2.0001814 L7.0006862,1.0001094 L8.0007982,1.0000724 z" Fill="#FF495161" Margin="6,2,0,5" Stretch="Fill" StrokeThickness="0" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ChangeCaseTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="AutoClose" Value="true" />
        <Setter Property="Height" Value="20" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="Aa" Foreground="Black" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="12" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="0" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1DeleteTableTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="AutoClose" Value="true" />
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2 4 2 2">
                            <Rectangle Fill="White" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,15,0,0" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF5F5F5F" d:IsLocked="True" />
                            <Path Stretch="Fill" Fill="#FFE00000" Margin="12.668,7.73,2.638,5.694" Data="M13.29814,17.769862 C13.215954,17.260277 15.870335,14.878496 17.794768,13.015714 15.605942,11.436501 12.627163,9.9828693 12.570499,9.5829261 12.513834,9.1829829 14.448971,7.6622397 14.752698,7.7361008 15.056424,7.8099619 17.195276,10.076479 19.087669,11.899095 20.808424,10.330598 22.893677,8.3194068 23.739053,7.6828239 24.005107,7.6777645 24.283074,7.4754317 24.208335,8.0749482 24.133595,8.6744647 21.698354,11.311067 20.603296,13.114838 21.750345,14.26181 25.579167,17.069394&#xD;&#xA;25.31862,17.572564 25.058073,18.075733 21.71489,15.917802 19.525706,14.499435 17.984065,16.540747 16.371911,19.178449 15.967459,19.376477 15.563008,19.574504 13.380326,18.279446 13.29814,17.769862 z" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Delete, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1SelectTableTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="AutoClose" Value="true" />
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="25" VerticalAlignment="Center" Margin="4">
                            <Path Fill="White" Width="18" Stroke="#FF6F798C" Stretch="Fill" Data="M0,0 L18,14.674575 9.1394555,14.658301 13.9767,22.785701 9.6997159,25 5.6389852,16.028887 0,21.780266 z" HorizontalAlignment="Left" Margin="6,0,0,0" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Select, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 5 0 0" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="c1rtbtb:C1BorderTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="AutoClose" Value="true" />
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Width="19" Height="19" Margin="2 0 0 0">
                        <Border Visibility="{Binding Selected, Converter={StaticResource boolToVisibility}}" />
                        <Grid Margin="3">
                            <Canvas>
                                <Line X1="0.5" Y1="0" X2="0.5" Y2="12" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" />
                                <Line X1="0" Y1="0.5" X2="12" Y2="0.5" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" />
                                <Line X1="12.5" Y1="0" X2="12.5" Y2="13" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" />
                                <Line X1="0" Y1="12.5" X2="12" Y2="12.5" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" />

                                <Line X1="0" Y1="6.5" X2="12" Y2="6.5" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" />
                                <Line X1="6.5" Y1="0" X2="6.5" Y2="12" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" />

                                <Line X1="0.5" Y1="0" X2="0.5" Y2="12" Stroke="Black" StrokeThickness="1" Visibility="{Binding Left, Converter={StaticResource boolToVisibility}}" />
                                <Line X1="0" Y1="0.5" X2="12" Y2="0.5" Stroke="Black" StrokeThickness="1" Visibility="{Binding Top, Converter={StaticResource boolToVisibility}}" />
                                <Line X1="12.5" Y1="0" X2="12.5" Y2="13" Stroke="Black" StrokeThickness="1" Visibility="{Binding Right, Converter={StaticResource boolToVisibility}}" />
                                <Line X1="0" Y1="12.5" X2="12" Y2="12.5" Stroke="Black" StrokeThickness="1" Visibility="{Binding Bottom, Converter={StaticResource boolToVisibility}}" />

                                <Line X1="0" Y1="6.5" X2="13" Y2="6.5" Stroke="Black" StrokeThickness="1" Visibility="{Binding Horizontal, Converter={StaticResource boolToVisibility}}" />
                                <Line X1="6.5" Y1="0" X2="6.5" Y2="13" Stroke="Black" StrokeThickness="1" Visibility="{Binding Vertical, Converter={StaticResource boolToVisibility}}" />
                            </Canvas>
                        </Grid>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1SuperscriptTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="X" Foreground="Black" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="12" FontWeight="Bold" Margin="3,2,0,0" />
                        <TextBlock Text="2" Foreground="Black" TextWrapping="Wrap" FontSize="7" FontFamily="Times New Roman" HorizontalAlignment="Right" VerticalAlignment="Stretch" Margin="0,0,1,5" FontWeight="Normal" d:LayoutOverrides="Height" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1SubscriptTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Foreground="Black" FontFamily="Times New Roman" FontSize="12" Text="X" TextWrapping="Wrap" FontWeight="Bold" TextAlignment="Left" Margin="2,1,0,0" />
                        <TextBlock Foreground="Black" Text="2" TextWrapping="Wrap" FontSize="7" FontFamily="Times New Roman" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontWeight="Normal" Margin="0 0 2 0" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="Border" x:Key="ColorToolBrushBorder">
        <Setter Property="Width" Value="16" />
        <Setter Property="Height" Value="4" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
    </Style>

    <Style TargetType="ListBox" x:Key="ColorListStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <Grid>
                        <ContentControl Style="{StaticResource DropDownContent}">
                            <ItemsPresenter />
                        </ContentControl>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border BorderThickness="1" BorderBrush="DarkGray" Background="{Binding}" Height="11" Width="11" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <c1:C1WrapPanel Margin="2" Width="150" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="ListBoxItem">
                    <Setter Property="Padding" Value="0" />
                    <Setter Property="Margin" Value="2" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ListBoxItem">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="Disabled" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="mouseOverRect" Storyboard.TargetProperty="Visibility" Duration="0">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                                    <Rectangle x:Name="mouseOverRect" IsHitTestVisible="False" Visibility="Collapsed" Stroke="Orange" StrokeThickness="1" Width="11" Height="11" />
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ColorTool" TargetType="c1rtbtb:C1ColorTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Style="{StaticResource DropDownContent}">
                        <ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding Selection, Mode=TwoWay}" Style="{StaticResource ColorListStyle}" />
                    </ContentControl>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="AutoClose" Value="True" />
    </Style>

    <Style x:Key="ColorToolButton" TargetType="c1tb:C1ToolbarToggleButton" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="Padding" Value="0" />
    </Style>

    <Style TargetType="c1rtbtb:C1FontColorTool" BasedOn="{StaticResource ColorTool}">
        <Setter Property="Brush" Value="Brown" />
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <c1tb:C1ToolbarToggleButton IsChecked="{Binding IsChecked, Mode=TwoWay}" Style="{StaticResource ColorToolButton}">
                        <StackPanel Width="20">
                            <TextBlock Foreground="#FF30366E" FontFamily="Times New Roman" FontSize="14" Text="A" FontWeight="Bold" VerticalAlignment="Top" Margin="5 0 0 -4" />
                            <Border Style="{StaticResource ColorToolBrushBorder}" Background="{Binding LastSelection}" />
                        </StackPanel>
                    </c1tb:C1ToolbarToggleButton>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1TextHighlightTool" BasedOn="{StaticResource ColorTool}">
        <Setter Property="Brush" Value="Blue" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <c1tb:C1ToolbarToggleButton IsChecked="{Binding IsChecked, Mode=TwoWay}" Style="{StaticResource ColorToolButton}">
                        <Grid Height="16">
                            <Border Background="#FFFEFF61" VerticalAlignment="Top" HorizontalAlignment="Left" Height="9">
                                <TextBlock Text="ab" Foreground="Black" TextWrapping="Wrap" FontSize="9" VerticalAlignment="Center" Margin="0,-1,0,0" />
                            </Border>
                            <Border Style="{StaticResource ColorToolBrushBorder}" Background="{Binding LastSelection}" />
                            <Path Stretch="Fill" HorizontalAlignment="Right" Margin="0,2,1,7" Width="7" Height="7" Data="M5,0 L7,0 7,2 6,2 6,4 4.895,4 4,4 4,5 3,5 3,7 0,7 0,5 0,4 0,3 1.87,3 1.87,1.947 3,1.947 3,1 5,1 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.292,0.333" StartPoint="0.649,0.683">
                                        <GradientStop Color="#FF959BCD" />
                                        <GradientStop Color="White" Offset="0.701" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" HorizontalAlignment="Left" Margin="4,1,0,5" Width="12" Data="M0,8 L0.99999994,8 0.99999994,8.9999999 5,8.9999999 5,10 0,10 0,8.9999999 z M6,7 L7,7 7,7.9999998 6,7.9999998 z M4,7 L5,7 5,7.9999998 6,7.9999998 6,8.9999999 5,8.9999999 5,8 4,8 z M0.99999994,7 L2,7 2,8 0.99999994,8 z M7,6 L8,6 8,7 7,7 z M8,5 L9,5 9,6 8,6 z M3,5 L4,5 4,6 4,7 3,7 2,7 2,6 3,6 z M9,4 L10,4 10,5 9,5 z M4.8699999,3 L5.8699999,3 5.8699999,4 5,4 5,5 4,5 4,4 4.8699999,4 z M6,2.0029998 L7,2.0029998 7,3.0029998 6,3.0029998 z M7,1.0029998 L8,1.0029998 9,1.0029998 9,2.0029998 8,2.0029998 7,2.0029998 z M11,1 L12,1 12,3.0029998 11,3.0029998 11,4 10,4 10,3.0029998 9,3.0029998 9,2.0029998 10,2.0029998 10,3 11,3 z M8,0 L11,0 11,1 8,1 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.137,0.978" StartPoint="0.71,0.012">
                                        <GradientStop Color="#FF322C25" Offset="0.799" />
                                        <GradientStop Color="#FF8B8061" Offset="1" />
                                        <GradientStop Color="#FF39485F" Offset="0.746" />
                                        <GradientStop Color="#FF4A5E7E" Offset="0.169" />
                                        <GradientStop Color="#FF7684AD" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" Margin="5,0,7,6" VerticalAlignment="Bottom" Height="2" Data="M1,0 L3,0 3,1 4,1 4,2 3,2 1,2 0,2 0,1 1,1 z" Width="4" Fill="#FFFAF2B1" />
                            <Path Stretch="Fill" Margin="6,1,0,5" Data="M3,9 L4,9 4,10 3,10 z M4,8 L5,8 5,9 4,9 z M5,7 L6,7 6,8 5,8 z M6,5.9999999 L7,5.9999999 7,7 6,7 z M7,5 L8,5 8,5.9999999 7,5.9999999 z M1.0000001,4.014 L2,4.014 2,5.0139999 1.0000001,5.0139999 1.0000001,5.9999999 0,5.9999999 0,5 1.0000001,5 z M9,3.0140001 L10,3.0140001 10,4.014 9,4.014 9,5 8,5 8,4.0000001 9,4.0000001 z M2,3.0140001 L3,3.0140001 3,4.014 2,4.014 z M3,2 L4,2 4,3 3,3 z M4,1 L5,1 5,2 4,2 z M9,0 L10,0 10,1 9,1 z M5,0 L6,0 6,1 5,1 z" Width="10" Height="10" Opacity="0.4">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.137,0.978" StartPoint="0.71,0.012">
                                        <GradientStop Color="#FF39485F" Offset="1" />
                                        <GradientStop Color="#FF4A5E7E" Offset="0.169" />
                                        <GradientStop Color="#FF7684AD" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                        </Grid>
                    </c1tb:C1ToolbarToggleButton>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1LeftAlignTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Grid.Column="0" Width="12">
                        <Path Height="1" HorizontalAlignment="Left" Margin="-0.5,0,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Left" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="-0.5,2,3,0" />
                        <Path Height="1" HorizontalAlignment="Left" Margin="-0.5,4,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Left" Margin="-0.5,8,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Left" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="-0.5,6,3,0" />
                        <Path Height="1" HorizontalAlignment="Left" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="-0.5,10,3,0" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1CenterAlignTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Width="13" Height="12">
                        <Path Height="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="-0.5,0,-0.5,0" />
                        <Path Height="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="1.5,2,1.5,0" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,4,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,8,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="1.5,6,1.5,0" />
                        <Path Height="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="1.5,10,1.5,0" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1RightAlignTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Width="12">
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,0,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="3,2,-0.5,0" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,4,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,8,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Right" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="3,6,-0.5,0" />
                        <Path Height="1" HorizontalAlignment="Right" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="3,10,-0.5,0" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1TopAlignTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Width="18" Height="18">
                        <Rectangle Fill="White" Stroke="#FF5F5F5F" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,3,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,9,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1VerticalCenterAlignTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Width="18" Height="18">
                        <Rectangle Fill="White" Stroke="#FF5F5F5F" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,0,0,8" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,0,0,11" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,0,0,5" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1BottomAlignTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Width="18" Height="18">
                        <Rectangle Fill="White" Stroke="#FF5F5F5F" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,3,0,3" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,9,0,6" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                        <Line X1="0" Y1="0.5" X2="10" Y2="0.5" Stroke="Black" StrokeThickness="1" Margin="4,6,0,9" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1JustifyTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Width="12">
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,0,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,2,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,4,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,6,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,8,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,10,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ShowGridlinesTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="85">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="1">
                            <Rectangle Fill="White" Stroke="#FF5F5F5F" Height="25" />
                            <Line X1="0.5" Y1="0" X2="0.5" Y2="22" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" Margin="4,2,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                            <Line X1="0.5" Y1="0" X2="0.5" Y2="18" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" Margin="12,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                            <Line X1="0.5" Y1="0" X2="0.5" Y2="18" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" Margin="20,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                            <Line X1="0" Y1="0.5" X2="25" Y2="0.5" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" Margin="2,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                            <Line X1="0" Y1="0.5" X2="23" Y2="0.5" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" Margin="4,12,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                            <Line X1="0" Y1="0.5" X2="23" Y2="0.5" Stroke="#FF808080" StrokeThickness="1" StrokeDashArray="1 1" Margin="4,18,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Gridlines, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 8 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1BulletsTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Width="12" Margin="2">
                        <Path Height="1" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3,4.4 L11.5,4.4" Margin="4,1,-0.5,0" />
                        <Path Height="1" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3,4.4 L11.5,4.4" Margin="4,5,-0.5,0" />
                        <Path Height="1" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3,4.4 L11.5,4.4" Margin="4,9,-0.5,0" />
                        <Ellipse Height="3" HorizontalAlignment="Left" VerticalAlignment="Top" Width="3" Fill="#FF2C4E64" StrokeThickness="1" />
                        <Ellipse Height="3" HorizontalAlignment="Left" Margin="0,4,0,0" VerticalAlignment="Top" Width="3" Fill="#FF2C4E64" StrokeThickness="1" />
                        <Ellipse Height="3" HorizontalAlignment="Left" Margin="0,8,0,0" VerticalAlignment="Top" Width="3" Fill="#FF2C4E64" StrokeThickness="1" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1NumberingTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Width="12" Margin="2">
                        <Path Height="1" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="3,1,-0.5,0" />
                        <Path Height="1" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="3,5,-0.5,0" />
                        <Path Height="1" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" Margin="3,9,-0.5,0" />
                        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="1" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="5" Foreground="#FF2C4E64" FontWeight="Bold" Margin="0,-1,0,0" />
                        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="2" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="5" FontWeight="Bold" Foreground="#FF2C4E64" Margin="0,3,0,0" />
                        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="3" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="5" FontWeight="Bold" Foreground="#FF2C4E64" Margin="0,7,0,0" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1TextWrappingTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="W" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="11" FontWeight="Bold" TextAlignment="Left" Margin="3 0" Height="12.6" Width="11" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ThicknessTool" TargetType="c1rtbtb:C1ThicknessTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="AutoClose" Value="true" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Style="{StaticResource DropDownContent}">
                        <c1rtbtb:C1ThicknessPicker Thickness="{Binding Thickness, Mode=TwoWay}" />
                    </ContentControl>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1BorderThicknessTool" BasedOn="{StaticResource ThicknessTool}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Width="12" Height="12" Margin="4">
                        <Rectangle Stroke="#FF000000" StrokeThickness="1" />
                        <Rectangle Stroke="#FFBFCCD2" StrokeThickness="1" HorizontalAlignment="Stretch" Margin="1,1,1,1" VerticalAlignment="Stretch" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1BorderColorTool" BasedOn="{StaticResource ColorTool}">
        <Setter Property="Brush" Value="Black" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <c1tb:C1ToolbarToggleButton IsChecked="{Binding IsChecked, Mode=TwoWay}" Style="{StaticResource ColorToolButton}">
                        <StackPanel>
                            <Border BorderBrush="#FF000000" BorderThickness="1" Width="9" Height="9" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0 0 0 1">
                                <Border BorderBrush="#FFBFCCD2" BorderThickness="1" />
                            </Border>
                            <Border Style="{StaticResource ColorToolBrushBorder}" Background="{Binding LastSelection}" />
                        </StackPanel>
                    </c1tb:C1ToolbarToggleButton>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ParagraphColorTool" BasedOn="{StaticResource ColorTool}">
        <Setter Property="Brush" Value="White" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <c1tb:C1ToolbarToggleButton IsChecked="{Binding IsChecked, Mode=TwoWay}" Style="{StaticResource ColorToolButton}">
                        <StackPanel>
                            <Grid Width="16" Height="10" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="2 0 0 2">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Rectangle Grid.RowSpan="1" Stroke="#FF000000" StrokeThickness="0.8" Height="7.735" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.5" RadiusY="0.779" RadiusX="0.779" Margin="2.78200006484985,0,6.58900022506714,0.119999997317791">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0.32600000500679,0.625999987125397" StartPoint="1.01699995994568,0.939000010490417">
                                            <GradientStop Color="#FF474747" />
                                            <GradientStop Color="#FFFFFFFF" Offset="1" />
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                    <Rectangle.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform />
                                            <SkewTransform />
                                            <RotateTransform Angle="28.712" />
                                            <TranslateTransform />
                                        </TransformGroup>
                                    </Rectangle.RenderTransform>
                                </Rectangle>
                                <Path HorizontalAlignment="Left" Margin="4,0,0,5" Width="2.904" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0.5" Data="M6.4472213,4.834681 C5.801115,1.8571179 5.7762947,0.21843141 4.7837062,0.36504692 C3.640707,0.44065803 4.1371431,2.0045183 4.2387977,2.9719274" d:LayoutOverrides="Width" />
                                <Path HorizontalAlignment="Right" Margin="1,2.3840000629425,3.85999989509583,2.05999994277954" VerticalAlignment="Stretch" Width="3.783" Fill="#FF3B3B3B" Stretch="Fill" StrokeThickness="0.5" Data="M8.5925159,3.0671666 C8.5925159,3.0671666 11.678675,1.4882201 11.86054,4.5367002 C12.044681,7.6232948 10.654559,7.7150779 10.654559,7.7150779 L10.372715,4.7965565 L10.24098,4.1545858 z" d:LayoutOverrides="Width" />
                                <Ellipse HorizontalAlignment="Left" Margin="5.67600011825562,4.48699998855591,0,3.89000010490417" VerticalAlignment="Stretch" Width="1.624" Fill="#FF000000" StrokeThickness="0.5" d:LayoutOverrides="Width" />
                            </Grid>
                            <Border Style="{StaticResource ColorToolBrushBorder}" Background="{Binding LastSelection}" />
                        </StackPanel>
                    </c1tb:C1ToolbarToggleButton>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1MarginTool" BasedOn="{StaticResource ThicknessTool}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="13" Width="13" Margin="4,0,4,0">
                        <Rectangle Stroke="#FF000000" StrokeThickness="1" Width="9" Height="9" />
                        <Path Data="M12,12 L13,12 L13,13 L12,13 z M10,12 L11,12 L11,13 L10,13 z M8,12 L9,12 L9,13 L8,13 z M6,12 L7,12 L7,13 L6,13 z M4,12 L5,12 L5,13 L4,13 z M2,12 L3,12 L3,13 L2,13 z M0,12 L1,12 L1,13 L0,13 z M12,10 L13,10 L13,11 L12,11 z M0,10 L1,10 L1,11 L0,11 z M12,8 L13,8 L13,9 L12,9 z M0,8 L1,8 L1,9 L0,9 z M12,6 L13,6 L13,7 L12,7 z M0,6 L1,6 L1,7 L0,7 z M12,4 L13,4 L13,5 L12,5 z M0,4 L1,4 L1,5 L0,5 z M12,2 L13,2 L13,3 L12,3 z M0,2 L1,2 L1,3 L0,3 z M12,0 L13,0 L13,1 L12,1 z M10,0 L11,0 L11,1 L10,1 z M8,0 L9,0 L9,1 L8,1 z M6,0 L7,0 L7,1 L6,1 z M4,0 L5,0 L5,1 L4,1 z M2,0 L3,0 L3,1 L2,1 z M0,0 L1,0 L1,1 L0,1 z" Fill="#FF5A719D" Stretch="Fill" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1PaddingTool" BasedOn="{StaticResource ThicknessTool}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="13" Width="13" Margin="4,0,4,0">
                        <Rectangle Stroke="#FF000000" StrokeThickness="1" />
                        <Path Fill="#FF5A719D" Stretch="Fill" Margin="2" Data="M8.0000001,8.0000001 L9.0000001,8.0000001 9.0000001,9.0000001 8.0000001,9.0000001 z M6.0000001,8.0000001 L7.0000001,8.0000001 7.0000001,9.0000001 6.0000001,9.0000001 z M4.0000001,8.0000001 L5.0000001,8.0000001 5.0000001,9.0000001 4.0000001,9.0000001 z M2.0000001,8.0000001 L3.0000001,8.0000001 3.0000001,9.0000001 2.0000001,9.0000001 z M0,8.0000001 L1.0000001,8.0000001 1.0000001,9.0000001 0,9.0000001 z M8.0000001,6.0000001 L9.0000001,6.0000001 9.0000001,7.0000001 8.0000001,7.0000001 z M0,6.0000001 L1.0000001,6.0000001 1.0000001,7.0000001 0,7.0000001 z M8.0000001,4.0000001 L9.0000001,4.0000001 9.0000001,5.0000001 8.0000001,5.0000001 z M0,4.0000001 L1.0000001,4.0000001 1.0000001,5.0000001 0,5.0000001 z M8.0000001,2.0000001 L9.0000001,2.0000001 9.0000001,3.0000001 8.0000001,3.0000001 z M0,2.0000001 L0.99999994,2.0000001 0.99999994,3.0000001 0,3.0000001 z M8.0000001,0 L9.0000001,0 9.0000001,1.0000001 8.0000001,1.0000001 z M6.0000001,0 L7.0000001,0 7.0000001,1.0000001 6.0000001,1.0000001 z M4.0000001,0 L5.0000001,0 5.0000001,1.0000001 4.0000001,1.0000001 z M2.0000001,0 L3.0000001,0 3.0000001,1.0000001 2.0000001,1.0000001 z M0,0 L0.99999994,0 0.99999994,1.0000001 0,1.0000001 z" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertImageTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="#FF000000" Width="13" Height="11" StrokeThickness="0.5" />
                        <Rectangle Fill="#FFFFFFFF" Width="10" Height="8" StrokeThickness="0.5" d:LayoutOverrides="Width" />
                        <Ellipse StrokeThickness="1" Width="4" Height="4" Margin="0,0,4,3">
                            <Ellipse.Fill>
                                <RadialGradientBrush>
                                    <GradientStop Color="#FF767676" />
                                    <GradientStop Color="#FF282828" Offset="1" />
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Path Stretch="Fill" StrokeThickness="1" Data="M9.4429855,14.213575 C9.6901455,13.383169 10.862362,13.966991 11.312727,14.080917 C12.067366,14.271813 12.200203,14.353806 12.884513,14.162294 C13.52421,13.983269 14.675643,11.753579 15.498102,11.265327 C16.12657,10.892239 16.52597,11.083656 16.52597,11.083656 L16.539869,15.578197 L9.4436493,15.590508" Height="7" Width="9.5" Margin="0,0,0.5,-1">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF6C6C6C" Offset="1" />
                                    <GradientStop Color="#FF000000" Offset="0" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertImageLargeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Height="30" Width="30">
                            <Rectangle Fill="#FFFFFBFF">
                                <Rectangle.Stroke>
                                    <LinearGradientBrush EndPoint="0.958,0.952" StartPoint="0.023,0.039">
                                        <GradientStop Color="#FF99A7BB" Offset="0.349" />
                                        <GradientStop Color="#FF5B6F82" Offset="0.64" />
                                    </LinearGradientBrush>
                                </Rectangle.Stroke>
                            </Rectangle>
                            <Rectangle Fill="#FFC8E9FF" Stroke="#FF6B696B" Margin="3,3,3,7" />
                            <Ellipse Fill="#FFFFFFEC" Stroke="#FFFFB69F" HorizontalAlignment="Right" Margin="0,6,6,0" VerticalAlignment="Top" Width="7" Height="7" />
                            <Path Stretch="Fill" Stroke="#FF6A88B4" HorizontalAlignment="Right" Margin="0,0,3.5,7" VerticalAlignment="Bottom" Width="12.5" Height="8" Data="M7.5157213,0.50003147 C7.7821407,0.50205714 8.0433197,0.60179216 8.220891,0.79316014 9.2323208,1.7883756 10.674407,3.2958273 11.921554,4.6299407 L12,4.7140047 12,7.5000002 0.5,7.5000002 C0.5102697,7.2906582 4.635251,3.0045552 6.7791095,0.79316014 6.9776416,0.59369022 7.2493014,0.49800617 7.5157213,0.50003147 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                        <GradientStop Color="#FFE9F3FD" Offset="0.4" />
                                        <GradientStop Color="#FF7DA5E8" Offset="0.6" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FF6A88B4" HorizontalAlignment="Left" Margin="3,0,0,7" VerticalAlignment="Bottom" Width="18" Height="10.393" Data="M8.1246327,0.5 C8.6067815,-0.035343007 9.444124,-0.013598815 9.8753673,0.5 12.495453,3.3490518 17.495494,9.326433 17.5,9.5 L0.5,9.5 C0.51247038,9.2190814 5.5213761,3.4675011 8.1246327,0.5 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                        <GradientStop Color="#FFE9F3FD" Offset="0.4" />
                                        <GradientStop Color="#FF7DA5E8" Offset="0.6" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Rectangle Stroke="#FF6B696B" Margin="3,3,3,7" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Picture, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertSymbolTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="AutoClose" Value="true" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="Ω" Foreground="Black" TextWrapping="Wrap" FontWeight="Bold" FontSize="12" FontFamily="Times New Roman" TextAlignment="Center" VerticalAlignment="Center" Width="20" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding Selection, Mode=TwoWay}">
                        <ListBox.Template>
                            <ControlTemplate TargetType="ListBox">
                                <Grid>
                                    <ContentControl Style="{StaticResource DropDownContent}">
                                        <ItemsPresenter />
                                    </ContentControl>
                                </Grid>
                            </ControlTemplate>
                        </ListBox.Template>
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <c1:C1WrapPanel Width="120" Margin="4" />
                            </ItemsPanelTemplate>
                        </ListBox.ItemsPanel>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid Width="20" Height="20">
                                    <TextBlock Text="{Binding}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Times New Roman" FontSize="14" />
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Padding" Value="0" />
                                <Setter Property="Margin" Value="0" />
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertHyperlinkTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Path HorizontalAlignment="Left" Width="8" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0.5" Data="M3.75,2.25 C2.9215729,2.25 2.25,2.9215729 2.25,3.75 L2.25,4.25 C2.25,5.0784273 2.9215729,5.75 3.75,5.75 L4.25,5.75 C5.0784273,5.75 5.75,5.0784273 5.75,4.25 L5.75,3.75 C5.75,2.9215729 5.0784273,2.25 4.25,2.25 L3.75,2.25 z M3.25,0.25 L4.75,0.25 C6.4068542,0.25 7.75,1.5931457 7.75,3.25 L7.75,4.75 C7.75,6.4068542 6.4068542,7.75 4.75,7.75 L3.25,7.75 C1.5931457,7.75 0.25,6.4068542 0.25,4.75 L0.25,3.25 C0.25,1.5931457 1.5931457,0.25 3.25,0.25 z" Height="7" d:LayoutOverrides="Height">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF8DA4AC" Offset="0.9" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path HorizontalAlignment="Right" Width="8" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0.5" Data="M3.75,2.25 C2.9215729,2.25 2.25,2.9215729 2.25,3.75 L2.25,4.25 C2.25,5.0784273 2.9215729,5.75 3.75,5.75 L4.25,5.75 C5.0784273,5.75 5.75,5.0784273 5.75,4.25 L5.75,3.75 C5.75,2.9215729 5.0784273,2.25 4.25,2.25 L3.75,2.25 z M3.25,0.25 L4.75,0.25 C6.4068542,0.25 7.75,1.5931457 7.75,3.25 L7.75,4.75 C7.75,6.4068542 6.4068542,7.75 4.75,7.75 L3.25,7.75 C1.5931457,7.75 0.25,6.4068542 0.25,4.75 L0.25,3.25 C0.25,1.5931457 1.5931457,0.25 3.25,0.25 z" Height="7" Margin="0,0,0,0" d:LayoutOverrides="Height">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF8DA4AC" Offset="0.9" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Rectangle RadiusX="1" RadiusY="1" Stroke="#FF000000" StrokeThickness="0.5" Width="6" Height="3" Margin="4,2,4,0">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF8DA4AC" Offset="9" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1RemoveHyperlinkTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="0 2" Width="14" Height="7">
                        <Path HorizontalAlignment="Left" VerticalAlignment="Top" Width="6.243" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0.5" Data="M3.75,2.25 C2.9215729,2.25 2.25,2.9215729 2.25,3.75 L2.25,4.25 C2.25,5.0784273 2.9215729,5.75 3.75,5.75 L4.25,5.75 C5.0784273,5.75 5.75,5.0784273 5.75,4.25 L5.75,3.75 C5.75,2.9215729 5.0784273,2.25 4.25,2.25 L3.75,2.25 z M3.25,0.25 L4.75,0.25 C6.4068542,0.25 6.4068542,7.75 4.75,7.75 L3.25,7.75 C1.5931457,7.75 0.25,6.4068542 0.25,4.75 L0.25,3.25 C0.25,1.5931457 1.5931457,0.25 3.25,0.25 z" Height="7" d:LayoutOverrides="HorizontalAlignment, Height">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF8DA4AC" Offset="0.9" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path HorizontalAlignment="Right" VerticalAlignment="Top" Width="6.243" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0.5" Data="M3.75,2.25 C2.9215729,2.25 2.9215729,5.75 3.75,5.75 L4.25,5.75 C5.0784273,5.75 5.75,5.0784273 5.75,4.25 L5.75,3.75 C5.75,2.9215729 5.0784273,2.25 4.25,2.25 L3.75,2.25 z M3.25,0.25 L4.75,0.25 C6.4068542,0.25 7.75,1.5931457 7.75,3.25 L7.75,4.75 C7.75,6.4068542 6.4068542,7.75 4.75,7.75 L3.25,7.75 C1.5931457,7.75 1.5931457,0.25 3.25,0.25 z" Height="7" Margin="0,0,0,0" d:LayoutOverrides="HorizontalAlignment, Height">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF8DA4AC" Offset="0.9" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1CutTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Margin="2" Width="10">
                        <Path Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M9,9 L10,9 L10,10 L9,10 z M6,9 L7,9 L7,10 L6,10 z M3,9 L4,9 L4,10 L3,10 z M1.5E-07,9 L1,9 L1,10 L1.5E-07,10 z M4,7 L6,7 L6,8 L4,8 z M9,6 L10,6 L10,7 L9,7 z M0,6 L1,6 L1,7 L0,7 z M1,0 L2,0 L2,1 L3,1 L3,2 L4,2 L4,3 L6,3 L6,2 L7,2 L7,1 L8,1 L8,0 L9,0 L9,2 L8,2 L8,3 L7,3 L7,4 L3,4 L3,3 L2,3 L2,2 L1,2 L1,1 z">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#4C575868" Offset="0.5" />
                                    <GradientStop Color="#4C4060B0" Offset="0.5" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M1,8 L2,8 L3,8 L3,9 L2,9 L1,9 z M0,6 L1,6 L1,7 L1,8 L0,8 L0,7 z M1,0 L2,0 L2,1 L3,1 L3,2 L4,2 L4,3 L6,3 L6,2 L7,2 L7,1 L8,1 L8,0 L9,0 L9,1 L9,2 L8,2 L8,3 L7,3 L7,4 L6,4 L6,5 L7,5 L9,5 L9,6 L10,6 L10,6 L10,7 L10,8 L9,8 L9,7 L9,6 L7,6 L7,8 L8,8 L9,8 L9,9 L8,9 L7,9 L7,9 L7,8 L6,8 L6,6 L4,6 L4,8 L3,8 L3,6 L1,6 L1,5 L3,5 L4,5 L4,4 L3,4 L3,3 L2,3 L2,2 L1,2 L1,1 z" Margin="0,1,0,0">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF575868" Offset="0.5" />
                                    <GradientStop Color="#FF4060B0" Offset="0.5" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1CopyTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="12" Width="13">
                        <Path Height="7" HorizontalAlignment="Left" Margin="1,1,0,0" VerticalAlignment="Top" Width="6" Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M0,0 L3.5082483,0 L6,2.1691408 L6,7 L0,7 z" />
                        <Path Margin="0,0,0,0" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M1,1 L1,8 L7,8 L7,4 L4,4 L4,4 L4,3 L4,2 L4,1 z M0,0 L1,0 L4,0 L5,0 L5,1 L6,1 L6,2 L5,2 L5,3 L6,3 L6,2 L7,2 L7,3 L8,3 L8,9 L8,9 L7,9 L1,9 L0,9 L0,8 L0,1 z" Height="9" HorizontalAlignment="Left" VerticalAlignment="Top" Width="8">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.955,0.956" StartPoint="0.04,0.051">
                                    <GradientStop Color="#FFB0C0F0" Offset="0.004" />
                                    <GradientStop Color="#FF343C4D" Offset="1" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path HorizontalAlignment="Right" Margin="0,4,1,1" Width="6" Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M0,0 L3.5307889,0 L6,2.3952982 L6,7 L0,7 z" />
                        <Path Margin="5,3,0,0" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M1,1 L1,8 L7,8 L7,4 L4,4 L4,4 L4,3 L4,2 L4,1 z M0,0 L1,0 L4,0 L5,0 L5,1 L6,1 L6,2 L5,2 L5,3 L6,3 L6,2 L7,2 L7,3 L8,3 L8,9 L8,9 L7,9 L1,9 L0,9 L0,8 L0,1 z">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0.955,0.956" StartPoint="0.04,0.051">
                                    <GradientStop Color="#FFB0C0F0" Offset="0.004" />
                                    <GradientStop Color="#FF343C4D" Offset="1" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path Fill="#FFC0C8D0" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Margin="5,2,2,0" VerticalAlignment="Top" Height="4" Data="M5,3 L6,3 6,4 5,4 z M0,0 L1,0 1,1 0,1 z" />
                        <Path Fill="#FF666666" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Margin="2" Data="M5,7 L9,7 9,8 5,8 z M5,5 L9,5 9,6 5,6 z M0,4 L3,4 3,5 0,5 z M5,3 L7,3 7,4 5,4 z M0,2 L3,2 3,3 0,3 z M0,0 L2,0 2,1 0,1 z" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1PasteTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="14" Width="12">
                        <Rectangle Height="11" HorizontalAlignment="Left" Margin="0,2,1,1" VerticalAlignment="Bottom" Width="11" Fill="#FFAFAFAF" Stroke="#FF666666" StrokeThickness="1" RadiusX="1" RadiusY="1" />
                        <Path Height="6" HorizontalAlignment="Right" Margin="0,0,1,1" VerticalAlignment="Bottom" Width="6" Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M0,0 L3.2566671,0 L6,2.4379804 L6,6 L0,6 z" />
                        <Path Fill="#FF484848" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M1,1 L1,7 L7,7 L7,4 L4,4 L4,3 L4,2 L4,1 z M0,0 L1,0 L4,0 L5,0 L5,1 L6,1 L6,2 L5,2 L5,3 L6,3 L6,2 L7,2 L7,3 L8,3 L8,7 L8,7.4 L8,8 L7,8 L7,8 L1,8 L1,8 L1.2594676E-05,8 L0,8 L0,1 z" Width="8" Height="8" VerticalAlignment="Bottom" HorizontalAlignment="Right" />
                        <Rectangle Height="1" HorizontalAlignment="Right" Margin="0,8,2,0" VerticalAlignment="Top" Width="1" Fill="#FFC8C8C8" Stroke="{x:Null}" StrokeThickness="0" />
                        <Path HorizontalAlignment="Right" Width="4" Fill="#FF666666" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M0,2 L4,2 L4,3 L0,3 z M0,0 L2,0 L2,1 L0,1 z" Height="3" Margin="0,0,2,2" VerticalAlignment="Bottom" />
                        <Path Height="3" Margin="3,1,4,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M0.99999964,0 L3.9999995,0 L3.9999995,2.0000002 L5,2.0000002 L5,3.0000002 L0,3.0000002 L0,2.0000002 L0.99999964,2.0000002 z" />
                        <Path Height="5" Margin="2,0,3,0" VerticalAlignment="Top" Fill="#FF484848" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Data="M0,3 L1,3 L1,4 L6,4 L6,3 L7,3 L7,4 L7,4 L7,5 L7,5 L6,5 L1,5 L0,5 L0,4 z M3,2 L4,2 L4,3 L3,3 z M5,1 L6,1 L6,3 L5,3 z M2,0 L5,0 L5,1 L2,1 L2,3 L1,3 L1,1 L2,1 z" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1PasteLargeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                            <Grid Height="30" Width="30">
                                <Rectangle Fill="#FFF5CA6C" Stroke="#FFB79664" RadiusX="1" RadiusY="1" Margin="2,3,0,4" Width="23" Height="23" HorizontalAlignment="Left" />
                                <Path Fill="#FFF9DE9F" Stretch="Fill" Margin="3,4,6,5" Data="M0.49999997,0 L20.5,0 C20.776142,0 21,0.22385763 21,0.49999997 21,0.77614236 20.776142,1 20.5,0.99999994 L0.99999994,0.99999994 0.99999994,20.5 C1,20.776142 0.77614236,21 0.49999997,21 0.22385763,21 0,20.776142 0,20.5 L0,0.49999997 C0,0.22385529 0.22385529,0 0.49999997,0 z" />
                                <Path Stretch="Fill" Margin="7,0,10,0" VerticalAlignment="Top" Height="7" Data="M5.5,2.5 L5.5,4.5 7.5,4.5 7.5,2.5 z M4,0.5 L9,0.5 C9.2761431,0.5 9.5,0.72385764 9.5,1 L9.5,3.5 12,3.5 C12.276142,3.5 12.5,3.7238576 12.5,4 L12.5,6 C12.5,6.2761426 12.276142,6.5 12,6.5 L1,6.5 C0.72385764,6.5 0.5,6.2761426 0.5,6 L0.5,4 C0.5,3.7238576 0.72385764,3.5 1,3.5 L3.5,3.5 3.5,1 C3.5,0.72385764 3.7238576,0.5 4,0.5 z" Width="13">
                                    <Path.Fill>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.475,-0.13">
                                            <GradientStop Color="White" Offset="0.79" />
                                            <GradientStop Color="#FF98A5AF" Offset="0.853" />
                                        </LinearGradientBrush>
                                    </Path.Fill>
                                    <Path.Stroke>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFA3B0B6" Offset="0" />
                                            <GradientStop Color="#FF616C71" Offset="1" />
                                        </LinearGradientBrush>
                                    </Path.Stroke>
                                </Path>
                                <Path Fill="#FFFAFBFD" Stretch="Fill" HorizontalAlignment="Right" Margin="0,0,2,1" VerticalAlignment="Bottom" Width="18" Height="19" Data="M0.5,0.5 L12.484539,0.5 17.5,5.5785668 17.5,18.5 0.5,18.5 z">
                                    <Path.Stroke>
                                        <LinearGradientBrush EndPoint="0.971,0.931" StartPoint="0.02,0.085">
                                            <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                            <GradientStop Color="#FF5A6D81" Offset="0.5" />
                                        </LinearGradientBrush>
                                    </Path.Stroke>
                                </Path>
                                <Path Stretch="Fill" HorizontalAlignment="Right" Margin="0,10,2,0" VerticalAlignment="Top" Width="6.038" Height="6.042" Data="M0.5,0.5 C0.5860419,0.50342318 5.4910683,5.404516 5.5,5.5 5.5089317,5.595484 2.1666667,5.5 0.5,5.5 0.5,3.8333333 0.4139581,0.49657682 0.5,0.5 z">
                                    <Path.Fill>
                                        <LinearGradientBrush EndPoint="0.048,0.951" StartPoint="0.516,0.478">
                                            <GradientStop Color="#FFB0BBC9" Offset="0" />
                                            <GradientStop Color="#FFEBF0F9" Offset="0.64" />
                                        </LinearGradientBrush>
                                    </Path.Fill>
                                    <Path.Stroke>
                                        <LinearGradientBrush EndPoint="0.971,0.931" StartPoint="0.02,0.085">
                                            <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                            <GradientStop Color="#FF5A6D81" Offset="1" />
                                        </LinearGradientBrush>
                                    </Path.Stroke>
                                </Path>
                                <Path Fill="#FF686868" Stretch="Fill" Margin="11,13,5,4" Data="M0,12 L12,12 12,13 0,13 z M0,10 L12,10 12,11 0,11 z M0,8 L12,8 12,9 0,9 z M0,6 L12,6 12,7 0,7 z M0,4 L7,4 7,5 0,5 z M0,1.9999998 L7,1.9999998 7,3 0,3 z M0,0 L7,0 7,1.0000001 0,1.0000001 z" Width="12" Height="13" HorizontalAlignment="Right" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Paste, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1UndoTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="7" Width="11" Margin="2">
                        <Path Height="7" Margin="1,0,0,0" VerticalAlignment="Top" Fill="#CCA6A8AB" Stretch="Fill" Stroke="{x:Null}" Data="M6,6 L7,6 L7,6 L8,6 L8,7 L6,7 L6,7 L6,7 z M8,5 L9,5 L9,6 L8,6 z M7,4 L8,4 L8,5 L7,5 z M0,3 L4,3 L4,4 L3,4 L3,6 L2,6 L2,4 L0,4 z M9,1 L10,1 L10,2 L10,3 L10,5 L9,5 L9,3 L8,3 L7,3 L7,3 L7,2 L7,2 L8,2 L9,2 z M4,0 L5,0 L5,3 L4,3 z" />
                        <Path Margin="0,0,1,0" Fill="#FF373737" Stretch="Fill" Stroke="{x:Null}" Data="M8,5 L9,5 L9,6 L8,6 z M6,0 L9,0 L9,1 L10,1 L10,2 L10,5 L9,5 L9,2 L5,2 L5,3 L4,3 L4,4 L3,4 L3,6 L5,6 L5,7 L3,7 L0,7 L0,6 L0,4 L0,2 L1,2 L1,4 L2,4 L2,3 L3,3 L3,2 L4,2 L4,1 L5,1 L6,1 z" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1RedoTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="7" Margin="2" Width="11" RenderTransformOrigin="0.5,0.5">
                        <Grid.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="-1" />
                                <SkewTransform />
                                <RotateTransform />
                                <TranslateTransform />
                            </TransformGroup>
                        </Grid.RenderTransform>
                        <Path Height="7" Margin="1,0,0,0" VerticalAlignment="Top" Fill="#CCA6A8AB" Stretch="Fill" Stroke="{x:Null}" Data="M6,6 L7,6 L7,6 L8,6 L8,7 L6,7 L6,7 L6,7 z M8,5 L9,5 L9,6 L8,6 z M7,4 L8,4 L8,5 L7,5 z M0,3 L4,3 L4,4 L3,4 L3,6 L2,6 L2,4 L0,4 z M9,1 L10,1 L10,2 L10,3 L10,5 L9,5 L9,3 L8,3 L7,3 L7,3 L7,2 L7,2 L8,2 L9,2 z M4,0 L5,0 L5,3 L4,3 z" />
                        <Path Margin="0,0,1,0" Fill="#FF373737" Stretch="Fill" Stroke="{x:Null}" Data="M8,5 L9,5 L9,6 L8,6 z M6,0 L9,0 L9,1 L10,1 L10,2 L10,5 L9,5 L9,2 L5,2 L5,3 L4,3 L4,4 L3,4 L3,6 L5,6 L5,7 L3,7 L0,7 L0,6 L0,4 L0,2 L1,2 L1,4 L2,4 L2,3 L3,3 L3,2 L4,2 L4,1 L5,1 L6,1 z" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1SpellCheckTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="16" Margin="0,1,0,0" Width="15">
                        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Text="abc" TextWrapping="Wrap" FontSize="9" FontFamily="Times New Roman" />
                        <Path Margin="1.626,5.943,1.374,2.057" Fill="#FF4D4D4D" Stretch="Fill" Data="M3.4805849,9.2724638 C4.9481773,11.149876 6.6422129,12.836549 7.6960454,13.742616 C10.303515,11.440681 12.653307,8.8815908 15.003462,6.366889 L13.940185,5.5665994 L7.9941158,11.149501 L5.7985587,7.9642982 C4.9860973,8.2021513 4.213182,8.6369219 3.4805849,9.2724638 z" d:LayoutOverrides="VerticalAlignment" RenderTransformOrigin="0.511,0.473" StrokeThickness="0.5" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1SpellCheckLargeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="100">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions> 
                        <Grid Width="30" Margin="0 5 0 0">
                            <Path Stretch="Fill" Stroke="#FF3465C1" Margin="2,2,3,0.5" Data="M1.9780292,20.985594 L4.9846593,18.051918 10.446831,23.368205 27.173035,7.971945 27.197718,9.7686123 10.483519,29.490154 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.362,0.98" StartPoint="0.2,0.378">
                                        <GradientStop Color="#FFAFCFFF" Offset="0.21" />
                                        <GradientStop Color="#FF4E84EB" Offset="1" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Fill="Black" Stretch="Fill" Margin="0,0,1,0" VerticalAlignment="Top" Height="10" Data="M4.2109375,6.4368038 L2.7890625,9.6291866 L5.5917969,9.6291866 z M5.0380859,3.3127804 L5.1679688,3.3127804 L8.5107422,10.914343 C8.8297529,11.634395 9.0917969,12.087846 9.296875,12.274694 C9.4518232,12.415971 9.6705732,12.498002 9.953125,12.520788 L9.953125,12.773718 L5.46875,12.773718 L5.46875,12.520788 L5.6533203,12.520788 C6.0133462,12.520788 6.2662759,12.470658 6.4121094,12.370398 C6.5123696,12.297481 6.5625,12.192663 6.5625,12.055944 C6.5625,11.973913 6.5488281,11.889604 6.5214844,11.803015 C6.5123696,11.761999 6.4440103,11.591101 6.3164063,11.290319 L5.8242188,10.135046 L2.5498047,10.135046 L2.1601563,11.03739 C2.032552,11.338171 1.96875,11.586543 1.96875,11.782507 C1.96875,12.042273 2.0735676,12.233679 2.2832031,12.356726 C2.40625,12.429643 2.7093098,12.48433 3.1923828,12.520788 L3.1923828,12.773718 L0.109375,12.773718 L0.109375,12.520788 C0.44205728,12.470658 0.71549481,12.3328 0.92968744,12.107214 C1.1438802,11.881628 1.4082031,11.415645 1.7226563,10.709265 z M13.849257,8.2073116 L13.849257,11.180944 L13.842422,11.522741 C13.842422,11.768835 13.905085,11.954545 14.03041,12.07987 C14.155735,12.205195 14.341445,12.267859 14.587539,12.267859 C14.952122,12.267859 15.288222,12.186967 15.59584,12.025183 C15.903457,11.863399 16.139297,11.628698 16.30336,11.321081 C16.467422,11.013464 16.549454,10.670527 16.549454,10.292273 C16.549454,9.8593302 16.449192,9.4708204 16.248672,9.1267452 C16.048151,8.78267 15.772434,8.5422726 15.421523,8.4055538 C15.070612,8.2688351 14.546523,8.202755 13.849257,8.2073116 z M13.849257,4.0237179 L13.849257,7.6741085 C14.496393,7.6741085 14.973769,7.601192 15.281386,7.4553585 C15.589004,7.309525 15.824843,7.1044469 15.988906,6.8401241 C16.152969,6.5758014 16.235001,6.2385616 16.235001,5.8284054 C16.235001,5.4182491 16.154108,5.082149 15.992324,4.8201046 C15.83054,4.5580606 15.599257,4.3586788 15.298476,4.2219601 C14.997695,4.0852413 14.514622,4.0191603 13.849257,4.0237179 z M10.403945,3.5041866 L14.847304,3.5041866 C15.909153,3.5041866 16.661106,3.5987501 17.103165,3.787878 C17.545221,3.977006 17.893854,4.2595577 18.149063,4.6355343 C18.40427,5.0115108 18.531876,5.4114132 18.531876,5.8352413 C18.531876,6.2818561 18.37009,6.6794796 18.046524,7.0281124 C17.722956,7.3767452 17.153294,7.6536007 16.33754,7.8586788 C17.217096,8.0637569 17.83461,8.31213 18.190079,8.603796 C18.700495,9.0185099 18.955704,9.5562696 18.955704,10.217077 C18.955704,10.914343 18.67543,11.49084 18.114883,11.946569 C17.426731,12.498002 16.426407,12.773718 15.113906,12.773718 L10.403945,12.773718 L10.403945,12.520788 C10.832331,12.520788 11.122858,12.480912 11.275527,12.401159 C11.428196,12.321406 11.535293,12.217729 11.596816,12.090124 C11.65834,11.96252 11.689101,11.648067 11.689101,11.146765 L11.689101,5.1311398 C11.689101,4.629838 11.65834,4.3142452 11.596816,4.1843624 C11.535293,4.0544796 11.427057,3.9508009 11.272109,3.8733273 C11.117161,3.7958536 10.827773,3.7571163 10.403945,3.7571163 z M25.072643,3.2922726 C25.724337,3.2922726 26.412487,3.4335489 27.137096,3.7161007 C27.556366,3.8801632 27.822968,3.9621944 27.936901,3.9621944 C28.082733,3.9621944 28.209198,3.9086466 28.316296,3.8015499 C28.423393,3.6944532 28.492889,3.5246944 28.524792,3.2922726 L28.791393,3.2922726 L28.791393,6.5051632 L28.524792,6.5051632 C28.324272,5.6666217 27.950573,5.0240436 27.403698,4.5774288 C26.856823,4.1308146 26.237032,3.9075069 25.544323,3.9075069 C24.965548,3.9075069 24.434622,4.0738478 23.95155,4.4065304 C23.468477,4.739213 23.115286,5.1744342 22.891979,5.7121944 C22.60487,6.4003453 22.461315,7.1659703 22.461315,8.0090694 C22.461315,8.8384962 22.566133,9.5938673 22.775768,10.275183 C22.985403,10.956498 23.313528,11.471472 23.760143,11.820105 C24.206758,12.168737 24.785534,12.343054 25.496471,12.343054 C26.079805,12.343054 26.614147,12.215449 27.099499,11.960241 C27.58485,11.705033 28.096405,11.265254 28.634167,10.640905 L28.634167,11.44071 C28.114635,11.983027 27.573456,12.376094 27.010632,12.619909 C26.447805,12.863725 25.790417,12.985632 25.038464,12.985632 C24.049532,12.985632 23.171114,12.78739 22.40321,12.390905 C21.635305,11.994421 21.042858,11.42476 20.625866,10.681921 C20.208874,9.9390821 20.000378,9.1483927 20.000378,8.3098507 C20.000378,7.425736 20.231661,6.5871944 20.694225,5.7942257 C21.15679,5.0012569 21.781139,4.3860226 22.567272,3.9485226 C23.353405,3.5110226 24.188528,3.2922726 25.072643,3.2922726 z" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Spelling, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 5 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1MergeCellsTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="74">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2">
                            <Rectangle Fill="White" Stroke="#FF969696" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Bottom" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF5A719D" VerticalAlignment="Top" Height="6" Margin="0,10,0,0" Fill="White" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Merge_Title, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1UnmergeCellTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="75">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2">
                            <Rectangle Fill="White" Stroke="#FF969696" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Bottom" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF5A719D" VerticalAlignment="Top" Height="6" Margin="0,10,0,0" Fill="White" />
                            <Rectangle Stroke="#FF5A719D" VerticalAlignment="Top" Height="6" Margin="7,10,0,0" Fill="White" Width="8" HorizontalAlignment="Left" />
                            <Rectangle Stroke="#FF5A719D" VerticalAlignment="Top" Height="6" Margin="7,10,0,0" Fill="White" Width="8" HorizontalAlignment="Right" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_Unmerge, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertRowsAboveTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="65">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2">
                            <Rectangle Fill="White" />
                            <Rectangle Stroke="#FF8192B3" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" Fill="#FFABC0E6" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,15,0,0" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF5F5F5F" />
                            <Path Stretch="Fill" Stroke="#7FFFFFFF" HorizontalAlignment="Left" Margin="7,-3" VerticalAlignment="Top" Width="15" Height="11.5" Data="M5.4620885,0.58552778 L10.892128,5.9063436 7.6525428,5.9063436 7.6743341,9.1792309 3.3256659,9.1792309 3.3256659,5.9063436 0.12959284,5.9063436 z" />
                            <Path Fill="#FFABC0E6" Stretch="Fill" Stroke="#FF5A719D" HorizontalAlignment="Left" Margin="9,-2,0,0" VerticalAlignment="Top" Width="11" Height="10" Data="M5.4620876,0.5 L10.5,5.5 7.5,5.5 7.5,9.5 3.5,9.5 3.5,5.5 0.5,5.5 z" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_InsertAbove, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertRowsBelowTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="65">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2">
                            <Rectangle Fill="White" />
                            <Rectangle Stroke="#FF8192B3" VerticalAlignment="Top" Height="6" Margin="0,15,0,0" Fill="#FFABC0E6" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF5F5F5F" />
                            <Path Stretch="Fill" Stroke="#7FFFFFFF" HorizontalAlignment="Left" Margin="7,-4" VerticalAlignment="Bottom" Width="15" Height="11.5" Data="M5.4620885,0.58552778 L10.892128,5.9063436 7.6525428,5.9063436 7.6743341,9.1792309 3.3256659,9.1792309 3.3256659,5.9063436 0.12959284,5.9063436 z" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="-1" />
                                        <SkewTransform AngleX="0" AngleY="0" />
                                        <RotateTransform Angle="0" />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Fill="#FFABC0E6" Stretch="Fill" Stroke="#FF5A719D" HorizontalAlignment="Left" Margin="9,0,0,-2" VerticalAlignment="Bottom" Width="11" Height="10" Data="M5.4620876,0.5 L10.5,5.5 7.5,5.5 7.5,9.5 3.5,9.5 3.5,5.5 0.5,5.5 z" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="-1" />
                                        <SkewTransform AngleX="0" AngleY="0" />
                                        <RotateTransform Angle="0" />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_InsertBelow, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertColumnsLeftTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="68">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2">
                            <Rectangle Fill="White" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF8192B3" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" Fill="#FFABC0E6" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,15,0,0" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF5F5F5F" />
                            <Path Stretch="Fill" Stroke="#7FFFFFFF" HorizontalAlignment="Left" Margin="-3,0,0,6.388" VerticalAlignment="Bottom" Width="11.64" Height="14.224" Data="M5.9703703,-0.008965941 L5.9703703,3.5 9.2060308,3.5 9.2060308,7.5 5.9703703,7.5 5.9703703,11.008917 0.5,5.4981022 z" />
                            <Path Stretch="Fill" Stroke="#FF5A719D" HorizontalAlignment="Left" Margin="-2,0,0,8" VerticalAlignment="Bottom" Width="10" Height="11" Data="M5.5,0.5 L5.5,3.5 9.5,3.5 9.5,7.5 5.5,7.5 5.5,10.5 0.5,5.4981022 z" Fill="#FFABC0E6" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_InsertLeft, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertColumnsRightTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="65">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="26" Margin="2">
                            <Rectangle Fill="White" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF8192B3" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" Fill="#FFABC0E6" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,15,0,0" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,5,0,0" />
                            <Rectangle Stroke="#FF5F5F5F" />
                            <Path Stretch="Fill" Stroke="#7FFFFFFF" HorizontalAlignment="Right" Margin="0,0,-3,6.388" VerticalAlignment="Bottom" Width="11.64" Height="14.224" Data="M5.9703703,-0.008965941 L5.9703703,3.5 9.2060308,3.5 9.2060308,7.5 5.9703703,7.5 5.9703703,11.008917 0.5,5.4981022 z" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="-1" ScaleY="1" />
                                        <SkewTransform AngleX="0" AngleY="0" />
                                        <RotateTransform Angle="0" />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FF5A719D" HorizontalAlignment="Right" Margin="0,0,-2,8" VerticalAlignment="Bottom" Width="10" Height="11" Data="M5.5,0.5 L5.5,3.5 9.5,3.5 9.5,7.5 5.5,7.5 5.5,10.5 0.5,5.4981022 z" Fill="#FFABC0E6" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="-1" ScaleY="1" />
                                        <SkewTransform AngleX="0" AngleY="0" />
                                        <RotateTransform Angle="0" />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_InsertRight, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertTableTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Width="29" Height="25" Margin="4">
                            <Rectangle Fill="White" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="7,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,9,0,0" />
                            <Rectangle Stroke="#FF969696" VerticalAlignment="Top" Height="6" Margin="0,14,0,0" />
                            <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="14,0,0,0" Width="8" />
                            <Rectangle Stroke="#FF5F5F5F" />
                            <Rectangle Fill="#FF95A2BB" Stroke="#FF6F798C" VerticalAlignment="Top" Height="5" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Table_Title, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 5 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Style="{StaticResource DropDownContent}">
                        <c1rtbtb:C1InsertTableGrid RichTextBox="{Binding RichTextBox}" DropDown="{Binding DropDown}" />
                    </ContentControl>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FindAndReplaceTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="4" Height="10" Width="11" x:Name="ico_find">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="2" />
                            <RowDefinition Height="3" />
                            <RowDefinition Height="5" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition Width="1" />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Rectangle StrokeThickness="1" Grid.Row="2">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.114,0.482" StartPoint="0.856,0.473">
                                    <GradientStop Color="#FF626262" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.6" />
                                    <GradientStop Color="#FFB1B0B0" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.065,0.121" StartPoint="0.895,0.929">
                                    <GradientStop Color="#FF343434" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle StrokeThickness="1" Grid.Row="2" Grid.Column="2">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.114,0.482" StartPoint="0.856,0.473">
                                    <GradientStop Color="#FF626262" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.6" />
                                    <GradientStop Color="#FFC3C3C3" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.065,0.121" StartPoint="0.895,0.929">
                                    <GradientStop Color="#FF343434" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle StrokeThickness="1" Margin="2,0,0,-1">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.114,0.482" StartPoint="0.856,0.473">
                                    <GradientStop Color="#FFA7A7A7" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.6" />
                                    <GradientStop Color="#FFC3C3C3" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.065,0.121" StartPoint="0.895,0.929">
                                    <GradientStop Color="#FF343434" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle StrokeThickness="1" Margin="0,0,2,-1" Grid.Column="2">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.114,0.482" StartPoint="0.856,0.473">
                                    <GradientStop Color="#FFA7A7A7" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.6" />
                                    <GradientStop Color="#FFC3C3C3" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.065,0.121" StartPoint="0.895,0.929">
                                    <GradientStop Color="#FF343434" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle StrokeThickness="1" Margin="1,0,0,-1" Grid.Row="1">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.114,0.482" StartPoint="0.856,0.473">
                                    <GradientStop Color="#FF3D3D3D" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.6" />
                                    <GradientStop Color="#FFC3C3C3" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.065,0.121" StartPoint="0.895,0.929">
                                    <GradientStop Color="#FF343434" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle StrokeThickness="1" Margin="0,0,1,-1" Grid.Column="2" Grid.Row="1">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.114,0.482" StartPoint="0.856,0.473">
                                    <GradientStop Color="#FF606060" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.3" />
                                    <GradientStop Color="#FFFFFFFF" Offset="0.7" />
                                    <GradientStop Color="#FFC3C3C3" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.065,0.121" StartPoint="0.895,0.929">
                                    <GradientStop Color="#FF343434" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle Stroke="{x:Null}" Margin="0,0,0,-2" Grid.Column="1" Grid.Row="1">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
                                    <GradientStop Color="#FF2F2F2F" />
                                    <GradientStop Color="#FF6D6D6D" Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Style="{StaticResource DropDownContent}">
                        <c1rtbtb:C1FindAndReplace RichTextBox="{Binding RichTextBox}" DropDown="{Binding DropDown}" Margin="5" />
                    </ContentControl>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FindAndReplaceLargeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarDropDown}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2" MaxWidth="75">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Margin="4" Height="26" Width="30">
                            <Path Stretch="Fill" Data="M6,0 L12,0 12,4.0000001 14,4.0000001 14,9.6510001 16,9.6510001 16,4.0000001 18,4.0000001 18,0 24,0 24,4.0000001 26,4.0000001 26,9.4308072 27.392088,9.4308078 27.392088,14 30,14 30,26 17.996,26 17.996,14.49118 12,14.49118 12,26 0,26 0,14 2.681179,14&#xD;&#xA;2.681179,9.4308081 4,9.4308072 4,4.0000001 6,4.0000001 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.979,0.734" StartPoint="-0.019,0.488">
                                        <GradientStop Color="White" Offset="0.2" />
                                        <GradientStop Color="#FF6C7BBD" Offset="0.465" />
                                        <GradientStop Color="#FFB3BDEC" Offset="0.524" />
                                        <GradientStop Color="White" Offset="0.75" />
                                        <GradientStop Color="#FF6C7BBD" Offset="1" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" Data="M19,15 L19,25 29,25 29,15 z M0.99999994,15 L0.99999994,25 11,25 11,15 z M17,10 L17,14 18,14 20,14 26,14 27,14 27,10 26,10 24,10 23,10 18,10 z M14,10 L14,14 16,14 16,10 z M2.9999998,10 L2.9999998,14 4,14 10,14 12,14 13,14 13,10 12,10 7,10 6,10 4,10 z M17,5.0000002 L17,9.0000002 23,9.0000002 25,9.0000002 25,5.0000002 z M5,5.0000002 L5,9.0000002 7,9.0000002 13,9.0000002 13,5.0000002 z M19,0.99999994 L19,4.0000002 20,4.0000002 22,4.0000002 23,4.0000002 23,0.99999994 z M7,0.99999994 L7,4.0000002 8,4.0000002 10,4.0000002 11,4.0000002 11,0.99999994 z M6,0 L8,0 10,0 12,0 12,2.0000007 12,4.0000002 14,4.0000002 14,6.0000002 14,8.0000002 14,9.0000002 16,9.0000002 16,8.0000002 16,6.0000002 16,4.0000002 18,4.0000002 18,2.0000007 18,0 20,0 22,0 24,0 24,2.0000007 24,3.9999997 26,3.9999997 26,6.0000002&#xD;&#xA;26,8.0000002 26,9.0000002 28,9.0000002 28,9.9799997 28,10 28,14 30,14 30,16 30,24 30,26 28,26 20,26 18,26 18,24 18,16 18,15 12,15 12,16 12,24 12,26 10,26 1.9999999,26 0,26&#xD;&#xA;0,24 0,16 0,14 1.9999999,14 1.9999999,10 1.9999999,9.9799997 1.9999999,9.0000002 4,9.0000002 4,8.0000002 4,6.0000002 4,4.0000002 6,4.0000002 6,2.0000007 z" Fill="#FF55609B" />
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=Tools_FindAndReplace, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 4 0 1" TextWrapping="Wrap" TextTrimming="WordEllipsis" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Style="{StaticResource DropDownContent}">
                        <c1rtbtb:C1FindAndReplace RichTextBox="{Binding RichTextBox}" DropDown="{Binding DropDown}" Margin="5" />
                    </ContentControl>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="HyperlinkButton" TargetType="Button">
        <Setter Property="Foreground" Value="#FF73A9D8" />
        <Setter Property="Padding" Value="2,0,2,0" />
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Top" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Cursor="{TemplateBinding Cursor}" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="UnderlineTextBlock" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="UnderlineTextBlock" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <TextBlock x:Name="UnderlineTextBlock" Text="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" TextDecorations="Underline" Visibility="Collapsed" />
                        <TextBlock Canvas.ZIndex="1" x:Name="DisabledOverlay" Text="{TemplateBinding Content}" Foreground="#FFAAAAAA" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Visibility="Collapsed" />
                        <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
                        <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" Opacity="0" IsHitTestVisible="false" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1InsertTableGrid">
        <Setter Property="CellSize" Value="20" />
        <Setter Property="Columns" Value="1" />
        <Setter Property="Rows" Value="1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1InsertTableGrid">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <Border Grid.ColumnSpan="2" BorderThickness="0 0 0 1" BorderBrush="{TemplateBinding BorderBrush}" />
                                <Grid Height="16" Width="16" Margin="4">
                                    <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" VerticalAlignment="Bottom" Height="4" Width="16" Margin="0" />
                                    <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" VerticalAlignment="Bottom" Height="7" Width="6" Margin="5,0,0,0" />
                                    <Rectangle Stroke="#FF5F5F5F" VerticalAlignment="Bottom" Height="7" />
                                    <Line X1="0" Y1="0.5" X2="12" Y2="0.5" StrokeDashArray="3 1 3 1 4" Stroke="Black" StrokeThickness="1" Margin="2,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                                    <Line X1="0" Y1="0.5" X2="12" Y2="0.5" StrokeDashArray="5 1 6" Stroke="Black" StrokeThickness="1" Margin="2,2,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                                    <Rectangle HorizontalAlignment="Left" Height="4" Margin="7,4,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="1" Fill="#FF5A719D" />
                                    <Rectangle HorizontalAlignment="Left" Height="1" Margin="6,6,0,9" Stroke="Black" StrokeThickness="0" VerticalAlignment="Bottom" Width="3" Fill="#FF5A719D" />
                                </Grid>
                                <Button x:Name="ConvertText" Grid.Column="1" Content="{Binding Path=Tools_InsertTable_ConvertText, Source={StaticResource RichTextBoxToolbarResources}}" VerticalContentAlignment="Center" Style="{StaticResource HyperlinkButton}" />
                            </Grid>

                            <Grid Grid.Row="1">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <Border Grid.ColumnSpan="2" />
                                <!-- Background="#FFF5F7F9" BorderThickness="0,0,0,0" BorderBrush="#FFC7D3DD"-->
                                <Grid Width="16" Height="13" Margin="4">
                                    <Rectangle Fill="White" />
                                    <Rectangle Stroke="#FF969696" VerticalAlignment="Bottom" Height="4" Margin="0,9,0,0" />
                                    <Rectangle Stroke="#FF969696" VerticalAlignment="Bottom" Height="4" Margin="0,0,0,3" />
                                    <Rectangle Stroke="#FF969696" HorizontalAlignment="Left" Margin="4,0,0,0" Width="6" />
                                    <Rectangle Stroke="#FF5F5F5F" />
                                    <Rectangle Fill="#FF95A2BB" Stroke="#FF6F798C" VerticalAlignment="Top" Height="4" />
                                </Grid>
                                <Grid Grid.Column="1">
                                    <!-- Background="#FFF5F7F9"-->
                                    <StackPanel Orientation="Horizontal" Margin="2 0 0 0" VerticalAlignment="Center">
                                        <TextBlock Text="{Binding Columns, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <TextBlock Text="x" />
                                        <TextBlock Text="{Binding Rows, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <TextBlock Text="{Binding Path=Table_Title, Source={StaticResource RichTextBoxToolbarResources}}" Margin="3 0 0 0" />
                                    </StackPanel>
                                </Grid>
                            </Grid>
                            <Grid Grid.Row="3">
                                <!-- Background="#FFF5F7F9" -->
                                <c1rtbtb:C1InsertTableGridPanel x:Name="TableGrid" Margin="4" Rows="{TemplateBinding Rows}" Columns="{TemplateBinding Columns}" CellSize="{TemplateBinding CellSize}" MinRows="5" MinColumns="8">
                                    <c1rtbtb:C1InsertTableGridPanel.CellTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <Border Margin="2" BorderThickness="1" BorderBrush="#FF646464" Background="Transparent" />
                                            </Grid>
                                        </DataTemplate>
                                    </c1rtbtb:C1InsertTableGridPanel.CellTemplate>
                                    <c1rtbtb:C1InsertTableGridPanel.SelectedCellTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <Border Margin="2" BorderThickness="1" BorderBrush="#FFFFE294" Background="Transparent" />
                                                <Border Margin="1" BorderThickness="1" BorderBrush="#FFEF4810" />
                                            </Grid>
                                        </DataTemplate>
                                    </c1rtbtb:C1InsertTableGridPanel.SelectedCellTemplate>
                                </c1rtbtb:C1InsertTableGridPanel>
                            </Grid>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FindAndReplace">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1FindAndReplace">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition Width="4" />
                            <ColumnDefinition />
                            <ColumnDefinition Width="4" />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition Height="5" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="5" />
                        </Grid.RowDefinitions>
                        <Grid Grid.ColumnSpan="5">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="5" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="5" />
                                <ColumnDefinition MinWidth="185" />
                            </Grid.ColumnDefinitions>
                            <TextBlock x:Name="FindLabel" Margin="0 5 0 0" Text="{Binding Path=FindTool_LblFind, Source={StaticResource RichTextBoxToolbarResources}}" TextTrimming="WordEllipsis" />
                            <TextBox x:Name="FindBox" Grid.Column="2" />
                            <TextBlock x:Name="ReplaceLabel" Margin="0 5 0 0" Text="{Binding Path=FindTool_LblReplace, Source={StaticResource RichTextBoxToolbarResources}}" Grid.Row="2" TextTrimming="WordEllipsis" />
                            <TextBox x:Name="ReplaceBox" Grid.Column="2" Grid.Row="2" />
                        </Grid>
                        <Button x:Name="ReplaceButton" Grid.Column="0" Grid.Row="2">
                            <TextBlock Text="{Binding Path=FindTool_BtnReplace, Source={StaticResource RichTextBoxToolbarResources}}" TextTrimming="WordEllipsis" />
                        </Button>
                        <Button x:Name="ReplaceAllButton" Grid.Row="2" Grid.Column="2">
                            <TextBlock Text="{Binding Path=FindTool_BtnReplaceAll, Source={StaticResource RichTextBoxToolbarResources}}" TextTrimming="WordEllipsis" />
                        </Button>
                        <Button x:Name="FindButton" Grid.Column="4" Grid.Row="2">
                            <TextBlock Text="{Binding Path=FindTool_BtnFindNext, Source={StaticResource RichTextBoxToolbarResources}}" TextTrimming="WordEllipsis" />
                        </Button>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- C1ThicknessPicker -->
    <Style TargetType="c1rtbtb:C1ThicknessPicker">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1ThicknessPicker">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.Resources>
                            <Style TargetType="c1:C1NumericBox" x:Key="NumericStyle">
                                <Setter Property="FontFamily" Value="Trebuchet MS" />
                                <Setter Property="FontSize" Value="11" />
                                <Setter Property="Margin" Value="4" />
                                <Setter Property="Width" Value="50" />
                                <Setter Property="Height" Value="24" />
                                <Setter Property="Maximum" Value="9999" />
                                <Setter Property="RangeValidationMode" Value="Always" />
                            </Style>
                            <Style TargetType="TextBlock" x:Key="LabelStyle">
                                <Setter Property="HorizontalAlignment" Value="Right" />
                                <Setter Property="VerticalAlignment" Value="Center" />
                                <Setter Property="FontFamily" Value="Trebuchet MS" />
                                <Setter Property="FontSize" Value="11" />
                                <Setter Property="Margin" Value="4,0,0,0" />
                            </Style>
                        </Grid.Resources>

                        <TextBlock Text="{Binding Path=ThicknessPicker_Left, Source={StaticResource RichTextBoxToolbarResources}}" Style="{StaticResource LabelStyle}" />
                        <c1:C1NumericBox Name="Left" Grid.Column="1" Style="{StaticResource NumericStyle}" Watermark="" />

                        <TextBlock Text="{Binding Path=ThicknessPicker_Right, Source={StaticResource RichTextBoxToolbarResources}}" Grid.Column="2" Style="{StaticResource LabelStyle}" />
                        <c1:C1NumericBox Name="Right" Grid.Column="3" Style="{StaticResource NumericStyle}" Watermark="" />

                        <TextBlock Text="{Binding Path=ThicknessPicker_Top, Source={StaticResource RichTextBoxToolbarResources}}" Grid.Row="1" Style="{StaticResource LabelStyle}" />
                        <c1:C1NumericBox Name="Top" Grid.Column="1" Grid.Row="1" Style="{StaticResource NumericStyle}" Watermark="" />

                        <TextBlock Text="{Binding Path=ThicknessPicker_Bottom, Source={StaticResource RichTextBoxToolbarResources}}" Grid.Column="2" Grid.Row="1" Style="{StaticResource LabelStyle}" />
                        <c1:C1NumericBox Name="Bottom" Grid.Column="3" Grid.Row="1" Style="{StaticResource NumericStyle}" Watermark="" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1PrintViewTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="12" Width="12" Background="White" BorderBrush="Black" BorderThickness="1" Padding="2 1 2 1">
                        <Grid>
                            <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,0,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                            <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,2,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                            <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,4,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                            <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,6,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        </Grid>
                    </Border>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1PrintViewLargeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Height="30" Width="30">
                            <Border BorderBrush="#FF717B7E" BorderThickness="0 0 1 1">
                                <Border BorderBrush="#FFABBBC0" BorderThickness="1" Padding="2 1 2 1">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.956,0.969" StartPoint="0.059,0.061">
                                            <GradientStop Color="#FFDEDEDE" Offset="0" />
                                            <GradientStop Color="White" Offset="1" />
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Border Height="21" Width="15" Background="White" BorderThickness="1" Padding="2">
                                        <Border.BorderBrush>
                                            <LinearGradientBrush EndPoint="1.093,0.704" StartPoint="0.023,0.171">
                                                <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                                <GradientStop Color="#FF5A6D81" Offset="0.5" />
                                            </LinearGradientBrush>
                                        </Border.BorderBrush>
                                        <Path Data="M0,12 L10,12 L10,13 L0,13 z M0,10 L10,10 L10,11 L0,11 z M0,8 L10,8 L10,9 L0,9 z M0,6 L10,6 L10,7 L0,7 z M0,4 L10,4 L10,5 L0,5 z M0,2 L10,2 L10,3 L0,3 z M2E-06,0 L10,0 L10,1 L2E-06,1 z" Fill="#FF686868" HorizontalAlignment="Left" Height="13" Stretch="Fill" StrokeThickness="1" SnapsToDevicePixels="False" VerticalAlignment="Top" Width="10" />
                                    </Border>
                                </Border>
                            </Border>
                        </Grid>
                        <TextBlock Grid.Row="1" Width="40" Text="{Binding Path=View_PrintLayout, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1DraftViewTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Height="10" Width="8">
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,1,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,3,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,5,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,7,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                        <Path Height="1" HorizontalAlignment="Stretch" Margin="-0.5,9,-0.5,0" VerticalAlignment="Top" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="1" Data="M4.3000002,4.4000001 L11.500694,4.4000001" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1DraftViewLargeTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarToggleButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Height="30" Width="30">
                            <Border Background="White" BorderThickness="1" Padding="5">
                                <Border.BorderBrush>
                                    <LinearGradientBrush EndPoint="0.913,0.98" StartPoint="0.02,0.085">
                                        <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                        <GradientStop Color="#FF5A6D81" Offset="0.5" />
                                    </LinearGradientBrush>
                                </Border.BorderBrush>
                                <Path Data="M0,12 L10,12 L10,13 L0,13 z M0,10 L10,10 L10,11 L0,11 z M0,8 L10,8 L10,9 L0,9 z M0,6 L10,6 L10,7 L0,7 z M0,4 L10,4 L10,5 L0,5 z M0,2 L10,2 L10,3 L0,3 z M2E-06,0 L10,0 L10,1 L2E-06,1 z" Fill="#FF686868" HorizontalAlignment="Left" Height="13" Stretch="Fill" StrokeThickness="1" SnapsToDevicePixels="False" VerticalAlignment="Top" />
                            </Border>
                        </Grid>
                        <TextBlock Grid.Row="1" Text="{Binding Path=View_Draft, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ZoomComboTool" BasedOn="{StaticResource C1ComboBoxStyle}">
        <Setter Property="IsEditable" Value="True" />
        <Setter Property="Width" Value="60" />
        <Setter Property="Height" Value="24" />
        <Setter Property="Margin" Value="2 -2" />
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <ContentControl Content="{Binding}" />
                        <TextBlock Text=" %" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1HyperlinkDialog">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1HyperlinkDialog">
                    <Grid Width="350" Background="White">
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition Height="50" />
                        </Grid.RowDefinitions>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="{Binding Path=Insert_InsertHyperlink_TextLabel, Source={StaticResource RichTextBoxToolbarResources}}" Margin="10 0 0 0" VerticalAlignment="Center" />
                            <TextBox x:Name="HyperLinkText" Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Height="24" Margin="10 10 10 5" Grid.Column="1" />
                            <TextBlock Text="{Binding Path=Insert_InsertHyperlink_URLLabel, Source={StaticResource RichTextBoxToolbarResources}}" Margin="10 0 0 0" VerticalAlignment="Center" Grid.Row="1" />
                            <TextBox Text="{Binding Url, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Height="24" Margin="10 5 10 10" Grid.Row="1" Grid.Column="1" />
                            <TextBlock Text="{Binding Path=Insert_InsertHyperlink_TargetLabel, Source={StaticResource RichTextBoxToolbarResources}}" Margin="10 0 0 0" VerticalAlignment="Center" Grid.Row="2" />
                            <TextBox Text="{Binding TargetName, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Height="24" Margin="10 5 10 10" Grid.Row="2" Grid.Column="1" />
                        </Grid>
                        <Grid Background="#FFF0F0F0" Grid.Row="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" Margin="0,0,5,0">
                                <Button x:Name="OKButton" Content="{Binding Path=OK, Source={StaticResource Resources}}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,0,5,0" MinWidth="75" />
                            </StackPanel>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ImageDialog">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1ImageDialog">
                    <c1:C1TabControl Padding="0" ShowSingleTab="False">
                        <c1:C1TabItem Header="{Binding Path=Insert_InsertImage_UploadTab, Source={StaticResource RichTextBoxToolbarResources}}" IsSelectable="{TemplateBinding CanUserInsertFile}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CanUserInsertFile, Converter={StaticResource visibilityConverter}}">
                            <Grid Width="350" Background="White">
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition Height="50" />
                                </Grid.RowDefinitions>
                                <StackPanel>
                                    <TextBlock Text="{Binding Path=Insert_InsertImage_UploadMessage, Source={StaticResource RichTextBoxToolbarResources}}" Margin="10 10 0 0" />
                                    <c1:C1FilePicker x:Name="FilePicker" Margin="10" Height="24" />
                                </StackPanel>
                                <Grid Background="#FFF0F0F0" Grid.Row="1">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" Margin="0,0,5,0">
                                        <Button x:Name="FileOKButton" Content="{Binding Path=OK, Source={StaticResource Resources}}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,0,5,0" MinWidth="75" />
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </c1:C1TabItem>
                        <c1:C1TabItem Header="{Binding Path=Insert_InsertImage_UrlTab, Source={StaticResource RichTextBoxToolbarResources}}" IsSelectable="{TemplateBinding CanUserInsertUrl}" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CanUserInsertUrl, Converter={StaticResource visibilityConverter}}">
                            <Grid Width="350" Background="White">
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition Height="50" />
                                </Grid.RowDefinitions>
                                <StackPanel>
                                    <TextBlock Text="{Binding Path=Insert_InsertImage_UrlMessage, Source={StaticResource RichTextBoxToolbarResources}}" Margin="10 10 0 0" />
                                    <TextBox x:Name="UrlText" Text="{Binding Url, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" Height="24" Margin="10" />
                                </StackPanel>
                                <Grid Background="#FFF0F0F0" Grid.Row="1">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" Margin="0,0,5,0">
                                        <Button x:Name="UrlOKButton" Content="{Binding Path=OK, Source={StaticResource Resources}}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,0,5,0" MinWidth="75" />
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </c1:C1TabItem>
                    </c1:C1TabControl>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1LengthTool" x:Key="C1.Silverlight.RichTextBox.Toolbar.C1LengthTool">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1rtbtb:C1LengthTool">
                    <Grid>
                        <Grid.Resources>
                            <c1rtbtb:C1LengthUnitConverter x:Key="lengthUnitConverter" />
                        </Grid.Resources>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <ContentControl Foreground="{TemplateBinding Foreground}" ContentTemplate="{TemplateBinding HeaderTemplate}" VerticalAlignment="Center" />
                        <c1:C1NumericBox x:Name="Value" Padding="0 0 15 0" Minimum="0" Maximum="9999" Grid.Column="1" Width="65" Height="20" VerticalContentAlignment="Center" />
                        <ComboBox x:Name="Unit" HorizontalAlignment="Right" MinWidth="15" VerticalAlignment="Center" Padding="1 0 1 0" Margin="0,2,17,2" Grid.Column="1" Background="Transparent" Template="{StaticResource C1LengthTool.ComboBox}">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Converter={StaticResource lengthUnitConverter}}" />
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1LengthTool" BasedOn="{StaticResource C1.Silverlight.RichTextBox.Toolbar.C1LengthTool}" />

    <Style TargetType="c1rtbtb:C1TableWidthTool" BasedOn="{StaticResource C1.Silverlight.RichTextBox.Toolbar.C1LengthTool}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Width="85">
                        <Grid Width="15" Height="16" Margin="5" VerticalAlignment="Top">
                            <Rectangle Height="7" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="15" Fill="White" />
                            <Border BorderBrush="#FF5F5F5F" Height="7" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="15" BorderThickness="1,1,1,0" Margin="0" />
                            <Path Fill="Black" Stretch="Fill" VerticalAlignment="Top" Height="7" Data="M14,5.9999996 L15,5.9999996 15,6.9999996 14,6.9999996 z M0,5.9999996 L1,5.9999996 1,6.9999996 0,6.9999996 z M14,3.9999996 L15,3.9999996 15,4.9999996 14,4.9999996 z M0,3.9999996 L1,3.9999996 1,4.9999996 0,4.9999996 z M9,0.99999947 L10,0.99999947 10,1.9999996 9,1.9999996 z M7,0.99999947 L8,0.99999947 8,1.9999996 7,1.9999996 z M5,0.99999947 L6,0.99999947 6,1.9999996 5,1.9999996 z M13,0 L14,0 14,0.99999971 15,0.99999971 15,1.9999996 14,1.9999996 14,2.9999996 13,2.9999996 13,1.9999996 11,1.9999996 11,0.99999971 13,0.99999971 z M1,0 L2,0 2,0.99999971 4,0.99999971 4,1.9999996 2,1.9999996 2,2.9999996 1,2.9999996 1,1.9999996 0,1.9999996 0,0.99999971 1,0.99999971 z" />
                            <Rectangle Stroke="#FF6F798C" Height="3" VerticalAlignment="Bottom" Margin="0,0,0,5" Fill="#FF95A2BB" />
                            <Path Fill="#FF969696" Stretch="Fill" Margin="1,0" VerticalAlignment="Bottom" Height="5" Data="M2.5,0 L3.5,0 3.5,2.0000001 6,2.0000001 6,0 7,0 7,2.0000001 9.5,2.0000001 9.5,0 10.5,0 10.5,2.0000001 13,2.0000001 13,3.0000001 10.5,3.0000001 10.5,4.0000001 10.5,5.0000001 9.5,5.0000001 9.5,4.0000001 9.5,3.0000001 7,3.0000001 7,4.0000001 7,5.0000001 6,5.0000001 6,4.0000001&#xD;&#xA;6,3.0000001 3.5,3.0000001 3.5,4.0000001 3.5,5.0000001 2.5,5.0000001 2.5,4.0000001 2.5,3.0000001 0,3.0000001 0,2.0000001 2.5,2.0000001 z" />
                        </Grid>
                        <TextBlock Text="{Binding Path=Tools_TableWidth_Header, Source={StaticResource RichTextBoxToolbarResources}}" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ColumnWidthTool" BasedOn="{StaticResource C1.Silverlight.RichTextBox.Toolbar.C1LengthTool}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Width="85">
                        <Grid Width="15" Height="15" Margin="4">
                            <Rectangle Stroke="#FF5A719D" Height="6" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15" Fill="#FFABC0E6" />
                            <Rectangle Stroke="#FF969696" Height="5" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="5" Margin="5,5,0,0" Fill="#FFE0E0E0" />
                            <Rectangle HorizontalAlignment="Right" Margin="2,0,1,1" VerticalAlignment="Bottom" Width="1" Height="3" Fill="Black" />
                            <Path Fill="Black" Stretch="Fill" Margin="0,7,0,0" VerticalAlignment="Top" Height="7" Data="M11,5 L15,5 15,6 11,6 z M1,4 L2,4 2,5 4,5 4,6 2,6 2,7 1,7 1,6 0,6 0,5 1,5 z M14,2 L15,2 15,3 14,3 z M0,2 L1,2 1,3 0,3 z M14,0 L15,0 15,0.99999991 14,0.99999991 z M0,0 L1,0 1,0.99999991 0,0.99999991 z" Width="15" />
                        </Grid>
                        <TextBlock Text="{Binding Path=Tools_ColumnWidth_Header, Source={StaticResource RichTextBoxToolbarResources}}" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1RowHeightTool" BasedOn="{StaticResource C1.Silverlight.RichTextBox.Toolbar.C1LengthTool}">
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Width="85">
                        <Grid Width="15" Height="15" Margin="4">
                            <Rectangle Stroke="#FF5A719D" Height="15" VerticalAlignment="Top" HorizontalAlignment="Right" Width="6" Fill="#FFABC0E6" />
                            <Rectangle Stroke="#FF969696" Height="5" VerticalAlignment="Top" HorizontalAlignment="Left" Width="5" Margin="0,5,0,0" Fill="#FFE0E0E0" />
                            <Path Fill="Black" Stretch="Fill" HorizontalAlignment="Left" Margin="1,0,0,0" Width="7" Data="M6.0000001,14 L7,14 7,15 6.0000001,15 z M4,14 L4.9999999,14 4.9999999,15 4,15 z M1,11 L2,11 2,13 3,13 3,14 2,14 2,15 1,15 1,14 0,14 0,13 1,13 z M6.0000001,0 L7,0 7,1 6.0000001,1 z M4,0 L4.9999999,0 4.9999999,1 4,1 z M1,0 L2,0 2,1 3,1 3,2 2,2 2,4 1,4 1,2 0,2 0,1 1,1 z" Height="15" />
                        </Grid>
                        <TextBlock Text="{Binding Path=Tools_RowHeight_Header, Source={StaticResource RichTextBoxToolbarResources}}" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ColorPickerMenuItem" BasedOn="{StaticResource NonFirstLevelMenuStyle}">
        <Setter Property="Padding" Value="5 0 5 0" />
        <Setter Property="Background" Value="{StaticResource BaseColorBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource GeneralThickness}" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <c1:C1WrapPanel Width="150" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="c1:C1MenuItem">
                    <Setter Property="Padding" Value="0" />
                    <Setter Property="Margin" Value="2" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="c1:C1MenuItem">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="Disabled" />
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="mouseOverRect" Storyboard.TargetProperty="Visibility" Duration="0">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="HeaderPanel">
                                        <ContentControl x:Name="Header" />
                                        <Border BorderThickness="1" BorderBrush="DarkGray" Background="{TemplateBinding Header}" Height="11" Width="11" />
                                        <Rectangle x:Name="mouseOverRect" IsHitTestVisible="False" Visibility="Collapsed" Stroke="Orange" StrokeThickness="1" Width="11" Height="11" />
                                    </Grid>
                                    <Popup x:Name="SubItemsPopup">
                                        <ItemsPresenter x:Name="SubItemsPresenter" />
                                    </Popup>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Width="13" Height="13" Margin="5 0 0 0" BorderBrush="{Binding}" BorderThickness="3" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ThicknessMenuItem" BasedOn="{StaticResource NonFirstLevelMenuStyle}">
        <Setter Property="Padding" Value="5 0 5 0" />
        <Setter Property="Background" Value="{StaticResource BaseColorBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource GeneralThickness}" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel Background="White" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="c1:C1MenuItem">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="c1:C1MenuItem">
                                <Grid x:Name="Root">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal" />
                                            <VisualState x:Name="Disabled" />
                                            <VisualState x:Name="MouseOver" />
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="OpenStates">
                                            <VisualState x:Name="Closed" />
                                            <VisualState x:Name="Open" />
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="HighlightedStates">
                                            <VisualState x:Name="NonHighlighted" />
                                            <VisualState x:Name="Highlighted">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HighlightedElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                                        <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <c1:C1BrushBuilder x:Name="HighlightedBackground" Input="{TemplateBinding HighlightedBackground}" DesignBrush="{StaticResource MenuItemHighlightedBackground}" DesignColor="{StaticResource HighlightedColor}" />
                                    <Grid x:Name="HeaderPanel" Background="Transparent" MinHeight="20">
                                        <Border x:Name="HighlightedElement" IsHitTestVisible="False" Grid.ColumnSpan="3" Background="{Binding ElementName=HighlightedBackground, Path=Output}" BorderBrush="{TemplateBinding HighlightedBackground}" BorderThickness="{StaticResource MenuItemBorderThickness}" CornerRadius="{StaticResource MenuItemCornerRadius}" Visibility="Collapsed" />
                                        <ContentControl x:Name="Header" />
                                        <Rectangle Width="60" Height="{TemplateBinding Header}" Margin="3 0 3 0" Fill="Black" />
                                    </Grid>
                                    <Popup x:Name="SubItemsPopup">
                                        <ItemsPresenter x:Name="SubItemsPresenter" />
                                    </Popup>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="IconTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Rectangle Width="17" Height="{Binding}" Margin="3 0 0 0" Fill="Black" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ZoomInTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid x:Name="ZoomIn" Height="30" Width="30">
                            <Rectangle Fill="#FFFFDA6F" Height="19" Margin="0,0,6,0" Stroke="#FFF37B4D" VerticalAlignment="Bottom" Width="6" RadiusX="1" RadiusY="1" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Right">
                                <Rectangle.RenderTransform>
                                    <RotateTransform Angle="-45" />
                                </Rectangle.RenderTransform>
                            </Rectangle>
                            <Ellipse HorizontalAlignment="Left" Stroke="#FF5B6168" Width="22" Height="22" VerticalAlignment="Top" Margin="1,1,0,0">
                                <Ellipse.Fill>
                                    <RadialGradientBrush GradientOrigin="0.288,0.253">
                                        <GradientStop Color="#FFF2FFFF" Offset="0.328" />
                                        <GradientStop Color="#FF8ECEF5" Offset="1" />
                                    </RadialGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>
                            <Path Data="M2,0 L4,0 L4,2 L6,2 L6,4 L4,4 L4,6 L2,6 L2,4 L0,4 L0,2 L2,2 z" Fill="#FF565E7E" Margin="6" Stretch="Fill" Width="12" Height="12" HorizontalAlignment="Left" VerticalAlignment="Top" />
                        </Grid>
                        <TextBlock Grid.Row="1" Width="40" Text="{Binding Path=Tools_ZoomIn, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1ZoomOutTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Height="30" Width="30">
                            <Rectangle Fill="#FFFFDA6F" Height="19" Margin="0,0,6,0" Stroke="#FFF37B4D" VerticalAlignment="Bottom" Width="6" RadiusX="1" RadiusY="1" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Right">
                                <Rectangle.RenderTransform>
                                    <RotateTransform Angle="-45" />
                                </Rectangle.RenderTransform>
                            </Rectangle>
                            <Ellipse HorizontalAlignment="Left" Stroke="#FF5B6168" Width="22" Height="22" VerticalAlignment="Top" Margin="1,1,0,0">
                                <Ellipse.Fill>
                                    <RadialGradientBrush GradientOrigin="0.288,0.253">
                                        <GradientStop Color="#FFF2FFFF" Offset="0.328" />
                                        <GradientStop Color="#FF8ECEF5" Offset="1" />
                                    </RadialGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>
                            <Path Data="M6,2 L6,4 L0,4 L0,2 z" Fill="#FF565E7E" Margin="6,10,0,0" Stretch="Fill" Width="12" Height="4" HorizontalAlignment="Left" VerticalAlignment="Top" SnapsToDevicePixels="False" />
                        </Grid>
                        <TextBlock Grid.Row="1" Width="40" Text="{Binding Path=Tools_ZoomOut, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1Zoom100PercentTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="MinHeight" Value="68" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Margin="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid Height="30" Width="30" Margin="0">
                            <Path Fill="#FFFAFBFD" Stretch="Fill" HorizontalAlignment="Right" Margin="0,0,8,5" VerticalAlignment="Bottom" Data="M0.5,0.5 L11.8726,0.5 L17.5,4.94794 L17.5,18.5 L0.5,18.5 z" Height="25" SnapsToDevicePixels="False" Width="19">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.986,0.972" StartPoint="-0.069,0.269">
                                        <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                        <GradientStop Color="#FF5A6D81" Offset="0.5" />
                                    </LinearGradientBrush>
                                </Path.Stroke>
                            </Path>
                            <Path Stretch="Fill" HorizontalAlignment="Right" VerticalAlignment="Top" Width="7" Height="7" Data="M0.5,0.5 C0.5860419,0.50342318 5.4910683,5.404516 5.5,5.5 5.5089317,5.595484 2.1666667,5.5 0.5,5.5 0.5,3.8333333 0.4139581,0.49657682 0.5,0.5 z" Margin="0,0,8,0">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.048,0.951" StartPoint="0.516,0.478">
                                        <GradientStop Color="#FFB0BBC9" Offset="0" />
                                        <GradientStop Color="#FFEBF0F9" Offset="0.64" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.971,0.931" StartPoint="0.02,0.085">
                                        <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                        <GradientStop Color="#FF5A6D81" Offset="1" />
                                    </LinearGradientBrush>
                                </Path.Stroke>
                            </Path>
                            <Path Data="M22,29 L23,29 L23,30 L22,30 z M20,29 L21,29 L21,30 L20,30 z M18,29 L19,29 L19,30 L18,30 z M16,29 L17,29 L17,30 L16,30 z M14,29 L15,29 L15,30 L14,30 z M12,29 L13,29 L13,30 L12,30 z M10,29 L11,29 L11,30 L10,30 z M8,29 L9,29 L9,30 L8,30 z M6,29 L7,29 L7,30 L6,30 z M4,29 L5,29 L5,30 L4,30 z M1.99999,29 L2.99999,29 L2.99999,30 L1.99999,30 z M0,29 L1,29 L1,30 L0,30 z M23,28 L24,28 L24,29 L23,29 z M0,27 L1,27 L1,28 L0,28 z M23,26 L24,26 L24,27 L23,27 z M0,25 L1,25 L1,26 L0,26 z M23,24 L24,24 L24,25 L23,25 z M23,22 L24,22 L24,23 L23,23 z M23,20 L24,20 L24,21 L23,21 z M23,18 L24,18 L24,19 L23,19 z M23,16 L24,16 L24,17 L23,17 z M23,14 L24,14 L24,15 L23,15 z M23,12 L24,12 L24,13 L23,13 z M23,10 L24,10 L24,11 L23,11 z M23,8 L24,8 L24,9 L23,9 z M23,6 L24,6 L24,7 L23,7 z M23,4 L24,4 L24,5 L23,5 z M23,2 L24,2 L24,3 L23,3 z M23,0 L24,0 L24,1 L23,1 z M21,0 L22,0 L22,1 L21,1 z M19,0 L20,0 L20,1 L19,1 z M17,0 L18,0 L18,1 L17,1 z M15,0 L16,0 L16,1 L15,1 z" Fill="#FF5B6168" HorizontalAlignment="Right" Height="30" Margin="0,0,3,0" Stretch="Fill" SnapsToDevicePixels="False" VerticalAlignment="Top" Width="24" />
                            <Border Height="12" Width="20" Background="White" BorderThickness="1" Padding="0" Margin="7,3,3,0" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                                <Border.BorderBrush>
                                    <LinearGradientBrush EndPoint="0.748,0.986" StartPoint="0.387,-0.109">
                                        <GradientStop Color="#FFB1BFD1" Offset="0.5" />
                                        <GradientStop Color="#FF5A6D81" Offset="0.5" />
                                    </LinearGradientBrush>
                                </Border.BorderBrush>
                                <TextBlock TextWrapping="Wrap" Text="100%" FontSize="6" FontFamily="Segoe WP bold" VerticalAlignment="Center" />
                            </Border>
                        </Grid>
                        <TextBlock Grid.Row="1" Width="40" Text="{Binding Path=Tools_Zoom100PercentTool, Source={StaticResource RichTextBoxToolbarResources}}" TextAlignment="Center" Margin="0 6 0 0" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="12" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
   
    <Style TargetType="c1rtbtb:C1OnePageTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Grid Height="14" Width="12" Margin="2 1">
                            <Rectangle>
                                <Rectangle.Stroke>
                                    <LinearGradientBrush EndPoint="0.907,0.859" StartPoint="0.029,0.208">
                                        <GradientStop Color="#FFB2C2D8" Offset="0.48" />
                                        <GradientStop Color="#FF354963" Offset="0.52" />
                                    </LinearGradientBrush>
                                </Rectangle.Stroke>
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="1.011,0.851" StartPoint="0.003,0.173">
                                        <GradientStop Color="White" Offset="0.45" />
                                        <GradientStop Color="#FFC7D2E1" Offset="1" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Path Data="M0,6 L6,6 L6,7 L0,7 z M0,4 L6,4 L6,5 L0,5 z M0,2 L6,2 L6,3 L0,3 z M0,0 L6,0 L6,1 L0,1 z" Fill="#FF686868" HorizontalAlignment="Right" Margin="3,4,3,3" Stretch="Fill" Width="6" VerticalAlignment="Bottom" Height="7" />
                        </Grid>
                        <TextBlock Margin="3 0 0 0" Text="{Binding Path=View_OnePage, Source={StaticResource RichTextBoxToolbarResources}}" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1TwoPagesTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Grid Height="14" Width="16" Margin="0 1">
                            <Path Data="M0.5,0.5 L7.5053296,0.5 L7.4953361,13.5 L0.5,13.5 z" Stretch="Fill" Margin="7.995,0,0,0">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.9,0.7" StartPoint="0,0.4">
                                        <GradientStop Color="#FFB2C2D8" Offset="0.48" />
                                        <GradientStop Color="#FF354963" Offset="0.52" />
                                    </LinearGradientBrush>
                                </Path.Stroke>
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.9,0.7" StartPoint="0,0.4">
                                        <GradientStop Color="White" Offset="0.45" />
                                        <GradientStop Color="#FFC7D2E1" Offset="1" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Data="M0.5,0.5 L7.4953361,0.5 L7.4953361,13.5 L0.5,13.5 z" Stretch="Fill" HorizontalAlignment="Left" Width="7.995">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.9,0.7" StartPoint="0,0.4">
                                        <GradientStop Color="#FFB2C2D8" Offset="0.48" />
                                        <GradientStop Color="#FF354963" Offset="0.52" />
                                    </LinearGradientBrush>
                                </Path.Stroke>
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.9,0.7" StartPoint="0,0.4">
                                        <GradientStop Color="White" Offset="0.45" />
                                        <GradientStop Color="#FFC7D2E1" Offset="1" />
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Data="M8,6 L12,6 L12,7 L8,7 z M0,6 L4,6 L4,7 L0,7 z M0,4 L4,4 L4,5 L0,5 z M8,4 L12,4 L12,5 L8,5 z M0,2 L4,2 L4,3 L0,3 z M8,2 L12,2 L12,3 L8,3 z M0,1.8E-07 L4,1.8E-07 L4,1 L0,1 z M8,0 L12,0 L12,1 L8,1 z" Fill="#FF686868" Height="7" Margin="2,0,2,3" Stretch="Fill" VerticalAlignment="Bottom" />
                        </Grid>
                        <TextBlock Margin="3 0 0 0" Text="{Binding Path=View_TwoPages, Source={StaticResource RichTextBoxToolbarResources}}" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c1rtbtb:C1FitWidthTool" BasedOn="{StaticResource C1.Silverlight.Toolbar.C1ToolbarButton}">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Grid Height="14" Width="16" Margin="0 1">
                            <Rectangle>
                                <Rectangle.Stroke>
                                    <LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
                                        <GradientStop Color="#FFB2C2D8" Offset="0.48" />
                                        <GradientStop Color="#FF354963" Offset="0.52" />
                                    </LinearGradientBrush>
                                </Rectangle.Stroke>
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
                                        <GradientStop Color="White" Offset="0.45" />
                                        <GradientStop Color="#FFC7D2E1" Offset="1" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Path Data="M0,6 L6,6 L6,7 L0,7 z M0,4 L6,4 L6,5 L0,5 z M0,2 L6,2 L6,3 L0,3 z M0,0 L6,0 L6,1 L0,1 z" HorizontalAlignment="Right" Margin="0,4,5,3" Stretch="Fill" Width="6" Fill="#FF686868" />
 
                            <Path Data="M11.121,0 L13.242,2.31451 L11.121,4.629 z M2.121,0 L2.121,4.629 L0,2.3145 z" Fill="#FF4361D0" HorizontalAlignment="Center" Height="4.629" Stretch="Fill" SnapsToDevicePixels="False" VerticalAlignment="Center" Width="13.242" />
                        </Grid>
                        <TextBlock Margin="3 0 0 0" Text="{Binding Path=View_FitWidth, Source={StaticResource RichTextBoxToolbarResources}}" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>