Xamarin.Plugins icon indicating copy to clipboard operation
Xamarin.Plugins copied to clipboard

TabbedPage and ToolbarItems not working together

Open Molfir opened this issue 8 years ago • 2 comments

When i use a tabbed page the IconToolbarItems are not showing any icons. After reading on another issue, i changed my page to IconTabbedPage and i encountered another problem. While the IconToolbarItems are working just fine the childern Pages have to have an icon or an exception is thrown in line 44 of the IconTabbedPageRenderer on Android. I am building a tabbed page without icons just text on the tabs, while using IconToolbarItems.

Molfir avatar Dec 27 '16 11:12 Molfir

What is the error message? I'm facing the same problem and I get this message: System.NullReferenceException: Object reference not set to an instance of an object.

BenDevelopment avatar Feb 17 '17 10:02 BenDevelopment

The problem is in this line: https://github.com/jsmarcus/Xamarin.Plugins/blob/a2de0a937c661d32dd113e2a5128a9abac9af951/Iconize/FormsPlugin.Iconize.Droid/IconTabbedPageRenderer.cs#L44

BenDevelopment avatar Feb 17 '17 10:02 BenDevelopment