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