GoXam for WPF v3
ChangeDataValue Method (TreeModel<NodeType,NodeKey>)
Northwoods.GoXam.Model Namespace > TreeModel<NodeType,NodeKey> Class : ChangeDataValue Method
an edit describing the change to be performed
true if undoing; false if redoing
This is called during undo or redo to effect state changes to model data.
Syntax
protected override void ChangeDataValue( 
   ModelChangedEventArgs e,
   bool undo
)

Parameters

e
an edit describing the change to be performed
undo
true if undoing; false if redoing
Remarks

This is called by ChangeModel. You will want to override this method to handle properties that you have added to your model data classes. Or you can have your data classes implement IChangeDataValue to achieve the same effect.

By default this just calls IChangeDataValue.ChangeDataValue if the Data implements IChangeDataValue. Otherwise this uses reflection to set the System.ComponentModel.PropertyChangedEventArgs.PropertyName to the OldValue or the NewValue, depending on the value of undo.

If you override this method, remember to call the base method for all cases that your override method does not handle.

See Also

Reference

TreeModel<NodeType,NodeKey> Class
TreeModel<NodeType,NodeKey> Members