private void OnListChanged(object sender, ListChangedEventArgs e) { if (e.ListChangedType == ListChangedType.ItemAdded) { IBindingList list = (IBindingList)sender; INotifyPropertyChanged newGuy = (INotifyPropertyChanged)list[e.NewIndex]; _listOwner.WireUpChild(newGuy); if (newGuy is PalasoDataObject) { ((PalasoDataObject)newGuy).Parent = _listOwner; } } _listOwner.NotifyPropertyChanged(_listName); }
private void NotifyPropertyChanged() { //tell any data binding if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("checkBox")); //todo } //tell our parent if (_parent != null) { _parent.NotifyPropertyChanged("checkBox"); } }