0
votes

I want to replace the default '3 dots'(that displays the secondary items) to text or icon on the title bar of a page in xamarin forms. Is this possible and how can I achieve this?

Thank you for the responses in advance.

1

1 Answers

-1
votes

Making sure to add the method that will handle the Activated event in C#.

In XAML, before the opening tag of your ContentPage.Content, add the code below.

From dots to Text

<ContentPage.ToolbarItems>
    <ToolbarItem Text="Hi" Clicked="Clicked_1"/>
    <ToolbarItem Text="Hello" Clicked="Clicked_2"/>
</ContentPage.ToolbarItems>

From dots to Icon

<ContentPage.ToolbarItems>
    <ToolbarItem Icon="icon.png" Activated="Clicked_3" Text="Icon" Order="Primary"/>
</ContentPage.ToolbarItems>