如何在非UI代码windows phone 8中获取Dispatcher

Ind*_*ore 16 c# windows-phone-8

我可以CoreDispatcher在Windows 8中获取对象

CoreDispatcher dispatcher = Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher;
Run Code Online (Sandbox Code Playgroud)

但是我如何才能获得DispatcherWindows Phone 8
以便我可以打电话

Dispatcher.BeginInvoke(delegate
{
    //My statements
});
Run Code Online (Sandbox Code Playgroud)

Ped*_*mas 23

用于在Windows Phone中Deployment.Current.Dispatcher获取Dispatcher对象.

  • 我没有什么可以做到这一点,但如果你在诺基亚网站上提出了这个问题,那么我相信团队中的某个人会把它拿起来看看吧!:) (2认同)