If I a dp a and a dp b, if i bind b to a, say a is 100, b becomes 100, if later assign b to 80 would that break the binding? so if I later assign a t0 70 b will not get updated? maybe a better approach would be to change b in a’s on value changed method, then the following example would work?
Share
If you want to (temporarily, until next change of
a) set the value ofbto 70 without breaking the binding, you can callSetCurrentValue(bProperty, 70)on the DependencyObject that defines DependencyPropertyb. This works as long as the dependency property is backed by a public static field as described here (which is afaik true for the dependency properties of all WPF components).