private void Aircrafts_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (DataContext is IAircraftListViewModel vm && vm.SelectedAircraft != null) { Aircrafts.ScrollIntoView(vm.SelectedAircraft); } }