Closed Code-DJ closed 1 year ago
Hi, you probably shouldn't use a template selector at all. Where are you going to use the template selector? for example, if using a CollectionView just provide a Render function that renders your UI based on the Item.
Migrating old Xamarin Forms code to reactor-maui that uses ListView with DataTemplateSelector. Will switch to CollectionView. Thanks!
Yes, you can still use the listview: https://github.com/adospace/reactorui-maui/blob/main/samples/MauiReactor.TestApp/Pages/ListViewExtendedTestPage.cs
Yes, you can still use the listview: https://github.com/adospace/reactorui-maui/blob/main/samples/MauiReactor.TestApp/Pages/ListViewExtendedTestPage.cs
It works. Thank you!
I was overthinking it. The code (with conditional different views per cell) was crashing when scrolling the ListView but that was due a bug in my code :)
Hi, is there a sample for DataTemplateSelector. I tried the github search but didn't find it.
I'm able to create my own class that inherits MauiControls.DataTemplateSelector but not sure where to set it.
Thank you!