Implemented interface member:
3 overrides of CurrentItem
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
190
public override object
CurrentItem
MS\Internal\Data\EnumerableCollectionView.cs (1)
188
public override object
CurrentItem
System\Windows\Controls\ItemCollection.cs (1)
815
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)
117
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is beyond the end or the collection is empty.
130
/// Return true if <seealso cref="CollectionView.
CurrentItem
"/> is before the beginning or the collection is empty.
221
if (ItemsControl.EqualsEx(
CurrentItem
, item))
257
if (((CurrentPosition != lastPosition) || (
CurrentItem
!= lastItem))
300
/// Move <seealso cref="CollectionView.
CurrentItem
"/> to the item at the given index.
303
/// <returns>true if <seealso cref="CollectionView.
CurrentItem
"/> points to an item within the view.</returns>
314
if (position != CurrentPosition || item !=
CurrentItem
)
913
object oldCurrentItem =
CurrentItem
;
932
if (oldCurrentItem !=
CurrentItem
)
1087
if (proposed != CurrentPosition || newCurrentItem !=
CurrentItem
)
1094
object oldCurrentItem =
CurrentItem
;
1121
if (oldCurrentItem !=
CurrentItem
)
1145
if (ItemsControl.EqualsEx(
CurrentItem
, item))
1174
if (ItemsControl.EqualsEx(item,
CurrentItem
))
1233
SetCurrent(
CurrentItem
, CurrentPosition - 1);
1276
object oldCurrentItem =
CurrentItem
;
1292
int positionY = cc.ViewIndexOf(
CurrentItem
);
1328
if (oldCurrentItem !=
CurrentItem
)
1420
SetCurrent(
CurrentItem
, CountDeep(x) + y);
1665
if (!ItemsControl.EqualsEx(
CurrentItem
, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
1670
if ((
CurrentItem
!= null) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
190
get { return _view.
CurrentItem
; }
System\Windows\Controls\ItemCollection.cs (1)
824
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>
1286
object oldCurrentItem =
CurrentItem
;
1414
if (oldCurrentItem !=
CurrentItem
)
1507
object oldCurrentItem =
CurrentItem
;
1588
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
1595
oldCurrentItem =
CurrentItem
;
1618
if (
CurrentItem
!= oldCurrentItem)
1621
oldCurrentItem =
CurrentItem
;
1635
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2088
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2106
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2112
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System\Windows\Data\CollectionView.cs (19)
356
/// The ordinal position of the <seealso cref="
CurrentItem
"/> within the (optionally
380
/// Return true if <seealso cref="
CurrentItem
"/> is beyond the end (End-Of-File).
394
/// Return true if <seealso cref="
CurrentItem
"/> is before the beginning (Beginning-Of-File).
407
/// Move <seealso cref="
CurrentItem
"/> to the first item.
409
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
425
/// Move <seealso cref="
CurrentItem
"/> to the last item.
427
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
443
/// Move <seealso cref="
CurrentItem
"/> to the next item.
445
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
474
/// Move <seealso cref="
CurrentItem
"/> to the previous item.
476
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
505
/// Move <seealso cref="
CurrentItem
"/> to the given item.
509
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
515
if (System.Windows.Controls.ItemsControl.EqualsEx(
CurrentItem
, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item))
536
/// Move <seealso cref="
CurrentItem
"/> to the item at the given index.
539
/// <returns>true if <seealso cref="
CurrentItem
"/> points to an item within the view.</returns>
884
if (oldCurrentItem !=
CurrentItem
)
1355
return GetItemAt(CurrentPosition) ==
CurrentItem
;
1357
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>
1881
object oldCurrentItem =
CurrentItem
;
2090
bool currentItemHasChanged = (
CurrentItem
!= oldCurrentItem);
2097
oldCurrentItem =
CurrentItem
;
2124
if (
CurrentItem
!= oldCurrentItem)
2127
oldCurrentItem =
CurrentItem
;
2141
currentItemHasChanged = currentItemHasChanged || (
CurrentItem
!= oldCurrentItem);
2845
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2866
SetCurrent(
CurrentItem
, CurrentPosition - 1);
2872
SetCurrent(
CurrentItem
, CurrentPosition + 1);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
1166
RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryCategory;
1192
SetCurrentValue(SelectedItemProperty, SourceCollectionView.
CurrentItem
);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
518
RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.
CurrentItem
) as RibbonGalleryItem;
528
RibbonGallery.SelectedItem = CollectionView.
CurrentItem
;