【发布时间】:2013-06-03 02:14:02
【问题描述】:
当我绑定时,将Label 说成string,我这样定义字符串:
private string _lbl;
public string Lbl
{
get
{
return = _lbl;
}
set
{
_lbl=value;
OnPropertyChanged("Lbl");
}
}
在我的类中实现了INotifyPropertyChanged 接口。
我应该以相同的方式定义 ObservableCollection 还是我可以保持这种方式?
public ObservableCollection<File> myFiles {get; set;}
【问题讨论】:
标签: c# wpf binding observablecollection inotifypropertychanged