As mentioned in this question, there are at least two ways by which I can be notified that the value bound to a dependency property has changed:
- DependencyPropertyDescriptor.AddValueChanged
- DependencyProperty.OverrideMetadata on a derived class with my own PropertyChangedCallback.
This is all working fine but I need to be notified only when the actual binding is set on the property not every time the value changes. Is there a way to register a callback for this or an event I need to listen to?
I have looked in MSDN on the classes DependencyProperty, DependencyObject, BindingOperations and DependencyPropertyDescriptor.