Replies: 1 comment 1 reply
-
|
It might not be exactly what you are looking for but it is possible to disable exceptions from being thrown in the converters with our options: |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
MAUI unfortunately doesn't correctly resolve the target type for bindings inside a multi-binding. This means that validated converters cannot be used in those inner bindings, even though they would be dead useful.
In my case it took me a long time to figure out why this didn't work:
It turned out that this is because the
Converteris aBaseConverterOneWay<object?, string>. This converter is validated, and throws when you attempt to use it in the multi-binding, because thetargetTypewill beobject.In this case that's annoying, because I know that the
targetTypeis not reallyobject.What is the best way to approach this?
targetType?For now I've wrapped my
Converterin a loosely typedFuncConverterto avoid this problem:Beta Was this translation helpful? Give feedback.
All reactions