Occurs before the current panel is closed.
public event DockPanelCancelEventHandler ClosingPanel
Public Event ClosingPanel As DockPanelCancelEventHandler
The ClosingPanel event's data class is DockPanelCancelEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets whether the operation performed on the processed panel should be cancelled.|
|Panel||Gets the processed dock panel. Inherited from DockPanelEventArgs.|
When any panel is closing the panel's ClosingPanel and dock manager's DockManager.ClosingPanel events are fired. Either of these events can be handled to prevent a specific panel from being closed or to perform specific actions on the panel before it is closed.
See the DockManager.ClosingPanel topic description for more information.