Hiding the toolbar in our UWP viewer

Sometimes a toolbar isn’t required, and Nutrient UWP SDK offers the ability to hide the toolbar.

There are three ways to apply a view state to the toolbar. If a PdfView is being used, then the option can be set in xaml:

<ui:PdfView ShowToolbar="false" Name="PDFView"/>

Alternatively, you can set this at runtime:

pdfView.ShowToolbar = false;

If you aren’t using a PdfView, then it’s still possible to set it via the controller:

await controller.SetShowToolbarAsync(false);