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