Internals\NotifyCollectionChangedEventArgsExtensions.cs (6)
42 for (var i = 0; i < self.NewItems.Count; i++)
43 insert(self.NewItems[i], i + self.NewStartingIndex, true);
72 if (self.OldStartingIndex < 0 || self.OldItems.Count != self.NewItems.Count)
78 insert(self.NewItems[i], i + self.OldStartingIndex, true);
96 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Add, e.NewItems, e.NewStartingIndex);
105 return new NotifyCollectionChangedEventArgsEx(count, NotifyCollectionChangedAction.Replace, e.NewItems, e.OldItems, e.OldStartingIndex);
TemplatedItemsList.cs (17)
805 SetIndex(_templatedObjects[i], i + e.NewItems.Count);
807 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count);
809 for (var i = 0; i < e.NewItems.Count; i++)
811 TemplatedItemsList<TView, TItem> converted = InsertGrouped(e.NewItems[i], e.NewStartingIndex + i);
848 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count);
861 newItems.Add(InsertGrouped(e.NewItems[i], index));
999 if (e.NewStartingIndex >= 0 && e.NewItems != null)
1000 maxindex = Math.Max(maxindex, e.NewStartingIndex + e.NewItems.Count);
1012 SetIndex(_templatedObjects[i], i + e.NewItems.Count);
1014 _templatedObjects.InsertRange(e.NewStartingIndex, Enumerable.Repeat<TItem>(null, e.NewItems.Count));
1016 IList items = ConvertContent(e.NewStartingIndex, e.NewItems, true, true);
1089 IList newItems = ConvertContent(e.NewStartingIndex, e.NewItems, true, true);
1171 for (var i = 0; i < e.NewItems.Count; i++)
1172 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.NewItems[i], e.NewStartingIndex + i));
1190 OnProxyCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, e.NewItems[i], e.OldItems[i], e.OldStartingIndex + i));
1344 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, ConvertItems(e.NewItems), e.NewStartingIndex);
1356 e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, ConvertItems(e.NewItems), ConvertItems(e.OldItems), e.OldStartingIndex);