Skip to main content
A newer version of this page is available. .
Bar

BarSubItem.SubItemsGlyphSize Property

Gets or sets whether a small or large image is displayed by bar item links within the current submenu. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public GlyphSize SubItemsGlyphSize { get; set; }

Property Value

Type Description
GlyphSize

A GlyphSize value that specifies the size of images for the menu’s items.

Available values:

Name Description
Default

The size of a bar item’s image is dependent on the settings of the bar item’s container (bar or popup menu) or the BarManager object. See the following options: Bar.GlyphSize, PopupMenu.GlyphSize, BarSubItem.SubItemsGlyphSize, BarManager.ToolbarGlyphSize, BarManager.MenuGlyphSize.

Small

A bar item is using a small image specified by the BarItem.Glyph property.

Large

A bar item is using a large image specified by the BarItem.LargeGlyph property.

Custom

The size of the glyph is specified by the Size value.

Remarks

This property makes sense when both large and small images are assigned to bar items via the BarItem.Glyph and BarItem.LargeGlyph properties. The SubItemsGlyphSize specifies whether bar item links displayed in the current sub-menu use small or large images. You can override this setting for individual bar items via the BarItem.GlyphSize property.

If the sub-menu’s SubItemsGlyphSize property is set to Default, the size of the images is determined by the BarManager.MenuGlyphSize property.

See BarItem.Glyph to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SubItemsGlyphSize property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also