DocumentPanel Class

DocumentPanel objects represent child panels in a DocumentGroup.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public class DocumentPanel :
    LayoutPanel
Public Class DocumentPanel
    Inherits LayoutPanel

Remarks

You can add DocumentPanel objects as children to a DocumentGroup. This allows you to create a tabbed or MDI interface for your documents.

DocumentGroup

NOTE

Do not use dock items outside the DockLayoutManager control.

NOTE

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

See Document Groups and Panels to learn more.

Examples

This example shows how to create a DocumentGroup with two tabs, represented by DocumentPanel objects.

<dxdo:DocumentGroup x:Name="documentGroup1" ItemHeight="2*" SelectedTabIndex="1">
    <dxdo:DocumentPanel x:Name="document1" Caption="Document 1">
        <RichTextBox />
    </dxdo:DocumentPanel>
    <dxdo:DocumentPanel x:Name="document2" Caption="Document 2">
        <RichTextBox />
    </dxdo:DocumentPanel>
</dxdo:DocumentGroup>
See Also