This project is read-only.

Cannot set SelectedTabItem / SelectedTabIndex

Apr 30, 2010 at 10:37 AM

Hello,

I'd like to set either Ribbon.SelectedTabItem or .SelectedTabIndex from program code. Both these properties are documented to be getters and setters, but in fact both only implement get.

What is the best way to change the currently selected tab be code?

Thanks

Karlo

Apr 30, 2010 at 11:53 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 30, 2010 at 3:03 PM

Hi KarloX,

the way I currently do it is by iterating over all the RibbonTabItem's and setting the properties IsOpen and IsSelected to false for all tabs except the one I want to be active (which is set to true)

Hope this helps

Cheers, Chris