Disable toolbar items

To remove the toolbar altogether use PdfDocumentView control instead of PdfViewerControl as described in the Load PDF without ToolStrip in viewer section. Individual toolbar items from the default toolbar of PDF Viewer can be removed selectively. The following code snippet illustrates disabling the open file button.

private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
	//Get the instance of the toolbar using its template name
	DocumentToolbar toolbar = pdfViewerControl.Template.FindName("PART_Toolbar", pdfViewerControl) as DocumentToolbar;

	//Get the instance of the open file button using its template name
	Button openButton = (Button)toolbar.Template.FindName("PART_ButtonOpen", toolbar);

	//Set the visibility of the button to collapsed 
	openButton.Visibility = System.Windows.Visibility.Collapsed;
}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)

    'Get the instance of the toolbar using its template name
    Dim toolbar As DocumentToolbar = CType(pdfViewerControl.Template.FindName("PART_Toolbar", pdfViewerControl), DocumentToolbar)

    'Get the instance of the open file button using its template name
    Dim openButton As Button = CType(toolbar.Template.FindName("PART_ButtonOpen", toolbar), Button)

    'Set the visibility of the button to collapsed 
    openButton.Visibility = Visibility.Collapsed

End Sub

Similarly other toolbar items can be disabled. The following table lists the template names of the rest of the toolbar items along with their respective types in the order they appear in the toolbar.

Toolbar item Template name Type
Open tool PART_ButtonOpen System.Windows.Controls.Button
Save tool PART_ButtonSave System.Windows.Controls.Button
Print tool PART_ButtonPrint System.Windows.Controls.Button
Navigation tools separator Part_NavigationToolsSeparator System.Windows.Shapes.Rectangle
First page tool PART_ButtonGoToFirstPage System.Windows.Controls.Button
Previous page tool PART_ButtonGoToPreviousPage System.Windows.Controls.Button
Current page number tool PART_TextCurrentPageIndex System.Windows.Controls.TextBox
Page count tool PART_LabelTotalPageCount System.Windows.Controls.TextBlock
Next page tool PART_ButtonGoToNextPage System.Windows.Controls.Button
Last page tool PART_ButtonGoToLastPage System.Windows.Controls.Button
Zoom tools separator Part_ZoomToolsSeparator_0 System.Windows.Shapes.Rectangle
Current zoom level tool PART_ComboBoxCurrentZoomLevel System.Windows.Controls.ComboBox
Zoom in tool PART_ButtonZoomIn System.Windows.Controls.Button
Zoom out tool PART_ButtonZoomOut System.Windows.Controls.Button
Zoom tools separator PART_ZoomToolsSeparator_1 System.Windows.Shapes.Rectangle
Fit width tool PART_ButtonFitWidth System.Windows.Controls.Button
Fit page tool PART_ButtonFitPage System.Windows.Controls.Button
Annotation tools separator PART_AnnotationToolsSeparator System.Windows.Shapes.Rectangle
Ink tool PART_Ink System.Windows.Controls.Primitives.ToggleButton
Highlight tool PART_Highlight System.Windows.Controls.Primitives.ToggleButton
Underline tool PART_Underline System.Windows.Controls.Primitives.ToggleButton
Strikethrough tool PART_Strikethrough System.Windows.Controls.Primitives.ToggleButton
Shapes tool PART_Shapes System.Windows.Controls.Primitives.ToggleButton
Fill tool PART_Fill System.Windows.Controls.Primitives.ToggleButton
Add textbox tool PART_FreeText System.Windows.Controls.Primitives.ToggleButton
Text properties tool PART_ButtonTextBoxFont System.Windows.Controls.Button
Separator between the annotation and cursor tools PART_AnnotationsSeparator System.Windows.Shapes.Rectangle
Stamp tool PART_Stamp System.Windows.Controls.Primitives.ToggleButton
Handwritten signature tool PART_ButtonSignature System.Windows.Controls.Button
Select tool PART_SelectTool System.Windows.Controls.Primitives.ToggleButton
Hand tool PART_HandTool System.Windows.Controls.Primitives.ToggleButton
Marquee zoom tool PART_MarqueeZoom System.Windows.Controls.Primitives.ToggleButton
Separator between the cursor tools and text search button Part_CursorTools System.Windows.Shapes.Rectangle
Text search tool PART_ButtonTextSearch System.Windows.Controls.Button

The bookmark button on the left pane will be hidden when bookmark navigation feature is disabled using the below code snippet

pdfViewerControl.IsBookmarkEnabled = false;
pdfViewerControl.IsBookmarkEnabled = false;