コード例 #1
0
        private void UpdateSelected(TrackObjectBase track)
        {
            var item = _countriesInformationList.FirstOrDefault(x => x.DisplayName == track.Country);

            if (item == null)
            {
                return;
            }
            CountriesListBox.SelectedItem = item;
            CountriesListBox.ScrollIntoView(item);
        }
コード例 #2
0
 private void OnLoaded(object sender, RoutedEventArgs e)
 {
     CountriesListBox.Focus();
 }