110,499
社区成员
发帖
与我相关
我的任务
分享
private string _value;
public string Value
{
get { return _value; }
set { _value = value; }
}
public string Value { get; set; }
public class MainWindowViewModel : INotifyPropertyChanged
{
private ObservableCollection<string> _Collections;
public ObservableCollection<string> Collections
{
get { return _Collections; }
set {
if (_Collections != value)
{
_Collections = value;
OnPropertyChanged("Collections");
}
}
}
public MainWindowViewModel()
{
}
public void OnPropertyChanged(string name)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
public event PropertyChangedEventHandler PropertyChanged;
}