Class ModelRelationExtension
Implements a markup extension that supports references to relations declared in XAML.
Inheritance
System.Object
ModelRelationExtension
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class ModelRelationExtension : MarkupExtension
Constructors
ModelRelationExtension(String)
Initializes a new instance of the ModelRelationExtension class.
Declaration
public ModelRelationExtension(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the ModelElement to search. |
Properties
Name
Gets or sets the name of the searched ModelElement.
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 ModelRelationExtension this is the ModelElement 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 ModelElement with the specified Name. |