OnPropertyChanged的使用

 #region INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;


        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this,
                    new PropertyChangedEventArgs(propertyName));
            }

        }

#endregion

posted @ 2017-09-06 06:25  dxm809  阅读(561)  评论(0编辑  收藏  举报