Browse Source

Handle move in SelectingItemsControl.

Fixes #2522.
Steven Kirk 6 years ago
parent
commit
ba7cec18e3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

+ 1 - 0
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@@ -380,6 +380,7 @@ namespace Avalonia.Controls.Primitives
                     }
                     break;
 
+                case NotifyCollectionChangedAction.Move:
                 case NotifyCollectionChangedAction.Reset:
                     SelectedIndex = IndexOf(Items, SelectedItem);
                     break;