-
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 throws ArgumentOutOfRangeException when live shaping set to true. #4339
Comments
Hello w-libs, 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 🙌 |
The AdvancedCollectionView operates just fine, when I run a scenario test like this in our UnitTests.UWP project, with everything the same except for emulating drag and drop (i.e., to simulate drag & drop, I just simply removed a Model item from one AdvancedCollectionView and added it to another AdvancedCollectionView). For this particular issue, there may be more Drag & Drop settings that need to be explored. |
This issue is actually not related to drag & drop. In test case I just used drag & drop to update a property of model. and the property "Year" is responsible for the filter. So the real problem in this case is with collection filtered items handling and it occurred in AddvancedCollectionView.cs at line 702 where it tries to compare items from source and view to get index for new item. WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI/AdvancedCollectionView/AdvancedCollectionView.cs Line 702 in 44ad0cc
|
Thanks @XAML-Knight, did you want to open a PR so we can have that added to the existing test suite? |
Describe the bug
AdvancedCollectionView throws ArgumentOutOfRangeException when live shaping set to true and try to change values of filter properties.
Steps to Reproduce
I've created a test app to reproduce this issue. The app contains two lists each of lists items source is bound to filtered advanced collection view source. To reproduce this issue drag & drop first item from list1 to list2 and then drag & drop fifth item from list 1 to list 2, you will notice the exception.
Test Project: https://github.com/w-libs/TestApp1
Expected behavior
Screenshots
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: