阅读背景:

WPF:在UI线程和后台线程之间传递对象

来源:互联网 

In my Window constructor after InitializeComponents, I need to create an object and bind it to a datagrid. Since the object creation is taking too much time, the windows takes a while to show up. So I decided to move the creation of the object to a background thread and "delegate back" to the UI thread by doing a dispatcher.invoke to perform the binding. But this fails. In my Window constructor after InitializeCompon




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: