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.v18.2.dll
Declaration
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. |
Available values:
Name | Description |
---|---|
Default | The same option as MDIStyle.Tabbed. |
Tabbed | A DocumentGroup is rendered as a tab container, where children are represented as tabs. |
MDI | A DocumentGroup’s children are represented as floating windows, that can float within the DocumentGroup’s boundaries. |
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.
Example
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:
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-enable-mdi-mode-for-a-documentgroup-e2190.
<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>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MDIStyle property.
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.