Esempio n. 1
0
        private void MyAutoSuggestBox_TextChangedAsync(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
        {
            if (String.IsNullOrEmpty(sender.Text))
            {
                goBack();
            }

            SuggestionsManager.GetAllCities(Cities);
            Suggestions = Cities.Where(p => p.StartsWith(sender.Text)).Select(p => p.ToString()).ToList();
            MyAutoSuggestBox.ItemsSource = Suggestions;
        }
Esempio n. 2
0
 private void goBack()
 {
     SuggestionsManager.GetAllCities(Cities);
     CategoryTextBlock.Text = "All Cities";
 }