Parcourir la source

only require a single call to ScrollIntoView

Dan Walmsley il y a 6 ans
Parent
commit
d636c7647e
1 fichiers modifiés avec 0 ajouts et 5 suppressions
  1. 0 5
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

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

@@ -855,11 +855,6 @@ namespace Avalonia.Controls.Primitives
                     _selectedItem = ElementAt(Items, _selectedIndex);
                     RaisePropertyChanged(SelectedIndexProperty, -1, _selectedIndex, BindingPriority.LocalValue);
                     RaisePropertyChanged(SelectedItemProperty, null, _selectedItem, BindingPriority.LocalValue);
-
-                    if (AutoScrollToSelectedItem)
-                    {
-                        ScrollIntoView(_selectedItem);
-                    }
                 }
             }