New to Telerik UI for WinUI? Download free 30-day trial

Document Presenter

The document presenter handles the display of the document pages and the internal document navigation. It also controls the selection markers, the conversion between view and document location coordinates, and the proper response to mouse and touch events.

Out of the box, the PdfViewer provides the FixedDocumentPagesPresenter and FixedDocumentSinglePageViewPresenter presenters.

By default, the PdfViewer uses the FixedDocumentPagesPresenter, which displays the pages in a vertical order with a fixed margin between them. Each page is centered horizontally inside the control's viewport.

WinUI RadPdfViewer

The FixedDocumentSinglePageViewPresenter displays a single page inside the viewport. The page is vertically and horizontally centered.

WinUI RadPdfViewer

To change the current document presenter, set the FixedDocumentPresenter property of RadPdfViewer.

Change the document presenter

this.radPdfViewer.FixedDocumentPresenter = this.radPdfViewer.GetRegisteredPresenter(FixedDocumentPresenterNames.FixedDocumentSinglePageViewPresenter); 
The base class inherited by the predefined presenters exposes the VisiblePagesCacheOffset property, which you can use to control the amount of pages that are cached before and after the visible ones. The default value of property is 1.

See Also

In this article
Not finding the help you need?