Implemented interface member:
3 overrides of CurrentPosition
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
199public override int CurrentPosition
MS\Internal\Data\EnumerableCollectionView.cs (1)
197public override int CurrentPosition
System\Windows\Controls\ItemCollection.cs (1)
799public override int CurrentPosition
117 references to CurrentPosition
PresentationFramework (117)
MS\Internal\Controls\InnerItemCollectionView.cs (13)
108bool changingCurrentItem = (CurrentPosition == index); 467if (position != CurrentPosition && OKToChangeCurrent()) 507int oldCurrentPosition = CurrentPosition; 569if (oldCurrentPosition != CurrentPosition) 642return (0 <= CurrentPosition && CurrentPosition < ViewCount); 788else if (index <= CurrentPosition) // adjust current index if insertion is earlier 790int newCurrentPosition = CurrentPosition + 1; 811if (index < CurrentPosition) 813int newCurrentPosition = CurrentPosition - 1; 817else if (index == CurrentPosition) 828int newPosition = (CurrentPosition < lastPosition) ? CurrentPosition : lastPosition;
MS\Internal\Data\CompositeCollectionView.cs (39)
257if (((CurrentPosition != lastPosition) || (CurrentItem != lastItem)) 285return _MoveTo(CurrentPosition + 1); 296return _MoveTo(CurrentPosition - 1); 314if (position != CurrentPosition || item != CurrentItem) 508if (startingIndex == CurrentPosition) 570if (oldStartingIndex == CurrentPosition) 574else if (newStartingIndex <= CurrentPosition && oldStartingIndex > CurrentPosition) 578else if (oldStartingIndex < CurrentPosition && newStartingIndex >= CurrentPosition) 758if (flatOldIndex == CurrentPosition) 911if ((CurrentPosition != index) && OKToChangeCurrent()) 914int oldCurrentPosition = CurrentPosition; 929if (oldCurrentPosition != CurrentPosition) 1087if (proposed != CurrentPosition || newCurrentItem != CurrentItem) 1095int oldCurrentPosition = CurrentPosition; 1118if (oldCurrentPosition != CurrentPosition) 1140flatIndex = CurrentPosition + 1; 1147flatIndex = CurrentPosition + 1; 1170flatIndex = CurrentPosition + 1; 1176flatIndex = CurrentPosition; 1183flatIndex = CurrentPosition + 1; 1201if (flatIndex <= CurrentPosition) 1203int newCurrentPosition = CurrentPosition + 1; 1231if (flatIndex < CurrentPosition) 1233SetCurrent(CurrentItem, CurrentPosition - 1); 1245else if (flatIndex == CurrentPosition) // current item was removed 1260if ((oldIndex < CurrentPosition && newIndex < CurrentPosition) 1261|| (oldIndex > CurrentPosition && newIndex > CurrentPosition)) 1264if (newIndex <= CurrentPosition) 1267if (oldIndex <= CurrentPosition) 1277int oldCurrentPosition = CurrentPosition; 1325if (oldCurrentPosition != CurrentPosition) 1338int oldCurrentPosition = CurrentPosition; 1355SetCurrent(newCurrentItem, CurrentPosition); 1368if (CurrentPosition != oldCurrentPosition) 1665if (!ItemsControl.EqualsEx(CurrentItem, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
199get { return _view.CurrentPosition; }
System\Windows\Controls\ItemCollection.cs (1)
808return _collectionView.CurrentPosition;
System\Windows\Data\BindingListCollectionView.cs (25)
1287int oldCurrentPosition = IsEmpty ? 0 : CurrentPosition; 1411if (oldCurrentPosition != CurrentPosition) 1505int originalCurrentPosition = CurrentPosition; 1506int oldCurrentPosition = CurrentPosition; 1587bool currentPositionHasChanged = (CurrentPosition != oldCurrentPosition); 1594oldCurrentPosition = CurrentPosition; 1613if (CurrentPosition != oldCurrentPosition) 1616oldCurrentPosition = CurrentPosition; 1634currentPositionHasChanged = currentPositionHasChanged || (CurrentPosition != oldCurrentPosition); 1845get { return (0 <= CurrentPosition && CurrentPosition < InternalCount); } 1851if (proposed == CurrentPosition || IsEmpty) 2063else if (index <= CurrentPosition) // adjust current index if insertion is earlier 2065int newPosition = CurrentPosition + 1; 2083bool result = (index == CurrentPosition); 2086if (index < CurrentPosition) 2088SetCurrent(CurrentItem, CurrentPosition - 1); 2097if (oldIndex == CurrentPosition) 2102else if (oldIndex < CurrentPosition && CurrentPosition <= newIndex) 2106SetCurrent(CurrentItem, CurrentPosition - 1); 2108else if (newIndex <= CurrentPosition && CurrentPosition < oldIndex) 2112SetCurrent(CurrentItem, CurrentPosition + 1); 2121bool result = (index == CurrentPosition);
System\Windows\Data\CollectionView.cs (13)
450int index = CurrentPosition + 1; 481int index = CurrentPosition - 1; 556if ((position != CurrentPosition || !IsCurrentInSync) 881if (oldCurrentPosition != CurrentPosition) 1355return GetItemAt(CurrentPosition) == CurrentItem; 1742return (0 <= CurrentPosition && CurrentPosition < Count); 2047if ((oldIndex < CurrentPosition && newIndex < CurrentPosition) 2048|| (oldIndex > CurrentPosition && newIndex > CurrentPosition)) 2051if (oldIndex <= CurrentPosition) 2053else if (newIndex <= CurrentPosition)
System\Windows\Data\ListCollectionView.cs (25)
110int oldCurrentPosition = IsEmpty ? -1 : CurrentPosition; 166if (oldCurrentPosition != CurrentPosition) 200if (position != CurrentPosition || !IsCurrentInSync) 1879int originalCurrentPosition = CurrentPosition; 1880int oldCurrentPosition = CurrentPosition; 2089bool currentPositionHasChanged = (CurrentPosition != oldCurrentPosition); 2096oldCurrentPosition = CurrentPosition; 2119if (CurrentPosition != oldCurrentPosition) 2122oldCurrentPosition = CurrentPosition; 2140currentPositionHasChanged = currentPositionHasChanged || (CurrentPosition != oldCurrentPosition); 2484get { return (0 <= CurrentPosition && CurrentPosition < InternalCount); } 2823else if (index <= CurrentPosition) // adjust current index if insertion is earlier 2825int newPosition = CurrentPosition + 1; 2843if (index < CurrentPosition) 2845SetCurrent(CurrentItem, CurrentPosition - 1); 2848else if (index == CurrentPosition) 2857if (oldIndex == CurrentPosition) 2862else if (oldIndex < CurrentPosition && CurrentPosition <= newIndex) 2866SetCurrent(CurrentItem, CurrentPosition - 1); 2868else if (newIndex <= CurrentPosition && CurrentPosition < oldIndex) 2872SetCurrent(CurrentItem, CurrentPosition + 1); 2881if (index == CurrentPosition)