Implemented interface member:
3 overrides of CurrentItem
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
192
public override object
CurrentItem
MS\Internal\Data\EnumerableCollectionView.cs (1)
192
public override object
CurrentItem
System\Windows\Controls\ItemCollection.cs (1)
824
public override object
CurrentItem
79 references to CurrentItem
PresentationFramework (75)
MS\Internal\Controls\InnerItemCollectionView.cs (7)
440
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the given item.
444
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
448
if (ItemsControl.EqualsEx(
CurrentItem
, item))
459
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
462
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
505
object oldCurrentItem =
CurrentItem
;
573
if (oldCurrentItem !=
CurrentItem
)
MS\Internal\Data\CompositeCollectionView.cs (21)
123
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is beyond the end or the collection is empty.
136
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is before the beginning or the collection is empty.
227
if (ItemsControl.EqualsEx(
CurrentItem
, item))
263
if (((CurrentPosition != lastPosition) || (
CurrentItem
!= lastItem))
306
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
309
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
320
if (position != CurrentPosition || item !=
CurrentItem
)
919
object oldCurrentItem =
CurrentItem
;
938
if (oldCurrentItem !=
CurrentItem
)
1093
if (proposed != CurrentPosition || newCurrentItem !=
CurrentItem
)
1100
object oldCurrentItem =
CurrentItem
;
1127
if (oldCurrentItem !=
CurrentItem
)
1151
if (ItemsControl.EqualsEx(
CurrentItem
, item))
1180
if (ItemsControl.EqualsEx(item,
CurrentItem
))
1239
SetCurrent(
CurrentItem
, CurrentPosition - 1);
1282
object oldCurrentItem =
CurrentItem
;
1298
int positionY = cc.ViewIndexOf(
CurrentItem
);
1334
if (oldCurrentItem !=
CurrentItem
)
1426
SetCurrent(
CurrentItem
, CountDeep(x) + y);
1671
if (!ItemsControl.EqualsEx(
CurrentItem
, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
1676
if ((
CurrentItem
!= null) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
194
get { return _view.
CurrentItem
; }
System\Windows\Controls\ItemCollection.cs (1)
833
return _collectionView.
CurrentItem
;
System\Windows\Data\BindingListCollectionView.cs (13)
101
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
104
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1291
object oldCurrentItem =
CurrentItem
;
1419
if (oldCurrentItem !=
CurrentItem
)
1512
object oldCurrentItem =
CurrentItem
;
1593
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
1600
oldCurrentItem =
CurrentItem
;
1623
if (
CurrentItem
!= oldCurrentItem)
1626
oldCurrentItem =
CurrentItem
;
1640
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2093
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2111
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2117
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System\Windows\Data\CollectionView.cs (19)
360
/// The ordinal position of the <seealso cref="
CurrentItem
"/> within the (optionally
384
/// Return true if <seealso cref="
CurrentItem
"/> is beyond the end (End-Of-File).
398
/// Return true if <seealso cref="
CurrentItem
"/> is before the beginning (Beginning-Of-File).
411
/// Move <seealso cref="
CurrentItem
"/> to the first item.
413
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
429
/// Move <seealso cref="
CurrentItem
"/> to the last item.
431
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
447
/// Move <seealso cref="
CurrentItem
"/> to the next item.
449
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
478
/// Move <seealso cref="
CurrentItem
"/> to the previous item.
480
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
509
/// Move <seealso cref="
CurrentItem
"/> to the given item.
513
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
519
if (System.Windows.Controls.ItemsControl.EqualsEx(
CurrentItem
, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item))
540
/// Move <seealso cref="
CurrentItem
"/> to the item at the given index.
543
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
888
if (oldCurrentItem !=
CurrentItem
)
1359
return GetItemAt(CurrentPosition) ==
CurrentItem
;
1361
return
CurrentItem
== null;
System\Windows\Data\ListCollectionView.cs (13)
115
object oldCurrentItem =
CurrentItem
;
175
if (oldCurrentItem !=
CurrentItem
)
194
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
197
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1887
object oldCurrentItem =
CurrentItem
;
2096
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
2103
oldCurrentItem =
CurrentItem
;
2130
if (
CurrentItem
!= oldCurrentItem)
2133
oldCurrentItem =
CurrentItem
;
2147
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2851
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2872
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2878
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)
523
RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryItem;
533
RibbonGallery.SelectedItem = CollectionView.
CurrentItem
;