private async void SearchButton_Click(object sender, RoutedEventArgs e) { if (SpreekwoordenPivot.SelectedItem != SeachPivot) { SpreekwoordenPivot.SelectedItem = SeachPivot; await Task.Delay(150); SearchTextbox.Focus(FocusState.Programmatic); } else { if (SearchTextbox.Text.Length > 0) { await Search(); } else { await Task.Delay(50); SearchTextbox.Focus(FocusState.Programmatic); } } }
private async void NavigationHelper_LoadState(object sender, LoadStateEventArgs e) { LoadingControl.SetLoadingStatus(false); SearchTextbox.Focus(Windows.UI.Xaml.FocusState.Pointer); }