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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [FontIconExtension](# class. |
Properties¶
| Name | Summary |
|---|---|
| Glyph | Gets or sets the glyph. |
| FontFamily | Gets or sets the font family. |
| FontSize | Gets or sets the size of the font. |
Methods¶
| Name | Summary |
|---|---|
| ProvideValue | When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension. |