MainWindow mainWindow = new MainWindow("/pages/ProductionInfo/ProductionFacts.xaml"); Window window = Window.GetWindow(this);//关闭父窗体 window.Close(); mainWindow.Show();
MainWindow mainWindow = new MainWindow("/pages/ProductionInfo/ProductionFacts.xaml"); Window window = Window.GetWindow(this);//关闭父窗体 window.Close(); mainWindow.Show();