Task.Factory.StartNew(() => { if (this.currentProject != null && this.currentPackage != null) { ExpertInfoService expertInfoService = new ExpertInfoService(); this.ssExpertInfos = expertInfoService.GetExpertList(this.currentProject.projectId, this.currentPackage.id); dispatcher.BeginInvoke( new Action(() => { this.loading.Hide(); }), DispatcherPriority.Normal); } });