Implemented interface member:
3 overrides of CurrentItem
PresentationFramework (3)
MS\Internal\Data\CollectionViewProxy.cs (1)
192public override object CurrentItem
MS\Internal\Data\EnumerableCollectionView.cs (1)
192public override object CurrentItem
System\Windows\Controls\ItemCollection.cs (1)
824public 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> 448if (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> 505object oldCurrentItem = CurrentItem; 573if (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. 227if (ItemsControl.EqualsEx(CurrentItem, item)) 263if (((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> 320if (position != CurrentPosition || item != CurrentItem) 919object oldCurrentItem = CurrentItem; 938if (oldCurrentItem != CurrentItem) 1093if (proposed != CurrentPosition || newCurrentItem != CurrentItem) 1100object oldCurrentItem = CurrentItem; 1127if (oldCurrentItem != CurrentItem) 1151if (ItemsControl.EqualsEx(CurrentItem, item)) 1180if (ItemsControl.EqualsEx(item, CurrentItem)) 1239SetCurrent(CurrentItem, CurrentPosition - 1); 1282object oldCurrentItem = CurrentItem; 1298int positionY = cc.ViewIndexOf(CurrentItem); 1334if (oldCurrentItem != CurrentItem) 1426SetCurrent(CurrentItem, CountDeep(x) + y); 1671if (!ItemsControl.EqualsEx(CurrentItem, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection()) 1676if ((CurrentItem != null) && !_collection.HasRepeatedCollection())
MS\Internal\Data\EnumerableCollectionView.cs (1)
194get { return _view.CurrentItem; }
System\Windows\Controls\ItemCollection.cs (1)
833return _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> 1291object oldCurrentItem = CurrentItem; 1419if (oldCurrentItem != CurrentItem) 1512object oldCurrentItem = CurrentItem; 1593bool currentItemHasChanged = (CurrentItem != oldCurrentItem); 1600oldCurrentItem = CurrentItem; 1623if (CurrentItem != oldCurrentItem) 1626oldCurrentItem = CurrentItem; 1640currentItemHasChanged = currentItemHasChanged || (CurrentItem != oldCurrentItem); 2093SetCurrent(CurrentItem, CurrentPosition - 1); 2111SetCurrent(CurrentItem, CurrentPosition - 1); 2117SetCurrent(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> 519if (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> 888if (oldCurrentItem != CurrentItem) 1359return GetItemAt(CurrentPosition) == CurrentItem; 1361return CurrentItem == null;
System\Windows\Data\ListCollectionView.cs (13)
115object oldCurrentItem = CurrentItem; 175if (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> 1887object oldCurrentItem = CurrentItem; 2096bool currentItemHasChanged = (CurrentItem != oldCurrentItem); 2103oldCurrentItem = CurrentItem; 2130if (CurrentItem != oldCurrentItem) 2133oldCurrentItem = CurrentItem; 2147currentItemHasChanged = currentItemHasChanged || (CurrentItem != oldCurrentItem); 2851SetCurrent(CurrentItem, CurrentPosition - 1); 2872SetCurrent(CurrentItem, CurrentPosition - 1); 2878SetCurrent(CurrentItem, CurrentPosition + 1);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
1168RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory; 1194SetCurrentValue(SelectedItemProperty, SourceCollectionView.CurrentItem);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
523RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem; 533RibbonGallery.SelectedItem = CollectionView.CurrentItem;