关闭窗口,强制退出exe

1、暂时使用如下2个方式:(20190830)

  Application.Current.Shutdown();
  System.Environment.Exit(0);

  ZC:不知道为何 WPF的程序在 任务栏 右击 关闭的时候 就是关不了... 暂时未找到原因,这是 没办法时的权宜之计...

2、

3、

4、

5、

 

posted @ 2019-08-30 17:01  csskill  阅读(440)  评论(0编辑  收藏  举报