I have a scenario where I don\'t really know how to bind data to controls hosted in a UserControl to multiple datacontexts.
The data i want to bind comes from 2 clas
Here is the simplest method of all, and it works very well.
In the code-behind where you set the context, simply use an anonymous type containing all the desired values:
DataContext = new
{
info = FetchUserInfoFromDatabase(),
extendedInfo = FetchExtendedUserInfoFromDatabase(),
};
In the XAML you can bind to anything:
...