Reputation: 33
How do I change the background color and text of ToolbarItems? The default color is black and I would like to change how to do it?
Click here to see the example image
<ContentPage.ToolbarItems>
<ToolbarItem Order="Secondary" Icon="morevert.png" Text="Atualizar" Command="{Binding Atualizar}"/>
<ToolbarItem Order="Secondary" Text="Ajuda" Command="{Binding Ajuda}"/>
<ToolbarItem Order="Secondary" Text="Sair" Command="{Binding Sair}"/>
</ContentPage.ToolbarItems>
Upvotes: 2
Views: 2558
Reputation: 5954
Try it in your NavigationPage:
BarBackgroundColor = Color.Black;
BarTextColor = Color.White;
EDITED
I am sorry. You can apply a style to your Android app within the android project. For an easy way to generate your style take a look at the Android Style Generator. You must create a style and use it in your app. How use - read this article.
Upvotes: 1