30 references to InternalCount
PresentationFramework (30)
src\Framework\System\Windows\Data\ListCollectionView.cs (30)
138SetCurrent(null, InternalCount); 153if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 210if (position < -1 || position > InternalCount) 216object proposedCurrentItem = (0 <= position && position < InternalCount) ? InternalItemAt(position) : null; 515return InternalCount; 524get { return (InternalCount == 0); } 585oldIndex = InternalCount - 1; 607oldIndex = InternalCount - 1; 622newIndex = InternalCount; 630newIndex = InternalCount - 1; 819position = UsesLocalArray ? InternalCount - 1 : _newItemIndex; 825position = InternalCount - 2; 867fromIndex = UsesLocalArray ? InternalCount - 1 : _newItemIndex; 873fromIndex = InternalCount - 2; 1108if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 2199return InternalCount - 1; 2209return InternalCount - 1; 2217return InternalCount - 2; 2246if (index == InternalCount - 1) 2269if (index == InternalCount - 1) 2273if (index == InternalCount-2) 2502get { return (0 <= CurrentPosition && CurrentPosition < InternalCount); } 2654int lastPosition = InternalCount - 1; // OK if last is -1 2683? 0 : InternalCount - 1; 2697? 1 : UsesLocalArray ? InternalCount - 2 : index; 2783return InternalCount - 1; 2787return InternalCount - 2; 2837if (InternalCount == 1) 2845if (newPosition < InternalCount) 2853SetCurrent(null, InternalCount);