use*_*679 2 windows dispatchertimer windows-phone-7
我正在使用C#中的Silverlight为Windows Phone 7创建一个应用程序.
我发现了许多对DispatcherTimer(DispatcherPriority)重载的引用,但是我无法在我的代码中设置它(例如,timer = new DispatcherTimer(DispatcherPriority)告诉我"DispatcherPriority在当前上下文中不存在").
我认为DispatcherTimer是使用DispatcherTimer(DispatcherPriority)重载的,但是当我在代码中使用它时,我看不到对该构造函数的任何引用.我想尝试将优先级设置为"正常"或"发送",但我似乎无法实现具有优先级的任何DispatcherTimer.有什么建议?
采用Dispatcher Priority的构造函数仅存在于完整的.NET框架中 - 即WPF.Silverlight/WP7中的DispatcherTimer不支持priorty.
比较DispatcherTimer的文档.NET 4和Silverlight.
| 归档时间: |
|
| 查看次数: |
1320 次 |
| 最近记录: |