Silverlight MVVM INotefiyChanged 的重要性
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上显示数据
作者:johnny
出处:http://www.cnblogs.com/sunjunlin
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。