The following two lines will restart a running WPF application

/*
    restart WPF Application
*/
System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();