Hello,
The Format Painter button is not working, the formatting of the selection is not reproduced, an the button remains checked even after clicking anywhere in the RichTextBox.
You can easily reproduce on the demo site.
Is it broken ?
Hello,
I have an old Silverlight application using the `Windows 7` theme.
In this application, I'm using many controls and the `app.xaml` file contains the following theme files:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/System.Windows.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Docking.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.GridView.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.ImageEditor.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Input.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Navigation.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.RibbonView.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.RichTextBoxUI.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Documents.xaml" />
</ResourceDictionary.MergedDictionaries>
After installation Ui for Silverlight R1 2022 SP1, the application no more starts: it complains about a referenced static resource that is missing, in the `Telerik.Windows.Controls.RichTextBoxUI.xaml` file.
Replacing this file with the one from version R1 2022 makes it work again.
You should really test Silverlight application while you're adding new functions!
I'm trying to figure out how to "intercept" the SaveCommand for RadRibbonBackstageItem and respond to the event in my MVVM code.
<
telerik:RadRichTextBoxRibbonUI
IsMinimized
=
"True"
Grid.Row
=
"0"
Grid.Column
=
"0"
BackstageClippingElement
=
"{Binding ElementName=gridRadRtbParent}"
DataContext
=
"{Binding Commands, ElementName=ManageLettersRadRTB}"
CollapseThresholdSize
=
"50,50"
Title
=
"Letter"
TitleBarVisibility
=
"Collapsed"
QuickAccessToolBarPosition
=
"BelowRibbon"
ApplicationButtonContent
=
"File"
>
<
telerik:RadRichTextBoxRibbonUI.Resources
>
<
telerik:FontFamiliesProvider
x:Key
=
"FontFamiliesProvider"
/>
</
telerik:RadRichTextBoxRibbonUI.Resources
>
<!-- Menu - File -->
<
telerik:RadRichTextBoxRibbonUI.Backstage
>
<
telerik:RadRibbonBackstage
>
<
telerik:RadRibbonBackstageItem
Header
=
"New"
Icon
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/new.png"
IsSelectable
=
"false"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding NewDocumentCommand}"
/>
<
telerik:RadRibbonBackstageItem
Header
=
"Open"
Icon
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/open.png"
IsSelectable
=
"false"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding OpenDocumentCommand}"
/>
<
telerik:RadRibbonBackstageItem
x:Name
=
"FileSave"
Header
=
"Save"
Icon
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png"
IsSelectable
=
"false"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding SaveCommand}"
>
I tried to use SL5 interactivity but in order to make that work I had remove
"DataContext="{Binding Commands, ElementName=ManageLettersRadRTB}"
from RadRichTextBoxRibbonUI which basically disables all the built in functionality ... not what I want.
My goal is to respond with my own code when File - Save (which are RadRibbonBackstageItem) is selected from the RadRichTextBoxRibbonUI and not use the default controls Save process.
Is this possible? If so, could you provide any hints/sample.
Cheers, Rob.
<
navigation:Page
x:Class
=
"PracticeAssignments.Home"
xmlns:navigation
=
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikWindowsControls
=
"clr-namespace:Telerik.Windows;assembly=Telerik.Windows.Controls"
xmlns:telerikDocuments
=
"clr-namespace:System;assembly=Telerik.Windows.Documents"
xmlns:telerikData
=
"clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
xmlns:telerikInput
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
xmlns:telerikRichTextBoxCommands
=
"clr-namespace:Telerik.Windows.Documents.RichTextBoxCommands;assembly=Telerik.Windows.Documents"
xmlns:telerikRichTextBoxUI
=
"clr-namespace:Telerik.Windows.Controls.RichTextBoxUI;assembly=Telerik.Windows.Controls.RichTextBoxUI"
xmlns:telerikFormatProRTF
=
"clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents"
mc:Ignorable
=
"d"
d:DesignWidth
=
"640"
d:DesignHeight
=
"480"
Title
=
"Home"
Style
=
"{StaticResource PageStyle}"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
ScrollViewer
x:Name
=
"PageScrollViewer"
Style
=
"{StaticResource PageScrollViewerStyle}"
Margin
=
"-54,-8,-62,-22"
>
<
StackPanel
x:Name
=
"ContentStackPanel"
VerticalAlignment
=
"Center"
>
<
telerik:RadRichTextBox
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Width
=
"200"
></
telerik:RadRichTextBox
>
</
StackPanel
>
</
ScrollViewer
>
</
Grid
>
</
navigation:Page
>
<
Controls:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=ChangePageOrientationCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientation.png"
Controls:ScreenTip.Description
=
"Switch the pages between portrait and landscape layouts."
Controls:ScreenTip.Title
=
"Page Orientation"
Size
=
"Medium"
Text
=
"Orientation"
>
<
Controls:RadRibbonDropDownButton.DropDownContent
>
<
Controls:RadGallery
ItemHeight
=
"54"
ItemWidth
=
"109"
RichTextBoxUI:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangePageOrientationCommand}"
ViewportHeight
=
"216"
ViewportWidth
=
"110"
>
<
Controls: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
>
</
Controls:RadGalleryItem
>
<
Controls: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
>
</
Controls:RadGalleryItem
>
<
Controls: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
>
</
Controls:RadGalleryItem
>
<
Controls: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
>
</
Controls:RadGalleryItem
>
</
Controls:RadGallery
>
</
Controls:RadRibbonDropDownButton.DropDownContent
>
</
Controls:RadRibbonDropDownButton
>