How can I restart a WPF Application? In windows Forms I used
System.Windows.Forms.Application.Restart();
How to do it in WPF?
I found this: It works. But. Is there any better way?
System.Diagnostics.Process.Start(Application.ResourceAssembly.Location); Application.Current.Shutdown();
I've used this in WPF, successfully:
System.Windows.Forms.Application.Restart(); System.Windows.Application.Current.Shutdown();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With