Setting the Current Page in Our UWP Viewer

It’s possible to programmatically select which page is currently shown. The parameter passed is a zero-based index of the page to show:

await pdfView.Controller.SetCurrentPageIndexAsync(1);

An exception will be thrown if the page index requested is less than zero or greater than the number of pages in the document. In such a case, the page index won’t change.