Skip to main content

DockPanel.ClosingPanel Event

Occurs before the current panel is closed.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public event DockPanelCancelEventHandler ClosingPanel

Event Data

The ClosingPanel event's data class is DockPanelCancelEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether the operation performed on the processed panel should be cancelled.
Panel Gets the processed dock panel. Inherited from DockPanelEventArgs.

Remarks

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.

See Also