Hi,
I'm testing with the richtextbox and the ribbon. I am using the code provided in the demo named "Telerik editor".
All seems to work all right but I am not able to save a document or to open an existing one.
I'm always getting a "Unsupported file format" error.
What am I doing wrong ?
Thanks
Francis
I'm testing with the richtextbox and the ribbon. I am using the code provided in the demo named "Telerik editor".
All seems to work all right but I am not able to save a document or to open an existing one.
I'm always getting a "Unsupported file format" error.
What am I doing wrong ?
<
telerik:RadWindow
x:Class
=
"AmisGest.Controls.Document"
mc:Ignorable
=
"d"
xmlns:telerikRibbonBar
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
d:DesignHeight
=
"300"
d:DesignWidth
=
"800"
FontFamily
=
"Arial"
FontSize
=
"11"
CanClose
=
"False"
Width
=
"900"
Height
=
"530"
Header
=
"Telerik Editor"
WindowStartupLocation
=
"CenterOwner"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadRichTextBoxRibbonUI
ApplicationButtonImageSource
=
"/RichTextBox;component/Images/RichTextBox/MSOffice/AppIcon-telerik.png"
ApplicationName
=
"Telerik Editor"
DataContext
=
"{Binding Path=Commands, ElementName=editor}"
Name
=
"radRichTextBoxRibbonUI"
>
<
telerik:RadRichTextBoxRibbonUI.ApplicationMenu
>
<
telerikRibbonBar:ApplicationMenu
Height
=
"267"
>
<
telerikRibbonBar:ApplicationMenu.Content
>
<
StackPanel
Width
=
"230"
/>
</
telerikRibbonBar:ApplicationMenu.Content
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/new.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=NewDocumentCommand}"
Size
=
"Large"
Text
=
"New"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/open.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=OpenDocumentCommand}"
Size
=
"Large"
Text
=
"Open"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/save.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Size
=
"Large"
Text
=
"Save"
/>
<
telerikRibbonBar:RadRibbonSplitButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/saveas.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Size
=
"Large"
Text
=
"Save As"
>
<
telerikRibbonBar:RadRibbonSplitButton.DropDownContent
>
<
StackPanel
HorizontalAlignment
=
"Stretch"
>
<
telerikRibbonBar:RadGroupHeader
Content
=
"Save as"
/>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"docx"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/worddoc.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Word Document"
/>
<
TextBlock
Text
=
"Save the file as a Word document."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"pdf"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/Pdf.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"PDF Document"
/>
<
TextBlock
Text
=
"Save document as a PDF file."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"html"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/html.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Html Document"
/>
<
TextBlock
Text
=
"Save the file as a Html document."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"rtf"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/Rtf.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Rich Text Format"
/>
<
TextBlock
Text
=
"Save document in Rich Text Format."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"txt"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/PlainText.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Plain text"
/>
<
TextBlock
Text
=
"Save document in plain text format."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"xaml"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/Xaml.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Xaml Document"
/>
<
TextBlock
Text
=
"Save document as a xaml file."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonSplitButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonSplitButton
>
<
telerikRibbonBar:RadRibbonSplitButton
CommandParameter
=
"Html"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/print.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PrintCommand}"
Size
=
"Large"
Text
=
"Print"
>
<
telerikRibbonBar:RadRibbonSplitButton.DropDownContent
>
<
StackPanel
HorizontalAlignment
=
"Stretch"
>
<
telerikRibbonBar:RadGroupHeader
Content
=
"Print"
/>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"Html"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PrintCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/print.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Html print"
/>
<
TextBlock
Text
=
"Select a printer, number of copies before printing."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"Native"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PrintCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/pagesetup.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Native Print"
/>
<
TextBlock
Text
=
"Send the document directly to the default printer without making changes."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"HtmlPreview"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PrintCommand}"
Width
=
"292"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/print_preview.png"
Stretch
=
"None"
/>
<
StackPanel
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Print Preview"
/>
<
TextBlock
Text
=
"Preview and make changes to pages before printing."
TextWrapping
=
"Wrap"
Width
=
"220"
/>
</
StackPanel
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonButton
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonSplitButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonSplitButton
>
</
telerikRibbonBar:ApplicationMenu
>
</
telerik:RadRichTextBoxRibbonUI.ApplicationMenu
>
<
telerik:RadRichTextBoxRibbonUI.QuickAccessToolBar
>
<
telerikRibbonBar:QuickAccessToolBar
>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SaveCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png"
Text
=
"Save"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=UndoCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/undo.png"
Text
=
"Undo"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=RedoCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/redo.png"
Text
=
"Redo"
/>
</
telerikRibbonBar:QuickAccessToolBar
>
</
telerik:RadRichTextBoxRibbonUI.QuickAccessToolBar
>
<
telerik:RadRichTextBoxRibbonUI.Resources
>
<
telerik:FontFamiliesProvider
x:Key
=
"FontFamiliesProvider"
/>
</
telerik:RadRichTextBoxRibbonUI.Resources
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Home"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Clipboard"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"0"
Variant
=
"Medium"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
StackPanel
>
<
telerikRibbonBar:RadRibbonButton
CollapseToSmall
=
"WhenGroupIsMedium"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=CutCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/cut.png"
Text
=
"Cut"
/>
<
telerikRibbonBar:RadRibbonButton
CollapseToSmall
=
"WhenGroupIsMedium"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=CopyCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/copy.png"
Text
=
"Copy"
/>
<
telerikRibbonBar:RadRibbonButton
CollapseToSmall
=
"WhenGroupIsMedium"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PasteCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/paste.png"
Text
=
"Paste"
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
DialogLauncherVisibility
=
"Visible"
Header
=
"Font"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowFontPropertiesDialogCommand}"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"4"
Variant
=
"Small"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"5"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadOrderedWrapPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
telerikRibbonBar:RadRibbonComboBox
CanAutocompleteSelectItems
=
"False"
CanKeyboardNavigationSelectItems
=
"False"
CommandParameter
=
"{Binding RelativeSource={RelativeSource Self}, Path=SelectedValue}"
Height
=
"21"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding Source={StaticResource FontFamiliesProvider}, Path=RegisteredFonts}"
OpenDropDownOnFocus
=
"True"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeFontFamilyCommand}"
Width
=
"132"
/>
<
telerikRibbonBar:RadRibbonComboBox
CanAutocompleteSelectItems
=
"False"
CanKeyboardNavigationSelectItems
=
"False"
CommandParameter
=
"{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Tag}"
Height
=
"21"
IsEditable
=
"True"
IsReadOnly
=
"True"
IsTextSearchEnabled
=
"False"
OpenDropDownOnFocus
=
"True"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeFontSizeCommand}"
Width
=
"45"
>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"8"
Tag
=
"10.67"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"9"
Tag
=
"12"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"10"
Tag
=
"13.33"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"11"
Tag
=
"14.67"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"12"
Tag
=
"16"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"14"
Tag
=
"18.67"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"16"
Tag
=
"21.33"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"18"
Tag
=
"24"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"20"
Tag
=
"26.67"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"22"
Tag
=
"29.33"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"24"
Tag
=
"32"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"26"
Tag
=
"34.67"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"28"
Tag
=
"37.33"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"36"
Tag
=
"48"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"48"
Tag
=
"64"
/>
<
telerikRibbonBar:RadRibbonComboBoxItem
Content
=
"72"
Tag
=
"96"
/>
</
telerikRibbonBar:RadRibbonComboBox
>
</
StackPanel
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=IncrementFontSizeCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/font-increasesize.png"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DecrementFontSizeCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/font-decreasesize.png"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ClearFormattingCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/ClearFormatting16.png"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleBoldCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/bold.png"
/>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleItalicCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/italic.png"
/>
<
telerikRibbonBar:RadRibbonSplitButton
IsToggle
=
"True"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleUnderlineCommand}"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/underline.png"
>
<
telerikRibbonBar:RadRibbonSplitButton.DropDownContent
>
<
telerikRibbonBar:RadGallery
ItemHeight
=
"26"
ItemWidth
=
"156"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeUnderlineDecorationCommand}"
ViewportHeight
=
"210"
ViewportWidth
=
"157"
>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline1.png"
Tag
=
"Line"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline2.png"
Tag
=
"DoubleLine"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline3.png"
Tag
=
"ThickLine"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline4.png"
Tag
=
"DottedLine"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline5.png"
Tag
=
"DashedLine"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline6.png"
Tag
=
"DotDashedLine"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline7.png"
Tag
=
"DotDotDashedLine"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline8.png"
Tag
=
"Wave"
/>
</
telerikRibbonBar:RadGallery
>
</
telerikRibbonBar:RadRibbonSplitButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonSplitButton
>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleStrikethroughCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Strikethrough16.png"
/>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleSubscriptCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/subscript.png"
/>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleSuperscriptCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/superscript.png"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerik:HighlightColorPicker
AutomaticColor
=
"Transparent"
Height
=
"22"
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/highlight.png"
NoColorText
=
"No color"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeFontHighlightColorCommand}"
SelectedColor
=
"Yellow"
/>
<
telerik:HighlightColorPicker
Height
=
"22"
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FontForeColor.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeFontForeColorCommand}"
SelectedColor
=
"Red"
/>
</
telerikRibbonBar:RadButtonGroup
>
</
telerikRibbonBar:RadOrderedWrapPanel
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
DialogLauncherVisibility
=
"Visible"
Header
=
"Paragraph"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowParagraphPropertiesDialogCommand}"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"1"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"3"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadOrderedWrapPanel
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleBulletsCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/list-bullets.png"
/>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleNumberedCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/list-numbered.png"
/>
<
telerikRibbonBar:RadRibbonDropDownButton
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/MultilevelList.png"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
StackPanel
>
<
telerikRibbonBar:RadGroupHeader
Content
=
"List Library"
/>
<
telerikRibbonBar:RadGallery
ItemHeight
=
"88"
ItemWidth
=
"88"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeListStyleCommand}"
ViewportHeight
=
"176"
ViewportWidth
=
"266"
>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNone.png"
Tag
=
"None"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListBulleted.png"
Tag
=
"Bulleted"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumbered.png"
Tag
=
"Numbered"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumberedParenthesis.png"
Tag
=
"NumberedParenthesis"
/>
<
telerikRibbonBar:RadGalleryItem
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumberedHierarchical.png"
Tag
=
"NumberedHierarchical"
/>
</
telerikRibbonBar:RadGallery
>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DecrementParagraphLeftIndentCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/outdent.png"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=IncrementParagraphLeftIndentCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/indent.png"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonToggleButton
CommandParameter
=
"LeftToRight"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeParagraphFlowDirectionCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/LeftToRightFlowDirection.png"
Text
=
"Left-to-Right Text Direction"
/>
<
telerikRibbonBar:RadRibbonToggleButton
CommandParameter
=
"RightToLeft"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeParagraphFlowDirectionCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/RightToLeftFlowDirection.png"
Text
=
"Right-to-Left Text Direction"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonToggleButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleFormattingSymbolsCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/formatting-symbols.png"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadRibbonToggleButton
CommandParameter
=
"Left"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeTextAlignmentCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignleft.png"
Text
=
"Align Left"
/>
<
telerikRibbonBar:RadRibbonToggleButton
CommandParameter
=
"Center"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeTextAlignmentCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/aligncenter.png"
Text
=
"Center"
/>
<
telerikRibbonBar:RadRibbonToggleButton
CommandParameter
=
"Right"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeTextAlignmentCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignright.png"
Text
=
"Align Right"
/>
<
telerikRibbonBar:RadRibbonToggleButton
CommandParameter
=
"Justify"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeTextAlignmentCommand}"
Size
=
"Small"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignjustify.png"
Text
=
"Justify"
/>
</
telerikRibbonBar:RadButtonGroup
>
<
telerikRibbonBar:RadButtonGroup
>
<
telerik:HighlightColorPicker
AutomaticColor
=
"Transparent"
Height
=
"20"
Image
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/ParagraphBackgroundColor.png"
NoColorText
=
"No color"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeParagraphBackgroundColorCommand}"
SelectedColor
=
"Transparent"
/>
</
telerikRibbonBar:RadButtonGroup
>
</
telerikRibbonBar:RadOrderedWrapPanel
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Editing & Proofing"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"0"
Variant
=
"Medium"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
StackPanel
>
<
telerikRibbonBar:RadRibbonButton
CollapseToSmall
=
"WhenGroupIsMedium"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowFindReplaceDialogCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Find.png"
Text
=
"Find/Replace"
/>
<
telerikRibbonBar:RadRibbonToggleButton
CollapseToSmall
=
"WhenGroupIsMedium"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleSpellCheckingCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/EnableSpellCheck.png"
Text
=
"Enable Spell Check"
/>
<
telerikRibbonBar:RadRibbonButton
CollapseToSmall
=
"WhenGroupIsMedium"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=OpenContextMenuOnNextSpellingErrorCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FindNextSpellingError.png"
Text
=
"Find Next Error"
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Insert"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Pages"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageBreak.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertPageBreakCommand}"
Size
=
"Large"
Text
=
"Page Break"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Tables"
>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=InsertTableCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTable.png"
Size
=
"Large"
Text
=
"Insert"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
StackPanel
>
<
telerikRibbonBar:RadRibbonButton
ClickMode
=
"Press"
>
<
telerik:TableSizePicker
Command
=
"{Binding Path=InsertTableCommand}"
/>
</
telerikRibbonBar:RadRibbonButton
>
<
telerik:RadMenuItem
IsSeparator
=
"True"
/>
<
telerikRibbonBar:RadRibbonButton
HorizontalAlignment
=
"Stretch"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowInsertTableDialogCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/InsertTable.png"
Text
=
"Insert Table..."
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Illustrations"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/Picture.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertPictureCommand}"
Size
=
"Large"
Text
=
"Picture"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Links"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/inserthyperlink.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowInsertHyperlinkDialogCommand}"
Size
=
"Large"
Text
=
"Hyperlink"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertBookmark.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowManageBookmarksDialogCommand}"
Size
=
"Large"
Text
=
"Bookmark"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Symbols"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/Symbol.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowInsertSymbolWindowCommand}"
Size
=
"Large"
Text
=
"Symbol"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Header & Footer"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/EditHeader.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=EditHeaderCommand}"
Size
=
"Large"
Text
=
"Header"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/EditFooter.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=EditFooterCommand}"
Size
=
"Large"
Text
=
"Footer"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Text"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertDateTime.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowInsertDateTimeDialogCommand}"
Size
=
"Large"
Text
=
"Date & Time"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertPageNumber.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertPageFieldCommand}"
Size
=
"Large"
Text
=
"Page Number"
/>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Page Layout"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Page Setup"
>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=ChangePaperTypeCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageSize.png"
Size
=
"Large"
Text
=
"Size"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
telerikRibbonBar:RadGallery
ItemWidth
=
"184"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangePaperTypeCommand}"
ViewportWidth
=
"185"
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"A0"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"A0"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (33.05" x 46.78")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"A1"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"A1"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (23.39" x 33.05")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"A2"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"A2"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (16.53" x 23.39")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"A3"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"A3"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (11.7" x 16.53")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"A4"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"A4"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8.26" x 11.7")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"A5"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"A5"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (5.83" x 8.26")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"RA0"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"RA0"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (33.86" x 48.03")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"RA1"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"RA1"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (24.01" x 33.86")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"RA2"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"RA2"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (16.93" x 24.01")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"RA3"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"RA3"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (12.01" x 16.93")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"RA4"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"RA4"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8.46" x 12.01")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"RA5"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"RA5"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (4.76" x 8.46")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"B0"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"B0"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (39.38" x 55.67")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"B1"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"B1"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (27.83" x 39.38")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"B2"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"B2"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (59.05" x 19.68")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"B3"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"B3"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (13.91" x 19.68")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"B4"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"B4"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (10.13" x 14.33")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"B5"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"B5"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (7.17" x 10.13")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Quarto"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Quarto"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8" x 10")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Foolscap"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Foolscap"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8" x 13")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Executive"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Executive"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (7.5" x 10")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"GovernmentLetter"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"GovernmentLetter"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (10.5" x 8")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Letter"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Letter"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8.5" x 11")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Legal"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Legal"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8.5" x 14")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Ledger"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Ledger"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (17" x 11")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Tabloid"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Tabloid"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (11" x 17")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Post"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Post"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (15.64" x 19.25")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Crown"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Crown"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (20" x 15")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"LargePost"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"LargePost"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (16.5" x 21")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Demy"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Demy"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (17.5" x 22")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Medium"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Medium"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (18" x 23")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Royal"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Royal"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (20" x 25")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Elephant"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Elephant"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (21.74" x 28")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"DoubleDemy"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"DoubleDemy"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (23.5" x 35")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"QuadDemy"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"QuadDemy"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (35" x 45")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"STMT"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"STMT"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (5.5" x 8.5")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Folio"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Folio"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (8.5" x 13")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Statement"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Statement"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (5.5" x 8.5")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Size10x14"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Size10x14"
VerticalAlignment
=
"Center"
/>
<
TextBlock
FontWeight
=
"Normal"
Text
=
" (10" x 14")"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
</
telerikRibbonBar:RadGallery
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=ChangePageMarginsCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageMargin.png"
Size
=
"Large"
Text
=
"Margins"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
telerikRibbonBar:RadGallery
ItemHeight
=
"54"
ItemWidth
=
"114"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangePageMarginsCommand}"
ViewportHeight
=
"270"
ViewportWidth
=
"115"
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Normal"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/PageMarginNormal.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Normal"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Narrow"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/PageMarginNarrow.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Narrow"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Moderate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/PageMarginModerate.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Moderate"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Wide"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/PageMarginWide.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Wide"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Office2003"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/PageMarginNormal.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Office2003"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
</
telerikRibbonBar:RadGallery
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=ChangePageOrientationCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientation.png"
Size
=
"Large"
Text
=
"Orientation"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
telerikRibbonBar:RadGallery
ItemHeight
=
"54"
ItemWidth
=
"109"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangePageOrientationCommand}"
ViewportHeight
=
"216"
ViewportWidth
=
"110"
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Portrait"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationPortrait.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Portrait"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Rotate90"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationLandscape.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Landscape"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Rotate180"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationRotate180.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Rotate 180"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
<
telerikRibbonBar:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Rotate270"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationRotate270.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Rotate 270"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
telerikRibbonBar:RadGalleryItem
>
</
telerikRibbonBar:RadGallery
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"View"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Document Views"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"8"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadRibbonButton
CollapseToMedium
=
"WhenGroupIsMedium"
CollapseToSmall
=
"WhenGroupIsSmall"
CommandParameter
=
"Flow"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/web-C.PNG"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeLayoutModeCommand}"
Size
=
"Large"
Text
=
"Web Layout"
/>
<
telerikRibbonBar:RadRibbonButton
CollapseToMedium
=
"WhenGroupIsMedium"
CollapseToSmall
=
"WhenGroupIsSmall"
CommandParameter
=
"Paged"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageBreak.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeLayoutModeCommand}"
Size
=
"Large"
Text
=
"Print Layout"
/>
<
telerikRibbonBar:RadRibbonButton
CollapseToMedium
=
"WhenGroupIsMedium"
CollapseToSmall
=
"WhenGroupIsSmall"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/properties32.png"
Size
=
"Large"
Text
=
"Show Statistics"
Click
=
"Statistics_Click"
/>
<
telerikRibbonBar:RadRibbonButton
CollapseToMedium
=
"WhenGroupIsMedium"
CollapseToSmall
=
"WhenGroupIsSmall"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/inspectdocument.png"
Size
=
"Large"
Text
=
"Document Structure"
Click
=
"ViewDocumentStructure_Click"
/>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Review"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Proofing"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/EnableSpellCheck.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowSpellCheckingDialogCommand}"
Size
=
"Large"
Text
=
"Spell Check"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Comments"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/NewComment.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertCommentCommand}"
Size
=
"Large"
Text
=
"New Comment"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/DeleteComment.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DeleteCommentCommand}"
Size
=
"Large"
Text
=
"Delete"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PreviousComment.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=GoToPreviousCommentCommand}"
Size
=
"Large"
Text
=
"Previous"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/NextComment.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=GoToNextCommentCommand}"
Size
=
"Large"
Text
=
"Next"
/>
<
telerikRibbonBar:RadRibbonToggleButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/ShowHideComments.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleCommentsCommand}"
Size
=
"Large"
Text
=
"Show/Hide Comments"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/DeleteAllComments.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DeleteAllCommentsCommand}"
Size
=
"Large"
Text
=
"Delete All"
/>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Mailings"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Write & Insert Fields"
>
<
telerikRibbonBar:RadRibbonToggleButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/HighlightMergeFields.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleMergeFieldsHighlightCommand}"
Size
=
"Large"
Text
=
"Highlight Merge Fields"
/>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertMergeField.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertMergeFieldEmptyCommand}"
Size
=
"Large"
Text
=
"Insert Merge Field"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Preview Results"
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"Code"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/ShowAllFieldsCodes.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeAllFieldsDisplayModeCommand}"
Size
=
"Large"
Text
=
"Show All Fields Codes"
/>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"DisplayName"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/ShowAllFieldsDisplayNames.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeAllFieldsDisplayModeCommand}"
Size
=
"Large"
Text
=
"Show All Fields Names"
/>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"Result"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/ShowAllFieldsResults.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeAllFieldsDisplayModeCommand}"
Size
=
"Large"
Text
=
"Preview Results"
/>
<
telerikRibbonBar:Separator
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/First.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PreviewFirstMailMergeDataRecordCommand}"
Size
=
"Large"
Text
=
"First"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/Previous.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PreviewPreviousMailMergeDataRecordCommand}"
Size
=
"Large"
Text
=
"Previous"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/Next.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PreviewNextMailMergeDataRecordCommand}"
Size
=
"Large"
Text
=
"Next"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/Last.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=PreviewLastMailMergeDataRecordCommand}"
Size
=
"Large"
Text
=
"Last"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Finish"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/MailMerge.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=MailMergeCommand}"
Size
=
"Large"
Text
=
"Mail Merge"
/>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Table"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Table"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"8"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=InsertTableCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTable.png"
Size
=
"Large"
Text
=
"Insert"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
StackPanel
>
<
telerikRibbonBar:RadRibbonButton
ClickMode
=
"Press"
>
<
telerik:TableSizePicker
Command
=
"{Binding Path=InsertTableCommand}"
/>
</
telerikRibbonBar:RadRibbonButton
>
<
telerik:RadMenuItem
IsSeparator
=
"True"
/>
<
telerikRibbonBar:RadRibbonButton
HorizontalAlignment
=
"Stretch"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowInsertTableDialogCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/InsertTable.png"
Text
=
"Insert Table..."
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/DeleteTable.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DeleteTableCommand}"
Size
=
"Large"
Text
=
"Delete"
/>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=SelectTableEmptyCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/SelectTableTools.png"
Size
=
"Large"
Text
=
"Select"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
StackPanel
>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SelectTableCellCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/SelectTableCell.png"
Text
=
"Select Cell"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SelectTableColumnCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/SelectTableColumn.png"
Text
=
"Select Column"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SelectTableRowCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/SelectTableRow.png"
Text
=
"Select Row"
/>
<
telerikRibbonBar:RadRibbonButton
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=SelectTableCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/SelectTable.png"
Text
=
"Select Table"
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/TableProperties.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ShowTablePropertiesDialogCommand}"
Size
=
"Large"
Text
=
"Properties"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Rows"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"8"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTableRow.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertTableRowCommand}"
Size
=
"Large"
Text
=
"Insert Row"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTableRowBelow.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertTableRowBelowCommand}"
Size
=
"Large"
Text
=
"Insert Below"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTableRowAbove.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertTableRowAboveCommand}"
Size
=
"Large"
Text
=
"Insert Above"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/DeleteTableRows.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DeleteTableRowCommand}"
Size
=
"Large"
Text
=
"Delete Row"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Columns"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"8"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTableColumn.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertTableColumnCommand}"
Size
=
"Large"
Text
=
"Insert Column"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTableColumnToTheLeft.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertTableColumnToTheLeftCommand}"
Size
=
"Large"
Text
=
"Insert Left"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertTableColumnToTheRight.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=InsertTableColumnToTheRightCommand}"
Size
=
"Large"
Text
=
"Insert Right"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/DeleteTableColumns.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=DeleteTableColumnCommand}"
Size
=
"Large"
Text
=
"Delete Column"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Merge"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"8"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/MergeTableCells.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=MergeTableCellsCommand}"
Size
=
"Large"
Text
=
"Merge Cells"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Cell Size"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"2"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"8"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=SelectTableEmptyCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/AutoFit.png"
Size
=
"Large"
Text
=
"AutoFit"
>
<
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
<
StackPanel
>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"AutoFit"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeTableColumnsLayoutModeCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/AutoFItToWindow.png"
Text
=
"AutoFit to Window"
/>
<
telerikRibbonBar:RadRibbonButton
CommandParameter
=
"Fixed"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeTableColumnsLayoutModeCommand}"
Size
=
"Medium"
SmallImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FixedColumnWidth.png"
Text
=
"Fixed Column Width"
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonDropDownButton.DropDownContent
>
</
telerikRibbonBar:RadRibbonDropDownButton
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Alignment"
>
<
telerikRibbonBar:RadRibbonGroup.Variants
>
<
telerikRibbonBar:GroupVariant
Priority
=
"1"
Variant
=
"Medium"
/>
<
telerikRibbonBar:GroupVariant
Priority
=
"3"
Variant
=
"Collapsed"
/>
</
telerikRibbonBar:RadRibbonGroup.Variants
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerik:RadToggleButton
CommandParameter
=
"Left,Top"
CornerRadius
=
"3"
Grid.Column
=
"0"
Grid.Row
=
"0"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/LeftTopCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Center,Top"
CornerRadius
=
"3"
Grid.Column
=
"1"
Grid.Row
=
"0"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/CenterTopCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Right,Top"
CornerRadius
=
"3"
Grid.Column
=
"2"
Grid.Row
=
"0"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/RightTopCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Left,Center"
CornerRadius
=
"3"
Grid.Column
=
"0"
Grid.Row
=
"1"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/LeftMiddleCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Center,Center"
CornerRadius
=
"3"
Grid.Column
=
"1"
Grid.Row
=
"1"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/CenterMiddleCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Right,Center"
CornerRadius
=
"3"
Grid.Column
=
"2"
Grid.Row
=
"1"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/RightMiddleCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Left,Bottom"
CornerRadius
=
"3"
Grid.Column
=
"0"
Grid.Row
=
"2"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/LeftBottomCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Center,Bottom"
CornerRadius
=
"3"
Grid.Column
=
"1"
Grid.Row
=
"2"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/CenterBottomCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
<
telerik:RadToggleButton
CommandParameter
=
"Right,Bottom"
CornerRadius
=
"3"
Grid.Column
=
"2"
Grid.Row
=
"2"
IsBackgroundVisible
=
"False"
IsTabStop
=
"False"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=TableCellContentAlignmentCommand}"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/RightBottomCellAlignment.png"
Stretch
=
"None"
/>
</
telerik:RadToggleButton
>
</
Grid
>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
<
telerikRibbonBar:RadRibbonTab
Header
=
"Headers & Footers"
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Header & Footer"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/EditHeader.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=EditHeaderCommand}"
Size
=
"Large"
Text
=
"Header"
/>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/EditFooter.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=EditFooterCommand}"
Size
=
"Large"
Text
=
"Footer"
/>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Options"
>
<
StackPanel
>
<
CheckBox
Content
=
"Different First Page"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleDifferentFirstPageHeaderFooterCommand}"
/>
<
CheckBox
Content
=
"Different Odd & Even Pages"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ToggleDifferentOddAndEvenPagesHeaderFooterCommand}"
/>
</
StackPanel
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Position"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"24"
/>
<
RowDefinition
Height
=
"24"
/>
</
Grid.RowDefinitions
>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"0"
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/HeaderFromTop.png"
Stretch
=
"None"
VerticalAlignment
=
"Center"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"0"
Text
=
" Header from Top: "
VerticalAlignment
=
"Center"
/>
<
telerik:RadNumericUpDown
Grid.Column
=
"2"
Grid.Row
=
"0"
IsInteger
=
"true"
Minimum
=
"0"
NullValue
=
"48"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeSectionHeaderTopMarginCommand}"
/>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"1"
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FooterFromBottom.png"
Stretch
=
"None"
VerticalAlignment
=
"Center"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"1"
Text
=
" Footer from Bottom: "
VerticalAlignment
=
"Center"
/>
<
telerik:RadNumericUpDown
Grid.Column
=
"2"
Grid.Row
=
"1"
IsInteger
=
"true"
Minimum
=
"0"
NullValue
=
"48"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangeSectionFooterBottomMarginCommand}"
/>
</
Grid
>
</
telerikRibbonBar:RadRibbonGroup
>
<
telerikRibbonBar:RadRibbonGroup
Header
=
"Close"
>
<
telerikRibbonBar:RadRibbonButton
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/ExitHeaderFooterEditMode.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ExitHeaderFooterEditModeCommand}"
Size
=
"Large"
Text
=
"Close Header and Footer"
/>
</
telerikRibbonBar:RadRibbonGroup
>
</
telerikRibbonBar:RadRibbonTab
>
</
telerik:RadRichTextBoxRibbonUI
>
<
telerik:RadRichTextBox
Grid.Row
=
"1"
x:Name
=
"editor"
Margin
=
"24 24 0 0"
AllowDrop
=
"True"
Drop
=
"editor_Drop"
ShowComments
=
"True"
/>
<
telerik:DocumentRuler
AssociatedRichTextBox
=
"{Binding ElementName=editor, Mode=OneTime}"
Grid.Row
=
"1"
/>
<
telerik:RadRichTextBoxStatusBar
Grid.Row
=
"2"
AssociatedRichTextBox
=
"{Binding ElementName=editor, Mode=OneTime}"
/>
</
Grid
>
</
telerik:RadWindow
>
using
System.Globalization;
using
System.IO;
using
System.Windows;
using
Telerik.Windows.Controls;
using
Telerik.Windows.Controls.RichTextBoxUI;
using
Telerik.Windows.Controls.RichTextBoxUI.Dialogs;
using
Telerik.Windows.Documents.Layout;
using
Telerik.Windows.Documents.Model;
using
Telerik.Windows.Documents.Proofing;
using
Telerik.Windows.Documents.UI;
namespace
AmisGest.Controls
{
public
partial
class
Document : RadWindow
{
public
Document()
{
InitializeComponent();
// Next method calls are required only to work around limitations for using MEF in Examples
this
.editor.FindReplaceDialog =
new
FindReplaceDialog();
this
.editor.ParagraphPropertiesDialog =
new
RadParagraphPropertiesDialog();
this
.editor.FontPropertiesDialog =
new
FontPropertiesDialog();
this
.editor.InsertSymbolWindow =
new
RadInsertSymbolDialog();
this
.editor.InsertHyperlinkDialog =
new
RadInsertHyperlinkDialog();
this
.editor.ManageBookmarksDialog =
new
ManageBookmarksDialog();
this
.editor.ContextMenu =
new
Telerik.Windows.Controls.RichTextBoxUI.ContextMenu();
this
.editor.SelectionMiniToolBar =
new
SelectionMiniToolBar();
this
.editor.ImageMiniToolBar =
new
ImageMiniToolBar();
this
.editor.InsertTableDialog =
new
InsertTableDialog();
this
.editor.TablePropertiesDialog =
new
TablePropertiesDialog();
this
.editor.TableBordersDialog =
new
TableBordersDialog();
this
.editor.SpellCheckingDialog =
new
SpellCheckingDialog();
this
.editor.EditCustomDictionaryDialog =
new
EditCustomDictionaryDialog();
this
.editor.ImageEditorDialog =
new
ImageEditorDialog();
this
.editor.FloatingBlockPropertiesDialog =
new
FloatingBlockPropertiesDialog();
this
.editor.InsertDateTimeDialog =
new
InsertDateTimeDialog();
RadDocument =
new
RadDocument();
}
public
RadDocument RadDocument
{
get
{
return
this
.editor.Document;
}
set
{
SetupNewDocument(value);
this
.editor.Document = value;
// this.editor.Document.MailMergeDataSource.ItemsSource = new ExamplesDataContext().Employees;
}
}
private
void
SetupNewDocument(RadDocument document)
{
document.LayoutMode = DocumentLayoutMode.Paged;
document.ParagraphDefaultSpacingAfter = 10;
document.PageViewMargin =
new
SizeF(10, 10);
document.SectionDefaultPageMargin =
new
Padding(95);
}
private
bool
IsSupportedImageFormat(
string
extension)
{
if
(extension !=
null
)
{
extension = extension.ToLower();
}
return
true
;
}
private
void
Statistics_Click(
object
sender, RoutedEventArgs e)
{
string
statistics =
this
.editor.Document.GetStatisticsInfo().ToString();
MessageBox.Show(statistics,
"Document Statistics"
, MessageBoxButton.OK);
}
private
void
ViewDocumentStructure_Click(
object
sender, RoutedEventArgs e)
{
RadWindow window =
new
RadWindow();
//DocumentModelTreeViewer documentTreeViewer = new DocumentModelTreeViewer();
// documentTreeViewer.DisplayDocumentLayoutTree(this.editor.Document);
// window.Content = documentTreeViewer;
window.Owner =
this
;
window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterOwner;
window.Width = 600;
window.Height = 750;
window.Owner =
this
;
window.ShowDialog();
}
private
void
editor_Drop(
object
sender, DragEventArgs e)
{
FileInfo[] droppedFiles = e.Data.GetData(DataFormats.FileDrop)
as
FileInfo[];
foreach
(FileInfo droppedFile
in
droppedFiles)
{
if
(
this
.IsSupportedImageFormat(droppedFile.Extension))
{
using
(Stream imageStream = droppedFile.OpenRead())
{
this
.editor.InsertImage(imageStream, droppedFile.Extension);
}
}
}
}
}
}
Thanks
Francis