-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdvancedCollectionView ArgumentOutOfRangeException when remove the last element #4263
Comments
Hello Dimigergo, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
Think this is a duplicate of #2913, thanks for providing a minimal repro project @Dimigergo. Stack:
get: WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI/AdvancedCollectionView/AdvancedCollectionView.cs Lines 212 to 216 in 760ab9f
removeAt: Lines 952 to 958 in 760ab9f
OnVectorChanged: Lines 55 to 66 in 760ab9f
WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI/AdvancedCollectionView/AdvancedCollectionView.cs Lines 627 to 639 in 760ab9f
WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI/AdvancedCollectionView/AdvancedCollectionView.cs Lines 741 to 751 in 760ab9f
So, I think the issue here is If we swap the |
Is this issue still open? I getting the same issue with Nuget package CommunityToolkit.WinUI.UI.Controls Version: 7.1.2 |
Describe the bug
When I use an AdvancedCollectionView and remove the last element from the bound collection the following exception thrown: 'System.ArgumentOutOfRangeException' in System.Private.CoreLib.dll Index was out of range. Must be non - negative and less than the size of the collection.
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
The last element should be deleted without error.
Environment
NuGet Package(s):
Package Version(s):
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio version:
The text was updated successfully, but these errors were encountered: