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