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