tags:

views:

87

answers:

1

Hi, I have created user control myControl in myControl I have taken another custom control tutorialControl. I have set DataContxt of tutorialControl to id and I want to access this data context in loaded event of tutorial. but I am getting data context as null. Can some body help?

A: 

I don't know if I understand your question correct but you can send the binding in xaml as a elementbinding

"{Binding Value, Mode=OneWay, ElementName=myControl}"

With this you can reference the context of another element.

see an example of Elementbinding here.

hope this is what you were trying to do...

silverfighter