ClosedPanelCollection Class
Represents a collection of closed (hidden) panels.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.1.dll
NuGet Package: DevExpress.Wpf.Docking
Declaration
Related API Members
The following members return ClosedPanelCollection objects:
Remarks
To create a closed (hidden) panel in XAML, you need to add it to the DockLayoutManager.ClosedPanels collection.
At runtime, an end-user can restore a panel from the closed (hidden) state via the Closed Panels bar, whose visibility is controlled by the DockLayoutManager.ClosedPanelsBarVisibility property. In code, a closed panel can be restored via the DockController.Restore or DockController.Dock method of the DockLayoutManager.DockController object.
Example
The following example shows how to create closed (hidden) panels.
To create closed panels, panel objects are added to the DockLayoutManager.ClosedPanels collection.
In the example, the built-in Closed Panels bar is visible (the DockLayoutManager.ClosedPanelsBarVisibility property is set to Auto). It allows closed panels to be restored on the fly.
<dxdo:DockLayoutManager Margin="12" Name="dockManager1" ClosedPanelsBarVisibility="Auto" dxcore:ThemeManager.ThemeName="Office2007Blue">
<dxdo:DockLayoutManager.ClosedPanels>
<!--Create three closed (hidden) panels-->
<dxdo:LayoutPanel x:Name="paneProperties" Caption="Properties">
<RichTextBox />
</dxdo:LayoutPanel>
<dxdo:LayoutPanel x:Name="paneMessages" Caption="Messages">
<RichTextBox />
</dxdo:LayoutPanel>
<dxdo:LayoutPanel x:Name="paneFindResults" Caption="Find Results">
<RichTextBox />
</dxdo:LayoutPanel>
</dxdo:DockLayoutManager.ClosedPanels>
</dxdo:DockLayoutManager>