30 references to InternalCount
PresentationFramework (30)
System\Windows\Data\ListCollectionView.cs (30)
125SetCurrent(null, InternalCount); 140if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 197ArgumentOutOfRangeException.ThrowIfGreaterThan(position, InternalCount); 202object proposedCurrentItem = (0 <= position && position < InternalCount) ? InternalItemAt(position) : null; 501return InternalCount; 510get { return (InternalCount == 0); } 571oldIndex = InternalCount - 1; 593oldIndex = InternalCount - 1; 608newIndex = InternalCount; 616newIndex = InternalCount - 1; 805position = UsesLocalArray ? InternalCount - 1 : _newItemIndex; 811position = InternalCount - 2; 853fromIndex = UsesLocalArray ? InternalCount - 1 : _newItemIndex; 859fromIndex = InternalCount - 2; 1094if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 2182return InternalCount - 1; 2192return InternalCount - 1; 2200return InternalCount - 2; 2229if (index == InternalCount - 1) 2252if (index == InternalCount - 1) 2256if (index == InternalCount-2) 2484get { return (0 <= CurrentPosition && CurrentPosition < InternalCount); } 2635int lastPosition = InternalCount - 1; // OK if last is -1 2664? 0 : InternalCount - 1; 2678? 1 : UsesLocalArray ? InternalCount - 2 : index; 2764return InternalCount - 1; 2768return InternalCount - 2; 2818if (InternalCount == 1) 2826if (newPosition < InternalCount) 2834SetCurrent(null, InternalCount);