private void AutoSuggestBox_SizeChanged(object sender, SizeChangedEventArgs e) { if (e.PreviousSize == new Size(0, 0)) { CoinAutoSuggestBox.Focus(FocusState.Programmatic); } }
/// ####################################################################################### /// AutoSuggest-Box private void AutoSuggestBox_TextChanged(AutoSuggestBox box, AutoSuggestBoxTextChangedEventArgs args) { // Only get results when it was a user typing, // otherwise assume the value got filled in by TextMemberPath // or the handler for SuggestionChosen. if (args.Reason == AutoSuggestionBoxTextChangeReason.UserInput) { box.ItemsSource = CoinAutoSuggestBox.FilterCoins(box); } }
private void AutoSuggestBox_GotFocus(object sender, RoutedEventArgs e) { AutoSuggestBox box = sender as AutoSuggestBox; box.ItemsSource = CoinAutoSuggestBox.FilterCoins(box); }
// ######################################################################################### // Search button private void NavView_Search_Tapped(object sender, TappedRoutedEventArgs e) { CoinAutoSuggestBox.Visibility = Visibility.Visible; CoinAutoSuggestBox.Focus(FocusState.Programmatic); }