54 references to SetCurrent
PresentationFramework (54)
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (7)
769
SetCurrent
(null, -1);
773
SetCurrent
(null, ViewCount);
777
SetCurrent
(_viewList[position], position);
790
SetCurrent
(null, -1);
799
SetCurrent
(_viewList[newCurrentPosition], newCurrentPosition);
803
SetCurrent
(null, ViewCount);
818
SetCurrent
(_viewList[newCurrentPosition], newCurrentPosition);
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (13)
276
SetCurrent
(lastItem, lastPosition);
349
SetCurrent
(item, position);
942
SetCurrent
(item, index);
1128
SetCurrent
(null, Count); // Count has been cached from GetItem()
1132
SetCurrent
(newCurrentItem, proposed);
1241
SetCurrent
(GetNextItemFromXY(_currentPositionX, _currentPositionY), newCurrentPosition);
1257
SetCurrent
(CurrentItem, CurrentPosition - 1);
1374
SetCurrent
(newCurrentItem, Count - 1);
1380
SetCurrent
(newCurrentItem, CurrentPosition);
1435
SetCurrent
(null, -1);
1441
SetCurrent
(null, -1);
1443
SetCurrent
(null, Count);
1445
SetCurrent
(CurrentItem, CountDeep(x) + y);
src\Framework\System\Windows\Data\BindingListCollectionView.cs (16)
1375
SetCurrent
(null, -1);
1379
SetCurrent
(null, InternalCount);
1397
SetCurrent
(newItem, newPosition);
1401
SetCurrent
(null, -1);
1406
SetCurrent
(oldCurrentItem, newPosition);
1876
SetCurrent
(proposedCurrentItem, proposed);
2073
SetCurrent
(null, -1);
2082
SetCurrent
(GetItemAt(newPosition), newPosition);
2086
SetCurrent
(null, InternalCount);
2100
SetCurrent
(CurrentItem, CurrentPosition - 1);
2112
SetCurrent
(GetItemAt(newIndex), newIndex);
2118
SetCurrent
(CurrentItem, CurrentPosition - 1);
2124
SetCurrent
(CurrentItem, CurrentPosition + 1);
2137
SetCurrent
(GetItemAt(index), index);
2152
SetCurrent
(null, newPosition);
2154
SetCurrent
(InternalItemAt(newPosition), newPosition);
src\Framework\System\Windows\Data\CollectionView.cs (3)
1791
SetCurrent
(null, -1);
1796
SetCurrent
(null, Count);
1801
SetCurrent
(EnumerableWrapper[position], position);
src\Framework\System\Windows\Data\ListCollectionView.cs (15)
134
SetCurrent
(null, -1);
138
SetCurrent
(null, InternalCount);
155
SetCurrent
(newItem, newPosition);
159
SetCurrent
(null, -1);
164
SetCurrent
(oldCurrentItem, newPosition);
226
SetCurrent
(proposedCurrentItem, position);
2664
SetCurrent
(null, newPosition);
2666
SetCurrent
(InternalItemAt(newPosition), newPosition);
2840
SetCurrent
(null, -1);
2849
SetCurrent
(GetItemAt(newPosition), newPosition);
2853
SetCurrent
(null, InternalCount);
2864
SetCurrent
(CurrentItem, CurrentPosition - 1);
2879
SetCurrent
(GetItemAt(newIndex), newIndex);
2885
SetCurrent
(CurrentItem, CurrentPosition - 1);
2891
SetCurrent
(CurrentItem, CurrentPosition + 1);