摘要:
不知道是Bug还是什么, 碰到这个问题的.
我测试了一下,所有ItemsControls子类都有这个问题. 譬如: ComboBox
public class NameValue
{
public object Value { get; set; }
public string Name { get; set; }
}
public class TestObj: INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void Notify(string propName)
{
if (this.PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propName));
}
阅读全文