protected override void OnStartup(StartupEventArgs e) { var mainWindow = new MainWindow(new MainWindowViewModel()); mainWindow.Show(); }