DockLayoutManager.ClosedPanelsBarPosition Property
Gets or sets the Closed Panels bar’s position. This is a dependency property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.1.dll
NuGet Package: DevExpress.Wpf.Docking
Declaration
Property Value
Type | Description |
---|---|
Dock | A Dock enumerator value specifying the closed panels bar’s position. |
Remarks
Depending on the DockLayoutManager.ClosingBehavior and BaseLayoutItem.AllowClose properties, panels within a DockLayoutManager can be added to the closed panels collection on close. You can access this collection with the DockLayoutManager.ClosedPanels property.
An end user can restore a panel from the closed state with the Closed Panels bar, whose visibility is controlled by the DockLayoutManager.ClosedPanelsBarVisibility property. The bar displays buttons for every closed panel in the DockLayoutManager.ClosedPanels collection. This bar can be docked to any DockLayoutManager‘s side with the ClosedPanelsBarPosition property.
Example
The following code sample displays the Closed Panels bar at the DockLayoutManager’s bottom:
<dx:ThemedWindow
...
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
<dxdo:DockLayoutManager ClosedPanelsBarVisibility="Auto"
ClosedPanelsBarPosition="Bottom">
<dxdo:DockLayoutManager.ClosedPanels>
<dxdo:LayoutPanel x:Name="paneProperties" Caption="Properties">
<RichTextBox />
</dxdo:LayoutPanel>
<dxdo:LayoutPanel x:Name="paneMessages" Caption="Messages">
<RichTextBox />
</dxdo:LayoutPanel>
</dxdo:DockLayoutManager.ClosedPanels>
<dxdo:LayoutGroup>
<dxdo:LayoutPanel x:Name="paneFindResults" Caption="Find Results">
<RichTextBox />
</dxdo:LayoutPanel>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</dx:ThemedWindow>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ClosedPanelsBarPosition property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.