Back to Devexpress

DockLayoutManager.ClosedPanelsBarPosition Property

wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-71696411.md

latest4.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public Dock ClosedPanelsBarPosition { get; set; }
vb
Public Property ClosedPanelsBarPosition As Dock

Property Value

TypeDescription
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 :

xaml
<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>

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.

wpf-dock-layout-manager-save-and-restore-the-dock-layout-managers-layout/CS/MainWindow.xaml#L14

xml
</Grid.RowDefinitions>
<dxdo:DockLayoutManager Name="manager" ClosedPanelsBarVisibility="Auto" ClosedPanelsBarPosition="Top" dxdo:RestoreLayoutOptions.RemoveOldPanels="False" dxdo:RestoreLayoutOptions.AddNewPanels="True">
    <dxdo:LayoutGroup Name="root">

See Also

ClosingBehavior

AllowClose

ClosedPanels

ClosedPanelsBarVisibility

DockLayoutManager Class

DockLayoutManager Members

DevExpress.Xpf.Docking Namespace