Class TypedParameterExtension
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Implements a markup extension that supports references to TypedParameters from XAML.
public class TypedParameterExtension : MarkupExtension
- Inheritance
-
ObjectTypedParameterExtension
Constructors
TypedParameterExtension(String)
Initializes a new instance of the TypedParameterExtension class.
public TypedParameterExtension(string name)
Parameters
nameStringName of the ModelEntity to search.
Properties
Name
Gets or sets the name of the searched ModelEntity.
public string Name { get; set; }
Property Value
- String
Methods
ProvideValue(IServiceProvider)
Returns an object that should be set on the property where this extension is applied. For TypedParameter this is the ModelEntity with the specified Name.
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderObject that can provide services for the markup extension.
Returns
- Object
The ModelEntity with the specified Name.