Closed
Description
Description
When adding items to the source of CarouselView, the view remains unchanged. The source is ObservableCollection type. Linked IndicatorView does correctly add new indicators, but the corresponding views never appear and can't be swiped/scrolled to. The bug occurs only in Loop="False" mode. Tested on Windows and Android and only Windows seem affected. iOS wasn't tested.
Steps to Reproduce
- Load the repository and run the app.
- Click on "Add item".
- Observe the CarouselView views for changes.
Link to public reproduction project repository
https://github.com/Vroomer/MAUI-CarouselView-collection-changed-bug.git
Version with bug
8.0.0-rc.1.9171
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041.0
Did you find any workaround?
Seting the ObservableCollection to new instance instead of relying on CollectionChanged event works, but it's not ideal.
Relevant log output
No response