New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI ToggleButton ToolbarItem

Add a toggle button in the Toolbar control using the ToggleButtonToolbarItem.

The exposed properties are:

  • IsSelected(bool)—Indicating whether the button is selected.

Events

The exposed events are:

  • IsSelectedChanged—Raised when the IsSelected property has changed.
  • Clicked—Raised when the button is clicked.

Commands

The available commands are:

  • Command(ICommand)—Specifies the command to execute when the button is clicked.
  • CommandParameter(object)—Specifies the parameter of the command, which is executed when the button is clicked.

Styling

ToggleButtonToolbarItem has a Style property with target type ToggleButtonToolbarItemView. The property exposed in the ToggleButtonToolbarItemView is the IsSelected property.

All other properties that can be applied through style are the properties applicable for ButtonToolbarItemView, ToolbarItemView and LabelToolbarItemView

See Also

In this article