Implemented interface member:
property
CurrentPosition
System.ComponentModel.ICollectionView.CurrentPosition
3 overrides of CurrentPosition
PresentationFramework (3)
src\Framework\MS\Internal\Data\CollectionViewProxy.cs (1)
204
public override int
CurrentPosition
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
204
public override int
CurrentPosition
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
819
public override int
CurrentPosition
116 references to CurrentPosition
PresentationFramework (116)
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (13)
111
bool changingCurrentItem = (
CurrentPosition
== index);
470
if (position !=
CurrentPosition
&& OKToChangeCurrent())
510
int oldCurrentPosition =
CurrentPosition
;
573
if (oldCurrentPosition !=
CurrentPosition
)
646
return (0 <=
CurrentPosition
&&
CurrentPosition
< ViewCount);
792
else if (index <=
CurrentPosition
) // adjust current index if insertion is earlier
794
int newCurrentPosition =
CurrentPosition
+ 1;
815
if (index <
CurrentPosition
)
817
int newCurrentPosition =
CurrentPosition
- 1;
821
else if (index ==
CurrentPosition
)
832
int newPosition = (
CurrentPosition
< lastPosition) ?
CurrentPosition
: lastPosition;
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (38)
271
if (((
CurrentPosition
!= lastPosition) || (CurrentItem != lastItem))
300
return _MoveTo(
CurrentPosition
+ 1);
311
return _MoveTo(
CurrentPosition
- 1);
330
if (position !=
CurrentPosition
|| item != CurrentItem)
529
if (startingIndex ==
CurrentPosition
)
593
if (oldStartingIndex ==
CurrentPosition
)
597
else if (newStartingIndex <=
CurrentPosition
&& oldStartingIndex >
CurrentPosition
)
601
else if (oldStartingIndex <
CurrentPosition
&& newStartingIndex >=
CurrentPosition
)
781
if (flatOldIndex ==
CurrentPosition
)
934
if ((
CurrentPosition
!= index) && OKToChangeCurrent())
938
int oldCurrentPosition =
CurrentPosition
;
953
if (oldCurrentPosition !=
CurrentPosition
)
1111
if (proposed !=
CurrentPosition
|| newCurrentItem != CurrentItem)
1119
int oldCurrentPosition =
CurrentPosition
;
1142
if (oldCurrentPosition !=
CurrentPosition
)
1164
flatIndex =
CurrentPosition
+ 1;
1171
flatIndex =
CurrentPosition
+ 1;
1194
flatIndex =
CurrentPosition
+ 1;
1200
flatIndex =
CurrentPosition
;
1207
flatIndex =
CurrentPosition
+ 1;
1225
if (flatIndex <=
CurrentPosition
)
1227
int newCurrentPosition =
CurrentPosition
+ 1;
1255
if (flatIndex <
CurrentPosition
)
1257
SetCurrent(CurrentItem,
CurrentPosition
- 1);
1269
else if (flatIndex ==
CurrentPosition
) // current item was removed
1284
if ((oldIndex <
CurrentPosition
&& newIndex <
CurrentPosition
)
1285
|| (oldIndex >
CurrentPosition
&& newIndex >
CurrentPosition
))
1288
if (newIndex <=
CurrentPosition
)
1291
if (oldIndex <=
CurrentPosition
)
1302
int oldCurrentPosition =
CurrentPosition
;
1350
if (oldCurrentPosition !=
CurrentPosition
)
1363
int oldCurrentPosition =
CurrentPosition
;
1380
SetCurrent(newCurrentItem,
CurrentPosition
);
1393
if (
CurrentPosition
!= oldCurrentPosition)
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
206
get { return _view.
CurrentPosition
; }
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
828
return _collectionView.
CurrentPosition
;
src\Framework\System\Windows\Data\BindingListCollectionView.cs (25)
1299
int oldCurrentPosition = IsEmpty ? 0 :
CurrentPosition
;
1423
if (oldCurrentPosition !=
CurrentPosition
)
1517
int originalCurrentPosition =
CurrentPosition
;
1518
int oldCurrentPosition =
CurrentPosition
;
1599
bool currentPositionHasChanged = (
CurrentPosition
!= oldCurrentPosition);
1606
oldCurrentPosition =
CurrentPosition
;
1625
if (
CurrentPosition
!= oldCurrentPosition)
1628
oldCurrentPosition =
CurrentPosition
;
1646
currentPositionHasChanged = currentPositionHasChanged || (
CurrentPosition
!= oldCurrentPosition);
1857
get { return (0 <=
CurrentPosition
&&
CurrentPosition
< InternalCount); }
1863
if (proposed ==
CurrentPosition
|| IsEmpty)
2075
else if (index <=
CurrentPosition
) // adjust current index if insertion is earlier
2077
int newPosition =
CurrentPosition
+ 1;
2095
bool result = (index ==
CurrentPosition
);
2098
if (index <
CurrentPosition
)
2100
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2109
if (oldIndex ==
CurrentPosition
)
2114
else if (oldIndex <
CurrentPosition
&&
CurrentPosition
<= newIndex)
2118
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2120
else if (newIndex <=
CurrentPosition
&&
CurrentPosition
< oldIndex)
2124
SetCurrent(CurrentItem,
CurrentPosition
+ 1);
2133
bool result = (index ==
CurrentPosition
);
src\Framework\System\Windows\Data\CollectionView.cs (13)
462
int index =
CurrentPosition
+ 1;
493
int index =
CurrentPosition
- 1;
568
if ((position !=
CurrentPosition
|| !IsCurrentInSync)
894
if (oldCurrentPosition !=
CurrentPosition
)
1370
return GetItemAt(
CurrentPosition
) == CurrentItem;
1757
return (0 <=
CurrentPosition
&&
CurrentPosition
< Count);
2063
if ((oldIndex <
CurrentPosition
&& newIndex <
CurrentPosition
)
2064
|| (oldIndex >
CurrentPosition
&& newIndex >
CurrentPosition
))
2067
if (oldIndex <=
CurrentPosition
)
2069
else if (newIndex <=
CurrentPosition
)
src\Framework\System\Windows\Data\ListCollectionView.cs (25)
123
int oldCurrentPosition = IsEmpty ? -1 :
CurrentPosition
;
179
if (oldCurrentPosition !=
CurrentPosition
)
214
if (position !=
CurrentPosition
|| !IsCurrentInSync)
1894
int originalCurrentPosition =
CurrentPosition
;
1895
int oldCurrentPosition =
CurrentPosition
;
2104
bool currentPositionHasChanged = (
CurrentPosition
!= oldCurrentPosition);
2111
oldCurrentPosition =
CurrentPosition
;
2134
if (
CurrentPosition
!= oldCurrentPosition)
2137
oldCurrentPosition =
CurrentPosition
;
2156
currentPositionHasChanged = currentPositionHasChanged || (
CurrentPosition
!= oldCurrentPosition);
2502
get { return (0 <=
CurrentPosition
&&
CurrentPosition
< InternalCount); }
2842
else if (index <=
CurrentPosition
) // adjust current index if insertion is earlier
2844
int newPosition =
CurrentPosition
+ 1;
2862
if (index <
CurrentPosition
)
2864
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2867
else if (index ==
CurrentPosition
)
2876
if (oldIndex ==
CurrentPosition
)
2881
else if (oldIndex <
CurrentPosition
&&
CurrentPosition
<= newIndex)
2885
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2887
else if (newIndex <=
CurrentPosition
&&
CurrentPosition
< oldIndex)
2891
SetCurrent(CurrentItem,
CurrentPosition
+ 1);
2900
if (index ==
CurrentPosition
)