WPF Dispatcher.FromThread

Dispatcher.FromThread 方法能夠從線程中得到 Dispatcher ,若是此線程中操做了UI相關的對象,如窗體,控件等,那麼它的返回值將不爲null, 不然爲null.html 舉個例子:express 新建一個wpf應用:默認窗體 MainWindow 裏放一個測試按鈕。async <Window x:Class="WpfApp1.MainWindow" xm
相關文章
相關標籤/搜索