コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 private void ListView_ItemClick(object sender, ItemClickEventArgs e)
 {
     ViewModel.TagSubmittedCommand.Execute(e.ClickedItem);
     TagQueryTextBox.Focus(Windows.UI.Xaml.FocusState.Programmatic);
 }