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.
1 parent 4e3c95e commit a4103abCopy full SHA for a4103ab
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