23 references to PageCount
PresentationFramework (23)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (6)
343else if (pageNumber >= _pageCache.PageCount || _rowCache.RowCount == 0) 775return _pageCache.PageCount; 1155if (_firstVisiblePageNumber < _pageCache.PageCount && _rowCache.HasValidLayout) 2253if (_pageCache.PageCount == 0) 2274maxColumns = Math.Min(maxColumns, _pageCache.PageCount); 2286int rows = (int)Math.Floor((double)(_pageCache.PageCount / columns));
src\Framework\MS\Internal\Documents\PageCache.cs (1)
726List<PageCacheChange> changes = new List<PageCacheChange>(PageCount);
src\Framework\MS\Internal\Documents\RowCache.cs (16)
526if (pivotPage < 0 || pivotPage > PageCache.PageCount) 548if (PageCache.PageCount < _layoutColumns) 552if (!PageCache.IsPaginationCompleted || PageCache.PageCount == 0) 566_layoutColumns = Math.Min(_layoutColumns, PageCache.PageCount); 670if (pivotPage < 0 || pivotPage >= PageCache.PageCount) 685if (pivotPage + columns > PageCache.PageCount) 687pivotPage = Math.Max(0, PageCache.PageCount - columns); 734while (currentPage < PageCache.PageCount) 757if (startPage >= PageCache.PageCount) 785if (startPage + newRow.PageCount >= PageCache.PageCount || 833if (startPage < 0 || startPage > PageCache.PageCount) 852for (int i = 0; i < PageCache.PageCount; i += columns) 870if (startPage >= PageCache.PageCount) 893if (i > PageCache.PageCount - 1) 1292if (PageCache.PageCount - 1 < LastPageInCache) 1296RowCacheChange change = TrimPageRange(PageCache.PageCount);