DockLayoutManager.ClosedPanels Property
Provides access to closed panels.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Closed |
A Closed |
#Remarks
When an end-user clicks a panel's 'x' button, the panel is closed and automatically added to the ClosedPanels collection. To create a closed (hidden) panel in XAML, add it to the ClosedPanels collection. In code, a panel can be closed via the DockController.Close method, provided by the DockLayoutManager.DockController object.
An end-user can restore a panel from the closed state via the Closed Panels bar, whose visibility is controlled by the DockLayoutManager.ClosedPanelsBarVisibility property. The bar displays buttons for every closed panel in the ClosedPanels collection. Clicking any button restores the corresponding panel to its previous position. To restore a panel in code, use the DockController.Restore method.
The BaseLayoutItem.AllowClose property and DockLayoutManager.DockItemClosing event allow you to prevent a panel from being closed. The BaseLayoutItem.AllowRestore property and DockLayoutManager.DockItemRestoring event can be used to prevent panels from being restored.