Rearrange tools in our viewer toolbar

Nutrient MAUI SDK comes with a customizable main toolbar that, by default, includes a number of predefined items. You can rearrange toolbar items using our API.

Nutrient is initialized with a default set of items that can be retrieved via MainToolbar.DefaultToolbarItems:

foreach(var item in MainToolbar.DefaultToolbarItems)
{
    Debug.WriteLine(item.Name);
}

To rearrange any item, get the current collection of toolbar items via MainToolbar.ToolbarItems, and change the order a toolbar item is displayed in the collection:

// Move the first item to the last position.
PSPDFKitController.MainToolbar.ToolbarItems.Move(0, PSPDFKitController.MainToolbar.ToolbarItems.Count - 1);