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.
I have this code in my app.xaml:
<OnIdiom x:TypeArguments="x:Double" Phone="30" Tablet="40" />
This worked totally fine in XF 2.3.4 but with 2.3.5 or later I get
Can not set the content of x:Double as it doesn't have a ContentPropertyAttribute
I do use XamlC and get this as a compile error.
I rewrote it as
<OnIdiom x:Key="IconColumnWidth" x:TypeArguments="x:Double" Phone="30" Tablet="40" />
This seems to work also with the newest versions.
I'm trying to set Grid.HeightRequest value and I receive this compile error:
"No property, bindable property, or event found for 'HeightRequest', or mismatching type between value and property."
I get this exception also with other cases, also with OnPlatform in Xaml.
It's thrown with x:Double, x:Boolean and ImageSource passing strings. It worked before
Errata: issue in my case is only for x:Double and x:Boolean types. ImageSource was an other issue in my code.
@Michael: this used to work, but no longer does, just like it is for OnPlatform. Your workaround is the correct one, sorry for the inconvenience.
@Mirko: I can't reproduce your issue, and even added a unit-test for it (that's passing) https://github.com/xamarin/Xamarin.Forms/commit/110a1355900ffec5977fcb6684ee9ba7311ec2dd
*** Bug 60283 has been marked as a duplicate of this bug. ***
@Michael how exactly did you solved?
I tried the following codes in my project but no lucky
<OnIdiom x:Key="WidthRequest" x:TypeArguments="x:Double" Phone="60" Tablet="200" Desktop="200"/>
As I wrote in Comment 2, I removed the <x:Double> element. You already use the notation which works for me.
You seem to have the same problem as Mirko. Maybe you file a separate bug with your issue. Please also add a repro project as Stephane could not reproduce it.
I am also experiencing a similar issue. Filed a bug report here: https://bugzilla.xamarin.com/show_bug.cgi?id=60452 that maybe can be considered a duplicate of this one
Any solution I could find on this bug report didn't solve my issue.
*** Bug 60452 has been marked as a duplicate of this bug. ***
*** Bug 60757 has been marked as a duplicate of this bug. ***
I suggest changing the status to something else and not RESOLVED ANSWERED since I am experiencing a similar issue and none of the replies on this bug report helped me solve it.
please test again against 2.5 or our nightly. We have a unit test for that https://github.com/xamarin/Xamarin.Forms/commit/110a1355900ffec5977fcb6684ee9ba7311ec2dd and it passes
I tested with Xamarin.Forms 220.127.116.11635 , results seem to be the same - the issue is still there for me. I would also like to point out that I'm using dot NET Standard 2.0 and not PCL.
@harel123: please reopen your original ticket as soon as you have a repro project you can attach, as requested by https://bugzilla.xamarin.com/show_bug.cgi?id=60452#c2
Just to chime in. I get the same error after moving from PCL to .NET Standard 2
I use Forms 18.104.22.168635
For me it's:
However, if I remove that, then it's another setting and so on.
Unable to build.
Ian, try to just remove the 'x:TypeArguments="x:Double"'. It worked for me.
Forget about it, it just changed the error message... this is getting really frustrating :/