May 11th, 2010, 05:49 AM
Getting 2 MainWindows
this is my code.
the idea being to set the data context of the MainWindow.
However, I am given 2 main windows, one blank, one with all the stuff in the view model.
(I was attempting to replicate the example here
for my own objects.)
protected override void OnStartup(StartupEventArgs e)
MainWindow window = new MainWindow();
var viewModel = new AllConversationsViewModel();
MainWindow.DataContext = viewModel;
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!