Skip to main content
Bar

MenuAppearance.MenuBar Property

Contains style settings to paint menu bars.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual AppearanceObject MenuBar { get; }

Property Value

Type Description
AppearanceObject

A AppearanceObject object providing styles for painting menu bars.

Remarks

The menu bar is a vertical bar displayed across all items within a container item. It is designed to draw custom information. To make the bar visible, set the MenuBarWidth property provided by PopupMenu and BarCustomContainerItem objects to a value greater than 0.

Use the MenuBar property to specify appearance attributes for a menu bar. You can specify background colors, gradient mode and background image. For a background image to be visible, use translucent background colors.

Bars3_MenuBar

It is possible to paint menu bars via the PaintMenuBar event. See the PopupMenu.PaintMenuBar and BarCustomContainerItem.PaintMenuBar topics for more information. If you handle the PaintMenuBar event but set its BarCustomDrawEventArgs.Handled parameter to false, the menu bar will be painted using the MenuBar settings.

See Also