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