Occurs when the current auto-hidden DockPanel is about to hide.
public event DockPanelEventHandler Collapsing
Public Event Collapsing As DockPanelEventHandler
The Collapsing event's data class is DockPanelEventArgs. The following properties provide information specific to this event:
|Panel||Gets the processed dock panel.|
Use the BaseDockOptions.ShowAutoHideButton property to specify whether an end-user can enable/disable auto-hiding a panel at runtime. The Collapsing occurs at the very beginning of panel hiding. After it is completely hidden, the DockPanel.Collapsed event occurs. The DockPanel.Expanding and DockPanel.Expanded event are opposite events, fired when a hidden auto-hide panel is shown.