Skip to content

Replacing the first item in a collection causes UniformGridLayout to reset all elements. #915

Closed
@jlaanstra

Description

When calling Vector->SetAt(0, ) on a collection bound to an ItemsRepeater with UniformGridLayout, all items get reloaded.

Steps to reproduce the bug
Download App6 from here https://github.com/jlaanstra/microsoft-ui-xaml/tree/user/jlaans/setatzero/test/App6

Expected behavior
The expected behavior would be that items don't get reset and the behavior is the same as SetAt(1).

Version Info
This repros on all OS version with the latest code from master. I can't test this with the 2.1 package because of other bugs.

Windows 10 version Saw the problem?
Insider Build (18922) Yes
Device form factor Saw the problem?
Desktop Yes

Metadata

Assignees

Labels

team-ControlsIssue for the Controls team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions