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

3 posts, 1 answers
  1. BENN
    BENN avatar
    59 posts
    Member since:
    Dec 2011

    Posted 09 Dec 2015 Link to this post

    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. Answer
    Milena
    Admin
    Milena avatar
    203 posts

    Posted 11 Dec 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. BENN
    BENN avatar
    59 posts
    Member since:
    Dec 2011

    Posted 14 Dec 2015 in reply to Milena Link to this post

    Hi, this seem to solve the problem.

     

    Thanks.

Back to Top