ImageIconExtension class¶
Attributes: [ContentProperty] [MarkupExtensionReturnType]
Defined in
Namespace: CrissCross.WPF.UI.Markup
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Markup.ImageIconExtension
Modifiers: public
Summary¶
Custom MarkupExtension which can provide ImageIcon.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class ImageIconExtension
class MarkupExtension
MarkupExtension <|-- ImageIconExtension
Inherits from: MarkupExtension
Remarks¶
Initializes a new instance of the ImageIconExtension class.
Examples¶
<ui:Button
Appearance="Primary"
Content="WPF button with font icon"
Icon="{ui:ImageIcon '/my-icon.png'}" />
<ui:Button Icon="{ui:ImageIcon 'pack://application:,,,/Assets/iconImage.png'}" />
<ui:HyperlinkButton Icon="{ui:ImageIcon 'pack://application:,,,/Assets/iconImage.png'}" />
<ui:TitleBar Icon="{ui:ImageIcon 'pack://application:,,,/Assets/iconImage.png'}" />
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Custom MarkupExtension which can provide [ImageIcon](# |
Properties¶
| Name | Summary |
|---|---|
| Source | Gets or sets the source. |
| Width | Gets or sets the width. |
| Height | Gets or sets the height. |
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. |