Hi,
Welcome to Microsoft Q&A!
If you make your app in the background for a long time, it will definitely affect the navigation speed. Besides, it is recommended to use NavigationView
to switch pages than Hamburger menu, which is more advanced. As follows:
Xaml code:
<Page
..>
<Grid>
<NavigationView PaneDisplayMode="Left" ItemInvoked="NavigationView_ItemInvoked">
<NavigationView.MenuItems >
<NavigationViewItem Content="A" x:Name="A" />
<NavigationViewItem Content="B" x:Name="B" />
</NavigationView.MenuItems>
<Frame x:Name="ContentFrame"/>
</NavigationView>
</Grid>
</Page>
Code behind:
private void NavigationView_ItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args)
{
var item = args.InvokedItemContainer;
switch (item.Name)
{
case "A":
ContentFrame.Navigate(typeof(BlankPage1));
break;
case "B":
ContentFrame.Navigate(typeof(BlankPage2));
break;
}
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.