<UserControl x:Class="Office2016InspiredApplication.RibbonViewControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:ribbonViewPrimitives="clr-namespace:Telerik.Windows.Controls.RibbonView.Primitives;assembly=Telerik.Windows.Controls.RibbonView"
             xmlns:appearance="clr-namespace:Office2016InspiredApplication.Appearance"
             xmlns:viewModel="clr-namespace:Office2016InspiredApplication.ViewModel"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <viewModel:MainViewModel x:Key="MainViewModel" />
    </UserControl.Resources>
    
    <telerik:RadRibbonView ApplicationName="Office2016Inspired RibbonView" Title="Document1" ApplicationButtonContent="File" >
        <telerik:RadRibbonView.QuickAccessToolBar>
            <telerik:QuickAccessToolBar Style="{StaticResource QuickAccessToolBarStyle}">
                <telerik:RadRibbonButton ContentTemplate="{StaticResource SaveDataTemplate}" Style="{StaticResource QATRibbonButtonStyle}" />
                <telerik:RadRibbonButton ContentTemplate="{StaticResource UndoDataTemplate}" Style="{StaticResource QATRibbonButtonStyle}" />
                <telerik:RadRibbonButton ContentTemplate="{StaticResource RedoDataTemplate}" Style="{StaticResource QATRibbonButtonStyle}" />
            </telerik:QuickAccessToolBar>
        </telerik:RadRibbonView.QuickAccessToolBar>
        <telerik:RadRibbonView.Backstage>
            <telerik:RadRibbonBackstage>
                <telerik:RadRibbonBackstageItem Header="New" IsSelectable="false" />
                <telerik:RadRibbonBackstageItem Header="Open" IsSelectable="false" />
                <telerik:RadRibbonBackstageItem Header="Save" IsSelectable="false" />
                <telerik:RadRibbonBackstageItem Header="Save As" IsDefault="false" >
                    <StackPanel HorizontalAlignment="Stretch" Margin="20 20 0 0" UseLayoutRounding="True">
                        <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" FontFamily="Verdana" Text="Save As"/>
                        <Rectangle Fill="Gray" HorizontalAlignment="Left" Height="1" Width="410"/>
                        <StackPanel Margin="0 30 0 0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="docx" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/worddoc.png, IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="Word Document"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Save the file as a Word document." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Margin="0 30 0 0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="pdf" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/Pdf.png, IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="PDF Document"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Save document as a PDF file." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Margin="0,30,0,0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="html" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/html.png, IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="HTML Document"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Save the file as a HTML document." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Margin="0,30,0,0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="rtf" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/Rtf.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="Rich Text Format"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Save document in Rich Text Format." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Margin="0,30,0,0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="txt" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/PlainText.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="Plain text"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Save document in plain text format." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Margin="0,30,0,0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="xaml" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/Xaml.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="XAML Document"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Save document as a XAML file." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </telerik:RadRibbonBackstageItem>
                <telerik:RadRibbonBackstageItem Header="Print" IsDefault="true">
                    <StackPanel HorizontalAlignment="Stretch" Margin="20,20,0,0" UseLayoutRounding="True">
                        <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" FontFamily="Verdana" Text="Print"/>
                        <Rectangle Fill="Gray" HorizontalAlignment="Left" Height="1" Width="410"/>
                        <StackPanel Margin="0,30,0,0" Orientation="Horizontal">
                            <telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="Native" CornerRadius="3" Height="80" VerticalContentAlignment="Center" Width="90">
                                <Image HorizontalAlignment="Center" Source="{telerik:IconResource IconRelativePath=ApplicationMenu/pagesetup.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                            </telerik:RadRibbonButton>
                            <StackPanel Margin="20 0 0 0">
                                <TextBlock Foreground="#FF5E5E7C" FontWeight="ExtraBold" FontSize="18" Text="Native Print"/>
                                <TextBlock FontSize="13" FontFamily="Verdana" TextWrapping="Wrap" Text="Send the document directly to the default printer without making changes." Width="300"/>
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </telerik:RadRibbonBackstageItem>
            </telerik:RadRibbonBackstage>
        </telerik:RadRibbonView.Backstage>
        <telerik:RadRibbonTab Header="Home">
            <telerik:RadRibbonGroup Header="Office2016 Color Variations"
                                        telerik:ScreenTip.Title="Office2016 Variations" DataContext="{StaticResource MainViewModel}">
                <telerik:RadRibbonRadioButton IsChecked="True" Content="Colorful" Size="Large" Background="#FF2A579A" Style="{DynamicResource ColorVariationRadioButtonStyle}"
                                    Command="{Binding ChangeAppearanceCommand}">
                    <telerik:RadRibbonRadioButton.CommandParameter>
                        <appearance:AppearanceCommandParameter ColorVariation="Colorful" />
                    </telerik:RadRibbonRadioButton.CommandParameter>
                </telerik:RadRibbonRadioButton>
                <telerik:RadRibbonRadioButton Content="Dark Gray" Size="Large" Background="#FF444444" Style="{DynamicResource ColorVariationRadioButtonStyle}"
                                        Command="{Binding ChangeAppearanceCommand}">
                    <telerik:RadRibbonRadioButton.CommandParameter>
                        <appearance:AppearanceCommandParameter ColorVariation="Dark" />
                    </telerik:RadRibbonRadioButton.CommandParameter>
                </telerik:RadRibbonRadioButton>
                <telerik:RadRibbonRadioButton Content="White" Size="Large" Background="#FFFFFFFF" Style="{DynamicResource ColorVariationRadioButtonStyle}"
                                             Command="{Binding ChangeAppearanceCommand}">
                    <telerik:RadRibbonRadioButton.CommandParameter>
                        <appearance:AppearanceCommandParameter ColorVariation="White" />
                    </telerik:RadRibbonRadioButton.CommandParameter>
                </telerik:RadRibbonRadioButton>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Clipboard"
                                        telerik:ScreenTip.Title="Clipboard">
                <telerik:RadRibbonGroup.Variants>
                    <telerik:GroupVariant Priority="0" Variant="Large" />
                </telerik:RadRibbonGroup.Variants>
                <telerik:RadRibbonSplitButton x:Name="PasteButton"
                                                  Size="Large"
                                                  Text="Paste"
                                                  LargeImage="{telerik:IconResource IconRelativePath=32/pasteActive.png, IconSources={StaticResource RibbonViewIconSources}}"
                                                  telerik:ScreenTip.Description="Paste the contents of the Clipboard."
                                                  telerik:ScreenTip.Title="Paste (Ctrl+V)">
                    <telerik:RadRibbonSplitButton.DropDownContent>
                        <telerik:RadContextMenu BorderThickness="0" Padding="0" >
                            <telerik:RadMenuGroupItem Header="Paste" BorderThickness="0" Background="Transparent">
                                <telerik:RadMenuItem Header="Paste">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="{telerik:IconResource IconRelativePath=16/pasteNormal.png, IconSources={StaticResource RibbonViewIconSources}}" Width="16"/>
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                            </telerik:RadMenuGroupItem>
                        </telerik:RadContextMenu>
                    </telerik:RadRibbonSplitButton.DropDownContent>

                </telerik:RadRibbonSplitButton>
                <StackPanel>
                    <telerik:RadRibbonButton Size="Medium"
                                                 SmallImage="{telerik:IconResource IconRelativePath=16/cut.png, IconSources={StaticResource RibbonViewIconSources}}"
                                                 Text="Cut"
                                                 telerik:ScreenTip.Description="Cut the selection and put it on the Clipboard."
                                                 telerik:ScreenTip.Title="Cut" />

                    <telerik:RadRibbonButton Size="Medium"
                                                 SmallImage="{telerik:IconResource IconRelativePath=16/copy.png, IconSources={StaticResource RibbonViewIconSources}}"
                                                 Text="Copy"
                                                 telerik:ScreenTip.Description="Copy the selection and put it on the Clipboard."
                                                 telerik:ScreenTip.Title="Copy" />
                </StackPanel>
            </telerik:RadRibbonGroup>

            <telerik:RadRibbonGroup DialogLauncherVisibility="Visible" telerik:ScreenTip.Description="Show the font dialog box." Header="Font" telerik:ScreenTip.Title="Font">
                <telerik:RadOrderedWrapPanel ItemSpacing="0">
                    <StackPanel Orientation="Horizontal">
                        <telerik:RadRibbonComboBox Width="135"
                                                       SelectedIndex="1"
                                                       telerik:ScreenTip.Description="Change the font face."
                                                       telerik:ScreenTip.Title="Font">
                            <telerik:RadRibbonComboBoxItem Content="Arial" />
                            <telerik:RadRibbonComboBoxItem Content="Calibri (Body)" />
                            <telerik:RadRibbonComboBoxItem Content="Tahoma" />
                            <telerik:RadRibbonComboBoxItem Content="Verdana" />
                            <telerik:RadRibbonComboBoxItem Content="Times New Roman" />
                            <telerik:RadRibbonComboBoxItem Content="Cambria" />
                        </telerik:RadRibbonComboBox>
                        <telerik:RadRibbonComboBox
                                                       Width="80" IsEditable="False"
                                                       SelectedIndex="0"
                                                       telerik:ScreenTip.Description="Change the font size."
                                                       telerik:ScreenTip.Title="Font Size">
                            <telerik:RadRibbonComboBoxItem Content="8" />
                            <telerik:RadRibbonComboBoxItem Content="9" />
                            <telerik:RadRibbonComboBoxItem Content="10" />
                            <telerik:RadRibbonComboBoxItem Content="11" />
                            <telerik:RadRibbonComboBoxItem Content="12" />
                            <telerik:RadRibbonComboBoxItem Content="14" />
                            <telerik:RadRibbonComboBoxItem Content="16" />
                            <telerik:RadRibbonComboBoxItem Content="18" />
                        </telerik:RadRibbonComboBox>
                    </StackPanel>

                    <telerik:RadButtonGroup>
                        <telerik:RadRibbonButton telerik:ScreenTip.Description="Increase the font size." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/font-increasesize.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Grow Font"/>
                        <telerik:RadRibbonButton telerik:ScreenTip.Description="Decrease the font size." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/font-decreasesize.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Shrink Font"/>
                    </telerik:RadButtonGroup>
                    <telerik:RadRibbonButton telerik:ScreenTip.Description="Clear all the formatting from the selection, leaving only the plain text." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/ClearFormatting16.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                 telerik:ScreenTip.Title="Clear All Formatting"/>
                    <telerik:RadButtonGroup>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Make the selected text bold."  Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/bold.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Bold"/>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Italicize the selected text."  Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/italic.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Italic"/>
                        <telerik:RadRibbonSplitButton telerik:ScreenTip.Description="Underline the selected text." IsToggle="True" SmallImage="{telerik:IconResource IconRelativePath=16/underline.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Underline">
                            <telerik:RadRibbonSplitButton.DropDownContent>
                                <telerik:RadGallery Height="210" ItemWidth="156" ItemHeight="26"  ViewportWidth="157">
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline1.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="Line"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline2.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="DoubleLine"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline3.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="ThickLine"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline4.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="DottedLine"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline5.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="DashedLine"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline6.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="DotDashedLine"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline7.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="DotDotDashedLine"/>
                                    <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=underline8.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="Wave"/>
                                </telerik:RadGallery>
                            </telerik:RadRibbonSplitButton.DropDownContent>
                        </telerik:RadRibbonSplitButton>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Draw a line through the middle of the selected text." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/Strikethrough16.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Strikethrough"/>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Create small letters below the text baseline."  Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/subscript.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Subscript"/>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Create small text above the line of text." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/superscript.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Superscript"/>
                        <telerik:RadRibbonDropDownButton Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/fontscheme.png  ,IconSources={StaticResource RibbonViewIconSources}}"
									Text="Change Case" telerik:ScreenTip.Title="Change Case"
									telerik:ScreenTip.Description="Change all the selected text to UPPERCASE, lowercase, or other common capitalizations.">
                            <telerik:RadRibbonDropDownButton.DropDownContent>
                                <telerik:RadContextMenu BorderThickness="0" IconColumnWidth="0">
                                    <telerik:RadMenuItem 
												Header="Sentence case." />
                                    <telerik:RadMenuItem Header="Lower case" />
                                    <telerik:RadMenuItem Header="UPPERCASE"/>
                                    <telerik:RadMenuItem Header="Capitalize Each Word"/>
                                    <telerik:RadMenuItem Header="Toggle case" />
                                </telerik:RadContextMenu>
                            </telerik:RadRibbonDropDownButton.DropDownContent>
                        </telerik:RadRibbonDropDownButton>
                    </telerik:RadButtonGroup>
                    <telerik:RadColorPicker SelectedColor="Yellow" AutomaticColor="Transparent" BorderThickness="0" telerik:ScreenTip.Description="Make text look like it was marked with a highlighter pen." NoColorText="No color" telerik:ScreenTip.Title="Text Highlight Color"/>
                    <telerik:RadColorPicker SelectedColor="Red" BorderThickness="0" telerik:ScreenTip.Description="Change the text color." telerik:ScreenTip.Title="Font Color"/>
                </telerik:RadOrderedWrapPanel>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup DialogLauncherVisibility="Visible" telerik:ScreenTip.Description="Show the Paragraph dialog box." Header="Paragraph" telerik:ScreenTip.Title="Paragraph">
                <telerik:RadOrderedWrapPanel ItemSpacing="0">
                    <telerik:RadButtonGroup>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Start a bulleted list." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/list-bullets.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Bullets"/>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Start a numbered list." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/list-numbered.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Numbering"/>
                        <telerik:RadRibbonDropDownButton telerik:ScreenTip.Description="Start a multilevel list. Click the arrow to choose different multilevel list styles." Command="{Binding ChangeListStyleCommand}" Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/MultilevelList.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Multilevel List">
                            <telerik:RadRibbonDropDownButton.DropDownContent>
                                <StackPanel>
                                    <ScrollViewer MaxHeight="565">
                                        <StackPanel>
                                            <telerik:RadGroupHeader Content="List Library"/>
                                            <telerik:RadGallery Height="176" ItemWidth="88" ItemHeight="88" ScrollViewer.VerticalScrollBarVisibility="Disabled" ViewportWidth="266">
                                                <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=MultilevelListNone.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="None"/>
                                                <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=MultilevelListBulleted.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="Bulleted"/>
                                                <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=MultilevelListNumbered.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="Numbered"/>
                                                <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=MultilevelListNumberedParenthesis.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="NumberedParenthesis"/>
                                                <telerik:RadGalleryItem Image="{telerik:IconResource IconRelativePath=MultilevelListNumberedHierarchical.png, IconSources={StaticResource RibbonViewIconSources}}" Tag="NumberedHierarchical"/>
                                            </telerik:RadGallery>
                                        </StackPanel>
                                    </ScrollViewer>
                                    <telerik:RadRibbonButton HorizontalAlignment="Stretch" Size="Medium" Text="Define New List Style ..."/>
                                </StackPanel>
                            </telerik:RadRibbonDropDownButton.DropDownContent>
                        </telerik:RadRibbonDropDownButton>
                    </telerik:RadButtonGroup>
                    <telerik:RadButtonGroup>
                        <telerik:RadRibbonButton telerik:ScreenTip.Description="Decrease the indent level of the paragraph."  Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/outdent.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Decrease Indent"/>
                        <telerik:RadRibbonButton telerik:ScreenTip.Description="Increase the indent level of the paragraph."  Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/indent.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Increase Indent"/>
                    </telerik:RadButtonGroup>
                    <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Set the direction of text to be displayed from left to right." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/LeftToRightFlowDirection.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Left-to-Right Text Direction" telerik:ScreenTip.Title="Left-To-Right Text Direction">
                        <telerik:RadRibbonToggleButton.CommandParameter>
                            <FlowDirection>LeftToRight</FlowDirection>
                        </telerik:RadRibbonToggleButton.CommandParameter>
                    </telerik:RadRibbonToggleButton>
                    <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Set the direction of text to be displayed from right to left." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/RightToLeftFlowDirection.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Right-to-Left Text Direction" telerik:ScreenTip.Title="Right-To-Left Text Direction">
                        <telerik:RadRibbonToggleButton.CommandParameter>
                            <FlowDirection>RightToLeft</FlowDirection>
                        </telerik:RadRibbonToggleButton.CommandParameter>
                    </telerik:RadRibbonToggleButton>
                    <telerik:RadButtonGroup>
                        <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Show paragraph marks and other hidden formatting symbols." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/formatting-symbols.png  ,IconSources={StaticResource RibbonViewIconSources}}" telerik:ScreenTip.Title="Show/Hide Formatting Symbols"/>
                    </telerik:RadButtonGroup>
                    <telerik:RadButtonGroup>
                        <telerik:RadRibbonToggleButton CommandParameter="Left" telerik:ScreenTip.Description="Align text to the left." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/alignleft.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Align Left" telerik:ScreenTip.Title="Align Text Left"/>
                        <telerik:RadRibbonToggleButton CommandParameter="Center" telerik:ScreenTip.Description="Center text."  Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/aligncenter.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Center" telerik:ScreenTip.Title="Center"/>
                        <telerik:RadRibbonToggleButton CommandParameter="Right" telerik:ScreenTip.Description="Align text to the right." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/alignright.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Align Right" telerik:ScreenTip.Title="Align Text Right"/>
                        <telerik:RadRibbonToggleButton CommandParameter="Justify" telerik:ScreenTip.Description="Align text to both left and right margins, adding extra space between words as necessary." Size="Small" SmallImage="{telerik:IconResource IconRelativePath=16/alignjustify.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Justify" telerik:ScreenTip.Title="Justify"/>
                    </telerik:RadButtonGroup>
                    <telerik:RadColorPicker SelectedColor="White" AutomaticColor="Transparent" BorderThickness="0" telerik:ScreenTip.Description="Color the background behind the selected paragraph." NoColorText="No color" telerik:ScreenTip.Title="Shading"/>
                </telerik:RadOrderedWrapPanel>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Editing &amp; Proofing">
                <telerik:RadCollapsiblePanel>
                    <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:ScreenTip.Description="Find or replace text in the document."  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/Find.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Find/Replace" telerik:ScreenTip.Title="Find/Replace"/>
                    <telerik:RadRibbonToggleButton CollapseToSmall="WhenGroupIsMedium" telerik:ScreenTip.Description="Enable/Disable spell checking."  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/EnableSpellCheck.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Enable Spell Check" telerik:ScreenTip.Title="Spell Check"/>
                    <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:ScreenTip.Description="Open context menu on next spelling error."  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/FindNextSpellingError.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Find Next Error" telerik:ScreenTip.Title="Next Error"/>
                </telerik:RadCollapsiblePanel>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Styles">
                <telerik:RadRibbonGallery Margin="0 4" x:Name="QuickStyles"
                                              Title="Styles"
                                              Icon="{telerik:IconResource IconRelativePath=32/ChangeStyles.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                              telerik:ScreenTip.Description="Format titles, quotes, and other text using this gallery of styles."
                                              telerik:ScreenTip.Title="Quick Styles">
                    <telerik:RadRibbonGallery.PopupMenuItems>
                        <telerik:RadMenuItem Header="Save Selection as a Quick Style..."  />
                        <telerik:RadMenuItem Header="Clear Formatting" />
                        <telerik:RadMenuItem Header="Apply Styles..." />
                    </telerik:RadRibbonGallery.PopupMenuItems>
                    <telerik:RadGalleryItem Name="Normal"
                                                Image="{telerik:IconResource IconRelativePath=paragraph.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                IsSelected="True"
                                                ToolTipService.ToolTip="Normal" />
                    <telerik:RadGalleryItem Name="No_Spacing"
                                                Image="{telerik:IconResource IconRelativePath=paragraph9.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="No Spacing" />
                    <telerik:RadGalleryItem Name="Heading1"
                                                Image="{telerik:IconResource IconRelativePath=paragraph8.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Heading 1" />
                    <telerik:RadGalleryItem Name="Heading2"
                                                Image="{telerik:IconResource IconRelativePath=paragraph7.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Heading 2" />
                    <telerik:RadGalleryItem Name="Title"
                                                Image="{telerik:IconResource IconRelativePath=paragraph6.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Title" />
                    <telerik:RadGalleryItem Name="Subtitle"
                                                Image="{telerik:IconResource IconRelativePath=paragraph5.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Subtitle" />
                    <telerik:RadGalleryItem Name="Subtitle_Emphasis"
                                                Image="{telerik:IconResource IconRelativePath=paragraph4.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Subtitle Emphasis" />
                    <telerik:RadGalleryItem Name="Emphasis"
                                                Image="{telerik:IconResource IconRelativePath=paragraph3.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Emphasis" />
                    <telerik:RadGalleryItem Name="Intense_Emphasis"
                                                Image="{telerik:IconResource IconRelativePath=paragraph2.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Intense Emphasis" />
                    <telerik:RadGalleryItem Name="Strong"
                                                Image="{telerik:IconResource IconRelativePath=paragraph1.png  ,IconSources={StaticResource RibbonViewIconSources}}"
                                                ToolTipService.ToolTip="Strong" />
                </telerik:RadRibbonGallery>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <telerik:RadRibbonTab Header="Insert">
            <telerik:RadRibbonGroup Header="Pages">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Start the next page at the current position." LargeImage="{telerik:IconResource IconRelativePath=32/PageBreak.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Page Break" telerik:ScreenTip.Title="Page Break"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Tables">
                <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium" Command="{Binding InsertTableCommand}" telerik:ScreenTip.Description="Insert a table into the document." LargeImage="{telerik:IconResource IconRelativePath=32/InsertTable.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Table" telerik:ScreenTip.Title="Table">
                    <telerik:RadRibbonDropDownButton.DropDownContent>
                        <StackPanel>
                            <telerik:RadRibbonButton ClickMode="Press">
                            </telerik:RadRibbonButton>
                            <telerik:RadMenuItem IsSeparator="True"/>
                            <telerik:RadRibbonButton HorizontalAlignment="Stretch" Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/InsertTable.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Insert Table..."/>
                        </StackPanel>
                    </telerik:RadRibbonDropDownButton.DropDownContent>
                </telerik:RadRibbonDropDownButton>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Illustrations">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Insert a picture from a file." LargeImage="{telerik:IconResource IconRelativePath=32/Picture.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Picture" telerik:ScreenTip.Title="Insert Picture from File"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Links">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Create a link to a Web page, a picture or an e-mail address." LargeImage="{telerik:IconResource IconRelativePath=32/inserthyperlink.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Hyperlink" telerik:ScreenTip.Title="Insert Hyperlink"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Create a bookmark to assign a name to a specific point in a document." LargeImage="{telerik:IconResource IconRelativePath=32/InsertBookmark.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Bookmark" telerik:ScreenTip.Title="Bookmark"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Refer to items such as headings, figures and tables." LargeImage="{telerik:IconResource IconRelativePath=32/InsertCrossReference.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Cross-reference" telerik:ScreenTip.Title="Cross-reference"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Comments">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Add a comment about the selection." LargeImage="{telerik:IconResource IconRelativePath=32/NewComment.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="New Comment" telerik:ScreenTip.Title="Insert Comment"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Header &amp; Footer">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Edit the header of the document." LargeImage="{telerik:IconResource IconRelativePath=32/EditHeader.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Header" telerik:ScreenTip.Title="Header"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Edit the footer of the document." LargeImage="{telerik:IconResource IconRelativePath=32/EditFooter.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Footer" telerik:ScreenTip.Title="Footer"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Text">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Insert the current date or time into the current document." LargeImage="{telerik:IconResource IconRelativePath=32/InsertDateTime.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Date &amp; Time" telerik:ScreenTip.Title="Insert Date and Time"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Insert page numbers into the document." LargeImage="{telerik:IconResource IconRelativePath=32/InsertPageNumber.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Page Number" telerik:ScreenTip.Title="Insert Page Number"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Insert block containing formatted programming source code." LargeImage="{telerik:IconResource IconRelativePath=32/CodeBlock.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Code" telerik:ScreenTip.Title="Insert Code Block"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Symbols">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Insert symbols that are not on your keyboard, such as copyright symbols, trademark symbols, paragraph marks, and Unicode characters." LargeImage="{telerik:IconResource IconRelativePath=32/Symbol.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Symbol" telerik:ScreenTip.Title="Insert Symbol"/>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <telerik:RadRibbonTab Header="Page Layout">
            <telerik:RadRibbonGroup Header="Page Setup">
                <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium" Command="{Binding ChangePaperTypeCommand}" telerik:ScreenTip.Description="Choose a paper size for the current section." LargeImage="{telerik:IconResource IconRelativePath=32/PageSize.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Size" telerik:ScreenTip.Title="Page Size">
                    <telerik:RadRibbonDropDownButton.DropDownContent>
                        <telerik:RadGallery ItemWidth="184" ViewportWidth="185">
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="A0">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="A0" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (33.05&quot; x 46.78&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="A1">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="A1" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (23.39&quot; x 33.05&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="A2">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="A2" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (16.53&quot; x 23.39&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="A3">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="A3" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (11.7&quot; x 16.53&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="A4">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="A4" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8.26&quot; x 11.7&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="A5">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="A5" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (5.83&quot; x 8.26&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="RA0">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="RA0" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (33.86&quot; x 48.03&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="RA1">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="RA1" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (24.01&quot; x 33.86&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="RA2">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="RA2" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (16.93&quot; x 24.01&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="RA3">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="RA3" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (12.01&quot; x 16.93&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="RA4">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="RA4" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8.46&quot; x 12.01&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="RA5">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="RA5" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (4.76&quot; x 8.46&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="B0">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="B0" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (39.38&quot; x 55.67&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="B1">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="B1" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (27.83&quot; x 39.38&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="B2">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="B2" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (59.05&quot; x 19.68&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="B3">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="B3" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (13.91&quot; x 19.68&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="B4">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="B4" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (10.13&quot; x 14.33&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="B5">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="B5" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (7.17&quot; x 10.13&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Quarto">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Quarto" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8&quot; x 10&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Foolscap">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Foolscap" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8&quot; x 13&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Executive">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Executive" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (7.5&quot; x 10&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="GovernmentLetter">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="GovernmentLetter" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (10.5&quot; x 8&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Letter">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Letter" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8.5&quot; x 11&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Legal">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Legal" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8.5&quot; x 14&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Ledger">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Ledger" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (17&quot; x 11&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Tabloid">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Tabloid" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (11&quot; x 17&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Post">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Post" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (15.64&quot; x 19.25&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Crown">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Crown" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (20&quot; x 15&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="LargePost">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="LargePost" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (16.5&quot; x 21&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Demy">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Demy" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (17.5&quot; x 22&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Medium">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Medium" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (18&quot; x 23&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Royal">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Royal" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (20&quot; x 25&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Elephant">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Elephant" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (21.74&quot; x 28&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="DoubleDemy">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="DoubleDemy" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (23.5&quot; x 35&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="QuadDemy">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="QuadDemy" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (35&quot; x 45&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="STMT">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="STMT" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (5.5&quot; x 8.5&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Folio">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Folio" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (8.5&quot; x 13&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Statement">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Statement" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (5.5&quot; x 8.5&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                            <telerik:RadGalleryItem HorizontalContentAlignment="Left" Tag="Size10x14">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontWeight="Bold" Text="Size10x14" VerticalAlignment="Center"/>
                                    <TextBlock FontWeight="Normal" Text=" (10&quot; x 14&quot;)" VerticalAlignment="Center"/>
                                </StackPanel>
                            </telerik:RadGalleryItem>
                        </telerik:RadGallery>
                    </telerik:RadRibbonDropDownButton.DropDownContent>
                </telerik:RadRibbonDropDownButton>
                <StackPanel>
                    <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium" Command="{Binding InsertSectionBreakCommand}" telerik:ScreenTip.Description="Add page, section, or column breaks to the document." LargeImage="{telerik:IconResource IconRelativePath=16/Break.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Medium" Text="Breaks" telerik:ScreenTip.Title="Insert Page and Section Breaks">
                        <telerik:RadRibbonDropDownButton.DropDownContent>
                            <StackPanel>
                                <telerik:RadGroupHeader Content="Page Breaks"/>
                                <telerik:RadGallery Height="54" ItemHeight="54" ScrollViewer.VerticalScrollBarVisibility="Disabled">
                                    <telerik:RadGalleryItem HorizontalAlignment="Stretch" HorizontalContentAlignment="Left">
                                        <StackPanel Orientation="Horizontal">
                                            <Image Source="{telerik:IconResource IconRelativePath=32/PageBreak.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                                            <TextBlock FontWeight="Bold" Margin="8 0 0 0" Text="Page" VerticalAlignment="Center"/>
                                        </StackPanel>
                                    </telerik:RadGalleryItem>
                                </telerik:RadGallery>
                                <telerik:RadGroupHeader Content="Section Breaks"/>
                                <telerik:RadGallery Height="162" ItemHeight="54"  ScrollViewer.VerticalScrollBarVisibility="Disabled">
                                    <telerik:RadGalleryItem HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" Tag="NextPage">
                                        <StackPanel Orientation="Horizontal">
                                            <Image Source="{telerik:IconResource IconRelativePath=32/NextPageSectionBreak.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                                            <TextBlock FontWeight="Bold" Margin="8 0 0 0" Text="Next Page" VerticalAlignment="Center"/>
                                        </StackPanel>
                                    </telerik:RadGalleryItem>
                                    <telerik:RadGalleryItem HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" Tag="EvenPage">
                                        <StackPanel Orientation="Horizontal">
                                            <Image Source="{telerik:IconResource IconRelativePath=32/EvenPageSectionBreak.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                                            <TextBlock FontWeight="Bold" Margin="8 0 0 0" Text="Even Page" VerticalAlignment="Center"/>
                                        </StackPanel>
                                    </telerik:RadGalleryItem>
                                    <telerik:RadGalleryItem HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" Tag="OddPage">
                                        <StackPanel Orientation="Horizontal">
                                            <Image Source="{telerik:IconResource IconRelativePath=32/OddPageSectionBreak.png  ,IconSources={StaticResource RibbonViewIconSources}}" Stretch="None"/>
                                            <TextBlock FontWeight="Bold" Margin="8 0 0 0" Text="Odd Page" VerticalAlignment="Center"/>
                                        </StackPanel>
                                    </telerik:RadGalleryItem>
                                </telerik:RadGallery>
                            </StackPanel>
                        </telerik:RadRibbonDropDownButton.DropDownContent>
                    </telerik:RadRibbonDropDownButton>
                </StackPanel>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <telerik:RadRibbonTab Header="Mailings">
            <telerik:RadRibbonGroup Header="Write &amp; Insert Fields">
                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Highlight the fields you have inserted into the document." LargeImage="{telerik:IconResource IconRelativePath=32/HighlightMergeFields.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Highlight Merge Fields" telerik:ScreenTip.Title="Highlight Merge Fields"/>
                <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium" telerik:ScreenTip.Description="You can insert fields such as Name or Address, which will be replaced automatically with information from a database or contact list for each copy of the form letter." LargeImage="{telerik:IconResource IconRelativePath=32/InsertMergeField.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Insert Merge Field" telerik:ScreenTip.Title="Insert Merge Field"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Preview Results">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Shows all fields codes in the current document." LargeImage="{telerik:IconResource IconRelativePath=32/ShowAllFieldsCodes.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Show All Fields Codes" telerik:ScreenTip.Title="Show Fields Codes" />
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Show all fields names in the current document." LargeImage="{telerik:IconResource IconRelativePath=32/ShowAllFieldsDisplayNames.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Show All Fields Names" telerik:ScreenTip.Title="Show Fields Names" />
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Replace the merge fields in your document with actual data from your recipient list so you can see what it looks like." LargeImage="{telerik:IconResource IconRelativePath=32/ShowAllFieldsResults.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Preview Results" telerik:ScreenTip.Title="View Merged Data" />
                <telerik:Separator/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Preview the first record in the recipient list." LargeImage="{telerik:IconResource IconRelativePath=32/First.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="First" telerik:ScreenTip.Title="Preview First Record"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Preview the previous record in the recipient list." LargeImage="{telerik:IconResource IconRelativePath=32/Previous.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Previous" telerik:ScreenTip.Title="Preview Previous Record"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Preview the next record in the recipient list." LargeImage="{telerik:IconResource IconRelativePath=32/Next.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Next" telerik:ScreenTip.Title="Preview Next Record"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Preview the last record in the recipient list." LargeImage="{telerik:IconResource IconRelativePath=32/Last.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Last" telerik:ScreenTip.Title="Preview Last Record"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Finish">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Complete the mail merge." LargeImage="{telerik:IconResource IconRelativePath=32/MailMerge.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Mail Merge" telerik:ScreenTip.Title="Finish &amp; Merge"/>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <telerik:RadRibbonTab Header="Review">
            <telerik:RadRibbonGroup Header="Proofing">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Check the spelling of text in the document." LargeImage="{telerik:IconResource IconRelativePath=32/EnableSpellCheck.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Spell Check" telerik:ScreenTip.Title="Spelling"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Comments">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Add a comment about the selection." LargeImage="{telerik:IconResource IconRelativePath=32/NewComment.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="New Comment" telerik:ScreenTip.Title="Insert Comment"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Delete the selected comment." LargeImage="{telerik:IconResource IconRelativePath=32/DeleteComment.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Delete" telerik:ScreenTip.Title="Delete Comment"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Navigate to the previous comment in the document." LargeImage="{telerik:IconResource IconRelativePath=32/PreviousComment.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Previous" telerik:ScreenTip.Title="Previous Comment"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Navigate to the next comment in the document." LargeImage="{telerik:IconResource IconRelativePath=32/NextComment.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Next" telerik:ScreenTip.Title="Next Comment"/>
                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Click here to show or hide the comments." LargeImage="{telerik:IconResource IconRelativePath=32/ShowHideComments.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Show/Hide Comments" telerik:ScreenTip.Title="Show/Hide Comments"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Click here to delete all of the comments in the document." LargeImage="{telerik:IconResource IconRelativePath=32/DeleteAllComments.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Delete All" telerik:ScreenTip.Title="Delete All Comments"/>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Tracking &amp; Changes">
                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Track all changes made to the document, including insertions, deletions, and formatting changes." LargeImage="{telerik:IconResource IconRelativePath=32/TrackChanges.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Track Changes" telerik:ScreenTip.Title="Track Changes"/>
                <telerik:RadRibbonSplitButton telerik:ScreenTip.Description="Accept and Move to Next." LargeImage="{telerik:IconResource IconRelativePath=32/AcceptChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Accept" telerik:ScreenTip.Title="Accept">
                    <telerik:RadRibbonSplitButton.DropDownContent>
                        <StackPanel>
                            <telerik:RadRibbonButton  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/AcceptChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Accept and Move to Next"/>
                            <telerik:RadRibbonButton  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/AcceptChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Accept All Changes"/>
                        </StackPanel>
                    </telerik:RadRibbonSplitButton.DropDownContent>
                </telerik:RadRibbonSplitButton>
                <telerik:RadRibbonSplitButton telerik:ScreenTip.Description="Reject and Move to Next." LargeImage="{telerik:IconResource IconRelativePath=32/RejectChange.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Reject" telerik:ScreenTip.Title="Reject">
                    <telerik:RadRibbonSplitButton.DropDownContent>
                        <StackPanel>
                            <telerik:RadRibbonButton  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/RejectChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Reject and Move to Next"/>
                            <telerik:RadRibbonButton  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/RejectChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Reject All Changes"/>
                        </StackPanel>
                    </telerik:RadRibbonSplitButton.DropDownContent>
                </telerik:RadRibbonSplitButton>
                <telerik:RadCollapsiblePanel>
                    <telerik:RadRibbonButton telerik:ScreenTip.Description="Previous change."  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/PreviousChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Previous" telerik:ScreenTip.Title="Previous"/>
                    <telerik:RadRibbonButton telerik:ScreenTip.Description="Next change."  Size="Medium" SmallImage="{telerik:IconResource IconRelativePath=16/NextChange.png  ,IconSources={StaticResource RibbonViewIconSources}}" Text="Next" telerik:ScreenTip.Title="Next"/>
                </telerik:RadCollapsiblePanel>
            </telerik:RadRibbonGroup>
            <telerik:RadRibbonGroup Header="Protect">
                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Restrict how people edit specific parts of the document." LargeImage="{telerik:IconResource IconRelativePath=32/ProtectDocument.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Protect Document" telerik:ScreenTip.Title="Toggle Document Protection"/>
                <telerik:RadRibbonButton telerik:ScreenTip.Description="Shows the dialog for setting editing restrictions to users/groups." LargeImage="{telerik:IconResource IconRelativePath=32/ChangeEditingPermissions.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Editing Restrictions" telerik:ScreenTip.Title="Change Editing Restrictions"/>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <telerik:RadRibbonTab Header="View">
            <telerik:RadRibbonGroup Header="Document Views">
                <telerik:RadRibbonButton telerik:ScreenTip.Description="View the document as it would look as a Web page." LargeImage="{telerik:IconResource IconRelativePath=32/web-C.png  ,IconSources={StaticResource RibbonViewIconSources}}"  Size="Large" Text="Web Layout" telerik:ScreenTip.Title="Web Layout" />
                <telerik:RadRibbonButton telerik:ScreenTip.Description="View the documetn as it will appear on the printed page." LargeImage="{telerik:IconResource IconRelativePath=32/PageBreak.png  ,IconSources={StaticResource RibbonViewIconSources}}" Size="Large" Text="Print Layout" telerik:ScreenTip.Title="Print Layout" />
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
    </telerik:RadRibbonView>
</UserControl>
