23 references to PageCount
PresentationFramework (23)
MS\Internal\Documents\DocumentGrid.cs (6)
329else if (pageNumber >= _pageCache.PageCount || _rowCache.RowCount == 0) 749return _pageCache.PageCount; 1126if (_firstVisiblePageNumber < _pageCache.PageCount && _rowCache.HasValidLayout) 2209if (_pageCache.PageCount == 0) 2230maxColumns = Math.Min(maxColumns, _pageCache.PageCount); 2242int rows = (int)Math.Floor((double)(_pageCache.PageCount / columns));
MS\Internal\Documents\PageCache.cs (1)
706List<PageCacheChange> changes = new List<PageCacheChange>(PageCount);
MS\Internal\Documents\RowCache.cs (16)
503ArgumentOutOfRangeException.ThrowIfGreaterThan(pivotPage, PageCache.PageCount); 519if (PageCache.PageCount < _layoutColumns) 523if (!PageCache.IsPaginationCompleted || PageCache.PageCount == 0) 537_layoutColumns = Math.Min(_layoutColumns, PageCache.PageCount); 641ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(pivotPage, PageCache.PageCount); 650if (pivotPage + columns > PageCache.PageCount) 652pivotPage = Math.Max(0, PageCache.PageCount - columns); 699while (currentPage < PageCache.PageCount) 722ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.PageCount); 747if (startPage + newRow.PageCount >= PageCache.PageCount || 796ArgumentOutOfRangeException.ThrowIfGreaterThan(startPage, PageCache.PageCount); 809for (int i = 0; i < PageCache.PageCount; i += columns) 827ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.PageCount); 846if (i > PageCache.PageCount - 1) 1250if (PageCache.PageCount - 1 < LastPageInCache) 1254RowCacheChange change = TrimPageRange(PageCache.PageCount);