Windows Phone 7 中 UI 控件的线程关联
当我构建多线程应用程序时,如何处理 Windows Phone 7 中的线程关联问题?一个简单的例子是用户启动一些长时间运行的进程,该进程在另一个线程中处理,完成后更新 UI 元素。如何从工作线程回到主线程?
How do I handle thread affinity issues in windows phone 7 when I'm building a multi-threaded application? A simple example is the user kicks of some long running process that is handled in another thread which updates a UI element when it's done. How do I get back to the main thread from the worker thread?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用 <代码>Dispatcher.BeginInvoke。 (与桌面 Silverlight 或 WPF 中的相同。)
You use
Dispatcher.BeginInvoke
. (The same as in desktop Silverlight or WPF.)