Skip to content

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

NameSummary
.ctorCustom MarkupExtension which can provide [ImageIcon](#

Properties

NameSummary
SourceGets or sets the source.
WidthGets or sets the width.
HeightGets or sets the height.

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