Using Binding with OnIdiom throw this exception on release mode only: InitializeComponent () System.InvalidCastException: Unable to cast object of type 'Microsoft.Maui.Controls.Binding' to type 'System.Boolean'. #24500
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
fixed-in-8.0.90
fixed-in-9.0.0-rc.2.24503.2
platform/android 🤖
platform/windows 🪟
s/needs-attention
Issue has more information and needs another look
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
IsVisible="{OnIdiom Default={Binding EditingMode,Converter={StaticResource InvertedBoolConverter}},Phone=False}"
Throw this exception on release mode Only:
InitializeComponent () System.InvalidCastException: Unable to cast object of type 'Microsoft.Maui.Controls.Binding' to type 'System.Boolean'.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.70 SR7
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
WINDOWS 10.0.19045, Android 12
Did you find any workaround?
Remove OnIdiom
Relevant log output
No response
The text was updated successfully, but these errors were encountered: