Hi guys, I work with SCSF with the CAB Infragistics control set and I have found a bug in the TabWorkspace. More precisely, when you close a Tab in the tab workspace, nothing happens and the SmartPart stays alive in the Workspace.SmartParts collection and
of course the Close event is not fired.
This happens because they do not close the tab (Infragistics) but they simply hide it!
This is the solution (very vey easy) I have added to the Infragistics CAB control toolkit, more precisely in the TabWorkspace class:
/// Occurs after a tab has been closed.
/// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
protected override void OnTabClosed(TabClosedEventArgs e)
var smartPart = this.composer[e.Tab];
This event is fired by the UltraTabControl that hosts the Tabbed Views; when you close a Tab the tab is not physically removed but the event is fired. After you hook this and call the Close method, everything is processed correctly.
It may helps to somebody that struggled like me for days before understanding what was going on ... ;-)