Back to Devexpress

DockLayoutManager.ClosedPanelsBarVisibility Property

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

latest3.9 KB
Original Source

DockLayoutManager.ClosedPanelsBarVisibility Property

Gets or sets the visibility state for the Closed Panels bar. This is a dependency property.

Namespace : DevExpress.Xpf.Docking

Assembly : DevExpress.Xpf.Docking.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public ClosedPanelsBarVisibility ClosedPanelsBarVisibility { get; set; }
vb
Public Property ClosedPanelsBarVisibility As ClosedPanelsBarVisibility

Property Value

TypeDescription
ClosedPanelsBarVisibility

The visibility state for the Closed Panels bar.

|

Available values:

NameDescription
Default

The same as the ClosedPanelsBarVisibility.Manual option.

| | Manual |

The Closed Panels bar is visible if an end-user enabled it via a context menu.

| | Auto |

The Closed Panels bar is made visible if any closed panel exists. It’s possible to hide and then restore the bar via a context menu.

| | Never |

The Closed Panels bar is always hidden and cannot be made visible via a context menu.

|

Remarks

The Closed Panels bar gives you access to closed panels. For each closed panel, it displays a button with the panel’s caption. Click the button to restore the panel to its previous position.

An end user can right-click a panel’s caption or header area and select the Closed Panels item to display the Closed Panels bar.

You can set the ClosedPanelsBarVisibility property to Never to disable the Closed Panels bar.

Tip

Refer to the following topics for more information on context menus:

Position

Use the DockLayoutManager.ClosedPanelsBarPosition property to specify its location.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ClosedPanelsBarVisibility 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

DockLayoutManager Class

DockLayoutManager Members

DevExpress.Xpf.Docking Namespace