Implemented interface member:
3 overrides of CurrentPosition
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
201
public override int
CurrentPosition
MS\Internal\Data\EnumerableCollectionView.cs (1)
201
public override int
CurrentPosition
System\Windows\Controls\ItemCollection.cs (1)
808
public override int
CurrentPosition
117 references to CurrentPosition
PresentationFramework (117)
MS\Internal\Controls\InnerItemCollectionView.cs (13)
109
bool changingCurrentItem = (
CurrentPosition
== index);
468
if (position !=
CurrentPosition
&& OKToChangeCurrent())
508
int oldCurrentPosition =
CurrentPosition
;
570
if (oldCurrentPosition !=
CurrentPosition
)
643
return (0 <=
CurrentPosition
&&
CurrentPosition
< ViewCount);
789
else if (index <=
CurrentPosition
) // adjust current index if insertion is earlier
791
int newCurrentPosition =
CurrentPosition
+ 1;
812
if (index <
CurrentPosition
)
814
int newCurrentPosition =
CurrentPosition
- 1;
818
else if (index ==
CurrentPosition
)
829
int newPosition = (
CurrentPosition
< lastPosition) ?
CurrentPosition
: lastPosition;
MS\Internal\Data\CompositeCollectionView.cs (39)
263
if (((
CurrentPosition
!= lastPosition) || (CurrentItem != lastItem))
291
return _MoveTo(
CurrentPosition
+ 1);
302
return _MoveTo(
CurrentPosition
- 1);
320
if (position !=
CurrentPosition
|| item != CurrentItem)
514
if (startingIndex ==
CurrentPosition
)
576
if (oldStartingIndex ==
CurrentPosition
)
580
else if (newStartingIndex <=
CurrentPosition
&& oldStartingIndex >
CurrentPosition
)
584
else if (oldStartingIndex <
CurrentPosition
&& newStartingIndex >=
CurrentPosition
)
764
if (flatOldIndex ==
CurrentPosition
)
917
if ((
CurrentPosition
!= index) && OKToChangeCurrent())
920
int oldCurrentPosition =
CurrentPosition
;
935
if (oldCurrentPosition !=
CurrentPosition
)
1093
if (proposed !=
CurrentPosition
|| newCurrentItem != CurrentItem)
1101
int oldCurrentPosition =
CurrentPosition
;
1124
if (oldCurrentPosition !=
CurrentPosition
)
1146
flatIndex =
CurrentPosition
+ 1;
1153
flatIndex =
CurrentPosition
+ 1;
1176
flatIndex =
CurrentPosition
+ 1;
1182
flatIndex =
CurrentPosition
;
1189
flatIndex =
CurrentPosition
+ 1;
1207
if (flatIndex <=
CurrentPosition
)
1209
int newCurrentPosition =
CurrentPosition
+ 1;
1237
if (flatIndex <
CurrentPosition
)
1239
SetCurrent(CurrentItem,
CurrentPosition
- 1);
1251
else if (flatIndex ==
CurrentPosition
) // current item was removed
1266
if ((oldIndex <
CurrentPosition
&& newIndex <
CurrentPosition
)
1267
|| (oldIndex >
CurrentPosition
&& newIndex >
CurrentPosition
))
1270
if (newIndex <=
CurrentPosition
)
1273
if (oldIndex <=
CurrentPosition
)
1283
int oldCurrentPosition =
CurrentPosition
;
1331
if (oldCurrentPosition !=
CurrentPosition
)
1344
int oldCurrentPosition =
CurrentPosition
;
1361
SetCurrent(newCurrentItem,
CurrentPosition
);
1374
if (
CurrentPosition
!= oldCurrentPosition)
1671
if (!ItemsControl.EqualsEx(CurrentItem, GetItem(
CurrentPosition
, out x, out y)) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
203
get { return _view.
CurrentPosition
; }
System\Windows\Controls\ItemCollection.cs (1)
817
return _collectionView.
CurrentPosition
;
System\Windows\Data\BindingListCollectionView.cs (25)
1292
int oldCurrentPosition = IsEmpty ? 0 :
CurrentPosition
;
1416
if (oldCurrentPosition !=
CurrentPosition
)
1510
int originalCurrentPosition =
CurrentPosition
;
1511
int oldCurrentPosition =
CurrentPosition
;
1592
bool currentPositionHasChanged = (
CurrentPosition
!= oldCurrentPosition);
1599
oldCurrentPosition =
CurrentPosition
;
1618
if (
CurrentPosition
!= oldCurrentPosition)
1621
oldCurrentPosition =
CurrentPosition
;
1639
currentPositionHasChanged = currentPositionHasChanged || (
CurrentPosition
!= oldCurrentPosition);
1850
get { return (0 <=
CurrentPosition
&&
CurrentPosition
< InternalCount); }
1856
if (proposed ==
CurrentPosition
|| IsEmpty)
2068
else if (index <=
CurrentPosition
) // adjust current index if insertion is earlier
2070
int newPosition =
CurrentPosition
+ 1;
2088
bool result = (index ==
CurrentPosition
);
2091
if (index <
CurrentPosition
)
2093
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2102
if (oldIndex ==
CurrentPosition
)
2107
else if (oldIndex <
CurrentPosition
&&
CurrentPosition
<= newIndex)
2111
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2113
else if (newIndex <=
CurrentPosition
&&
CurrentPosition
< oldIndex)
2117
SetCurrent(CurrentItem,
CurrentPosition
+ 1);
2126
bool result = (index ==
CurrentPosition
);
System\Windows\Data\CollectionView.cs (13)
454
int index =
CurrentPosition
+ 1;
485
int index =
CurrentPosition
- 1;
560
if ((position !=
CurrentPosition
|| !IsCurrentInSync)
885
if (oldCurrentPosition !=
CurrentPosition
)
1359
return GetItemAt(
CurrentPosition
) == CurrentItem;
1746
return (0 <=
CurrentPosition
&&
CurrentPosition
< Count);
2051
if ((oldIndex <
CurrentPosition
&& newIndex <
CurrentPosition
)
2052
|| (oldIndex >
CurrentPosition
&& newIndex >
CurrentPosition
))
2055
if (oldIndex <=
CurrentPosition
)
2057
else if (newIndex <=
CurrentPosition
)
System\Windows\Data\ListCollectionView.cs (25)
116
int oldCurrentPosition = IsEmpty ? -1 :
CurrentPosition
;
172
if (oldCurrentPosition !=
CurrentPosition
)
206
if (position !=
CurrentPosition
|| !IsCurrentInSync)
1885
int originalCurrentPosition =
CurrentPosition
;
1886
int oldCurrentPosition =
CurrentPosition
;
2095
bool currentPositionHasChanged = (
CurrentPosition
!= oldCurrentPosition);
2102
oldCurrentPosition =
CurrentPosition
;
2125
if (
CurrentPosition
!= oldCurrentPosition)
2128
oldCurrentPosition =
CurrentPosition
;
2146
currentPositionHasChanged = currentPositionHasChanged || (
CurrentPosition
!= oldCurrentPosition);
2490
get { return (0 <=
CurrentPosition
&&
CurrentPosition
< InternalCount); }
2829
else if (index <=
CurrentPosition
) // adjust current index if insertion is earlier
2831
int newPosition =
CurrentPosition
+ 1;
2849
if (index <
CurrentPosition
)
2851
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2854
else if (index ==
CurrentPosition
)
2863
if (oldIndex ==
CurrentPosition
)
2868
else if (oldIndex <
CurrentPosition
&&
CurrentPosition
<= newIndex)
2872
SetCurrent(CurrentItem,
CurrentPosition
- 1);
2874
else if (newIndex <=
CurrentPosition
&&
CurrentPosition
< oldIndex)
2878
SetCurrent(CurrentItem,
CurrentPosition
+ 1);
2887
if (index ==
CurrentPosition
)