Skip to main content

DockControllerBase.AddPanel(DockType) Method

Creates a LayoutPanel and docks it at the specified side of the DockLayoutManager container (root group).

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v22.1.dll

NuGet Package: DevExpress.Wpf.Docking


public LayoutPanel AddPanel(
    DockType type


Name Type Description
type DockType

A DockType value that specifies the side of the DockLayoutManager container where the LayoutPanel is docked.


Type Description

The created LayoutPanel object.


If the type parameter is set to DockType.None or DockType.Fill, the AddPanel method creates a LayoutPanel object. However, it will not be displayed anywhere. To display the panel, you need to manually dock it to the root group or any other panel, for example, via the DockControllerBase.Dock method. Or, if you want to make this panel hidden, add it to the DockLayoutManager.ClosedPanels collection. To make the panel auto-hidden, add it to a AutoHideGroup. To make the panel floating, add it to a FloatGroup.


See Also