unoplatform/uno

`CollectionViewSource` is making first element in a `ListView` to be visually selected even with `SelectionMode=None`

Open

#11.604 geöffnet am 7. März 2023

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (837 Forks)batch import
area/listview 📃difficulty/starter 🚀good first issuehas-repro-branchkind/buglow-hanging-🍒project/items 🧾triage/potentially-fixed

Repository-Metriken

Stars
 (9.789 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 8h) (130 gemergte PRs in 30 T)

Beschreibung

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

agaga

Expected behavior

No visual selection

How to reproduce it (as minimally and precisely as possible)

  1. Scroll down so that first element is not visible
  2. Scroll up again to the first element
  3. 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

Contributor Guide