How to know if a PROPERTY is dirty?

How to know if a PROPERTY is dirty?

Old forum URL: forums.lhotka.net/forums/t/2736.aspx


david.wendelken posted on Thursday, April 19, 2007

I need to know if someone has changed various, selected properties in an object.

Is there somewhere in the framework I can determine if someone has changed the value of a given property?

xal replied on Thursday, April 19, 2007

There's nothing in the framework that will tell you that, but you could override OnPropertyChanged and keep a list of the properties that have changed. You may have to override markclean to clear that list when the object is cleaned (upon load or when it gets saved).

Andrés

Copyright (c) Marimer LLC