-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Nested ItemsRepeater causes virtualization bugs #9427
Comments
Changing the outer ItemsRepeater to |
I also ran into wrong order issues in my project but I did not study the problem in more detail. In addition to wrong order I also observed items duplication. |
We have been seeing the exact same issue on porting one of our WPF app to Avalonia. This has unfortunately put that on hold for now. I understand the issue goes upstream to WinUI so it may be a difficult one to resolve. |
Strange: it would be helpful if someone could try the same repro in WinUI to see if the problem occurs upstream or if it's a problem in the Avalonia implementation, if anyone has time. |
Issue does not occur in WinUI (tested in Windows app sdk 1.2) |
Could you test AvaloniaUI/Avalonia.Controls.ItemsRepeater#16 in WinUI? I have no Windows-based desktop right now |
Also may be worth looking at ModernWPF's port of ItemsRepeater, which I believe is a direct port of WinUI's, see if they have same issues - https://github.com/Kinnara/ModernWpf |
Looks like #9677 might be addressing the issue. Excited for the next release! |
I’ve tested it with the masters RC and I cannot replicate the issue anymore. Lmk if anyone else sees the same results |
@christosk92 seems like we can close this then :) |
Describe the bug
Whenever virtualization is enabled on an ItemsRepeater, it causes unexpected bugs such as out of order data collections.
To Reproduce
Expected behavior
Items appear in order as they were added.
Screenshots
Screen.Recording.2022-11-12.at.14.06.07.mov
Desktop (please complete the following information):
macOS Monterey 12.6
Avalonia version 0.10.18
Additional context
Add any other context about the problem here.
XAML code:
The text was updated successfully, but these errors were encountered: