Browse Source

only require a single call to ScrollIntoView

pull/2953/head
Dan Walmsley 7 years ago
parent
commit
d636c7647e
  1. 5
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

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);
}
}
}

Loading…
Cancel
Save