void OnSuggestionTapped(object sender, ItemTappedEventArgs e) { Searching.Focus(); var item = e.Item as string; string[] words = Searching.Text.Split(' '); Searching.Text = ""; for (int i = 0; i < words.Length - 1; i++) { Searching.Text += words[i] + ' '; } Searching.Text += item; Suggestions.ItemsSource = null; }
protected override void OnAppearing() { base.OnAppearing(); Searching.Focus(); }