Interface IMainToolbarButton

Interface that represents a built-in button on the main toolbar.

Namespace: PSPDFKit.Api.Toolbar
Assembly: Api.dll
Syntax
public interface IMainToolbarButton : IMainToolbarItem, INotifyPropertyChanged

Properties

| Edit this page View Source

DropdownGroup

Gets or sets the name of the dropdown menu to which the toolbar item belongs. This can be used to group multiple toolbar items in the same dropdown menu. Only one of the buttons will be visible, with a dropdown arrow as a hint to the user about the dropdown menu. When the user clicks on the arrow, the rest of the buttons will be shown vertically piled. To decide which toolbar item is visible, the following criteria is used:

  • If a button is globally selected, it's rendered on top.
  • Otherwise, the last globally selected button of the list is rendered on top.
  • If none of these have been selected before, the first button on the dropdown group is rendered on top.
Declaration
string DropdownGroup { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Icon

Gets or sets the path of the icon for the toolbar item. Icon should be an SVG image stored as raw asset in the app, i.e. it should be present in the Resources/Raw/Assets folder in the project.

Declaration
string Icon { get; set; }
Property Value
Type Description
string
| Edit this page View Source

IsDisabled

Gets or sets if the item is disabled.

Declaration
bool? IsDisabled { get; set; }
Property Value
Type Description
bool?
| Edit this page View Source

Tooltip

Gets or sets the tool tip for the item.

Declaration
string Tooltip { get; set; }
Property Value
Type Description
string