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

DockPanelCancelEventArgs Class

Provides data for the DockManager.ClosingPanel event.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class DockPanelCancelEventArgs :
    DockPanelEventArgs

#Remarks

The DockManager.ClosingPanel event is fired when a panel is about to be closed. The DockPanelCancelEventArgs class provides the DockPanelCancelEventArgs.Cancel property which specifies whether the dock panel must be closed. It can be used to prevent a dock panel from being closed.

DockPanelCancelEventArgs objects are automatically created and passed to DockManager.ClosingPanel event handlers.

See Also