---
title: "Hide or show sidebar navigation in MAUI PDF viewer | Nutrient"
canonical_url: "https://www.nutrient.io/guides/maui/user-interface/sidebar/hide-or-show/"
md_url: "https://www.nutrient.io/guides/maui/user-interface/sidebar/hide-or-show.md"
last_updated: "2026-06-09T10:26:34.608Z"
description: "Learn how to hide or show sidebar navigation in the MAUI PDF viewer. Control sidebar visibility programmatically and enhance user experience with easy integration."
---

# Hide or show sidebar navigation in our viewer

Nutrient MAUI SDK includes contextual sidebars for page thumbnails, document outlines, bookmarks, and annotations. Each sidebar is accessible by pressing its corresponding toolbar button in a `dropdownGroup` called `sidebar`, which is, by default, located at the far left of the main toolbar.

These are the corresponding built-in toolbar button types for each sidebar button:

```

SidebarThumbnailsToggleButton
SidebarDocumentOutlineToggleButton
SidebarAnnotationToggleButton
SidebarBookmarksToggleButton
SidebarSignatureToggleButton

```

You can read more about built-in items and how to customize the toolbar in the [customize existing tools](https://www.nutrient.io/guides/maui/user-interface/main-toolbar/customize-existing-tools.md) guide.

## Sidebar mode

The sidebar can also be controlled programmatically by setting [`PDFView.SidebarMode`](https://www.nutrient.io/api/maui/sdk/PSPDFKit.Sdk.PDFView.html#PSPDFKit_Sdk_PDFView_SidebarMode). For a list of all available modes, refer to [`PSPDFKit.Api.Enums.SidebarMode`](https://www.nutrient.io/api/maui/api/PSPDFKit.Api.Enums.SidebarMode.html).

Using this API you can, for example, activate the annotations sidebar:

### XAML

```xml

<!--View-->

<pspdfkit:PDFView x:Name="PDFView" SidebarMode="{Binding SelectedSidebarMode}" />

```

### C#

```csharp

// ViewModel
public SidebarMode? SelectedSidebarMode
{
	get => _selectedSidebarMode;
    set => SetField(ref _selectedSidebarMode, value);
}

public void OpenDocumentOutlineSidebar() {
	SelectedSidebarMode = SidebarMode.DocumentOutline;
}

```

Setting sidebarMode to `null` will hide the sidebar:

```csharp

// ViewModel
public void HideSidebar() {
	SelectedSidebarMode = null;
}

```
---

## Related pages

- [Bookmark navigation in our MAUI PDF viewer](/guides/maui/user-interface/sidebar/bookmarks.md)
- [Document outline in our MAUI PDF viewer](/guides/maui/user-interface/sidebar/document-outline.md)
- [Thumbnail preview in our MAUI PDF viewer](/guides/maui/user-interface/sidebar/thumbnail-preview.md)
- [Annotations list in our viewer sidebar](/guides/maui/user-interface/sidebar/annotations-list.md)

