Class WpfResourceMarkupExtensionBase<TResource, TResourceKey>
Defines a base class to provide wpf resources via markup extension.
Inheritance
System.Object
System.Windows.Markup.MarkupExtension
WpfResourceMarkupExtensionBase<TResource, TResourceKey>
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls.Markup
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public abstract class WpfResourceMarkupExtensionBase<TResource, TResourceKey> : MarkupExtension where TResource : class where TResourceKey : struct, IConvertible
Type Parameters
Name | Description |
---|---|
TResource | The resource type. |
TResourceKey | The resource key type. |
Constructors
View SourceWpfResourceMarkupExtensionBase(TResourceKey)
Creates a new instance of the WpfResourceMarkupExtensionBase<TResource, TResourceKey> class.
Declaration
protected WpfResourceMarkupExtensionBase(TResourceKey resourceKey)
Parameters
Type | Name | Description |
---|---|---|
TResourceKey | resourceKey | The resource key. |
Methods
View SourceProvideValue(IServiceProvider)
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | A service provider helper that can provide services for the markup extension. |
Returns
Type | Description |
---|---|
System.Object | The object value to set on the property where the extension is applied. |
Overrides
System.Windows.Markup.MarkupExtension.ProvideValue(System.IServiceProvider)