CardView.MAUI icon indicating copy to clipboard operation
CardView.MAUI copied to clipboard

[Windows] CollectionView Scroll Position Resets Once On Window Focus When CarouselView ItemsSource Isn't Static

Open reid-kirkpatrick opened this issue 7 months ago • 1 comments

We're experiencing strange issue that I've been able to narrow down to the CardsView CarouselView.

  • Run the sample project on Windows
  • Scroll the CollectionView a bit
  • Focus a different Window (or the desktop)
  • Move focus back to the project's window
  • The CollectionView's scroll position is reset

If you set the ItemsSource to static content in Xaml instead of updating it from the backing class (or ViewModel) this doesn't happen.

reid-kirkpatrick avatar Sep 16 '25 16:09 reid-kirkpatrick

Interesting... hmm... I don't understand why it can happen. The view has been rebuilt. I'd like to know if MAUI allows storing scroll position so it can be restored later (as a workaround). Cuz honestly, it makes no sense why it might happen. Especially if issue does not occur on other platforms. This package is mostly crossplatform, so it's gonna be MAUI issue, I bet

AndreiMisiukevich avatar Sep 18 '25 13:09 AndreiMisiukevich