MVVM ObservableCollection<> ListView
摘要:
目标:在ListView中,设两列,一列表示人的姓名,一列表示年龄,用ObservableCollection来实现。编程:1)定义类Personpublic class ABC:INotifyPropertyChanged { #region INotifyPropertyChanged 成员public event PropertyChangedEventHandler PropertyChanged; public void RaisePropertyChanged(string PropertyName) { if (PropertyChanged!=null) { Prop... 阅读全文
posted @ 2013-08-27 22:16 SherryW 阅读(771) 评论(0) 推荐(0) 编辑