
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.
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.