NotifyCollectionChangedEventArgs.OldItems Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Assembly: System (in System.dll)
Property Value
Type: System.Collections.IListThe list of items affected by a Replace or Remove action.
In the existing Windows Phone implementation, INotifyCollectionChanged is always used for single item changes. Because of the NotifyCollectionChangedEventArgs constructor signatures, it is not possible to raise CollectionChanged in such a way that it reports multiple items.
The type of this property is IList for compatibility, but in the existing Windows Phone implementation you can generally assume that the IList only contains one item. To get that item you could use the C# shorthand of collectionChangedEventArgs.OldItems[0].
OldItems will contain the following depending on the Action being reported in the event data: