windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-c5a88f42.md
Occurs when the current auto-hide DockPanel is about to be displayed.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public event DockPanelCancelEventHandler Expanding
Public Event Expanding As DockPanelCancelEventHandler
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. |
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 Expanding event occurs. Afterwards, when the panel is shown, the DockPanel.Expanded event is raised. The DockPanel.Collapsing and DockPanel.Collapsed events are opposite events , fired when a panel is auto-hidden.
The DockManager.Expanding event is the global version of the Expanding event and occurs when any auto-hide DockPanel panel within the DockManager is about to be displayed.
See Also