Table of Contents

Method AddDialogButton

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

AddDialogButton(string?, string?, SvgImage?, Action?)

Adds a button with the border in the normal state to the toolbar.

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

Parameters

text string

The text to display on the button.

toolTip string

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

image SvgImage

The image to display on the button.

onClick Action

The action to perform when the button is clicked.

Returns

SimpleToolBarView.IToolBarItem

The created button item.