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上显示数据
原文地址:https://www.cnblogs.com/sunjunlin/p/1999624.html