DocumentPanel Class
DocumentPanel objects represent child panels in a DocumentGroup.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v18.2.dll
Declaration
Related API Members
The following members return DocumentPanel objects:
Remarks
You can add DocumentPanel objects as children to a DocumentGroup. This allows you to create a tabbed or MDI interface for your documents.
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-documentgroup-with-two-tabs-e1670.
<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>
Related GitHub Examples
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.