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 24123 [details]
We have converting the Xamarin Forms View to Native view in renderer file. I have attached the simple sample for your reference.
This issue has not occurred in the previous release. We have noticed this issue has occurred in latest Xamarin Forms Version 220.127.116.116pre6.
Run the attached sample for reproduce the reported issue.
Thank you for the reproduction. This appears to break as of at least the first 2.3.5-pre. I will mark this as confirmed for now until further investigation.
Do you have any news on this issue? I am looking for a solution on this also. I tried latest 18.104.22.1686-pre1 but problem still occurs
Nothing at the moment. I will make sure this is on our list of known regressions for 2.4 thus far, however.
I m not sure this is supported since you basically using reflection in our properties, what's the use case for this?
Ok simple fix, update to 2.4.0-pre2, and change also your reflection BindingFlags to look for Public properties, BindingFlags.Public.
_platform = typeof(Element).GetProperty("Platform", BindingFlags.Public | BindingFlags.Instance));
_isplatformenabledprop = typeof(VisualElement).GetProperty("IsPlatformEnabled", BindingFlags.Public | BindingFlags.Instance));
Created attachment 24543 [details]
We have modified the sample as per the comments.
We have updated our Xamarin.Forms to 2.4.0-pre-2 and also modified the sample as given in the above comments. But the issue still exist. Please check the attached sample2.zip and provide us with the solution.
The reported workaround is not working on our side. We have prepared the below sample with your work around solution. Please check and update us any other workaround solutions. Waiting for your reply.
Paul, I've tested your new sample with 2.4.0-pre2 and the newly built 2.4.0-pre3 and both work without a crash once I updated all the nuget references to 2.4.0.x.
Note that at least one of your projects in the sample is still referencing 22.214.171.1246-pre6 which may explain why you still see and error.
If this is not the case or you have more details to add, please reopen the issue for us to consider.
Thanks, David Ortinau.
It's working correctly on our side.