Quellcode durchsuchen

Fix For incorrect handling of NotifyCollectionChangedAction.Reset from IReactiveDerivedList<>

wojciech krysiak vor 7 Jahren
Ursprung
Commit
cdf8d1f8b4
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

+ 1 - 1
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;
             }
         }