The ItemTemplate of the CollectionView does not work when it is changed at runtime, I have configured a VisualState in the CollectionView with a bool and depending on whether it is true or false it should show an ItemTemplate or another but it does not work, I have also tried to use a DataTrigger instead of a VisualState but it doesn't work either.
Clone the attached repository and run the app on Windows or Android and press the "Change ItemTemplate" button which should change the ItemTemplate of the CollectionView but it's not working.
Version with bug
Release Candidate 2
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows, I was not able test on other platforms
Description
The ItemTemplate of the CollectionView does not work when it is changed at runtime, I have configured a VisualState in the CollectionView with a bool and depending on whether it is true or false it should show an ItemTemplate or another but it does not work, I have also tried to use a DataTrigger instead of a VisualState but it doesn't work either.
Repository: https://github.com/nacompllo/MauiCollectionView/tree/test_CollectionViewItemTemplateIssue
Steps to Reproduce
Clone the attached repository and run the app on Windows or Android and press the "Change ItemTemplate" button which should change the ItemTemplate of the CollectionView but it's not working.
Version with bug
Release Candidate 2
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows, I was not able test on other platforms
Affected platform versions
Android 10, Windows 11
Did you find any workaround?
No response
Relevant log output
No response