Bar

BarManagerAppearances.MainMenu Property

Contains default style settings to paint main menus.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[Browsable(false)]
public AppearanceObject MainMenu { get; }
<Browsable(False)>
Public ReadOnly Property MainMenu As AppearanceObject

Property Value

Type Description
AppearanceObject

A AppearanceObject object providing style settings to paint main menus.

Remarks

You can use the MainMenu property to specify default style settings for main menus. Each bar also provides the Bar.Appearance property, that allows you to override the default settings for this bar. XtraBars employs special flags to indicate whether particular styles should be used. Flags are automatically set when assigning values to corresponding style properties. Flags can be cleared via the AppearanceObject.Options property.

It is possible to specify default common style settings for all bars (including main menus and status bars). For this purpose, use the BarManagerAppearances.Bar property. The MainMenu property settings, if used (i.e. if corresponding flags are not cleared), will override the BarManagerAppearances.Bar's settings.

The following table summarizes which appearance options provided by the MainMenu object are in effect in various painting schemes:

Appearance Option Office 2000 Office 2003 Windows XP Skinning Painting Scheme
BackColor + + + +
BackColor2 and GradientMode + - - -
Image + - - -
Font and ForeColor + + + +

The BorderColor property is ignored in all painting schemes.

See Appearance and Look and Feel to learn more.

See Also