IconUriBindingExtension
Ecng.Xaml
Extension receives binding for icon (svg/png) and creates image source binding which will auto update when theme changed.
Inherits: MarkupExtension
Constructors
IconUriBindingExtension
public IconUriBindingExtension(BindingBase binding)
iconUriBindingExtension = IconUriBindingExtension(binding)
Extension receives binding for icon (svg/png) and creates image source binding which will auto update when theme changed.
Properties
Methods
ProvideValue
public override object ProvideValue(IServiceProvider serviceProvider)
result = iconUriBindingExtension.ProvideValue(serviceProvider)
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
- serviceProvider
- A service provider helper that can provide services for the markup extension.
Returns: The object value to set on the property where the extension is applied.