PropertyModelChildChangeEventArgs Class
Provides event arguments for IPropertyModel child change events, such as when a child item is added to or removed from a collection.
public class PropertyModelChildChangeEventArgs : CancelRoutedEventArgs
- Inheritance:
- object EventArgs RoutedEventArgs CancelRoutedEventArgs object
Constructors
PropertyModelChildChangeEventArgs(IPropertyModel, IPropertyModel)
Initializes a new instance of the PropertyModelChildChangeEventArgs class.
public PropertyModelChildChangeEventArgs(IPropertyModel parentPropertyModel, IPropertyModel childPropertyModel)
Parameter | Type | Description |
---|---|---|
parentPropertyModel | IPropertyModel | The IPropertyModel for the parent. |
childPropertyModel | IPropertyModel | The IPropertyModel for the child being added to or removed from the parent, if known. |
PropertyModelChildChangeEventArgs(IPropertyModel, object)
Initializes a new instance of the PropertyModelChildChangeEventArgs class.
public PropertyModelChildChangeEventArgs(IPropertyModel parentPropertyModel, object childValue)
Parameter | Type | Description |
---|---|---|
parentPropertyModel | IPropertyModel | The IPropertyModel for the parent. |
childValue | object | The child value. |
Properties
ChildPropertyModel
Gets the IPropertyModel for the child being added to or removed from the parent, if known.
public IPropertyModel ChildPropertyModel { get; }
Property Value
- IPropertyModel:
The IPropertyModel for the child being added to or removed from the parent, if known.
ChildValue
Gets or sets the child value.
ParentPropertyModel
Gets the IPropertyModel for the parent.
public IPropertyModel ParentPropertyModel { get; }
Property Value
- IPropertyModel:
The IPropertyModel for the parent.