小编use*_*679的帖子

如何设置DispatcherTimer的优先级?

我正在使用C#中的Silverlight为Windows Phone 7创建一个应用程序.

我发现了许多对DispatcherTimer(DispatcherPriority)重载的引用,但是我无法在我的代码中设置它(例如,timer = new DispatcherTimer(DispatcherPriority)告诉我"DispatcherPriority在当前上下文中不存在").

我认为DispatcherTimer是使用DispatcherTimer(DispatcherPriority)重载的,但是当我在代码中使用它时,我看不到对该构造函数的任何引用.我想尝试将优先级设置为"正常"或"发送",但我似乎无法实现具有优先级的任何DispatcherTimer.有什么建议?

windows dispatchertimer windows-phone-7

2
推荐指数
1
解决办法
1320
查看次数

标签 统计

dispatchertimer ×1

windows ×1

windows-phone-7 ×1