WPF 重新启动应用程序

WPF中通过System.Windows.Forms.Application.Restart方法可以实现软件重启

                System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
                Application.Current.Shutdown();

猜你喜欢

转载自blog.csdn.net/beautifull001/article/details/128077373