Replies: 1 comment
-
Updated above post, can someone help to clarify why "Visualstate" unchecked throws above exception when run on iOS ? NVM. Not it works, might just leave it here, so other people with similar issue can get a clue what to look for. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Upgraded the Microsoft.Maui.Controls and Compatibility nuget packages.

Was apparently running on old 8.0.0 Preview. Upgrading to either 8.0.3 or 8.0.6 i get this error when navigating in my application.
Anyone experience similiar, and what is causing this error, the error msg is not giving me many clues.
How do I proceed from here?
UPDATE
After alot of commenting in and out, I narrowed down my problem to be the VisualState x:Name="Unchecked" part that throws the exception on iOS?
What am I doing wrong?
I have made my own "SegmentController" component, which has below .xaml, and for it to work I just have to outcomment the "Unchecked" visual state. But then the UI is not working as expected because the "default" state is never set.
Something is messing with below code snip, outside the "FlexLayout" is a "ContentView", but apparently that's not gonna show, when put into the code tag.
`
`
Update again
Managed to make it work like expected by having the "VisualState x:Name="Unchecked" empty.
Like this:
Still don't know why it works on Android and throws exception on iOS.
Beta Was this translation helpful? Give feedback.
All reactions