Back to Devexpress

MenuAppearance.Menu Property

windowsforms-devexpress-dot-xtrabars-dot-menuappearance-0ef9dd95.md

latest2.5 KB
Original Source

MenuAppearance.Menu Property

Contains style settings used to paint submenu items.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
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.LookAndFeel property 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 OptionOffice 2000Office 2003Windows XPSkinning Painting Scheme
BackColor++++
BackColor2 and GradientMode+++-
Image++++
Font and ForeColor++++

The BorderColor property is ignored in all painting schemes.

See Also

SideStripNonRecent

MenuAppearance Class

MenuAppearance Members

DevExpress.XtraBars Namespace