Skip to content

SymbolIconExtension class

Attributes: [ContentProperty] [MarkupExtensionReturnType]

Defined in

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

Summary

Custom MarkupExtension which can provide SymbolIcon.

Applies to

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

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

Inherits from: MarkupExtension

Examples

<ui:Button
 Appearance="Primary"
 Content="WPF button with font icon"
 Icon="{ui:SymbolIcon Symbol=Fluent24}" />
<ui:Button Icon="{ui:SymbolIcon Fluent24}" />
<ui:HyperlinkButton Icon="{ui:SymbolIcon Fluent24}" />
<ui:TitleBar Icon="{ui:SymbolIcon Fluent24}" />

Constructors

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

Properties

NameSummary
SymbolGets or sets the symbol.
FilledGets or sets a value indicating whether this [SymbolIconExtension](# is filled.
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