Table of Contents

Method AddLabel

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

AddLabel(string?, string?, SvgImage?, Action?)

Adds a label to the toolbar.

public virtual SimpleToolBarView.IToolBarItem AddLabel(string? text, string? toolTip = null, SvgImage? image = null, Action? onClick = null)

Parameters

text string

The text to display on the label.

toolTip string

The tooltip text to display when the mouse hovers over the label.

image SvgImage

The image to display on the label.

onClick Action

The action to perform when the label is clicked.

Returns

SimpleToolBarView.IToolBarItem

The created label item.