diff --git a/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs b/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs
index f6c2d00d37..6a17fefc2c 100644
--- a/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs
+++ b/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
+using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using Avalonia.Controls.Generators;
@@ -274,27 +275,14 @@ namespace Avalonia.Controls.Primitives
return null;
}
- ///
- protected override void ItemsChanged(AvaloniaPropertyChangedEventArgs e)
+ protected override void ItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
- base.ItemsChanged(e);
-
- //if (_updateCount == 0)
- //{
- // var newIndex = -1;
+ base.ItemsCollectionChanged(sender, e);
- // if (SelectedIndex != -1)
- // {
- // newIndex = IndexOf((IEnumerable)e.NewValue, SelectedItem);
- // }
-
- // if (AlwaysSelected && Items != null && Items.Cast