This question is locked. New answers and comments are not allowed.
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.