IMDIController.MDIMenuBar Property
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.1.dll
NuGet Package: DevExpress.Wpf.Docking
Declaration
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