DockLayoutManager.MDIMergeStyle Property
Gets or sets if and when the merge mechanism is invoked by the DockLayoutManager.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
MDIMerge |
An DevExpress. |
#Remarks
A DockLayoutManager supports merging Bars, RibbonControls and RibbonStatusBarControls of child panels with the main panel's Bars, RibbonControls and RibbonStatusBarControls. In regular MDI mode, by default, these controls are merged when a child MDI panel is maximized. In tabbed MDI mode, (when the host group's DocumentGroup.MDIStyle property is set to Tabbed), the merging is performed when a tab is activated. Selecting another tab unmerges the previous tab and merges the newly selected one.
The MDIMergeStyle property allows you to specify when the merging/unmerging mechanism is invoked. This property is applied to all child panels within the current DockLayoutManager. Use the DocumentPanel.MDIMergeStyle property to override this setting for individual panels.
It is also possible to prevent Bars, RibbonControls or RibbonStatusBars from being merged by setting the BarManager.MDIMergeStyle, RibbonControl.MDIMergeStyle or RibbonStatusBarControl.MDIMergeStyle property to MDIMergeStyle.Never.
The following code shows how to restrict merging for one specified panel and allow it for all the others:
<dxd:DockLayoutManager x:Name="dockManager" MDIMergeStyle="Always">
<dxd:LayoutGroup>
<dxd:DocumentGroup Name="mdiContainer" MDIStyle="MDI" >
<dxd:DocumentPanel MDIMergeStyle="Never" Name="unmergedPanel" Caption="This Panel Never Invokes The Merging Mechanism" MDILocation="250,100" MDISize="500,300" Content="..."/>
<dxd:DocumentPanel Name="mergedPanel" Caption="This Panel Is Merged When Maximized" MDILocation="150,150" MDISize="500,300" Content="..."/>
</dxd:DocumentGroup>
</dxd:LayoutGroup>
</dxd:DockLayoutManager x:Name="dockManager" MDIMergeStyle="Always">