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
-
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
Converter
is aBaseConverterOneWay<object?, string>
. This converter is validated, and throws when you attempt to use it in the multi-binding, because thetargetType
will beobject
.In this case that's annoying, because I know that the
targetType
is not reallyobject
.What is the best way to approach this?
targetType
?For now I've wrapped my
Converter
in a loosely typedFuncConverter
to avoid this problem:Beta Was this translation helpful? Give feedback.
All reactions