setting the active tab

Ribbon for WPF Forum

Posted 12 years ago by Scott Favre
Version: 1.0.0347
Avatar
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?

Thanks.

Comments (2)

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

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


Actipro Software Support

Posted 12 years ago by Scott Favre
Avatar
Excellent, thank you.
The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.