You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the vertical scrollbar of the ListBox or use the keyboard to navigate through items
Expected behavior
The UI shall not freeze.
Desktop (please complete the following information):
OS: Windows 10 version 20H2 (OS build 10.0.19042.804)
Avalonia version: observed in 0.10.6.17, but still reproducible in 0.10.14
Additional context
It's not about the UI thread waiting for something to complete, but instead some kind of infinite loop where the hot path is the following:
Hi! I haven't yet checked the source nor tried to reproduce it. Will try to do it later this week.
But I want to say, that there is no "virtualization" when you use controls source. I.e. when all your items are controls and not models. There is nothing to recycle this way, all items are materialized already, so virtualization is impossible.
In general, recommendation to use data bindings so recycling can work properly. Or if there is small number of items and it's just easier to define all items in XAML, then you need to disable virtualization, which is broken, when it's not possible to recycle items.
Describe the bug
Scrolling through the items of a ListBox with virtualization on freezes the UI.
To Reproduce
Check the following simple repro app:
https://github.com/tvass83/AvaloniaIssues/tree/main/VirtualizationGoesAwry
OR
Expected behavior
The UI shall not freeze.
Desktop (please complete the following information):
Additional context
It's not about the UI thread waiting for something to complete, but instead some kind of infinite loop where the hot path is the following:
The text was updated successfully, but these errors were encountered: