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

DocumentGroup Class

Represents child panels (DocumentPanel objects) using either a tabbed or MDI UI.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public class DocumentGroup :
    TabbedGroup

Remarks

DocumentGroup objects are used within the DockLayoutManager to create a tabbed or MDI interface for your documents. Individual pages in a DocumentGroup are represented by DocumentPanel objects.

DocumentGroup

To switch between the tabbed and MDI styles, use the DocumentGroup.MDIStyle property.

In MDI mode, it’s possible to:

Note

DocumentGroups cannot be used outside the DockLayoutManager component.

See Document Groups and Panels to learn more.

Example 1

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>

Example 2

In this example, MDI mode is enabled for a DocumentGroup via the MDIStyle property. In this mode, the DocumentGroup’s panels are represented as floating windows.

The following image shows the result:

MDI-mode

<dxdo:DocumentGroup x:Name="documentGroup1" ItemWidth="2*" MDIStyle="MDI">
    <dxdo:DocumentPanel x:Name="document1" Caption="Document 1" MDISize="200,100" >
        <RichTextBox/>
    </dxdo:DocumentPanel>
    <dxdo:DocumentPanel x:Name="document2" Caption="Document 2" MDISize="200,100" MDILocation="50,120" >
        <RichTextBox/>
    </dxdo:DocumentPanel>
</dxdo:DocumentGroup>

The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentGroup 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