Alex Rivera | Logout

How do I restart a WPF application?

Asked 2011-01-23T11:50:40.773
99

How can I restart a WPF Application? In windows Forms I used

System.Windows.Forms.Application.Restart();

How to do it in WPF?

Edit
Report

1 Answer

133

I found this: It works. But. Is there any better way?

System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();
answered 2011-01-23T11:52:23.423

Your Answer