WPF登陆窗口、主窗口切换问题 MainWindow mwin = new MainWindow(); Application.Current.MainWindow = mwin; this.Close(); mwin.Show();