public class VMInfoViewModel: INotifyPropertyChanged { private string strAccountName = ""; private string strVMName = "SSP"; private VMInfoContext _context; public event PropertyChangedEventHandler PropertyChanged; public void RaisePropertyChanged(string propertyName) { if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } }
要实现这个接口这样才能在silverlight上显示数据