1
votes

I am new to Xamarin.forms, I am unable to provide a background image to the navigation tool bar. I am able to set the Title and add a right button on the toolbar using ToolbarItems.Add(...). My code snippet is as below

public class App : Application

{

public App ()

{

MainPage = new NavigationPage(new Home());

}

}

public class Home : ContentPage { public Home ()

{

this.Title = "MyHeader";

ToolbarItems.Add(new ToolbarItem{...});

}

}

Please suggest the ways to provide the background image on the nav tool bar.

Thanks

1

1 Answers

1
votes

Using NavigationPage you can set only:

  • BarBackgroundColor
  • BarTextColor

for the navigation toolbar. You should probably write your CustomRenderer to achieve your goal.