标签:style blog color div new ar
新建一个model作为说明即可,以便查阅。
添加引用:using System.ComponentModel ;
public class Test:INotifyPropertyChanged { private string name; public string Name { get { return this.name; } set { this.name = value; NotifyPropertyChanged("Name"); } } public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(string propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } }
WPF中model属性即时改变,布布扣,bubuko.com
标签:style blog color div new ar
原文地址:http://www.cnblogs.com/ysyn/p/3822392.html