【WPF】注销

                    Application.Current.Shutdown();
                    Thread thread = new Thread(new ThreadStart(reStart));
                    thread.Start();
ViewModel_Command
        private void reStart()
        {
            string path = AppDomain.CurrentDomain.BaseDirectory + "AppDesktopStartUp.exe";
            Process.Start(path);
        }
ViewModel_Void

猜你喜欢

转载自www.cnblogs.com/uing/p/12554932.html
WPF