Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 7908 [details]
When setting the Icon property of a ToolBarItem in XAML, the native UIBarButtonItem.Title property is null on iOS.
**Steps to Reproduce:**
1. Run the attached project in Visual Studio.
2. Deploy to an iOS 7.1 iPad Simulator.
3. Press the Navigate to Second View button.
The app crashes in CustomPageRenderer.cs Line 37 because "info" is null. info is null because the Title property was null for the ToolbarItem that has the Icon property set in SecondView.Xaml.
**Build Date & Platform:**
I have checked this issue and able to reproduce it. I have followed the steps to reproduce it:
1. Open given sample in Visual Studio
2. Set break point in line 37 in "CustomPageRenderer.cs" file
3. Build an deploy the application on iOS 7.1 iPad Simulator.
4. Application will launch successfully
5. Click on Navigate to Second View button.
6. Break point will hit, and application crash
7. Observe the value of "info" that is null
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Xamarin 220.127.116.11 (2db5ccd228887372e207e112bc3b5f1b16b24293)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android
UIBarButtonItem expects an image or a title in its constructor. Currently, we do not set the title on the button as it serves no functional purpose if you provide an image. However, we will consider changing this and it will be marked as an enhancement.
Thank you for taking the time to submit this feature request. We like this idea and have added it to our internal feature tracking system.
Xamarin Forms Team