In WPF, how do I update the object that my custom property is bound to?

Posted by Timothy Khouri on Stack Overflow See other posts from Stack Overflow or by Timothy Khouri
Published on 2010-04-14T17:10:35Z Indexed on 2010/04/14 17:13 UTC
Read the original article Hit count: 212

Filed under:
|
|

I have a custom property that works perfectly, except when it's bound to an object.

The reason is that once the following code is executed:

base.SetValue(ValueProperty, value);

... then my control is no longer bound. I know this because calling:

base.GetBindingExpression(ValueProperty);

... returns the binding object perfectly - UNTIL I call base.SetValue. So my question is, how do I pass the new "value" on to the object that I'm bound to?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about binding