I created an mvvm wpf project (called DemoApp) which is a basic customer list/add a customer type demo project. The project actually runs as expected except that on startup that MainWindow.xaml is instanced twice -- the first instance contains only a menu bar and the 2nd instance contains the menu bar and a couple of user controls and some hyperlinks. The user controls all work on the 2nd instance. I just can't figure out why the MainWindow is instanced twice.
I am finding that the loosely coupled paradigm appears difficult to debug. The question is -- why is the Mainwindow coming up twice (once empty of user controls and the 2nd window contains all the user controls). Maybe I should also ask if there is a methodology/convention for debugging a loosley coupled project.
Incase anyone needs to see the code -- I uploaded a zip file containing the entire project (72kb -- .Net 4.5 framework) here
Any suggestions appreciated how I could fix this.
Rich P