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.
When attempting to add a UISegmentedControl to the design surface of an iOS storyboard, the designer.cs file had a field of type UIView instead of UISegmentedControl. I was able to fix it by changing the type of the field in the designer.cs file to UISegmentedControl but the file has a stern warning that this is not advised. Unfortunately, I cannot reproduce this error. I tried to add other controls and more segmented controls to the same project and they all worked fine. Starting a new project and adding segmented controls worked fine.
I haven't been able to reproduce this particular issue. I think what you experienced was a rare race condition which can happen while the type system is being built for the very first time. We are tracking this internally already. We also have another feature being tracked which is to ensure that when an Outlet changes type we rewrite it correctly. Once this feature has been implemented we will be able to fix any outlets which have been incorrectly generated like this.
If you can reproduce this issue more reliably please re-open this bug and let us know how to do so. Thanks for reporting this anyway!