有没有一种方法可以跟踪对象是否已使用 ReactiveUI 更改?

Is there a way to track if an object has changed with ReactiveUI?

有没有一种方法可以通过 ReactiveUI 跟踪对象是否已更改?基本上 does/can ReactiveObject 基础 class 存储字段的原始值以便它可以跟踪更改?

如果 属性 发生了变化,那么我需要知道。

如果 属性 被更改但又恢复到我不想知道的原始值。

这能实现吗?

非常感谢。

ReactiveObject has a PropertyChangedEventHandler PropertyChanged, so it's part of the base class. There's a Example of how to use it。基础 class 不会存储更改的原始值,您需要使用 PropertyChangedEventHandler 或 Changing 来处理该事件以存储原始值。