Ejemplo n.º 1
0
 private void AutoSuggestBox_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (e.PreviousSize == new Size(0, 0))
     {
         CoinAutoSuggestBox.Focus(FocusState.Programmatic);
     }
 }
Ejemplo n.º 2
0
 /// #######################################################################################
 ///  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);
     }
 }
Ejemplo n.º 3
0
        private void AutoSuggestBox_GotFocus(object sender, RoutedEventArgs e)
        {
            AutoSuggestBox box = sender as AutoSuggestBox;

            box.ItemsSource = CoinAutoSuggestBox.FilterCoins(box);
        }
Ejemplo n.º 4
0
 // #########################################################################################
 //  Search button
 private void NavView_Search_Tapped(object sender, TappedRoutedEventArgs e)
 {
     CoinAutoSuggestBox.Visibility = Visibility.Visible;
     CoinAutoSuggestBox.Focus(FocusState.Programmatic);
 }