Implemented interface member:
property
CurrentItem
System.ComponentModel.ICollectionView.CurrentItem
3 overrides of CurrentItem
PresentationFramework (3)
src\Framework\MS\Internal\Data\CollectionViewProxy.cs (1)
195
public override object
CurrentItem
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
195
public override object
CurrentItem
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
835
public override object
CurrentItem
73 references to CurrentItem
PresentationFramework (73)
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (7)
442
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the given item.
446
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
450
if (ItemsControl.EqualsEx(
CurrentItem
, item))
461
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
464
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
507
object oldCurrentItem =
CurrentItem
;
576
if (oldCurrentItem !=
CurrentItem
)
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (19)
130
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is beyond the end or the collection is empty.
143
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is before the beginning or the collection is empty.
235
if (ItemsControl.EqualsEx(
CurrentItem
, item))
271
if (((CurrentPosition != lastPosition) || (
CurrentItem
!= lastItem))
315
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
318
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
330
if (position != CurrentPosition || item !=
CurrentItem
)
937
object oldCurrentItem =
CurrentItem
;
956
if (oldCurrentItem !=
CurrentItem
)
1111
if (proposed != CurrentPosition || newCurrentItem !=
CurrentItem
)
1118
object oldCurrentItem =
CurrentItem
;
1145
if (oldCurrentItem !=
CurrentItem
)
1169
if (ItemsControl.EqualsEx(
CurrentItem
, item))
1198
if (ItemsControl.EqualsEx(item,
CurrentItem
))
1257
SetCurrent(
CurrentItem
, CurrentPosition - 1);
1301
object oldCurrentItem =
CurrentItem
;
1317
int positionY = cc.ViewIndexOf(
CurrentItem
);
1353
if (oldCurrentItem !=
CurrentItem
)
1445
SetCurrent(
CurrentItem
, CountDeep(x) + y);
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
197
get { return _view.
CurrentItem
; }
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
844
return _collectionView.
CurrentItem
;
src\Framework\System\Windows\Data\BindingListCollectionView.cs (13)
108
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
111
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1298
object oldCurrentItem =
CurrentItem
;
1426
if (oldCurrentItem !=
CurrentItem
)
1519
object oldCurrentItem =
CurrentItem
;
1600
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
1607
oldCurrentItem =
CurrentItem
;
1630
if (
CurrentItem
!= oldCurrentItem)
1633
oldCurrentItem =
CurrentItem
;
1647
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2100
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2118
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2124
SetCurrent(
CurrentItem
, CurrentPosition + 1);
src\Framework\System\Windows\Data\CollectionView.cs (19)
368
/// The ordinal position of the <seealso cref="
CurrentItem
"/> within the (optionally
392
/// Return true if <seealso cref="
CurrentItem
"/> is beyond the end (End-Of-File).
406
/// Return true if <seealso cref="
CurrentItem
"/> is before the beginning (Beginning-Of-File).
419
/// Move <seealso cref="
CurrentItem
"/> to the first item.
421
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
437
/// Move <seealso cref="
CurrentItem
"/> to the last item.
439
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
455
/// Move <seealso cref="
CurrentItem
"/> to the next item.
457
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
486
/// Move <seealso cref="
CurrentItem
"/> to the previous item.
488
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
517
/// Move <seealso cref="
CurrentItem
"/> to the given item.
521
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
527
if (System.Windows.Controls.ItemsControl.EqualsEx(
CurrentItem
, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item))
548
/// Move <seealso cref="
CurrentItem
"/> to the item at the given index.
551
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
897
if (oldCurrentItem !=
CurrentItem
)
1370
return GetItemAt(CurrentPosition) ==
CurrentItem
;
1372
return
CurrentItem
== null;
src\Framework\System\Windows\Data\ListCollectionView.cs (13)
122
object oldCurrentItem =
CurrentItem
;
182
if (oldCurrentItem !=
CurrentItem
)
202
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
205
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1896
object oldCurrentItem =
CurrentItem
;
2105
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
2112
oldCurrentItem =
CurrentItem
;
2139
if (
CurrentItem
!= oldCurrentItem)
2142
oldCurrentItem =
CurrentItem
;
2157
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2864
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2885
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2891
SetCurrent(
CurrentItem
, CurrentPosition + 1);