views:

48

answers:

0

I have a user control, A, which wraps a third-party date-picker control, DP.

A tells DP's SelectedDate dependency property to two-way bind to A's SelectedDate dependency property, thus effectively exposing the wrapped date-picker's SelectedDate value.

I then have a control X which contains an instance of user control A. This tells A's SelectedDate property to two-way bind to X's Date dependency property, so that X is able to control the SelectedDate property within DP.

Ok, A is notified of changes to DP's SelectedDate property, but that is where the updates end - the subsequent change to A's SelectedDate property is not propagated up to X. I've turned tracing on to both bindings and, while X successfully sets A's SelectedDate value, it is never updated. Any ideas welcome, I'm tearing my hair out.