WPF restart application

In WPF, software restart can be achieved through the System.Windows.Forms.Application.Restart method.

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

Guess you like

Origin blog.csdn.net/beautifull001/article/details/128077373