Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Cleanup after closing a ContentPane within DocumentContentHost in XamDockManager
posted

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

Parents
No Data
Reply
  • 35
    posted

    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

Children
No Data