I don't think there's a direct method in WPF like there is in WinForms. However, you could use methods from the Windowns.Form
namespace like this: (You might need to add a reference to the System.Windows.Form
assembly)
System.Windows.Forms.Application.Restart();
System.Windows.Application.Current.Shutdown();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…