コード例 #1
0
 private void SearchFlyoutTextBox_OnKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Down)
     {
         if (Model.SearchResult.Any())
         {
             SearchResultList.SelectedIndex = 0;
             SearchResultList.Focus();
         }
     }
     else if (e.Key == Key.Escape)
     {
         Model.CloseSearchCommand.Execute(null);
         SearchFlyoutTextBox.Text = string.Empty;
     }
 }