DocumentGroup.MDIStyle Property

Gets or sets how the DocumentGroup presents its child panels, as floaing windows, or using the tabbed UI. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public MDIStyle MDIStyle { get; set; }
Public Property MDIStyle As MDIStyle

Property Value

Type Description
MDIStyle

An MDIStyle value that specifies how the DocumentGroup presents its child panels, as floaing windows, or using the tabbed UI.

Remarks

When the MDIStyle property is set to MDIStyle.MDI, child DocumentPanel objects are represented as floating windows. The DockLayoutManager.MDIController object provides methods to work with child panels in this mode. The state of each DocumentPanel can be specified via the DocumentPanel.MDIState property.

TIP

In MDI Mode, DocumentPanels can be moved within the boundaries of a parent group only. To move panels within the boundaries of a window or a desktop, use Float Groups.

Examples

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