摘要:
关于 WPF 在主窗口中用多线程打开的子窗口关闭后进程还存在,这个问的题的解决方法。this.Dispatcher.Thread.Abort() 下面是例子代码主窗口:voidmethod(){Thread newWindowThread = new Thread(new ParameterizedThreadStart(showNewWindow)); newWindowThread.SetApartmentState(ApartmentState.STA); newWindowThread.Start(msgClass); }void showNewWindow(objec... 阅读全文
posted @ 2013-02-23 22:08
程序员传教士/Ihaveadream
阅读(5802)
评论(4)
推荐(1)