Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarManagerAppearances.SubMenu Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public MenuAppearance SubMenu { get; }

#Property Value

Type Description
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