Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Ribbon Tab view in Designer

I'm using "Microsoft Ribbon for WPF" and creating multiple RibbonTab. I cannot figure out a way to view/focus different tabs in the designer and it by default show the "Home" tab. To see design/xaml changes I made to tabs other than the "Home" tab, I have to debug the project every time and click through the tabs, which is not very convenient. Or I can command out the tab xaml I want to to ignore. Anyone body out there has a solution?

like image 841
KMC Avatar asked Dec 06 '10 03:12

KMC


2 Answers

You can also use the SelectedIndex property on the Ribbon to set which tab is the currently selected tab (0 being the first tab, 1 being the second, etc.)

<ribbon:Ribbon SelectedIndex="0" />
like image 72
Gene Merlin Avatar answered Nov 20 '22 21:11

Gene Merlin


The only way I have found is to set the Selector.IsSelected property to true. This will cause the tab to become visible at design time.

<ribbon:RibbonTab Selector.IsSelected="True" ...
like image 20
janemann Avatar answered Nov 20 '22 20:11

janemann