Skip to content

ToolbarButton

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The one toolbar button: IconLabel (icon + text) in a Button.toolbar, or Button.primary when ToolbarButton.IsPrimary. The icon is a geometry or a theme icon key (“restart” resolves the application resource Icon.restart; unknown keys show the plugin icon). Used by every Devices page toolbar entry, built-in or plugin.

public class ToolbarButton : Button

Inherits Button

Set them in XAML (<ui:ToolbarButton Name="..." />) or bind them.

Name Type Description
Icon Geometry? The icon; or set IconKey.
IconKey string? Theme icon key, used when ToolbarButton.Icon is not set.
IsIconOnly bool Compact: only the icon (theme class iconOnly), ToolbarButton.Text becomes the tooltip unless one is set. For entries that would not fit the toolbar at the minimum window width.
IsPrimary bool The accent button of the toolbar (one per toolbar: Scan).
Text string? The button text; the tooltip when the button shows only its icon.
IconLabel Label { get; }

The icon + text content (for tests).

static Geometry? ResolveIcon(string? key)

The theme geometry Icon.<key>, else Icon.plugin, else null.