-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Style with NamedSize #10006
Comments
If you change |
[0:] SetValue: Can not convert Xamarin.Forms.OnIdiom`1[System.String] to type 'System.Double' |
Looks like something similar was reported in #4319 and fixed, although I only see reference to the markup extension. Tried it with the markup extension and that works, so as a workaround you should be able to do this:
Reproduction showing the issue on iOS and Android is attached |
@acaliaro Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you! |
Oops, wrong issue. Reopened :) |
@samhouts I am waiting an answer... I have done a repo but not answers till now... what should I do? |
@acaliaro We verified the bug, and now it's on the backlog. Was the workaround in #10006 (comment) helpful at all? Thanks! |
I will try the workaround |
This workaround also works on a similar manner with OnPlatform: The tag OnPlatform didn't work in the normal syntax, like this:
|
Description
I have some Styles in my Stylex.xaml under Xamarin Forms project. When I use this style, I have this string in"output" VisualStudio tab:
[0:] SetValue: Can not convert Xamarin.Forms.OnIdiom`1[Xamarin.Forms.NamedSize] to type 'System.Double'
Steps to Reproduce
Create a style with TargetType="Label" and
Expected Behavior
No message in "output" tab
Actual Behavior
Message in "output" tab
Basic Information
Versione 16.5.0
The text was updated successfully, but these errors were encountered: