Wpf 关闭当前窗体 打开新窗体

            MainWindow mainWindow = new MainWindow("/pages/ProductionInfo/ProductionFacts.xaml");
            Window window = Window.GetWindow(this);//关闭父窗体
            window.Close();
            mainWindow.Show();
原文地址:https://www.cnblogs.com/siyunianhua/p/11474694.html