MS\Internal\Data\CompositeCollectionView.cs (13)
399item = args.NewItems[0];
487CollectionContainer newCollectionContainer = args.NewItems[0] as CollectionContainer;
507args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems, args.OldItems, startingIndex);
714TraceLog.IdFor(sender), args.Action, TraceLog.IdFor(args.OldItems[0]), TraceLog.IdFor(args.NewItems[0]));
727TraceContainerCollectionChange(sender, args.Action, null, args.NewItems[0]);
735args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], flatNewIndex);
751TraceContainerCollectionChange(sender, args.Action, args.OldItems[0], args.NewItems[0]);
755args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], args.OldItems[0], flatOldIndex);
759TraceContainerCollectionChange(sender, args.Action, args.OldItems[0], args.NewItems[0]);
763flatOldIndex = DeduceFlatIndexForRemove((CollectionContainer)sender, x, args.NewItems[0]);
1433if (e.NewItems.Count != 1)
1443if (e.NewItems.Count != 1 || e.OldItems.Count != 1)
1448if (e.NewItems.Count != 1)
System\Windows\Data\ListCollectionView.cs (16)
1722BeginAddNew(args.NewItems[0], args.NewStartingIndex);
1730adjustedNewIndex = AdjustBefore(NotifyCollectionChangedAction.Add, args.NewItems[0], args.NewStartingIndex);
1867object newItem = (args.NewItems != null && args.NewItems.Count > 0) ? args.NewItems[0] : null;
1971args = new NotifyCollectionChangedEventArgs(effectiveAction, args.NewItems[0], args.OldItems[0], adjustedOldIndex);
2040args2 = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, args.NewItems, adjustedNewIndex);
2370ShadowCollection.Insert(e.NewStartingIndex, e.NewItems[0]);
2374ShadowCollection.Add(e.NewItems[0]);
2390ShadowCollection[e.OldStartingIndex] = e.NewItems[0];
2397ShadowCollection[tempIndex] = e.NewItems[0];
2404tempIndex = ShadowCollection.IndexOf(e.NewItems[0]);
2407ShadowCollection.Insert(e.NewStartingIndex, e.NewItems[0]);
2500if (e.NewItems.Count != 1)
2510if (e.NewItems.Count != 1 || e.OldItems.Count != 1)
2515if (e.NewItems.Count != 1)