Implemented interface member:
3 overrides of CurrentItem
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
187
public override object
CurrentItem
MS\Internal\Data\EnumerableCollectionView.cs (1)
188
public override object
CurrentItem
System\Windows\Controls\ItemCollection.cs (1)
809
public override object
CurrentItem
79 references to CurrentItem
PresentationFramework (75)
MS\Internal\Controls\InnerItemCollectionView.cs (7)
439
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the given item.
443
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
447
if (ItemsControl.EqualsEx(
CurrentItem
, item))
458
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
461
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
504
object oldCurrentItem =
CurrentItem
;
572
if (oldCurrentItem !=
CurrentItem
)
MS\Internal\Data\CompositeCollectionView.cs (21)
115
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is beyond the end or the collection is empty.
128
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is before the beginning or the collection is empty.
219
if (ItemsControl.EqualsEx(
CurrentItem
, item))
255
if (((CurrentPosition != lastPosition) || (
CurrentItem
!= lastItem))
298
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
301
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
312
if (position != CurrentPosition || item !=
CurrentItem
)
905
object oldCurrentItem =
CurrentItem
;
924
if (oldCurrentItem !=
CurrentItem
)
1079
if (proposed != CurrentPosition || newCurrentItem !=
CurrentItem
)
1086
object oldCurrentItem =
CurrentItem
;
1113
if (oldCurrentItem !=
CurrentItem
)
1137
if (ItemsControl.EqualsEx(
CurrentItem
, item))
1166
if (ItemsControl.EqualsEx(item,
CurrentItem
))
1225
SetCurrent(
CurrentItem
, CurrentPosition - 1);
1268
object oldCurrentItem =
CurrentItem
;
1284
int positionY = cc.ViewIndexOf(
CurrentItem
);
1320
if (oldCurrentItem !=
CurrentItem
)
1412
SetCurrent(
CurrentItem
, CountDeep(x) + y);
1653
if (!ItemsControl.EqualsEx(
CurrentItem
, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
1658
if ((
CurrentItem
!= null) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
190
get { return _view.
CurrentItem
; }
System\Windows\Controls\ItemCollection.cs (1)
818
return _collectionView.
CurrentItem
;
System\Windows\Data\BindingListCollectionView.cs (13)
96
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
99
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1271
object oldCurrentItem =
CurrentItem
;
1399
if (oldCurrentItem !=
CurrentItem
)
1492
object oldCurrentItem =
CurrentItem
;
1573
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
1580
oldCurrentItem =
CurrentItem
;
1603
if (
CurrentItem
!= oldCurrentItem)
1606
oldCurrentItem =
CurrentItem
;
1620
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2073
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2091
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2097
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System\Windows\Data\CollectionView.cs (19)
353
/// The ordinal position of the <seealso cref="
CurrentItem
"/> within the (optionally
377
/// Return true if <seealso cref="
CurrentItem
"/> is beyond the end (End-Of-File).
391
/// Return true if <seealso cref="
CurrentItem
"/> is before the beginning (Beginning-Of-File).
404
/// Move <seealso cref="
CurrentItem
"/> to the first item.
406
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
422
/// Move <seealso cref="
CurrentItem
"/> to the last item.
424
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
440
/// Move <seealso cref="
CurrentItem
"/> to the next item.
442
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
471
/// Move <seealso cref="
CurrentItem
"/> to the previous item.
473
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
502
/// Move <seealso cref="
CurrentItem
"/> to the given item.
506
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
512
if (System.Windows.Controls.ItemsControl.EqualsEx(
CurrentItem
, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item))
533
/// Move <seealso cref="
CurrentItem
"/> to the item at the given index.
536
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
881
if (oldCurrentItem !=
CurrentItem
)
1352
return GetItemAt(CurrentPosition) ==
CurrentItem
;
1354
return
CurrentItem
== null;
System\Windows\Data\ListCollectionView.cs (13)
109
object oldCurrentItem =
CurrentItem
;
169
if (oldCurrentItem !=
CurrentItem
)
188
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
191
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1863
object oldCurrentItem =
CurrentItem
;
2072
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
2079
oldCurrentItem =
CurrentItem
;
2106
if (
CurrentItem
!= oldCurrentItem)
2109
oldCurrentItem =
CurrentItem
;
2123
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2827
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2848
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2854
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
1168
RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryCategory;
1194
SetCurrentValue(SelectedItemProperty, SourceCollectionView.
CurrentItem
);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
515
RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryItem;
525
RibbonGallery.SelectedItem = CollectionView.
CurrentItem
;