Back to Devexpress

DockPanel.ClosingPanel Event

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-538d0ded.md

latest2.3 KB
Original Source

DockPanel.ClosingPanel Event

Occurs before the current panel is closed.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event DockPanelCancelEventHandler ClosingPanel
vb
Public Event ClosingPanel As DockPanelCancelEventHandler

Event Data

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

PropertyDescription
CancelGets or sets whether the operation performed on the processed panel should be cancelled.
PanelGets 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

DockPanel.ClosedPanel

DockManager.ClosedPanel

ClosingPanel

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace