We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Ribbon Control SelectedIndex not functioning as expected

Greetings,

I am using the Backstage control and would like to switch from the File to the Home tab in code when the user clicks "Open" to display an OpenFile dialog. Setting it in code behind using the SelectedIndex property has no effect on the display even though the value changes.

To reproduce, use the BackstageDemo_2010 and add this event:

        private void RibbonWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ribbon1.SelectedIndex = 1;
        }

The value changes to "1" but the display is still on the backstage tab.

Optimally I want to change this via binding:

<syncfusion:Ribbon SelectedIndex="{Binding SelectedMenuIndex}">



1 Reply

AX Antony Xavier D Syncfusion Team August 31, 2012 06:23 AM UTC

Hi Michael,

We have prepared a sample based on your requirement . In that we are setting the selected index to the ribbon and hide the backsatge by using HideBckstage function.

Please find the sample from the below link,

 



RibbonBackstage_c1891d6b.zip

Loader.
Live Chat Icon For mobile
Up arrow icon