I added the following..
Looks like it should work fine, but only works on iOS not Android.
to the toolbar.axml
Hi @Spinteractive ..
But this will set the same icon in all the pages. What if we want to set different icons on different pages? How to achieve that?
Did you manage to do that? I also need to display the icon on a single page ...
I've seen that you used GrialKit on this project: I use it too for my current project.
Is it possible to seen the result of your app?
In add, do you know if there is a way to display the icon on a single page on Android?
The strategy I used was to have the toolbar addition icon mentioned above hidden, and then on the "OnAppearing" of the Xamarin.Forms page, to call a method using a dependency service to make the icon visible in the toolbar.
If you are pushing a new page, before you push to a new page make sure you hide it.
(Note: the delay is there for back navigation animation)
protected async override void OnAppearing()
if (Device.RuntimePlatform == Device.Android)
public class NavigationIconVisibilityImplementation : INavigationIconVisibility
public void Visible(bool visible)
var activity = Forms.Context as AppCompatActivity;
var iconTitleImageView = (ImageView)activity.FindViewById(Resource.Id.toolbar_icontitle);
if (iconTitleImageView != null)
iconTitleImageView.Visibility = ViewStates.Visible;
iconTitleImageView.Visibility = ViewStates.Invisible;
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies