Windows Phone 7 中 UI 控件的线程关联

发布于 2024-10-04 02:39:38 字数 111 浏览 0 评论 0原文

当我构建多线程应用程序时,如何处理 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清晨说晚安 2024-10-11 02:39:38

您使用 <代码>Dispatcher.BeginInvoke。 (与桌面 Silverlight 或 WPF 中的相同。)

You use Dispatcher.BeginInvoke. (The same as in desktop Silverlight or WPF.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文