Wpf杀死所有线程、Wpf关闭程序杀死所有线程

Wpf关闭程序杀死所有线程:
Process.GetCurrentProcess().Kill();

using System.Diagnostics;

private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
    Process.GetCurrentProcess().Kill();
}
原文地址:https://www.cnblogs.com/cnwy/p/13305885.html