DocumentGroup Class

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

Namespace: DevExpress.Xpf.Docking

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

Declaration

public class DocumentGroup :
    TabbedGroup
Public Class DocumentGroup
    Inherits 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>
See Also