private void UpdateSelected(TrackObjectBase track) { var item = _countriesInformationList.FirstOrDefault(x => x.DisplayName == track.Country); if (item == null) { return; } CountriesListBox.SelectedItem = item; CountriesListBox.ScrollIntoView(item); }
private void OnLoaded(object sender, RoutedEventArgs e) { CountriesListBox.Focus(); }