110,533
社区成员
发帖
与我相关
我的任务
分享
public class MyBinding : INotifyPropertyChanged
{
private List<string> exec = new List<string>();
public List<string>Exec
{
get
{
return this.exec;
}
set
{
this.exec=value;
INotifyPropertyChanged("Exec");
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void INotifyPropertyChanged(string info)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}
<TextBox Text="{Binding Exce}"></TextBox>