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

.NET MAUI NavigationButton ToolbarItem

Add a navigation button in the Toolbar control using the NavigationButtonToolbarItem. The NavigationButtonToolbarItem inherits from ButtonToolbarItem. All properties applicable for button toolbar item can be used in the navigation button toolbar item.

  • Items(IList<ToolbarItem>)—Read-only collection of Telerik.Maui.Controls.ToolbarItems to navigate to in the toolbar.

  • 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.
<telerik:NavigationButtonToolbarItem Text="Search">
    <telerik:NavigationButtonToolbarItem.ImageSource>
        <FontImageSource Glyph="{x:Static telerik:TelerikFont.IconSearch}"
                         FontFamily="{x:Static telerik:TelerikFont.Name}"
                         Size="16" />
    </telerik:NavigationButtonToolbarItem.ImageSource>
    <telerik:ToolbarItem>
        <telerik:ToolbarItem.ControlTemplate>
            <ControlTemplate>
                <Entry Placeholder="Search" VerticalTextAlignment="Center"/>
            </ControlTemplate>
        </telerik:ToolbarItem.ControlTemplate>
    </telerik:ToolbarItem>
</telerik:NavigationButtonToolbarItem>

Events

The exposed events are:

  • Clicked&mdash:Raised when the button is clicked.

Commands

The available commands are:

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

Styling

Use the Styele property with target type Telerik.Maui.Controls.NavigationButtonToolbarItemView. Use all properties available for the ButtonToolbarItemView, LabelToolbarItemView and ToolbarItemView in the NavigationButtonToolbarItemView.

See Also

In this article
Not finding the help you need?