Is it possible to insert a ToolBar on two lines?

161 Views Asked by At

I wanted to ask if it was possible to insert in Xamarin a ToolBar on two or more lines and, if possible, also how to change the background color. Thanks

1

There are 1 best solutions below

0
On

You can customize the toolbar using the <NavigationPage.TitleView>

Here is the Microsoft Documentation

And a blogpost where it mentions a multi-line toolbar

And you can modify the color of the toolbar using the BarBackgroundColor (you can do it from your App.xaml.cs

MainPage = new NavigationPage(new FlagDetailsPage()) { BarBackgroundColor=Color.Black };