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

ResourceProviderMarkupExtension used to set themable resources for UserControls.

Definition

Namespace:Telerik.Windows.Controls.MarkupExtensions

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class ResourceProviderMarkupExtension : MarkupExtension

Inheritance: objectResourceProviderMarkupExtension

Constructors

Initializes a new instance of the ResourceProviderMarkupExtension class.

C#
public ResourceProviderMarkupExtension()

Properties

Provider

IResourceProvider

Gets or sets the instance of the IResourceProvider.

C#
public IResourceProvider Provider { get; set; }

Gets or sets the ResourceKey for the resource that is needed.

C#
public object ResourceKey { get; set; }

Methods

Provides the value of the resource by ResourceKey via the Provider's GetResource method. If performs sanity checks for the parameters and takes care to pass the TargetProperty and the TargetType to the GetResource method, if they are available from the IServiceProvider.

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

object

The value from the IServiceProvider.GetResource method.