Implemented interface member:
3 overrides of CurrentItem
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
185
public override object
CurrentItem
MS\Internal\Data\EnumerableCollectionView.cs (1)
187
public override object
CurrentItem
System\Windows\Controls\ItemCollection.cs (1)
807
public override object
CurrentItem
79 references to CurrentItem
PresentationFramework (75)
MS\Internal\Controls\InnerItemCollectionView.cs (7)
438
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the given item.
442
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
446
if (ItemsControl.EqualsEx(
CurrentItem
, item))
457
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
460
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
503
object oldCurrentItem =
CurrentItem
;
571
if (oldCurrentItem !=
CurrentItem
)
MS\Internal\Data\CompositeCollectionView.cs (21)
114
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is beyond the end or the collection is empty.
127
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is before the beginning or the collection is empty.
218
if (ItemsControl.EqualsEx(
CurrentItem
, item))
254
if (((CurrentPosition != lastPosition) || (
CurrentItem
!= lastItem))
297
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
300
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
311
if (position != CurrentPosition || item !=
CurrentItem
)
904
object oldCurrentItem =
CurrentItem
;
923
if (oldCurrentItem !=
CurrentItem
)
1078
if (proposed != CurrentPosition || newCurrentItem !=
CurrentItem
)
1085
object oldCurrentItem =
CurrentItem
;
1112
if (oldCurrentItem !=
CurrentItem
)
1136
if (ItemsControl.EqualsEx(
CurrentItem
, item))
1165
if (ItemsControl.EqualsEx(item,
CurrentItem
))
1224
SetCurrent(
CurrentItem
, CurrentPosition - 1);
1267
object oldCurrentItem =
CurrentItem
;
1283
int positionY = cc.ViewIndexOf(
CurrentItem
);
1319
if (oldCurrentItem !=
CurrentItem
)
1411
SetCurrent(
CurrentItem
, CountDeep(x) + y);
1651
if (!ItemsControl.EqualsEx(
CurrentItem
, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
1656
if ((
CurrentItem
!= null) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
189
get { return _view.
CurrentItem
; }
System\Windows\Controls\ItemCollection.cs (1)
816
return _collectionView.
CurrentItem
;
System\Windows\Data\BindingListCollectionView.cs (13)
95
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
98
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1270
object oldCurrentItem =
CurrentItem
;
1398
if (oldCurrentItem !=
CurrentItem
)
1490
object oldCurrentItem =
CurrentItem
;
1571
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
1578
oldCurrentItem =
CurrentItem
;
1601
if (
CurrentItem
!= oldCurrentItem)
1604
oldCurrentItem =
CurrentItem
;
1618
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2071
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2089
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2095
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System\Windows\Data\CollectionView.cs (19)
352
/// The ordinal position of the <seealso cref="
CurrentItem
"/> within the (optionally
376
/// Return true if <seealso cref="
CurrentItem
"/> is beyond the end (End-Of-File).
390
/// Return true if <seealso cref="
CurrentItem
"/> is before the beginning (Beginning-Of-File).
403
/// Move <seealso cref="
CurrentItem
"/> to the first item.
405
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
421
/// Move <seealso cref="
CurrentItem
"/> to the last item.
423
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
439
/// Move <seealso cref="
CurrentItem
"/> to the next item.
441
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
470
/// Move <seealso cref="
CurrentItem
"/> to the previous item.
472
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
501
/// Move <seealso cref="
CurrentItem
"/> to the given item.
505
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
511
if (System.Windows.Controls.ItemsControl.EqualsEx(
CurrentItem
, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item))
532
/// Move <seealso cref="
CurrentItem
"/> to the item at the given index.
535
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
880
if (oldCurrentItem !=
CurrentItem
)
1351
return GetItemAt(CurrentPosition) ==
CurrentItem
;
1353
return
CurrentItem
== null;
System\Windows\Data\ListCollectionView.cs (13)
108
object oldCurrentItem =
CurrentItem
;
168
if (oldCurrentItem !=
CurrentItem
)
187
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
190
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
1862
object oldCurrentItem =
CurrentItem
;
2071
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
2078
oldCurrentItem =
CurrentItem
;
2105
if (
CurrentItem
!= oldCurrentItem)
2108
oldCurrentItem =
CurrentItem
;
2122
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2823
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2844
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2850
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
1167
RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryCategory;
1193
SetCurrentValue(SelectedItemProperty, SourceCollectionView.
CurrentItem
);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
514
RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryItem;
524
RibbonGallery.SelectedItem = CollectionView.
CurrentItem
;