I have a Main Window created in C#, WPF. This main window makes use of tabs, each tab corresponding to an application which is actually a User Control. The Main Window provides common information to each of those User Controls, i.e. user name, state of database, a transaction id.
We have all this integrated just fine, up and running. However, I am having trouble, a lot of trouble passing data to the User Controls using MVVM. If I just use "code behind", then it's fine, the Main Window can pass data to the User Control.
Main Window is up and running - uses MVVM.
User Control referenced via the Main Window's XAML can reference Main Window data using Dependence Properties in the code behind.
I am unable to reference that same Main Window data in the User Control's View Model. Can anyone help?