Open kant2002 opened 2 years ago
Probaly the problem is here:
One of possible solution is call ToList() before foreach
var copy = _initSelectedItems.ToList();
foreach (T i in copy)
{
Select(ItemsView.IndexOf(i));
}
Admittely I have this bug in NativeAOT context, but I cannot understand why this cannot happens in regular app.
I open Structured Log Viewer on WPF binlog and start quickly double-click and change selection in the tree view.
Simplified version of what's going on. TreeView (master) + ListView (details). When something selected in the TreeView, Items in the ListView updated using
I suspect that if I click too quickly issue happens. Maybe I miss some standard way how I check Avalonia ListBox that right now update happens, so I postpone setting items.
Stack Trace
It seems to be issue with