-
I have a collection view on dynamic data that is the result of an API call. This data is therefore deserialised to generic Currently this means that loading that that has a value for Is there some way I can solve this? I was thinking along these ways:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've noticed that this is caused because we use the square brackets binding notation. If I bind on That can solve most of our use cases. We'll have to see what to do about optional arrays, but those are far more rare than optional properties. |
Beta Was this translation helpful? Give feedback.
-
I've thought of this workaround. I'll bind to the root |
Beta Was this translation helpful? Give feedback.
I've thought of this workaround. I'll bind to the root
BindingContext
of the data row, with a converter that gets our custom binding string as a converter parameter. Then I can resolve these dynamic bindings using custom logic. It's probably less performant, but since this is a bit more dynamic than the average use case for bindings, it's to be expected.