Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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