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


The PdfViewer comes with predefined toolbar UI elements that are automatically wired with all supported commands.

The RadPdfViewerToolbar control complements the RadPdfViewer with convenient options that allow you to save and open files, zoom and rotate the document, and more.

WinUI RadPdfViewer

To use the toolbar, define the RadPdfViewerToolBar element and set its RadPdfViewer property.

Use the RadPdfViewerToolBar control

        <RowDefinition Height="Auto"/> 
    <telerik:RadPdfViewerToolBar RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}"  /> 
    <telerik:RadPdfViewer Grid.Row="1" 
                          DocumentSource="ms-appx:///PdfFiles/Sample.pdf" /> 

To toggle the visibility of the buttons in the toolbar, use the following bool properties of RadPdfViewerToolBar:

  • HasOpenButton
  • HasSaveButton
  • HasCounterclockwiseButton
  • HasClockwiseButton
  • HasPageUpButton
  • HasPageDownButton
  • HasPagesCountGroup
  • HasPrintButton
  • HasZoomInButton
  • HasZoomOutButton
  • HasPercentComboBox
  • HasFitToWidthButton
  • HasFitToPageButton
  • HasPanTextSelectionGroup

Hide the rotation and the Page up and Page down buttons

<telerik:RadPdfViewerToolBar RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}"  

WinUI RadPdfViewer

See Also

In this article
Not finding the help you need?