Skip to main content

LayoutPanel Class

Represents a dock panel.

Namespace: DevExpress.Xpf.Docking

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

#Declaration

public class LayoutPanel :
    ContentItem,
    IGeneratorHost,
    IClosable

#Remarks

The LayoutPanel object represents a regular dock panel.

LayoutPanels

To specify a content for a panel, use the ContentItem.Content property. In XAML, an element added between the start and end LayoutPanel tags is used to initialize the ContentItem.Content property.

NOTE
  1. Do not combine dock and Layout Items within a single group.
  2. Do not combine groups containing dock items with groups containing layout items. If you need to arrange layout items next to dock items, add the layout items into a dock panel (a LayoutPanel object).
NOTE

Do not place a DocumentPanel into a LayoutPanel, and vice versa.

See Layout (Dock) Panels to learn more.

For an example of creating various kinds of panels, see the How to create a simple layout of dock panes help topic.

#Examples

The following image shows the created structure of dock panels:

LayoutGroup_DXDocking

See Also