I need to know if the public property (which has getter and setter) has been changed. The property is in a simple class (without a user control / component, etc.).
Is there an elegant way to subscribe to some event that notifies when a property changes?
I tried to understand what microsoft is doing in the Binding object (using a reflector), and this made me learn the PropertyDescriptor.AddValueChanged method, but that did not work for me. maybe it only works for components / user controls ...
Any suggestions?
Thanks,
Adi barda
source share