Sorry,
I would need other information.
I have the following cases:
- A main view having a child view.
- the main view model having the child view model of the child view as
public
property.
If I bind the
DataContext
of the child view to the child view model property from the XAML of the parent view, I get the following error:
Unknown attribute DataContext on element...
How can I solve it? Should I set the
DataContext
in the code behind of the parent view?
Thanks.