Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DockPanel.ClosingPanel Event

Occurs before the current panel is closed.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.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