Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CommunityToolkit.App.Shared/Pages/Shell.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public Shell()
BackdropMaterial.SetApplyToRootOrPageBackground(this, true);
#endif
Current = this;

Loaded += Shell_Loaded;
}

/// <summary>
Expand All @@ -36,9 +38,13 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
{
samplePages = e.Parameter as IEnumerable<ToolkitFrontMatter>;
SetupNavigationMenu();
base.OnNavigatedTo(e);
base.OnNavigatedTo(e);
}

private void Shell_Loaded(object sender, RoutedEventArgs e)
{
searchBox.Focus(FocusState.Programmatic);
}

private void SetupNavigationMenu()
{
Expand Down
Loading