简体   繁体   中英

Switching Tabs In Ribbon UI

Is it possible to to switch tabs in a ribbon UI inside the Visual Studio 2010 WPF Designer? What I mean is this: WPF用户界面

Because a lot of code will go into the next tabs, it's somewhat problematic to execute the application and take note of the necessary complications. Is there something I am missing?

You can't do this in the designer, but you can use a workaround.

In the XAML, find the Ribbon control, and add the SelectedIndex attribute.

For example, in order to see the first tab, you can set it to 0 :

<ribbon:Ribbon x:Name="TheRibbon" SelectedIndex="0">

And if you want to see the second tab, you can set it to 1 :

<ribbon:Ribbon x:Name="TheRibbon" SelectedIndex="1">

Whenever you are working on a tab, change the SelectedIndex attribute so you can see that tab in the designer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM