【发布时间】:2012-08-20 10:56:34
【问题描述】:
我有一个 web 服务调用,我想在 web 服务收到错误时更新 UI busyIndicator 状态! 这是viewmodel webservice调用完成方法中的代码:
if (e.Error != null)
{
MessageBox.Show(msg);
busyIndicator.IsBusy = false;
return;
}
我知道当 UI 对象有多个线程时如何在另一个线程中更新它,但视图模型没有对 busyIndicator 的引用!
【问题讨论】:
标签: c# silverlight mvvm