我可以在Windows 8中获取CoreDispatcher
对象为
CoreDispatcher dispatcher = Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher;
但是如何在Windows Phone 8中获取
Dispatcher
这样我就可以打电话Dispatcher.BeginInvoke(delegate
{
//My statements
});
最佳答案
使用Deployment.Current.Dispatcher
在Windows Phone中获取Dispatcher
对象。
关于c# - 如何在非UI代码Windows Phone 8中获取Dispatcher,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15153801/