146 references to OldItems
PresentationFramework (97)
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (15)
428
item = args.
OldItems
[0];
513
CollectionContainer oldCollectionContainer = args.
OldItems
[0] as CollectionContainer;
532
args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems, args.
OldItems
, startingIndex);
560
CollectionContainer oldCollectionContainer = args.
OldItems
[0] as CollectionContainer;
606
args = new NotifyCollectionChangedEventArgs(args.Action, args.
OldItems
, newStartingIndex, oldStartingIndex);
742
TraceLog.IdFor(sender), args.Action, TraceLog.IdFor(args.
OldItems
[0]), TraceLog.IdFor(args.NewItems[0]));
767
TraceContainerCollectionChange(sender, args.Action, args.
OldItems
[0], null);
771
flatOldIndex = DeduceFlatIndexForRemove((CollectionContainer)sender, x, args.
OldItems
[0]);
775
args = new NotifyCollectionChangedEventArgs(args.Action, args.
OldItems
[0], flatOldIndex);
779
TraceContainerCollectionChange(sender, args.Action, args.
OldItems
[0], args.NewItems[0]);
783
args = new NotifyCollectionChangedEventArgs(args.Action, args.NewItems[0], args.
OldItems
[0], flatOldIndex);
787
TraceContainerCollectionChange(sender, args.Action, args.
OldItems
[0], args.NewItems[0]);
800
args = new NotifyCollectionChangedEventArgs(args.Action, args.
OldItems
[0], flatNewIndex, flatOldIndex);
1474
if (e.
OldItems
.Count != 1)
1479
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (7)
430
for (int i=args.
OldItems
.Count-1, index=args.OldStartingIndex+i; i>=0; --i, --index)
432
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[index]))
442
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[index]))
455
for (int i = args.
OldItems
.Count - 1,
461
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[oldIndex]))
472
i < args.
OldItems
.Count;
475
if (!System.Windows.Controls.ItemsControl.EqualsEx(args.
OldItems
[i], _snapshot[oldIndex]))
src\Framework\System\Windows\Annotations\Annotation.cs (6)
739
changedItems = e.
OldItems
;
746
foreach (AnnotationResource cargo in e.
OldItems
)
793
changedItems = e.
OldItems
;
800
foreach (AnnotationResource anchor in e.
OldItems
)
842
changedItems = e.
OldItems
;
849
foreach (string author in e.
OldItems
)
src\Framework\System\Windows\Controls\DataGrid.cs (13)
237
UpdateDataGridReference(e.
OldItems
, /* clear = */ true);
241
UpdateDataGridReference(e.
OldItems
, /* clear = */ true);
259
bool visibleColumnsChanged = HasVisibleColumns(e.
OldItems
);
964
foreach (ValidationRule rule in e.
OldItems
)
972
foreach (ValidationRule rule in e.
OldItems
)
5399
foreach (object item in e.
OldItems
)
7308
Debug.Assert(e.
OldItems
.Count == 1, "SortDescriptionCollection should handle one element at a time");
7328
Debug.Assert(e.
OldItems
.Count == 1 && e.NewItems.Count == 1, "SortDescriptionCollection should handle one element at a time");
7450
Debug.Assert(e.
OldItems
.Count == 1, "GroupDescriptionCollection should handle one element at a time");
7451
if (CanConvertToSortDescription(e.
OldItems
[0] as PropertyGroupDescription))
7461
Debug.Assert(e.
OldItems
.Count == 1 && e.NewItems.Count == 1, "GroupDescriptionCollection should handle one element at a time");
7462
if (CanConvertToSortDescription(e.
OldItems
[0] as PropertyGroupDescription) ||
7714
foreach (object item in e.
OldItems
)
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (4)
113
UpdateDisplayIndexForRemovedColumns(e.
OldItems
, e.OldStartingIndex);
116
ClearDisplayIndex(e.
OldItems
, e.NewItems);
123
UpdateDisplayIndexForReplacedColumn(e.
OldItems
, e.NewItems);
126
ClearDisplayIndex(e.
OldItems
, e.NewItems);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (3)
220
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.
OldItems
), e.OldStartingIndex);
224
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.
OldItems
), e.NewStartingIndex, e.OldStartingIndex);
228
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), HeadersFromColumns(e.
OldItems
), e.OldStartingIndex);
src\Framework\System\Windows\Controls\ItemCollection.cs (4)
2213
if (clone.Count - e.
OldItems
.Count != origin.Count)
2216
for (int i = 0; i < e.
OldItems
.Count; i++)
2226
for (int i = 0; i < e.
OldItems
.Count; i++)
2243
for (int i = 0; i < e.
OldItems
.Count; i++)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (6)
2417
if (args.
OldItems
.Count != 1)
2419
OnItemRemoved(args.
OldItems
[0], args.OldStartingIndex);
2426
if (args.
OldItems
.Count != 1)
2429
OnItemReplaced(args.
OldItems
[0], args.NewItems[0], args.NewStartingIndex);
2436
if (args.
OldItems
.Count != 1)
2439
OnItemMoved(args.
OldItems
[0], args.OldStartingIndex, args.NewStartingIndex);
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (1)
69
e.
OldItems
.Count == 1,
src\Framework\System\Windows\Controls\Primitives\Selector.cs (5)
901
if (e.
OldItems
.Count != 1)
904
SelectionChange.Unselect(NewUnresolvedItemInfo(e.
OldItems
[0]));
923
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
926
SelectionChange.Unselect(NewUnresolvedItemInfo(e.
OldItems
[0]));
1293
ItemInfo info = NewItemInfo(e.
OldItems
[0], ItemInfo.SentinelContainer, e.OldStartingIndex);
src\Framework\System\Windows\Controls\TreeView.cs (1)
434
if ((selectedItem != null) && selectedItem.Equals(e.
OldItems
[0]))
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
988
if ((selectedItem != null) && selectedItem.Equals(e.
OldItems
[0]))
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
962
OnRemoveRow(e.OldStartingIndex, e.
OldItems
[0]);
966
OnReplaceRow(e.OldStartingIndex, e.
OldItems
[0]);
src\Framework\System\Windows\Data\BindingGroup.cs (2)
1338
bindingExpr = e.
OldItems
[0] as BindingExpressionBase;
1344
bindingExpr = e.
OldItems
[0] as BindingExpressionBase;
src\Framework\System\Windows\Data\BindingListCollectionView.cs (5)
1544
RemoveItemFromGroups(args.
OldItems
[0]);
1555
RemoveItemFromGroups(args.
OldItems
[0]);
1573
_group.MoveWithinSubgroups(args.
OldItems
[0], null, InternalList, args.OldStartingIndex, args.NewStartingIndex);
2467
if (e.
OldItems
.Count != 1)
2472
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
src\Framework\System\Windows\Data\CollectionView.cs (4)
1108
if (PassesFilter(args.
OldItems
[0]))
1116
if (PassesFilter(args.
OldItems
[0]) || PassesFilter(args.NewItems[0]))
2001
if (e.
OldItems
.Count != 1)
2008
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
src\Framework\System\Windows\Data\ListCollectionView.cs (13)
1771
adjustedOldIndex = AdjustBefore(NotifyCollectionChangedAction.Remove, args.
OldItems
[0], args.OldStartingIndex);
1798
object item = args.
OldItems
[0];
1900
object oldItem = (args.
OldItems
!= null && args.
OldItems
.Count > 0) ? args.
OldItems
[0] : null;
1975
args = new NotifyCollectionChangedEventArgs(effectiveAction, args.
OldItems
[0], adjustedOldIndex);
2005
args = new NotifyCollectionChangedEventArgs(effectiveAction, args.NewItems[0], args.
OldItems
[0], adjustedOldIndex);
2069
args = new NotifyCollectionChangedEventArgs(effectiveAction, args.
OldItems
[0], adjustedNewIndex, adjustedOldIndex);
2075
args = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, args.
OldItems
, adjustedOldIndex);
2420
ShadowCollection.Remove(e.
OldItems
[0]);
2432
tempIndex = ShadowCollection.IndexOf(e.
OldItems
[0]);
2543
if (e.
OldItems
.Count != 1)
2548
if (e.NewItems.Count != 1 || e.
OldItems
.Count != 1)
src\Framework\System\Windows\ResourceDictionary.cs (5)
1844
(e.
OldItems
!= null && e.
OldItems
.Count > 0),
1855
oldDictionaries = new List<ResourceDictionary>(e.
OldItems
.Count);
1857
for (int i = 0; i < e.
OldItems
.Count; i++)
1859
mergedDictionary = (ResourceDictionary)e.
OldItems
[i];
System (1)
compmod\system\collections\specialized\marshalinghelpers.cs (1)
97
managedArgs.
OldItems
,
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (4)
29
if (e.
OldItems
!= null)
31
foreach (ModelItem deleted in e.
OldItems
)
78
if (e.
OldItems
!= null)
80
foreach (ModelItem deleted in e.
OldItems
)
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
98
foreach (CorrelationInitializerEntry entry in e.
OldItems
)
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (1)
166
foreach (MessageQueryEntry entry in e.
OldItems
)
System.Activities.Presentation (20)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (4)
425
foreach (PropertyEntry property in e.
OldItems
)
451
foreach (PropertyEntry property in e.
OldItems
)
609
this.RemoveCategoryEditors(e.
OldItems
);
613
this.RemoveCategoryEditors(e.
OldItems
);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (4)
455
foreach (ModelItem item in e.
OldItems
)
463
for (int i = 0; i < e.
OldItems
.Count; i++)
471
for (int i = 0; i < e.
OldItems
.Count; i++)
473
ModelItem oldItem = e.
OldItems
[i] as ModelItem;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (3)
187
foreach (ModelItem item in e.
OldItems
)
198
Fx.Assert(e.NewItems != null && e.
OldItems
!= null && e.NewItems.Count == e.
OldItems
.Count,
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
375
foreach (ModelItem argument in e.
OldItems
)
393
foreach (DesignTimeArgument arg in e.
OldItems
)
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
303
foreach (ModelItem namespaceModel in e.
OldItems
)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
592
foreach (TreeViewItemViewModel item in e.
OldItems
)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
449
foreach (ModelItem variable in e.
OldItems
)
472
foreach (DesignTimeVariable arg in e.
OldItems
)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
269
if (e.
OldItems
!= null && e.
OldItems
.Count == 1)
287
foreach (ModelItem selectedAndRemovedItem in selectedItems.Intersect(e.
OldItems
.Cast<ModelItem>()))
System.Data (20)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (4)
425
foreach (PropertyEntry property in e.
OldItems
)
451
foreach (PropertyEntry property in e.
OldItems
)
609
this.RemoveCategoryEditors(e.
OldItems
);
613
this.RemoveCategoryEditors(e.
OldItems
);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (4)
455
foreach (ModelItem item in e.
OldItems
)
463
for (int i = 0; i < e.
OldItems
.Count; i++)
471
for (int i = 0; i < e.
OldItems
.Count; i++)
473
ModelItem oldItem = e.
OldItems
[i] as ModelItem;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (3)
187
foreach (ModelItem item in e.
OldItems
)
198
Fx.Assert(e.NewItems != null && e.
OldItems
!= null && e.NewItems.Count == e.
OldItems
.Count,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
375
foreach (ModelItem argument in e.
OldItems
)
393
foreach (DesignTimeArgument arg in e.
OldItems
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
303
foreach (ModelItem namespaceModel in e.
OldItems
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
592
foreach (TreeViewItemViewModel item in e.
OldItems
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
449
foreach (ModelItem variable in e.
OldItems
)
472
foreach (DesignTimeVariable arg in e.
OldItems
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
269
if (e.
OldItems
!= null && e.
OldItems
.Count == 1)
287
foreach (ModelItem selectedAndRemovedItem in selectedItems.Intersect(e.
OldItems
.Cast<ModelItem>()))
System.Data.Services.Client (2)
System\Data\Services\Client\Binding\BindingObserver.cs (2)
817
if (eventArgs.
OldItems
!= null)
820
eventArgs.
OldItems
,