79 references to NewStartingIndex
PresentationFramework (67)
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (7)
424
startingIndex = args.
NewStartingIndex
;
455
UpdateCurrencyAfterAdd(index, args.
NewStartingIndex
, true);
562
int newStartingIndex = args.
NewStartingIndex
;
599
UpdateCurrencyAfterAdd(newStartingIndex, args.
NewStartingIndex
, true);
709
int flatNewIndex = args.
NewStartingIndex
;
734
if (args.
NewStartingIndex
>= 0)
1486
if (e.
NewStartingIndex
< 0)
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (8)
410
if (args.
NewStartingIndex
< 0 || _snapshot.Count <= args.
NewStartingIndex
)
421
_snapshot.Insert(args.
NewStartingIndex
, args.NewItems[i]);
440
for (int i=args.NewItems.Count-1, index=args.
NewStartingIndex
+i; i>=0; --i, --index)
450
if (args.
NewStartingIndex
< 0)
453
if (args.OldStartingIndex < args.
NewStartingIndex
)
457
newIndex = args.
NewStartingIndex
+ i;
471
newIndex = args.
NewStartingIndex
+ i;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
7300
if (GroupingSortDescriptionIndices[i] >= e.
NewStartingIndex
)
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (2)
96
UpdateDisplayIndexForNewColumns(e.NewItems, e.
NewStartingIndex
);
105
UpdateDisplayIndexForMovedColumn(e.OldStartingIndex, e.
NewStartingIndex
);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (2)
216
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.NewItems), e.
NewStartingIndex
);
224
newArgs = new NotifyCollectionChangedEventArgs(e.Action, HeadersFromColumns(e.OldItems), e.
NewStartingIndex
, e.OldStartingIndex);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
701
int end = GetVisualIndex(e.
NewStartingIndex
);
710
index = GetVisualIndex(e.
NewStartingIndex
);
src\Framework\System\Windows\Controls\ItemCollection.cs (4)
2204
Debug.Assert(e.
NewStartingIndex
>= 0);
2209
clone.Insert(e.
NewStartingIndex
+ i, (T)e.NewItems[i]);
2239
clone.Insert(e.
NewStartingIndex
, (T)e.NewItems[0]);
2249
clone.Insert(e.
NewStartingIndex
+ i, (T)e.NewItems[i]);
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (3)
2413
OnItemAdded(args.NewItems[0], args.
NewStartingIndex
);
2429
OnItemReplaced(args.OldItems[0], args.NewItems[0], args.
NewStartingIndex
);
2439
OnItemMoved(args.OldItems[0], args.OldStartingIndex, args.
NewStartingIndex
);
src\Framework\System\Windows\Controls\ItemsControl.cs (5)
3663
if (index >= e.
NewStartingIndex
)
3690
if (e.OldStartingIndex < e.
NewStartingIndex
)
3693
right = e.
NewStartingIndex
;
3698
left = e.
NewStartingIndex
;
3708
info.Index = e.
NewStartingIndex
;
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (3)
57
Insert(e.
NewStartingIndex
);
64
Move(e.OldStartingIndex, e.
NewStartingIndex
);
78
OnReplace(CopiedItem, CopiedItem, e.
NewStartingIndex
);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
1136
e.
NewStartingIndex
== 0))
1176
ItemInfo info = NewItemInfo(e.NewItems[0], null, e.
NewStartingIndex
);
1197
ItemSetIsSelected(ItemInfoFromIndex(e.
NewStartingIndex
), false);
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
958
OnAddRow(e.
NewStartingIndex
);
970
OnMoveRow(e.OldStartingIndex, e.
NewStartingIndex
);
src\Framework\System\Windows\Data\BindingListCollectionView.cs (9)
1530
BeginAddNew(args.NewItems[0], args.
NewStartingIndex
);
1537
AdjustCurrencyForAdd(args.
NewStartingIndex
);
1560
moveCurrency = AdjustCurrencyForReplace(args.
NewStartingIndex
);
1568
AdjustCurrencyForMove(args.OldStartingIndex, args.
NewStartingIndex
);
1573
_group.MoveWithinSubgroups(args.OldItems[0], null, InternalList, args.OldStartingIndex, args.
NewStartingIndex
);
1840
_shadowList.Insert(e.
NewStartingIndex
, e.NewItems[0]);
1849
_shadowList.Move(e.OldStartingIndex, e.
NewStartingIndex
);
2324
AdjustCurrencyForAdd(e.
NewStartingIndex
);
2479
if (e.
NewStartingIndex
< 0)
src\Framework\System\Windows\Data\CollectionView.cs (3)
1103
AdjustCurrencyForAdd(args.
NewStartingIndex
);
1127
AdjustCurrencyForMove(args.OldStartingIndex, args.
NewStartingIndex
);
2015
if (e.
NewStartingIndex
< 0)
src\Framework\System\Windows\Data\ListCollectionView.cs (12)
1716
if (args.Action != NotifyCollectionChangedAction.Remove && args.
NewStartingIndex
< 0
1756
BeginAddNew(args.NewItems[0], args.
NewStartingIndex
);
1764
adjustedNewIndex = AdjustBefore(NotifyCollectionChangedAction.Add, args.NewItems[0], args.
NewStartingIndex
);
1785
if (IsAddingNew && args.
NewStartingIndex
<= _newItemIndex)
1815
_newItemIndex = args.
NewStartingIndex
;
1817
else if (args.OldStartingIndex < _newItemIndex && _newItemIndex <= args.
NewStartingIndex
)
1821
else if (args.
NewStartingIndex
<= _newItemIndex && _newItemIndex < args.OldStartingIndex)
2404
if (e.
NewStartingIndex
> _unknownIndex)
2406
ShadowCollection.Insert(e.
NewStartingIndex
, e.NewItems[0]);
2443
ShadowCollection.Insert(e.
NewStartingIndex
, e.NewItems[0]);
2555
if (e.
NewStartingIndex
< 0)
3027
AdjustCurrencyForAdd(e.
NewStartingIndex
);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
625
int startingIndex = args.
NewStartingIndex
;
System (1)
compmod\system\collections\specialized\marshalinghelpers.cs (1)
98
managedArgs.
NewStartingIndex
,
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (3)
257
ModelItem movedModelItem = this.TransitionsSharingTrigger[e.
NewStartingIndex
].Item;
260
if (e.OldStartingIndex < e.
NewStartingIndex
)
266
else if (e.OldStartingIndex > e.
NewStartingIndex
)
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (3)
447
int startingIndex = e.
NewStartingIndex
< 0 ? this.Count : e.
NewStartingIndex
;
462
int oldIndex = e.OldStartingIndex, newIndex = e.
NewStartingIndex
;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
247
int itemViewIndex = GetViewIndexForItem(e.
NewStartingIndex
);
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValueCollection.cs (3)
447
int startingIndex = e.
NewStartingIndex
< 0 ? this.Count : e.
NewStartingIndex
;
462
int oldIndex = e.OldStartingIndex, newIndex = e.
NewStartingIndex
;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
247
int itemViewIndex = GetViewIndexForItem(e.
NewStartingIndex
);