0

is there a way to track if an object has changed with ReactiveUI? Basically does/can the ReactiveObject base class store the original values for the fields so it can track change?

If a property has changed then i need to know.

If a property was changed but then put back to the original value I don't want to know.

Can this be achieved ?

Thanks a lot.

CodingHero
  • 2,865
  • 6
  • 29
  • 42

1 Answers1

0

ReactiveObject has a PropertyChangedEventHandler PropertyChanged, so it's part of the base class. There's a Example of how to use it. The base class will not store the original value for the change, you would need to handle that event with a PropertyChangedEventHandler or Changing to store the original values.

lloyd
  • 1,683
  • 2
  • 19
  • 23