Dockable Pane Button Close Event?

Dockable Pane Button Close Event?

Anonymous
Not applicable
1,370 Views
4 Replies
Message 1 of 5

Dockable Pane Button Close Event?

Anonymous
Not applicable

Is there an event that I can subscribe to to be notified when a user clicks on the black "X" to close a dockable pane?

 

I could setup a timer to check using.

 

Dim pane As DockablePane = shareduiApp.GetDockablePane(docPaneID)
Dim isShown As Boolean = pane.IsShown()

But that doesn't seam very efficient.

 

Any other ideas?

 

Regards

 

Phillip

 

 

0 Likes
Accepted solutions (1)
1,371 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

I guess you've tried searching for OnClosing or Closed events ?

0 Likes
Message 3 of 5

GonçaloFeio1321
Enthusiast
Enthusiast
Accepted solution

Does UIControlledApplication.DockableFrameVisibilityChanged help?

Message 4 of 5

Anonymous
Not applicable

I'm using a xml Page as the DockablePaneProviderData FrameworkElementand that doesn't have those events.  Also when you click on the cross or close a dialog I'm pretty sure that all it is doing is hiding the control.  So I tried the isVizabileChanged event on the page but that doesn't fire either. 😞

0 Likes
Message 5 of 5

Anonymous
Not applicable

BINGO.

 

You nailed it.  That does work and is exactly what I require.

 

Thanks for the help.

 

Regards

 

Phillip

0 Likes