WPF登陆窗口、主窗口切换问题

MainWindow mwin = new MainWindow();
Application.Current.MainWindow = mwin;
this.Close();
mwin.Show();
原文地址:https://www.cnblogs.com/sntetwt/p/9220658.html