dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.82k stars 1.66k forks source link

OnIdiom with Binding doesn't work in Release mode #22877

Open davidortinau opened 3 weeks ago

davidortinau commented 3 weeks ago

Description

I'm using code like this, and it works in Debug but not Release.

<Label Text="{OnIdiom {Binding BoundString}, Phone=Grade}" />

ReleaseBindings.zip

Release build:

Screenshot 2024-06-05 at 10 48 39 PM

Debug build:

Screenshot 2024-06-05 at 10 47 05 PM

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.0-preview.4.10690 8.0.40

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 3 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.