如何在非UI代码windows phone 8中获取Dispatcher
我可以在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
对象。