New to Telerik UI for WPFStart a free 30-day trial

Represents IconResource MarkupExtension.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class IconResourceExtension : MarkupExtension

Inheritance: objectIconResourceExtension

Constructors

Initializes a new instance of the IconResourceExtension class.

C#
public IconResourceExtension()

Properties

Gets or sets the icon relative path.

C#
public string IconRelativePath { get; set; }
Property Value:

The icon relative path.

Gets or sets the string format for constructing the path. The bound control's DataContext is used as a parameter value.

C#
public string IconRelativePathStringFormat { get; set; }
Property Value:

The string format.

Gets or sets the icon sources.

C#
public IconSources IconSources { get; set; }
Property Value:

The icon sources.

Methods

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

C#
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters:serviceProviderIServiceProvider

A service provider helper that can provide services for the markup extension.

Returns:

object

The object value to set on the property where the extension is applied.