Ejemplo n.º 1
0
 private void SearchResultList_OnPreviewKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Up && SearchResultList.SelectedIndex == 0)
     {
         e.Handled = true;
         SearchResultList.SelectedItem = null;
         SearchFlyoutTextBox.Focus();
     }
 }
Ejemplo n.º 2
0
 private void SearchFlyout_OnIsOpenChanged(object sender, RoutedEventArgs e)
 {
     if (SearchFlyout.IsOpen)
     {
         ShowOverlayPanel();
         SearchFlyoutTextBox.Text = string.Empty;
         SearchFlyoutTextBox.Focus();
     }
     else
     {
         SearchFlyoutTextBox.Text = string.Empty;
         HideOverlayPanel();
     }
 }