Hi,
I want to perform some cleanup when a ContenPane within the DocumentContentHost in XamDockManager is closed. Can you let me know if there is an event I can subscribe to respond to the closing of the ContentPane - or if there is any other way to achieve the cleanup?
Thanks,
Joe
Try this.
When creating your content pane:
Dim newCP As New Infragistics.Windows.DockManager.ContentPane
AddHandler newCP.Closed, AddressOf tabClose
The handler which will handle the tab close:
Private Sub tabClose(ByVal sender As Object, ByVal e As RoutedEventArgs)
...
End Sub