Skip to content

FontIconExtension class

Attributes: [ContentProperty] [MarkupExtensionReturnType]

Defined in

Namespace: CrissCross.WPF.UI.Markup Assembly: CrissCross.WPF.UI.dll Full name: CrissCross.WPF.UI.Markup.FontIconExtension Modifiers: public

Summary

Custom MarkupExtension which can provide FontIcon.

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Class hierarchy
classDiagram
class FontIconExtension
class MarkupExtension
MarkupExtension <|-- FontIconExtension

Inherits from: MarkupExtension

Remarks

Initializes a new instance of the FontIconExtension class.

Examples

<ui:Button
 Appearance="Primary"
 Content="WPF button with font icon"
 Icon="{ui:FontIcon ''}" />
<ui:Button Icon="{ui:FontIcon '🌈'}" />
<ui:HyperlinkButton Icon="{ui:FontIcon '🌈'}" />
<ui:TitleBar Icon="{ui:FontIcon '🌈'}" />

Constructors

NameSummary
.ctorInitializes a new instance of the [FontIconExtension](# class.

Properties

NameSummary
GlyphGets or sets the glyph.
FontFamilyGets or sets the font family.
FontSizeGets or sets the size of the font.

Methods

NameSummary
ProvideValueWhen implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
Inherited members