Skip to main content
A newer version of this page is available. .

DocumentPanel Class

DocumentPanel objects represent child panels in a DocumentGroup.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public class DocumentPanel :
    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.

Example

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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentPanel class.

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.

Inheritance

See Also