Wpf关闭程序杀死所有线程: Process.GetCurrentProcess().Kill();
using System.Diagnostics; private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { Process.GetCurrentProcess().Kill(); }