protected override void OnStartup(StartupEventArgs e) { IMainWindowViewModel mainWindowViewModel = Bootstrapper.Resolve <IMainWindowViewModel>(); MainWindow = (MainWindow)mainWindowViewModel.LoadWindow <IMainWindowViewModel, IMainWindow>(mainWindowViewModel); if (MainWindow != null) { //if (System.Windows.Forms.Screen.AllScreens.Count() > 1) //{ // var left = System.Windows.Forms.Screen.AllScreens[1].Bounds.Left; // MainWindow.Left = left; //} MainWindow.Show(); base.OnStartup(e); } }