We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11f8b64 + 6058bcb commit 0fc1c0fCopy full SHA for 0fc1c0f
CommunityToolkit.App.Shared/Pages/Shell.xaml.cs
@@ -27,6 +27,8 @@ public Shell()
27
BackdropMaterial.SetApplyToRootOrPageBackground(this, true);
28
#endif
29
Current = this;
30
+
31
+ Loaded += Shell_Loaded;
32
}
33
34
/// <summary>
@@ -36,9 +38,13 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
36
38
{
37
39
samplePages = e.Parameter as IEnumerable<ToolkitFrontMatter>;
40
SetupNavigationMenu();
- base.OnNavigatedTo(e);
41
+ base.OnNavigatedTo(e);
42
43
44
+ private void Shell_Loaded(object sender, RoutedEventArgs e)
45
+ {
46
+ searchBox.Focus(FocusState.Programmatic);
47
+ }
48
49
private void SetupNavigationMenu()
50
0 commit comments