Skip to content

CarouselView ignores CollectionChanged events of source #17727

Closed
@Vroomer

Description

@Vroomer

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

  1. Load the repository and run the app.
  2. Click on "Add item".
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versions/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions