Customizing the Sidebar in Our UWP Viewer

Controlling the sidebar mode is similar to controlling the interaction mode. There are sidebar modes that select both if the side is visible and which tool is being shown.

For example, if you want to show the thumbnail mode programmatically, you can write the following:

await pdfView.Controller.SetSidebarModeAsync(SidebarMode.Thumbnails);

To hide the sidebar again, set the mode to None:

await pdfView.Controller.SetSidebarModeAsync(SidebarMode.None);