Thumbnail Navigation in WPF Pdf Viewer
23 Oct 2019 / 2 minutes to read
The thumbnail navigation support in PDF viewer allows users to view a miniature preview of the PDF pages for fast scrolling and easy navigation purpose.
Displaying page thumbnails
Page thumbnails are displayed by clicking the thumbnail icon in the left pane. To display thumbnails pane from code behind, use the following code example.
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
pdfviewer.Load(pdf);
pdfviewer.ThumbnailSettings.IsExpanded = true;
}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
Dim pdf As New PdfLoadedDocument(“Input.pdf”)
pdfViewer.Load(pdf)
pdfviewer.ThumbnailSettings.IsExpanded = true
End Sub
Enlarging and reducing size of page thumbnails
Page thumbnails size is enlarged and reduced using the zoom out and zoom in buttons in the Page Thumbnails pane, and also using the magnification slider.
Disabling thumbnails
Thumbnails are disabled by setting the IsVisible
property of ThumbnailSettings in the PDF viewer control to false.
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
pdfviewer.Load(pdf);
pdfviewer.ThumbnailSettings.IsVisible = false;
}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
Dim pdf As New PdfLoadedDocument(“Input.pdf”)
pdfViewer.Load(pdf)
pdfviewer.ThumbnailSettings.IsVisible = false
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page