How to get Dispatcher in non UI code windows phone 8

后端 未结 1 1715
长发绾君心
长发绾君心 2021-01-01 20:11

I can get the CoreDispatcher object in windows 8 as

CoreDispatcher dispatcher = Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher;


        
相关标签:
1条回答
  • 2021-01-01 20:49

    Use Deployment.Current.Dispatcher to get the Dispatcher object in Windows Phone.

    0 讨论(0)
提交回复
热议问题