.NET Framework Bookmark and Share   
 index > Managed Extensibility Framework > Firing Tab Changed Events for a TabbedWorkspace
 

Firing Tab Changed Events for a TabbedWorkspace

Hello,

I am using Composite UI Application Block for my app and using a TabbedWorkspace for my SmartParts, I am also using C#. I need to be able to fire an event when tabs are selected so the Shell can update it's UI accordingly. Does anyone have any suggestions for this? I was trying to publish the SelectedTabChanged event in the workspace using event topics but I am having no luck, any suggestions would be appreciated.

Thanks!
amarlowe
Hi

You could handle the SelectedIndexChange event on the TabWorkspace and then in the handler write

workItem.EventTopics["TabSelectionChanged"].Fire(this, EventArgs.Empty, null, PublicationScope.Global);

you can adjust the parameters to suit your needs.
  • Proposed As Answer bycautionsign Wednesday, September 23, 2009 1:28 AM
  •  
Craig Kuhnert

You can use google to search for other answers

Custom Search

More Threads

• Do you support the Default export option
• bxsbankas
• Generics in Unity
• editPoint.get_CodeElement(vsCMElement.vsCMElementEnum) returns null
• Unity IoC Newbie - Constructor Injection fail!
• Create a Ribbon Control for MS Project
• MEF and Ninject, which are the differences between them and what does it imply?
• MEF for server side applications
• Task List Extensibility
• Why Addin is not loaded?