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 for Bug 56731 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I created a custom iOS ViewRenderer, and exported it as normal. However, even without overriding any functions, I noticed the background colors of some of my controls was transparent. I overrode SetBackgroundColor, and noticed that even after call base.SetBackgroundColor, this.BackgroundColor was still rbga 0000. A simple temporary fix that worked for our project:
protected override void SetBackgroundColor(Color color)
var uiColor = newUIColor((float)color.R, (float)color.G, (float)color.B, (float)color.A);
BackgroundColor = uiColor;
Sidenote, but perhaps relevant: Maybe I'm understanding custom renderers wrong, but when setting a breakpoint in this method, should this.Control be null every time? Other renderers use this.Control to do the job, but it's null in this one.
Hi, can you upload a reproduction to better illustrate your issue and what controls you're using? Thanks.
It wouldn't let me upload a sample project, so here's a link to an upload: https://drive.google.com/file/d/0B7Z1N6KsnLHoMDZoVzQtTXItaDA/view?usp=sharing
Check out the xml comments and #warnings
This appears to be because the view in particular you're having issues with is a ViewCell which has its own renderer, and something in between is causing the loss of color being applied. I'll set this as a confirmed bug for now just until it can get further investigation. Your reproduction was probably too large, so a clean and deletion of the packages and bin/obj folders would likely resolve that issue.