diff --git a/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs b/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs index e69e2ac..2da7650 100644 --- a/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs +++ b/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs @@ -27,6 +27,8 @@ public Shell() BackdropMaterial.SetApplyToRootOrPageBackground(this, true); #endif Current = this; + + Loaded += Shell_Loaded; } /// @@ -36,9 +38,13 @@ protected override void OnNavigatedTo(NavigationEventArgs e) { samplePages = e.Parameter as IEnumerable; SetupNavigationMenu(); - base.OnNavigatedTo(e); + base.OnNavigatedTo(e); } + private void Shell_Loaded(object sender, RoutedEventArgs e) + { + searchBox.Focus(FocusState.Programmatic); + } private void SetupNavigationMenu() {