Skip to main content

IMDIController.MDIMenuBar Property

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

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

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