All docs
V21.1
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

IMDIController.MDIMenuBar Property

Gets the item’s MenuBar when the DocumentGroup’s MDIStyle property is MDI.

Namespace: DevExpress.Xpf.Docking

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

Declaration

MDIMenuBar MDIMenuBar { get; }

Property Value

Type Description
MDIMenuBar

A MDIMenuBar object.

Remarks

The following code sample adds the BarItems to the Ribbon MenuBar:

<dx:ThemedWindow
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager x:Name="docklayoutmanager1">
    <dxdo:LayoutGroup>
      <dxdo:DocumentGroup MDIStyle="MDI">
        <dxdo:DocumentPanel Caption="Document1"/>
        <dxdo:DocumentPanel Caption="Document2"/>
      </dxdo:DocumentGroup>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>
var docklayoutmanager1 = (DockLayoutManager)sender;
BarMDIButtonItem item = new BarMDIButtonItem { Content = "2", Glyph = DXImageHelper.GetImageSource("Add", DevExpress.Utils.Design.ImageSize.Size16x16) };
item.ItemClick += Item_ItemClick;
docklayoutmanager1.MDIController.MDIMenuBar.Items.Insert(0, item);
See Also