ResourceProviderMarkupExtension used to set themable resources for UserControls.
Definition
Namespace:Telerik.Windows.Controls.MarkupExtensions
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ResourceProviderMarkupExtension : MarkupExtension
Inheritance: objectResourceProviderMarkupExtension
Constructors
Initializes a new instance of the ResourceProviderMarkupExtension class.
public ResourceProviderMarkupExtension()
Properties
Provider
IResourceProvider
Gets or sets the instance of the IResourceProvider.
public IResourceProvider Provider { get; set; }
Gets or sets the ResourceKey for the resource that is needed.
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.
public override object ProvideValue(IServiceProvider serviceProvider)
The value from the IServiceProvider.GetResource method.