From the sound of it:
- Add a
IsDirty
property onto yourSomeDomainType
- In the setter of
IsDirty
raise theNotifyPropertyChanged
event forIsDirty
- In all of the properties on your
SomeDomainType
that you change to make the object consideredDirty
, in their setters, setIsDirty
to true
This is presuming your SomeDomainType
implements the INotifyPropertyChanged
interface. If not, create a wrapper class around the SomeDomainType
that does, and make the above changes to that wrapper.