Hello,
Welcome to our Microsoft Q&A platform!
I can build the structure of this using Xamarin Shell but I need to get rid of the flyout menu and the tab bar. And sometimes I need to make sure there is no back button.
Do you want to achieve this for a page that is going to navigate to? Just use the navigation method and the new page will not contains the flyout menu or tabbar. Modal page doesn't show the back button.
private async void Button_Clicked(object sender, EventArgs e)
{
Navigation.PushModalAsync(new TestPage());
}
The specific problem is that when popping a modal page, no event occurs back in the parent page. Also, there appears to be no way to pop back to the root from a modal page.
Try to detect the OnAppearing method of the parent page, the method will be called when the page is shown on the screen. To back to the root page, you could reset the MainPage.
App.Current.MainPage = new AppShell();
Best Regards,
Jarvan Zhang
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.