Bar

MenuAppearance.Menu Property

Contains style settings used to paint submenu items.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

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

Property Value

Type Description
AppearanceObject

A AppearanceObject object providing styles for submenu items.

Remarks

Use the Menu property to specify appearance attributes for submenu items. You can specify background and foreground colors, font settings, gradient mode and background image. For a background image to be visible, use translucent background colors.

For WindowsXP, Office2000, Flat and UltraFlat paint schemes, the appearance settings of subitems not recently used are determined by the MenuAppearance.SideStripNonRecent property. If style settings were not set via MenuAppearance.SideStripNonRecent, these subitems will be painted using system settings. See the BarAndDockingController.PaintStyleName and BarAndDockingController.LookAndFeel properties to specify a paint scheme for bars.

The following table summarizes which appearance options provided by the Menu 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 Also