解决方案 »

  1.   

    http://social.msdn.microsoft.com/Forums/windowsapps/zh-CN/dda6bc2e-be2a-4eaa-90d6-f343e77cfb22/metro-c-?forum=winstoreappzhcn
      

  2.   

    我试过用await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>{db.GetAccountNameByMoneyType(cbi.Content.ToString()).ContinueWith((task) => {
                    cb.ItemsSource = task.Result;
                });})还是会闪退,请问一下到底怎么样将另一个线程得到的结果转到主UI线程里来
      

  3.   

    我自己解决了这个问题,不用.continueWith这种写法就能避免在另一个线程中操作UI,可以在UI线程await那个异步操作就好了