我可以在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/

10-11 16:51