This project is read-only.

OutlookBarWorkspace - Notification about when a tab has been clicked

Apr 15, 2008 at 8:22 PM
I am using the OutlookBarWorkspace and I add some Views to it like this:

View view = ShowViewInWorkspace<View>(WorkspaceNames.OutlookBarWorkspace);

Is there a way to get notified, when the "view" is clicked (activated) in the OutlookBarWorkspace?

Thankx, Cheers Harry

Apr 24, 2008 at 2:47 AM
You can't use ShowViewInWorkspace, use this:

View view = WorkItem.SmartParts.AddNew<View>();
OutlookBarSmartPartInfo info = new OutlookBarSmartPartInfo();
info.Title = "Something";
info.EventTopicName = "OnSomething";
WorkItem.Workspaces[WorkspaceNames.OutlookBarWorkspace].Show(view, info);

Jun 8, 2008 at 11:46 AM
You should be able to use ShowViewInWorkspace if the View implements the ISmartPartInfoProvider interface (which sets up the info's EventTopicName as shown above).  :)