CommandButton.AllowGlyphTheming Property
Gets whether the button icon is colored according to the currently applied theme. This is a dependency property.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v25.1.dll
NuGet Package: DevExpress.Wpf.Controls
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the button icon is colored according to the currently applied theme; otherwise, false. The default is false. |
Remarks
By default, when the AllowGlyphTheming property is set to False, the button icon (see CommandButton.Glyph) is displayed as is. You can set the AllowGlyphTheming property to True to paint the icon based on the currently applied theme.
For better visual results, when applying the glyph theming feature, we recommend using gray-scaled icons from the DX Image Gallery.
Below, you can see the AppBar control displayed in different themes. Note that the button icons are painted based on the applied theme.