setting the active tab

Ribbon for WPF Forum

Posted 17 years ago by Scott Favre
Version: 1.0.0347
What is the preferred method for setting the active tab in the ribbon?

The scenario I am working on is thus:

The application has several open windows in a docked window environment, some of which have a ContextualTabGroup associated with them. When these windows have focus, the tab group is displayed, when they do not, the tab group is hidden (this is done by handling the GotFocus and LostFocus events on the windows).

This works fine, but when moving between two windows that share the same ContextualTabGroup and a tab in that group is visible, I would like to keep that tab visible. Under my current method of keeping the relevant tab groups active, they are all removed and re-added, so the current tab reverts to one of the permanent tabs.

Is there a way to set the active tab other than calling Focus() on the group?


Comments (2)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Scott,

Yes you can get/set the Ribbon.SelectedTab property to programmatically change the selected tab.

Actipro Software Support

Posted 17 years ago by Scott Favre
Excellent, thank you.
The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.