Bug 61006 - ToolbarItem : Item isn't added to ToolbarItems
Summary: ToolbarItem : Item isn't added to ToolbarItems
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-12-06 17:41 UTC by yacinechergui.pro
Modified: 2017-12-06 18:08 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description yacinechergui.pro 2017-12-06 17:41:49 UTC
Hi,

I have actually a probleme with the iOS version of my app.

I have a page where i define a new item with this line in an override of OnAppearing() :

ToolbarItems.Add( new ToolbarItem() { Icon = "icon.png" });

My breakpoint confirm that the item is present inside the list ToolbarItems, but he is not display on screen.

I also have an override on OnDisappearing() where I clear ToolbarItems, but the list is indicated as empty.

On Android, this code works correctly.

I will try to add a sample soon.

Thanks.
Comment 1 Samantha Houts [MSFT] 2017-12-06 18:08:37 UTC
Thank you for your submission. At this time, all new reports should be made on the Xamarin.Forms GitHub Issues repository. Please resubmit this report at https://github.com/xamarin/Xamarin.Forms/issues. This Bugzilla report will now be closed and will not be monitored.