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