Skip to main content
Bar

BarItem.AllowGlyphTheming Property

Gets or sets whether the BarItem glyph is colored according to the currently applied theme.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool? AllowGlyphTheming { get; set; }

Property Value

Type Description
Nullable<Boolean>

true, if the BarItem glyph is colored according to the currently applied theme; otherwise, false.

Remarks

The AllowGlyphTheming property specifies whether the BarItem glyph is colored according to the currently applied theme. When using the glyph theming feature, use of gray-scaled glyphs from the DX Image Gallery is recommended for the best visual effects.

See the BarManager.AllowGlyphTheming property to learn more.

Note

This fucntionality can operate only in bar items that do not use Lightweight Templates. Disable the use of Lightweight Templates (set CompatibilitySettings.UseLightweightBarItems to false) if you want to enable the glyph theming feature. Alternatively, you can use SVG icons in bar items: SVG Images.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowGlyphTheming 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