wpf program restart code example Example: wpf restart application c# Application.Current.Shutdown(); System.Windows.Forms.Application.Restart();