unoplatform/uno
Vedi su GitHub`CollectionViewSource` is making first element in a `ListView` to be visually selected even with `SelectionMode=None`
Open
#11.604 aperta il 7 mar 2023
area/listview 📃difficulty/starter 🚀good first issuehas-repro-branchkind/buglow-hanging-🍒project/items 🧾triage/potentially-fixed
Metriche repository
- Star
- (9789 star)
- Metriche merge PR
- (Merge medio 14g 8h) (130 PR mergiate in 30 g)
Descrizione
Current behavior
If first element gets out of Viewport and get in back then it visually selected. It's happening when using CollectionViewSource as ItemsSource. Tested on Android but it possible for other platforms that supports CollectionViewSource to have the same issue

Expected behavior
No visual selection
How to reproduce it (as minimally and precisely as possible)
- Scroll down so that first element is not visible
- Scroll up again to the first element
- It's selected but only visually
ListViewCollectionViewIssue.zip
Workaround
Not to use CollectionViewSource
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
Android, iOS, Mac Catalyst
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
It's likely for other platforms to have the same issue that supports CollectionViewSource