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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SymbolIconExtension](# class. |
Properties¶
| Name | Summary |
|---|---|
| Symbol | Gets or sets the symbol. |
| Filled | Gets or sets a value indicating whether this [SymbolIconExtension](# is filled. |
| 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. |