✅ MAUI CollectionView Not Displaying
I am trying to get a data bound
CollectionView
to display in my MAUI app, so far only on Android, but when I navigate the content page hosting the view, only the header displays. I've searched a round a bit and can't seem to find anything that applies, so I'm throwing this out here so long.
Here is my whole content page:
I populate the viewmodel from the page's Loaded
event like this:
When I navigate to the page, my breakpoint in OnLoaded
gets hit, and the JSON properly deserializes into 200 DTO's that look OK. I don't see any error messages logged for binding or anything, but the Android log is so busy it's kind of hard to tell. I know the page and collection view are loading because the text in the Header
template displays, but that is all I can see on my device.1 Reply
It would seem this is Android only. I have just created a new MAUI app targeting Windows only and my collection view does populate there.
On explicitly binding a viewmodel to the CollectionView, in Android only, my view is now binding: