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

.NET MAUI ListPickerButton ToolbarItem

Add a listpicker toolbar item using the ListPickerButtonToolbarItem.

The exposed properties are:

  • ItemsSource(IList)—Specifies a collection of items to display in the list.
  • ItemTemplate(DataTemplate)—Specifies the DataTemplate used to generate content for the list items.
  • SelectedItem(object)—Specifies the currently selected item in the list.
  • Text(string)—Defines the text(target type Label) in the toolbar item. You can display an image next to the text.
  • ImageSource(Microsoft.Maui.Controls.ImageSource)—Specifies the source of the image to display in the toolbar item.

Events

The exposed events are:

  • SelectionChanged—Raised when the current selection has changed.
  • Clicked&mdash:Raised when the toolbar item is clicked.

Commands

The available commands are:

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

Styling

Style the ListPickerButton ToolbarItem using the following properties:

  • ItemStyle(Style)—Specifies the style applied to the list items. The target type of this style is Telerik.Maui.Controls.ToolbarListItemView.
  • Style(Style)—Specifies the style applied to the list items. The target type of this style is Telerik.Maui.Controls.ListPickerButtonToolbarItemView. The available properties are:
    • ItemTemplate(DataTemplate)—Specifies the DataTemplate used to generate content for the list items.
    • SelectedItem(object)—Specifies the currently selected item in the list
    • ItemStyle(Style)—Specifies the style applied to the list items. The target type of this style is Telerik.Maui.Controls.ToolbarListItemView.
    • ItemsSource(IList)—Specifies a collection of items to display in the list.
    • All properties properties applicable in DropDownButtonToolbarItemView, ButtonToolbarItemView, ToolbarItemView and LabelToolbarItemView.

See Also

In this article
Not finding the help you need?