Method AddButton
AddButton(string?, string?, SvgImage?, Action?)
Adds a button to the toolbar.
public SimpleToolBarView.IToolBarItem AddButton(string? text, string? toolTip = null, SvgImage? image = null, Action? onClick = null)
Parameters
textstringThe text to display on the button.
toolTipstringThe tooltip text to display when the mouse hovers over the button.
imageSvgImageThe image to display on the button.
onClickActionThe action to perform when the button is clicked.
Returns
- SimpleToolBarView.IToolBarItem
The created button item.