3

I'm trying to find a way to put a close ToolBarItem on the left of my ToolBar. To be more explicit, here are some screenshots:

For Android: enter image description here

For iOS: enter image description here

The problem is not about to display icon istead of text, I'm using Iconize for that. The problem is about to put ToolBarItem to the left for both iOS and Android.

I've found this renderer for iOS (not tried yet): https://gist.github.com/alexlau811/f1fff9e726333e6b4a2f

Ben
  • 3,972
  • 8
  • 43
  • 82
  • Did you figure out the solution for Android? – WillyMilimo Mar 06 '19 at 10:57
  • I added a simple toolbar icon displayed on the right (this is the default place for toolbar item) and added a click event to close the page. I did not find a way to add close button on the to left. – Ben Mar 07 '19 at 09:24
  • Alright thanks. Guess I'll have to go with custom navigation renderer. – WillyMilimo Mar 07 '19 at 11:34

1 Answers1

1

You need to write Custom renderer to implement left side tool bar items. Detailed implementation for this is explained here https://timeyoutake.it/2016/01/02/creating-a-left-toolbaritem-in-xamarin-forms/

Renjith
  • 682
  • 4
  • 19