23 references to PageCount
PresentationFramework (23)
MS\Internal\Documents\DocumentGrid.cs (6)
336
else if (pageNumber >= _pageCache.
PageCount
|| _rowCache.RowCount == 0)
756
return _pageCache.
PageCount
;
1133
if (_firstVisiblePageNumber < _pageCache.
PageCount
&& _rowCache.HasValidLayout)
2213
if (_pageCache.
PageCount
== 0)
2234
maxColumns = Math.Min(maxColumns, _pageCache.
PageCount
);
2246
int rows = (int)Math.Floor((double)(_pageCache.
PageCount
/ columns));
MS\Internal\Documents\PageCache.cs (1)
710
List<PageCacheChange> changes = new List<PageCacheChange>(
PageCount
);
MS\Internal\Documents\RowCache.cs (16)
508
ArgumentOutOfRangeException.ThrowIfGreaterThan(pivotPage, PageCache.
PageCount
);
524
if (PageCache.
PageCount
< _layoutColumns)
528
if (!PageCache.IsPaginationCompleted || PageCache.
PageCount
== 0)
542
_layoutColumns = Math.Min(_layoutColumns, PageCache.
PageCount
);
646
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(pivotPage, PageCache.
PageCount
);
655
if (pivotPage + columns > PageCache.
PageCount
)
657
pivotPage = Math.Max(0, PageCache.
PageCount
- columns);
704
while (currentPage < PageCache.
PageCount
)
727
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.
PageCount
);
752
if (startPage + newRow.PageCount >= PageCache.
PageCount
||
801
ArgumentOutOfRangeException.ThrowIfGreaterThan(startPage, PageCache.
PageCount
);
814
for (int i = 0; i < PageCache.
PageCount
; i += columns)
832
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.
PageCount
);
849
if (i > PageCache.
PageCount
- 1)
1247
if (PageCache.
PageCount
- 1 < LastPageInCache)
1251
RowCacheChange change = TrimPageRange(PageCache.
PageCount
);