c# Programming Glossary: e.olditems
Using the WPF Dispatcher in unit tests http://stackoverflow.com/questions/1106881/using-the-wpf-dispatcher-in-unit-tests NewItems not include added domain object. Assert.IsTrue e.OldItems null OldItems was not null. Assert.IsTrue e.OldStartingIndex..
MVVM Sync Collections http://stackoverflow.com/questions/1256793/mvvm-sync-collections break case NotifyCollectionChangedAction.Remove apple e.OldItems 0 as Apple if apple null RemoveViewModel apple break There can..
ObservableCollection element-wise Transform/Projection Wrapper http://stackoverflow.com/questions/13920703/observablecollection-element-wise-transform-projection-wrapper if e.NewItems null e.NewItems.Count 1 e.OldItems null e.OldItems.Count 1 break m_TransformedCollection.Move.. if e.NewItems null e.NewItems.Count 1 e.OldItems null e.OldItems.Count 1 break m_TransformedCollection.Move e.OldStartingIndex.. return case NotifyCollectionChangedAction.Remove if e.OldItems null e.OldItems.Count 1 break m_TransformedCollection.RemoveAt..
ObservableCollection not noticing when Item in it changes (even with INotifyPropertyChanged) http://stackoverflow.com/questions/1427471/observablecollection-not-noticing-when-item-in-it-changes-even-with-inotifyprop foreach EntityViewModel item in e.OldItems Removed items item.PropertyChanged EntityViewModelPropertyChanged..
ObservableCollection that also monitors changes on the elements in collection http://stackoverflow.com/questions/269073/observablecollection-that-also-monitors-changes-on-the-elements-in-collection NotifyCollectionChangedEventArgs e Unsubscribe e.OldItems Subscribe e.NewItems base.OnCollectionChanged e protected override..
Implementing CollectionChanged http://stackoverflow.com/questions/4588359/implementing-collectionchanged newItem.PropertyChanged this.OnItemPropertyChanged if e.OldItems null foreach Item oldItem in e.OldItems ModifiedItems.Add.. if e.OldItems null foreach Item oldItem in e.OldItems ModifiedItems.Add oldItem oldItem.PropertyChanged this.OnItemPropertyChanged..
Notify ObservableCollection when Item changes http://stackoverflow.com/questions/8490533/notify-observablecollection-when-item-changes new PropertyChangedEventHandler item_PropertyChanged if e.OldItems null foreach Object item in e.OldItems item as INotifyPropertyChanged.. if e.OldItems null foreach Object item in e.OldItems item as INotifyPropertyChanged .PropertyChanged new PropertyChangedEventHandler.. e.NewItems item.PropertyChanged MyType_PropertyChanged if e.OldItems null foreach MyType item in e.OldItems item.PropertyChanged..
|