MS\Internal\Data\CompositeCollectionView.cs (28)
389switch (args.Action)
397if (args.Action == NotifyCollectionChangedAction.Add)
411args.Action, TraceLog.IdFor(item));
426if (args.Action == NotifyCollectionChangedAction.Add)
432else if (args.Action == NotifyCollectionChangedAction.Remove)
439args = new NotifyCollectionChangedEventArgs(args.Action, item, index);
443if (args.Action == NotifyCollectionChangedAction.Add)
451Debug.Assert(args.Action == NotifyCollectionChangedAction.Remove);
458if (args.Action == NotifyCollectionChangedAction.Add)
466Invariant.Assert(args.Action == NotifyCollectionChangedAction.Remove);
507args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems, args.OldItems, startingIndex);
579args = new NotifyCollectionChangedEventArgs(args.Action, args.OldItems, newStartingIndex, oldStartingIndex);
611_traceLog?.Add("ProcessCollectionChanged action = {0}", args.Action);
642throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
714TraceLog.IdFor(sender), args.Action, TraceLog.IdFor(args.OldItems[0]), TraceLog.IdFor(args.NewItems[0]));
724switch (args.Action)
727TraceContainerCollectionChange(sender, args.Action, null, args.NewItems[0]);
735args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], flatNewIndex);
739TraceContainerCollectionChange(sender, args.Action, args.OldItems[0], null);
747args = new NotifyCollectionChangedEventArgs(args.Action, args.OldItems[0], flatOldIndex);
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]);
772args = new NotifyCollectionChangedEventArgs(args.Action, args.OldItems[0], flatNewIndex, flatOldIndex);
778TraceLog.IdFor(sender), args.Action);
785throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
1430switch (e.Action)
1458throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\DataGridColumnHeaderCollection.cs (5)
207switch (e.Action)
210newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), e.NewStartingIndex);
214newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.OldItems), e.OldStartingIndex);
218newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.OldItems), e.NewStartingIndex, e.OldStartingIndex);
222newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), HeadersFromColumns(e.OldItems), e.OldStartingIndex);