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
I'm not sure what exactly you are looking for but there are Closing and Closed events on the ContentPane so you could hook those.
Can some one please suggest me a way in which I could achieve the cleanup on closing a ContentPane within DocumentContentHost?