Skip to main content
All docs
V24.1

FontIconSourceExtension.ColorName Property

Gets or sets the name of the color applied to the font icon.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public string ColorName { get; set; }

Property Value

Type Description
String

The name of the color applied to the font icon.

Remarks

The following colors are available:

  • Red
  • Green
  • Blue
  • Yellow
  • Black
  • White

DevExpress Themes adjust these font icon colors to match the application theme.

<dxb:BarButtonItem Glyph="{dx:FontIconSource Glyph=0xf0b4, ColorName=Red}"/>

You can omit color adjustment and apply custom colors to icons. To do this, use the WpfSvgPalette class as demonstrated in the following help topic: Change Palette Colors.

<dxb:BarButtonItem Glyph="{dx:FontIconSource Glyph=59246}">
    <dx:WpfSvgPalette.Palette>
        <dx:WpfSvgPalette>
            <SolidColorBrush x:Key="Black" Color="Aqua"/>
        </dx:WpfSvgPalette>
    </dx:WpfSvgPalette.Palette>
</dxb:BarButtonItem>
See Also