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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Ribbon Control SelectedIndex not functioning as expected

Thread ID:

Created:

Updated:

Platform:

Replies:

104986 Aug 30,2012 10:47 PM UTC Aug 31,2012 06:23 AM UTC WPF 1
loading
Tags: Tools
Michael Philbrick
Asked On August 30, 2012 10:47 PM UTC

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}">



Antony Xavier D [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;