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?