This is a migrated thread and some comments may be shown as answers.

Backstage doesn't work as expected when IsBackStageOpen is used with Binding and the value is true

2 Answers 148 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
BENN
Top achievements
Rank 1
BENN asked on 09 Dec 2015, 12:03 PM

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"

        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.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Milena
Telerik team
answered on 11 Dec 2015, 11:40 AM
Hello Benn,

This is a known issue. I made the item public in our FeedbackPortal where you can track its progress. 

In the meantime as a workaround you can set the property IsBackStageOpen from your MainViewModel to true on Loaded of the RibbonView:
private void MainRibbon_Loaded(object sender, RoutedEventArgs e)
{
vm.IsBackStageOpen = true;
}

Please excuse us for any inconvenience caused.

Regards,
Milena
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
BENN
Top achievements
Rank 1
answered on 14 Dec 2015, 04:01 PM

Hi, this seem to solve the problem.

 

Thanks.

Tags
RibbonView and RibbonWindow
Asked by
BENN
Top achievements
Rank 1
Answers by
Milena
Telerik team
BENN
Top achievements
Rank 1
Share this question
or