wp7 mvvm绑定跨线程错误解决方案

image

解决方法

private void ItemSearch(Category.FirstCategoryResult pCategoryResult)
       {
           Deployment.Current.Dispatcher.BeginInvoke(() =>
           {
               foreach (Category P in pCategoryResult.firstCategoryList)
               {
                   _firstCategory.Add(P);
               }
           });
         

       }

你可能感兴趣的:(解决方案)