Nested ObservableCollection crashes when removing item #9868
Labels
area-Lists
ListView, GridView, ListBox, etc
bug
Something isn't working
closed-Fixed
Described behavior has been fixed.
team-Controls
Issue for the Controls team
Milestone
Describe the bug
When removing an item in a nested ObservableCollection, tha app crashes with System.ArgumentOutOfRangeException: 'This collection cannot work with indices larger than Int32.MaxValue - 1 (0x7FFFFFFF - 1). (Parameter 'index')'
I attached a small example that reproduces the bug
Example.zip
the example consists of 2 ItemsView, one represents the headers and the second represents the details of the selected header.
Steps to reproduce the bug
Recording.2024-08-01.mp4
Expected behavior
App does not crash when an item is removed
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000
Windows version
Windows 11 (22H2): Build 22621, Windows 10 (20H2): Build 19042
Additional context
No response
The text was updated successfully, but these errors were encountered: