Table of Contents

Class ModelRelationExtension

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Implements a markup extension that supports references to relations declared in XAML.

public class ModelRelationExtension : MarkupExtension
Inheritance
Object
ModelRelationExtension

Constructors

ModelRelationExtension(String)

Initializes a new instance of the ModelRelationExtension class.

public ModelRelationExtension(string name)

Parameters

name String

Name of the ModelElement to search.

Properties

Name

Gets or sets the name of the searched ModelElement.

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 ModelRelationExtension this is the ModelElement with the specified Name.

public override object ProvideValue(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Object that can provide services for the markup extension.

Returns

Object

The ModelElement with the specified Name.