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