Skip to main content
All docs
V24.2

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

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.2.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