Listview bindingerror children of observablecollection in viewmodel #7165
-
Hi, I have a question, I'm playin around with .NET MAUI but I'm running into an issue which I do not understand. I have a XAML page for which I've set the BindingContext to be equal to a viewmodel. When attaching the observablecollection to the itemssource of the listview the items are properly displayed. Still I get a binding error where it seems it's looking for the properties in the viewmodel class and not the children of the observable collection. I'm lost, anybody any idea what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try moving the data type to the grid
Also, a suggestion, ditch the ListView and use a CollectionView, doing that alone might fix your issue |
Beta Was this translation helpful? Give feedback.
Try moving the data type to the grid
Also, a suggestion, ditch the ListView and use a CollectionView, doing that alone might fix your issue