关闭所有窗口并结束程序

1 // 关闭全部窗体并退出程序
2 
3 Application.Current.Shutdown();  
原文地址:https://www.cnblogs.com/wynblogscc/p/14216092.html