When the IsBackStageOpen has TwoWay binding to a boolean in the ViewModel, and the boolean's value is true, the Backstage misbehave.
This is the code of the VM
namespace
IsBackstageOpenBug
{
public
class
MainViewModel : ViewModelBase
{
private
bool
_isBackStageOpen =
true
;
public
bool
IsBackStageOpen
{
get
{
return
_isBackStageOpen;
}
set
{
_isBackStageOpen = value;
OnPropertyChanged(
"IsBackStageOpen"
);
}
}
}
}
This is the XAML
<
telerik:RadRibbonWindow
x:Class
=
"IsBackstageOpenBug.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
telerik:RadRibbonView
Name
=
"MainRibbon"
IsBackstageOpen
=
"{Binding IsBackStageOpen, Mode=TwoWay}"
ApplicationName
=
"My App"
telerik:KeyTipService.IsKeyTipsEnabled
=
"True"
MinimizeButtonVisibility
=
"Visible"
Foreground
=
"Black"
telerik:StyleManager.Theme
=
"Windows7"
IsMinimized
=
"False"
>
<
telerik:RadRibbonView.ApplicationButtonContent
>
<
TextBlock
Text
=
"Project"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
/>
</
telerik:RadRibbonView.ApplicationButtonContent
>
<
telerik:RadRibbonView.Backstage
>
<
telerik:RadRibbonBackstage
telerik:KeyTipService.AccessText
=
"F"
>
<
telerik:RadRibbonBackstageItem
Header
=
"New"
telerik:KeyTipService.AccessText
=
"N"
/>
<
telerik:RadRibbonBackstageItem
Header
=
"Open"
/>
</
telerik:RadRibbonBackstage
>
</
telerik:RadRibbonView.Backstage
>
<
telerik:RadRibbonTab
Foreground
=
"Black"
Header
=
"Edit"
telerik:KeyTipService.AccessText
=
"E"
>
<
telerik:RadRibbonGroup
Header
=
"Clipboard"
/>
</
telerik:RadRibbonTab
>
</
telerik:RadRibbonView
>
</
Grid
>
</
telerik:RadRibbonWindow
>
The ribbonview does open in backstage, as expected, but clicking on the "Edit" tab, selects that tab, but leaves the backstage opened.