Skip to content

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

@FrozDark

Description

@FrozDark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/listview 📃Categorizes an issue or PR as relevant to the ListView controldifficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomersgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugSomething isn't workinglow-hanging-🍒Categorizes an issue that might be a quick win with meaningful positive impact.project/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions