private void TagsListView_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Down) { TagQueryTextBox.Focus(Windows.UI.Xaml.FocusState.Programmatic); } }
private void SuggestionListView_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { var listView = sender as ListView; if (e.Key == Windows.System.VirtualKey.Up && listView.SelectedIndex <= 0) { TagQueryTextBox.Focus(Windows.UI.Xaml.FocusState.Programmatic); } }
private void ListView_ItemClick(object sender, ItemClickEventArgs e) { ViewModel.TagSubmittedCommand.Execute(e.ClickedItem); TagQueryTextBox.Focus(Windows.UI.Xaml.FocusState.Programmatic); }