From cdf8d1f8b4810c86a2eaa56ade3a66dedd8efff5 Mon Sep 17 00:00:00 2001 From: wojciech krysiak Date: Mon, 23 Jul 2018 21:09:40 +0200 Subject: [PATCH] Fix For incorrect handling of NotifyCollectionChangedAction.Reset from IReactiveDerivedList<> --- src/Avalonia.Controls/Primitives/SelectingItemsControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs b/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs index eb3fbde8f2..c8425a0f80 100644 --- a/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs +++ b/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs @@ -376,7 +376,7 @@ namespace Avalonia.Controls.Primitives break; case NotifyCollectionChangedAction.Reset: - SelectedIndex = IndexOf(e.NewItems, SelectedItem); + SelectedIndex = IndexOf(Items, SelectedItem); break; } }