In This Article

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.

public object ChildValue { get; set; }

Property Value

Object:

The child value.

ParentPropertyModel

Gets the IPropertyModel for the parent.

public IPropertyModel ParentPropertyModel { get; }

Property Value

IPropertyModel:

The IPropertyModel for the parent.

Inherited Members