CardView.MAUI
CardView.MAUI copied to clipboard
[Windows] CollectionView Scroll Position Resets Once On Window Focus When CarouselView ItemsSource Isn't Static
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
CollectionViewa 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.
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