Toggle visibility of the scroll bar in WPF Pdf Viewer

PDF Viewer supports showing and hiding scrollbar, when you feel to use the PDF Viewer only with the touch support, you can hide the default scrollbars of the PDF Viewer using the ShowScrollbar. The following code example hides the scrollbar in the PDF Viewer control.

//Initialize PDF Viewer.

PdfViewerControl pdfViewer1 = new PdfViewerControl();



//Load the PDF.

pdfViewer1.Load("Sample.pdf");

// Hiding the scrollbar of the PDF Viewer

pdfviewer1.ShowScrollbar = false;
'Initialize PDF Viewer.

Private pdfViewer1 As New PdfViewerControl()



'Load the PDF.

pdfViewer1.Load("Sample.pdf")

' Hiding the scrollbar of the PDF Viewer

pdfviewer1.ShowScrollbar = False