异步线程返回 UI 线程

      和 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, () =>
            {
                .....
            });

     

原文地址:https://www.cnblogs.com/hebeiDGL/p/2670508.html