如何设置ui线程优先级 [英] how to set ui thread priority
本文介绍了如何设置ui线程优先级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有多个电话和多个UI更新。所以它挂起了UI。
I wan t以低优先级运行我的部分UI操作。这是否可以在Windows Phone 8平台上使用。请帮帮我。
I have multiple calls and multiple updates to UI. so it is hanging UI. I want to run some of my UI operations with low priority. Is this possible in windows phone 8 platform. Please help me.
谢谢。
Pallam Madhukar Windows Phone开发人员
Pallam Madhukar Windows Phone Developer
推荐答案
嗨帕拉姆,
放入你的一些代码:
Dispatcher.BeginInvoke(()=> {
// Add your code here
} );
如果我们调用一些WebService尝试BackGround worker / Periodic Task。
and if we you are calling some WebService Try BackGround worker / Periodic Task instead.
问候,
这篇关于如何设置ui线程优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文