views:

59

answers:

4

I have two User Controls in my window, both are bound to the same context.

One of them is getting updated and the other is not.

What could be the reason?

+1  A: 

Sounds like you have an issue with the bindings. Make sure your dependency properties bound to each control are both getting notified via OnPropertyChanged. If both properties aren't getting notified this would be your issue regardless if they share the same datacontext (viewmodel).

Blessings,

Jeff

Jeff Gwaltney
A: 

Without seeing the code, we only guess:

Check that the property names in the bindings are an exact match (including case). It is quite common to have typing errors that cause bindings to fail (silently).

Enough already
+1  A: 

Beware of UserControls by default they bind one way you have to specify TwoWay:

<Binding Mode="TwoWay" ...>
...
</Binding>
Mrk Mnl
+1  A: 

Do you see any binding errors in the Output window? If so you can post that and maybe we can understand.

If not try to put a dummy converter in the binding and see if its methods are hit.

One from the multiple issues could be binding source address is changed.

bjoshi