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

DockManager.Expanding Event

Occurs when any auto-hide DockPanel within the current DockManager is about to be displayed.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Docking")]
public event DockPanelCancelEventHandler Expanding

#Event Data

The Expanding 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

Use the BaseDockOptions.ShowAutoHideButton property to specify whether an end-user can enable/disable auto-hiding a panel at runtime. When an auto-hide DockPanel is about to be displayed, the DockPanel.Expanding event occurs. Afterwards, when the panel is shown, the DockPanel.Expanded event is raised. The same applies for panel hiding. The DockPanel.Collapsing and DockPanel.Collapsed events are raised in this case.

The Expanding event is the global version of the DockPanel.Expanding event and occurs when any auto-hide DockManager panel within the DockManager is about to be displayed.

See Also