EditorContainer.MenuManager Property
Gets or sets an object that controls the look and feel of the popup menus.
Namespace: DevExpress.XtraEditors.Container
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
[DefaultValue(null)]
[DXCategory("BarManager")]
public IDXMenuManager MenuManager { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DevExpress.Utils.Menu.IDXMenuManager | *null* | An object that controls the look and feel of the popup menus. |
Remarks
The MenuManager property allows you to specify an IDXMenuManager object to control the look and feel of the popup menus. If the property is set to null, the control’s popup menus will be painted by the control itself. Otherwise, the IDXMenuManager object will be responsible for painting the menus.
Currently, the IDXMenuManager interface is implemented by the BarManager component which is part of the DevExpress Ribbon, Menu and Docking Library.
If the MenuManager property is set to an instance of the BarManager component, you can provide different look and feels (Flat, Styles3D, OfficeXP, Office2003 etc) for popup menus. Look and feel settings are controlled in this case by the BarAndDockingController.LookAndFeel and BarAndDockingController.PaintStyleName properties of the bar and docking controller used by the bar manager.
The following images show an XtraGrid’s menus painted using various schemes imposed by the associated bar manager:
UltraFlat | |
WindowsXP | |
Office2000 | |
Office2003 |
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references 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.