-
Notifications
You must be signed in to change notification settings - Fork 711
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
Exception thrown when new item is added to ObservableCollection ItemsSource of TreeView #631
Comments
Thanks. @RBrid can you take a look? |
Thanks @jevansaks. @RBrid Let me know if there's anything else I can help with. |
Hi all, just checking in about this exception. Any updates? Thanks in advance! |
Hi all, checking in again. Is there a workaround I could do on my end? This bug is blocking one of my features in my application, and my customers are complaining |
* TreeView test page updates for repro'ing Issue #631. * Set ItemsSource on root node and remove duplicated code * Delete commented code * Extra fixes * Add tests * Skip test on lower os version
🎉This issue was addressed in #865, which has now been successfully released as Handy links: |
Describe the bug
System.Exception. The operation attempted to access data outside the valid range
error is thrown when adding item to ObservableCollection ItemsSource of TreeView. This error only occurs after the existing items in the TreeView have been reordered in a specific way.Steps to reproduce the bug
Steps to reproduce the behavior:
first
andsecond
.second
intofirst
Expected behavior
No exception thrown.
Screenshots

Version Info
NuGet package version:
Microsoft.Ui.Xaml 2.1.190405004.2 and 2.2.190425001-prerelease
Additional context
The text was updated successfully, but these errors were encountered: