PropertyRelation
This class represents a relation between a parent object and a collection of child objects that are accessible via a property on the master object.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
public class PropertyRelation : RelationBase, IRelation
Inheritance: objectRelationBasePropertyRelation
Implements:
Inherited Members
Constructors
Initializes a new instance of the PropertyRelation class.
public PropertyRelation()
Initializes a new instance of the PropertyRelation class.
public PropertyRelation(string parentPropertyName)
Name of the parent property.
Properties
Gets or sets the name of the property on the parent object. For example if the parent object is of type Customer and it has an Orders property that contains a collection of Order objects, then this property should be set to "Orders".
public string ParentPropertyName { get; set; }
The name of the parent property.
Methods
Gets the child data source.
public override object GetDataSource(object context, DataItemCollection parentItems)
The data context.
parentItemsDataItemCollectionThe parent items collection.
Returns:Overrides: