Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CarouselView ignores CollectionChanged events of source #17727

Open
Vroomer opened this issue Sep 28, 2023 · 2 comments
Open

CarouselView ignores CollectionChanged events of source #17727

Vroomer opened this issue Sep 28, 2023 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Vroomer
Copy link

Vroomer commented Sep 28, 2023

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

@Vroomer Vroomer added the t/bug Something isn't working label Sep 28, 2023
@jsuarezruiz jsuarezruiz added platform/windows 🪟 area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Sep 29, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Oct 2, 2023
@ghost
Copy link

ghost commented Oct 2, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Oct 9, 2023
@XamlTest
Copy link

XamlTest commented Oct 9, 2023

Verified this on Visual Studio Enterprise 17.8.0 Preview 2.0(8.0.0-rc.1.9171). Repro on Windows 11, not repro on Android 13.0-API33 and iOS 16.4 with below Project:
17727.zip

Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants