Hello,
Welcome to our Microsoft Q&A platform!
You cannot keep the Menu when changing page, but you can use menu
and Back arrow
's way when changing page.
like following screenshot.
After click the Button
If you want to achieve this way, you should register your page in the shell background code. E.g, I register ItemsPage page.
public AppShell()
{
InitializeComponent();
Routing.RegisterRoute(nameof(ItemDetailPage), typeof(ItemDetailPage));
Routing.RegisterRoute(nameof(NewItemPage), typeof(NewItemPage));
Routing.RegisterRoute(nameof(ItemsPage), typeof(ItemsPage));
}
When I click the Button, I will navigate to the ItemsPage.
await Shell.Current.GoToAsync("ItemsPage")
For more details, you can check this article.
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/shell/navigation
Best Regards,
Leon Lu
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.