Skip to main content

DocumentGroup.MDIStyle Property

Gets or sets how the DocumentGroup displays its child panels, as floating windows or as tabs. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public MDIStyle MDIStyle { get; set; }

Property Value

Type Description
MDIStyle

An MDIStyle value that specifies how the DocumentGroup presents its child panels, as floating windows or as tabs.

Available values:

Name Description
Default

The same option as MDIStyle.Tabbed.

Tabbed

A DocumentGroup is rendered as a tab container, where children are displayed as tabs.

Dock Layout Manager - MDIStyle Tabbed

MDI

A DocumentGroup’s children are displayed as floating windows that can float within the DocumentGroup’s boundaries.

Dock Layout Manager - MDIStyle MDI

Remarks

When the MDIStyle property is set to MDIStyle.MDI, the DocumentGroup displays its child DocumentPanel objects as floating windows. You can use the DockLayoutManager.MDIController object’s methods to control child panels in this mode.

Use the DocumentPanel.MDIState property to specify the state of each DocumentPanel.

Tip

In MDI Mode, you can move DocumentPanels within the boundaries of a parent group only. Use Float Groups to move panels within the boundaries of a window or a desktop.

Example

The following code sample displays the documentGroup1 DocumentGroup in MDI mode (MDIStyle is MDIStyle.MDI):

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

MDI-mode

View Example: How To Enable MDI Mode for a DocumentGroup

See Also