1

I cannot get to work my toolbar. I used xaml to define toolbarItems like this:

<ContentPage.ToolbarItems>
    <ToolbarItem Name="Refresh" Priority="0" Text="refresh" Order="Primary" Icon="refresh.png"/>
</ContentPage.ToolbarItems>

MainPage.xaml.cs looks like this:

public MainPage()
    {
        InitializeComponent();

    }

And in App.xaml.cs :

public App ()
    {

        MainPage = new NavigationPage(new MainPage());
    }

Why toolbar is not showing up?

  • Is the toolbar not being shown or the toolbaritem? If it's the toolbaritem, do you for sure have an image in your Android Resource directories with the name "refresh.png"? – TaylorD Jul 09 '18 at 16:00
  • It's the whole toolbar not showing up. The icon is present in the right folder btw – positive perspective Jul 09 '18 at 16:22

0 Answers0