You can still get the value by handling PropertyChanged
. Just use the name to go back and get the value.
someObject.PropertyChanged += (sender, e) => {
var value = sender.GetType()
.GetProperty(e.PropertyName)
.GetValue(sender, null);
// do something with value?
};
Check out Type.GetProperty()
and PropertyInfo.GetValue()
.