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, flat (Fluent command button, decision 2026-10-25: the icon in the accent colour, the text neutral; icon only: the text colour). 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
Derived DateRangeButton, ExportButton, FilterButton

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 main command of the toolbar: class main only, never filled (toolbars have no filled buttons, decision 2026-10-25).
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.