21 references to InternalCount
PresentationFramework (21)
System\Windows\Data\BindingListCollectionView.cs (21)
105ArgumentOutOfRangeException.ThrowIfGreaterThan(position, InternalCount); 387return InternalCount; 458oldIndex = InternalCount - 1; 480oldIndex = InternalCount - 1; 495newIndex = InternalCount; 503newIndex = InternalCount - 1; 636position = InternalCount - 2; 786fromIndex = InternalCount - 2; 1367SetCurrent(null, InternalCount); 1383if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 1716return InternalCount - 1; 1730return InternalCount - 2; 1785if (index == InternalCount - 1) 1787if (IsAddingNew && index == InternalCount-2) 1845get { return (0 <= CurrentPosition && CurrentPosition < InternalCount); } 1854object proposedCurrentItem = (0 <= proposed && proposed < InternalCount) ? GetItemAt(proposed) : null; 1967index = InternalCount - 1; 2058if (InternalCount == 1) 2066if (newPosition < InternalCount) 2074SetCurrent(null, InternalCount); 2133int lastPosition = InternalCount - 1; // OK if last is -1