Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[UWP CollectionView] Changing ItemsSource automatically selects first item #7194

@jcmanke

Description

@jcmanke

Description

When the ItemsSource of a CollectionView is changed, the first item in the new ItemsSource will automatically be selected. This only happens on UWP, not Android or iOS.

Steps to Reproduce

  1. Run attached sample app.
  2. Type into the SearchBar to dynamically filter the CollectionView ItemsSource.
  3. See that the first item in the filtered list is automatically selected on UWP only.

Expected Behavior

Selection is cleared when ItemsSource changes.

Actual Behavior

First item is selected.

Basic Information

  • Version with issue: Tested on 4.1.0, 4.2.0-pre3
  • Last known good version: Unknown
  • IDE: Visual Studio Enterprise 2019, version 16.2.0
  • Platform Target Frameworks:
    • UWP: 16299

Reproduction Link

UWPCollectionViewAutoSelect.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions