How do you close a dockpane or deactivate it using a button on the dockpane

727
2
10-08-2018 10:55 AM
MichaelStranovsky
Occasional Contributor

I created a dockpane with a cancel button,   I want to close (not hide) the dockpane when I click cancel.

0 Kudos
2 Replies
Amadeus111
Occasional Contributor II

Is there a specific reason you want to close it with a cancel button? It comes with a closing control already. 

0 Kudos
GKmieliauskas
Esri Regular Contributor

Hi Michael,

I use the same Add-ins button to open or close dockpane. To close dockpane just call Hide();

0 Kudos