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

Document Presenter

The document presenter is responsible for displaying the pages of the document, navigating in it, managing the selection markers, conversion between view coordinates and document location coordinates, plus proper response to mouse and touch events.

PdfViewer provides two presenters out of the box - FixedDocumentPagesPresenter and FixedDocumentSinglePageViewPresenter.

The FixedDocumentPagesPresenter is the default one used by the PdfViewer. It displays the pages in a vertical order with a fixed margin between them. Each page is centered horizontally inside the control's viewport.

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

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

Changing 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?