Skip to content Skip to sidebar Skip to footer

How To Use Native Platform Icons For Toolbaritems In Xamarin.forms (programmatically)?

What I have: I have a Xamarin.Forms app with a ToolBar (ActionBar on Android, Navigation Bar on iOS). Within the ToolBar I have a ToolBarItem to delete something. What I want: For

Solution 1:

Currently this looks to be almost impossible to override. Looking at the source for ToolbarRenderer you can see the UpdateItems method. This assumes that all of the toolbar items are of type ToolbarItem and it does not invoke a custom renderer for them, instead calling through directly to an extension method that converts ToolbarItem values into UIBarButtonItems containing a UIImage.


Post a Comment for "How To Use Native Platform Icons For Toolbaritems In Xamarin.forms (programmatically)?"