You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Stop Carousel from resetting when ItemsSource is updated #2945
Updating a value in ItemsSource resets the carousel.
Expected behavior
The carousel doesn't reset to the beginning or has an option not to when a new item is added or a property in the underlying collection changes, i.e. ItemsUpdatingScrollMode="KeepItemsInView"
Minimal reproduction of the problem with instructions
Create a project
Add a carousel
Set the carousel's ItemsSource using MVVM and an ObservableCollection
Add an item to the collection
Environment
Nuget Package(s):
Package Version(s):
Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [X] Insider Build (build number: 18362.145)
App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [X] October 2018 Update (17763)
- [ ] Insider Build (xxxxx)
Device form factor:
- [X] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [ ] 2017 (version: )
- [ ] 2017 Preview (version: )
- [X] 2019 (version: 4.8.03752)
Activity
michael-hawker commentedon Jun 4, 2019
Thanks @gavinwilliams for the report. Based on some recent investigations by @JustinXinLiu, I think we want to rewrite the Carousel soon.
gavinwilliams commentedon Jun 4, 2019
No worries! We ended up simplifying what we made anyway.
michael-hawker commentedon Jun 5, 2019
Good to know @gavinwilliams, I'm going to leave this open for our tracking still.
Kyaa-dost commentedon Feb 18, 2021
@jamesmcroft is this something we can update with the changes we are making in #3507? is this an easy fix?
CC: @Sergio0694
jamesmcroft commentedon Feb 18, 2021
I can take a look and if so, fix it 👍
Kyaa-dost commentedon Feb 18, 2021
Thanks @jamesmcroft ❤️
1 remaining item
michael-hawker commentedon Feb 18, 2021
Thanks for taking a look @jamesmcroft. This was opened a while ago, so things may have changed in the platform or our code base.
@gavinwilliams are you still seeing this issue or can provide a pre-built minimal repro project showcasing the problem? Thanks!
Kyaa-dost commentedon Apr 2, 2021
@gavinwilliams can you please provide an update on this ⬆️
gavinwilliams commentedon Apr 6, 2021
Hey, unfortunately we ended up going in a different direction so can't verify whether this is still an issue anymore.