Hi,
I was wondering, what would be the way to go to have a Ribbon contextual tab to appear only when a particular docking:ToolWindow is active?
Thanks,
Stephane
Hi,
I was wondering, what would be the way to go to have a Ribbon contextual tab to appear only when a particular docking:ToolWindow is active?
Thanks,
Stephane
Hi Stephane,
You would programmatically set the ContexutalTabGroup.IsActive property to true while the tab group should be visible (when the tool window is active) and back to false when another window becomes active.
Yes, of course, I know that. This is the easy part.
My question is:
how to link it to the activation of a given docking:ToolWindow? There is no IsActive in this control, for instance.
I believe Stephane was referering more precisly to what to bind to the ContexutalTabGroup.IsActive Property and I was wondering the same thing.
I believe you could watch the DockSite.LastActiveToolWindow property to know which is active. There also is a DockSite.LastActiveToolWindowChanged event that you could handle to know when that property changes.
Please log in to a validated account to post comments.