Back to Devexpress

BarManagerAppearances.SubMenu Property

windowsforms-devexpress-dot-xtrabars-dot-barmanagerappearances.md

latest2.9 KB
Original Source

BarManagerAppearances.SubMenu Property

Contains default style settings to paint sub items within container items and popup menus.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public MenuAppearance SubMenu { get; }
vb
Public ReadOnly Property SubMenu As MenuAppearance

Property Value

TypeDescription
MenuAppearance

A MenuAppearance object providing style settings to paint submenu items.

|

Remarks

You can use the SubMenu property to specify default style settings for submenu items. Each container item (a BarCustomContainerItem descendant) provides the BarCustomContainerItem.MenuAppearance property and this allows you to override the default style settings for elements of this container item. Similarly, the PopupMenu.MenuAppearance property allows you to override the default style values for popup menus.

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.

Each bar item can be displayed using its own font specified by the BarItem.ItemAppearance property.

It is possible to specify default font settings for all bar items (including items of submenus). For this purpose, use the BarManagerAppearances.ItemsFont property. The SubMenu property, if used, will override these default settings for submenu items.

See Appearance and Look and Feel to learn more.

See Also

MenuAppearance

ItemsFont

Font

BarManagerAppearances Class

BarManagerAppearances Members

DevExpress.XtraBars Namespace