和 windows phone 不同,从异步线程返回到 UI 线程只需要调用 Dispatcher.BeginInvoke(delegate{...}); 方法, Windows 8

 中微软更多的希望使用新关键字  async  和  await:

// May be invoked on a background thread, so use the Dispatcher to invoke the UI-related code on the UI thread.
            await this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                .....
            });

 

     

相关文章:

  • 2021-09-05
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2021-07-31
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案