13 references to ViewCount
PresentationFramework (13)
MS\Internal\Controls\InnerItemCollectionView.cs (13)
306if ((0 <= index) && (index < ViewCount)) 375return ViewCount; 386return ViewCount == 0; 465ArgumentOutOfRangeException.ThrowIfGreaterThan(position, ViewCount); 531if (_sort != null && _sort.Count > 0 && ViewCount > 0) 547_MoveCurrentToPosition(ViewCount); 642return (0 <= CurrentPosition && CurrentPosition < ViewCount); 767else if (position >= ViewCount) 769SetCurrent(null, ViewCount); 783if (ViewCount == 1) 791if (newCurrentPosition < ViewCount) 799SetCurrent(null, ViewCount); 826int lastPosition = ViewCount - 1; // OK if last is -1