Defining a platform-specific behavior in XAML for iOS throws a NullReferenceException on android/release #32976
Unanswered
DanTravison
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My goal is to add a Behavior to a layout control only on iOS in Xaml using the below syntax.
My expectation is the Xaml should be a NOP on other platforms but, instead, I see a NullReferenceException on android when building for release:
From the failure, it appears I need a stub Behavior for all other platforms.
FWIW: Querying CoPilot suggests the same Xaml I'm using above.
I'm using Maui 9.0.120.
Beta Was this translation helpful? Give feedback.
All reactions