var addedItems = new List() { 1, 2, 3 }; var args = new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Add, addedItems, 0);
var removedItems = new ListIn this example, we are specifying that the collection changed by removing items from index 1. The removed items are passed in a List() { "apple", "banana" }; var args = new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Remove, removedItems, 1);