102 references to OldItems
Microsoft.VisualStudio.LanguageServices (1)
ValueTracking\TreeViewItemBase.cs (1)
115
SetParents(args.
OldItems
, null);
PresentationFramework (97)
MS\Internal\Data\CompositeCollectionView.cs (15)
413
item = args.
OldItems
[0];
498
CollectionContainer oldCollectionContainer = args.
OldItems
[0] as CollectionContainer;
517
args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems, args.
OldItems
, startingIndex);
544
CollectionContainer oldCollectionContainer = args.
OldItems
[0] as CollectionContainer;
589
args = new NotifyCollectionChangedEventArgs(args.Action, args.
OldItems
, newStartingIndex, oldStartingIndex);
725
TraceLog.IdFor(sender), args.Action, TraceLog.IdFor(args.
OldItems
[0]), TraceLog.IdFor(args.NewItems[0]));
750
TraceContainerCollectionChange(sender, args.Action, args.
OldItems
[0], null);
754
flatOldIndex = DeduceFlatIndexForRemove((CollectionContainer)sender, x, args.
OldItems
[0]);
758
args = new NotifyCollectionChangedEventArgs(args.Action, args.
OldItems
[0], flatOldIndex);
762
TraceContainerCollectionChange(sender, args.Action, args.
OldItems
[0], args.NewItems[0]);
766
args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], args.
OldItems
[0], flatOldIndex);
770
TraceContainerCollectionChange(sender, args.Action, args.
OldItems
[0], args.NewItems[0]);
783
args = new NotifyCollectionChangedEventArgs(args.Action, args.
OldItems
[0], flatNewIndex, flatOldIndex);
1454
if (e.
OldItems
.Count != 1)
1459
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
MS\Internal\Data\EnumerableCollectionView.cs (7)
427
for (int i = args.
OldItems
.Count - 1, index = args.OldStartingIndex + i; i >= 0; --i, --index)
429
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[index]))
439
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[index]))
452
for (int i = args.
OldItems
.Count - 1,
458
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[oldIndex]))
469
i < args.
OldItems
.Count;
472
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[oldIndex]))
System\Windows\Annotations\Annotation.cs (6)
714
changedItems = e.
OldItems
;
721
foreach (AnnotationResource cargo in e.
OldItems
)
768
changedItems = e.
OldItems
;
775
foreach (AnnotationResource anchor in e.
OldItems
)
817
changedItems = e.
OldItems
;
824
foreach (string author in e.
OldItems
)
System\Windows\Controls\DataGrid.cs (13)
236
UpdateDataGridReference(e.
OldItems
, /* clear = */ true);
240
UpdateDataGridReference(e.
OldItems
, /* clear = */ true);
258
bool visibleColumnsChanged = HasVisibleColumns(e.
OldItems
);
963
foreach (ValidationRule rule in e.
OldItems
)
971
foreach (ValidationRule rule in e.
OldItems
)
5394
foreach (object item in e.
OldItems
)
7305
Debug.Assert(e.
OldItems
.Count == 1, "SortDescriptionCollection should handle one element at a time");
7325
Debug.Assert(e.
OldItems
.Count == 1 && e.NewItems.Count == 1, "SortDescriptionCollection should handle one element at a time");
7447
Debug.Assert(e.
OldItems
.Count == 1, "GroupDescriptionCollection should handle one element at a time");
7448
if (CanConvertToSortDescription(e.
OldItems
[0] as PropertyGroupDescription))
7458
Debug.Assert(e.
OldItems
.Count == 1 && e.NewItems.Count == 1, "GroupDescriptionCollection should handle one element at a time");
7459
if (CanConvertToSortDescription(e.
OldItems
[0] as PropertyGroupDescription) ||
7711
foreach (object item in e.
OldItems
)
System\Windows\Controls\DataGridColumnCollection.cs (4)
112
UpdateDisplayIndexForRemovedColumns(e.
OldItems
, e.OldStartingIndex);
115
ClearDisplayIndex(e.
OldItems
, e.NewItems);
122
UpdateDisplayIndexForReplacedColumn(e.
OldItems
, e.NewItems);
125
ClearDisplayIndex(e.
OldItems
, e.NewItems);
System\Windows\Controls\DataGridColumnHeaderCollection.cs (3)
219
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.
OldItems
), e.OldStartingIndex);
223
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.
OldItems
), e.NewStartingIndex, e.OldStartingIndex);
227
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), HeadersFromColumns(e.
OldItems
), e.OldStartingIndex);
System\Windows\Controls\ItemCollection.cs (4)
2205
if (clone.Count - e.
OldItems
.Count != origin.Count)
2208
for (int i = 0; i < e.
OldItems
.Count; i++)
2218
for (int i = 0; i < e.
OldItems
.Count; i++)
2235
for (int i = 0; i < e.
OldItems
.Count; i++)
System\Windows\Controls\ItemContainerGenerator.cs (6)
2409
if (args.
OldItems
.Count != 1)
2411
OnItemRemoved(args.
OldItems
[0], args.OldStartingIndex);
2418
if (args.
OldItems
.Count != 1)
2421
OnItemReplaced(args.
OldItems
[0], args.NewItems[0], args.NewStartingIndex);
2428
if (args.
OldItems
.Count != 1)
2431
OnItemMoved(args.
OldItems
[0], args.OldStartingIndex, args.NewStartingIndex);
System\Windows\Controls\MultipleCopiesCollection.cs (1)
68
e.
OldItems
.Count == 1,
System\Windows\Controls\Primitives\Selector.cs (5)
891
if (e.
OldItems
.Count != 1)
894
SelectionChange.Unselect(NewUnresolvedItemInfo(e.
OldItems
[0]));
913
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
916
SelectionChange.Unselect(NewUnresolvedItemInfo(e.
OldItems
[0]));
1275
ItemInfo info = NewItemInfo(e.
OldItems
[0], ItemInfo.SentinelContainer, e.OldStartingIndex);
System\Windows\Controls\TreeView.cs (1)
433
if ((selectedItem != null) && selectedItem.Equals(e.
OldItems
[0]))
System\Windows\Controls\TreeViewItem.cs (1)
988
if ((selectedItem != null) && selectedItem.Equals(e.
OldItems
[0]))
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
959
OnRemoveRow(e.OldStartingIndex, e.
OldItems
[0]);
963
OnReplaceRow(e.OldStartingIndex, e.
OldItems
[0]);
System\Windows\Data\BindingGroup.cs (2)
1336
bindingExpr = e.
OldItems
[0] as BindingExpressionBase;
1342
bindingExpr = e.
OldItems
[0] as BindingExpressionBase;
System\Windows\Data\BindingListCollectionView.cs (5)
1537
RemoveItemFromGroups(args.
OldItems
[0]);
1548
RemoveItemFromGroups(args.
OldItems
[0]);
1566
_group.MoveWithinSubgroups(args.
OldItems
[0], null, InternalList, args.OldStartingIndex, args.NewStartingIndex);
2459
if (e.
OldItems
.Count != 1)
2464
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
System\Windows\Data\CollectionView.cs (4)
1097
if (PassesFilter(args.
OldItems
[0]))
1105
if (PassesFilter(args.
OldItems
[0]) || PassesFilter(args.NewItems[0]))
1989
if (e.
OldItems
.Count != 1)
1996
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
System\Windows\Data\ListCollectionView.cs (13)
1762
adjustedOldIndex = AdjustBefore(NotifyCollectionChangedAction.Remove, args.
OldItems
[0], args.OldStartingIndex);
1789
object item = args.
OldItems
[0];
1891
object oldItem = (args.
OldItems
!= null && args.
OldItems
.Count > 0) ? args.
OldItems
[0] : null;
1966
args = new NotifyCollectionChangedEventArgs(effectiveAction, args.
OldItems
[0], adjustedOldIndex);
1996
args = new NotifyCollectionChangedEventArgs(effectiveAction, args.NewItems[0], args.
OldItems
[0], adjustedOldIndex);
2060
args = new NotifyCollectionChangedEventArgs(effectiveAction, args.
OldItems
[0], adjustedNewIndex, adjustedOldIndex);
2066
args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, args.
OldItems
, adjustedOldIndex);
2409
ShadowCollection.Remove(e.
OldItems
[0]);
2421
tempIndex = ShadowCollection.IndexOf(e.
OldItems
[0]);
2530
if (e.
OldItems
.Count != 1)
2535
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
System\Windows\ResourceDictionary.cs (5)
1866
(e.
OldItems
!= null && e.
OldItems
.Count > 0),
1877
oldDictionaries = new List<ResourceDictionary>(e.
OldItems
.Count);
1879
for (int i = 0; i < e.
OldItems
.Count; i++)
1881
mergedDictionary = (ResourceDictionary)e.
OldItems
[i];
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (3)
556
for (int i = 0; i < e.
OldItems
.Count; i++)
558
if (selectedItem != null && RibbonGallery.VerifyEqual(selectedItem, e.
OldItems
[i]))
565
if (highlightedItem != null && RibbonGallery.VerifyEqual(highlightedItem, e.
OldItems
[i]))
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
338
int removedCount = e.
OldItems
.Count;