Problem w/ TabWorkspace and menu items

Topics: CAB & Smart Client Software Factory
Aug 25, 2006 at 5:52 AM
originally posted by: GWarren8

I have an app that was designed with the DeckWorkspace. In a WorkItem.Activated code I am adding menu items specific to that WorkItem... and in WorkItem.Deactivated I am hiding the menu items. This worked fine... until I switched to using TabWorkspaces. With the TabWorkspace when a new tab is opened, the previous tabs WorkItem Deactivates... however, when you click on that tab to switch to it, the WorkItem does NOT Activate, so my menu are still hidden.

Does anyone have any suggestions on the BEST way to deal with this? I can't find an event other than Activate/Deactivate that might work better. I have seen a few workarounds, but nothing that looks real clean to me.

Any help would be greatly appreciated.

Thanks,
Greg