Back to Devexpress

DocumentManager.MenuManager Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-documentmanager-787bf790.md

latest3.8 KB
Original Source

DocumentManager.MenuManager Property

Gets or sets an object that controls the look and feel of the DocumentManager‘s popup menus.

Namespace : DevExpress.XtraBars.Docking2010

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("BarManager")]
public IDXMenuManager MenuManager { get; set; }
vb
<DXCategory("BarManager")>
<DefaultValue(Nothing)>
Public Property MenuManager As IDXMenuManager

Property Value

TypeDefaultDescription
DevExpress.Utils.Menu.IDXMenuManagernull

An object that controls the look and feel of the DocumentManager‘s popup menus.

|

Remarks

The MenuManager property allows you to specify an IDXMenuManager object to control the look and feel of the DocumentManager‘s popup menus. If the property is set to null , the DocumentManager‘s popup menus will be painted by the DocumentManager itself. Otherwise, the IDXMenuManager object will be responsible for painting the menus.

Currently, the IDXMenuManager interface is implemented by the BarManager component.

If the MenuManager property is set to an instance of the BarManager component, you can provide different look and feel styles for popup menus. In this case, look and feel settings are controlled by the BarAndDockingController.LookAndFeel property of the BarAndDockingController used by the BarManager.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MenuManager property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-how-to-create-information-panels/CS/InfoPanels.Module.Win/MainForm.cs#L37

csharp
documentManager.BarAndDockingController = mainBarAndDockingController;
documentManager.MenuManager = mainBarManager;
if (TemplateCreated != null) {

xaf-how-to-create-information-panels/VB/InfoPanels.Module.Win/MainForm.vb#L45

vb
DocumentManager.BarAndDockingController = mainBarAndDockingController
    DocumentManager.MenuManager = mainBarManager
End Sub

See Also

DocumentManager Class

DocumentManager Members

DevExpress.XtraBars.Docking2010 Namespace