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.Collapsed Event

Occurs when the current auto-hidden DockPanel is hidden.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event DockPanelEventHandler Collapsed

#Event Data

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

Property Description
Panel Gets the processed dock panel.

#Remarks

Use the BaseDockOptions.ShowAutoHideButton property to specify whether an end-user can enable/disable auto-hiding a panel at runtime. The DockPanel.Collapsing occurs at the very beginning of hiding a panel. After it is completely hidden, the Collapsed event occurs. The DockPanel.Expanding and DockPanel.Expanded event are opposite events, fired when a hidden auto-hide panel is shown.

The DockManager‘s DockManager.Collapsed event is the global version of the Collapsed event, and occurs when any DockPanel is about to hide.

See Also