Hopefully fixes #4654 once and for all.
@ -149,6 +149,12 @@ namespace Avalonia.Controls
UpdateSelectedContent();
}
protected override void OnContainersRecycled(ItemContainerEventArgs e)
{
base.OnContainersRecycled(e);
private void UpdateSelectedContent()
if (SelectedIndex == -1)