-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Improper Insert Behavior on ListView for Windows #22393
Copy link
Copy link
Closed
Labels
area-controls-listviewListView and TableViewListView and TableViewfixed-in-8.0.70fixed-in-9.0.0-preview.6.24327.7platform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-controls-listviewListView and TableViewListView and TableViewfixed-in-8.0.70fixed-in-9.0.0-preview.6.24327.7platform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Description
On Windows, with a ListView tied to an ObservableCollection, if an item is inserted in between two items, sometimes you end up with the display showing two items with the inserted value instead of two separate items. For example if you add "Test 1" then "Test 3", and then insert "Test 2" between the two items. The ListView will show:
Test 1
Test 2
Test 2
instead of what it should show:
Test 1
Test 2
Test 3
The ObservableCollection does have the items in the proper order, but the display is wrong.
Steps to Reproduce
(See the repro project)
Link to public reproduction project repository
https://github.com/john-hollander/Maui-Tests/tree/master/ListViewInsertTest
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
windows10.0.19041.0
Did you find any workaround?
It works properly with a CollectionView, but the CollectionView doesn't support the RowHeight property that I need.
Relevant log output
No response