Issue
How do i change the back button of the navigation bar on xamarin form on both iOS and android? There was text color but can't find for back button
Solution
I know this is an old question but @adamm answer works ,to change the Backbutton color .
You also can do this from Recources ,@Jessie Zhang gave me the solution.
<Application.Resources>
<ResourceDictionary>
<!-- Colors -->
<Color x:Key="defaultBackbuttonColor">Red</Color>
<Color x:Key="Yellow">#ffd966</Color>
</ResourceDictionary>
</Application.Resources>
And in cs after InitializeComponent();
Color color = (Color)Application.Current.Resources["defaultBackbuttonColor"];
NavigationPage.SetIconColor(this, color);
Answered By - Bas H
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.