What do I do:
1. create a DependencyProperty P1 in class A (Window)
2. create a DependencyProperty P2 in class B (UserControl)
3. create the window A with a control B
4. bind P1 to P2, two-way
5. bind P2 to B's child control (say, Text)
What do I expect:
When I set P1, I want both P2 and Text to automatically update
What do I get:
After setting P1, P2 and Text are left unchanged (as if there was no binding between them)
I looked at it under the debugger and yes, P1 is set, P2 is null. I put a Trace.WriteLine in DependencyProperty's setter here and there and P2's setter is never called.
What am I doing wrong?
View Complete Post