简体   繁体   中英

Navigate to a Master details Page in Xamarin forms

Hello guys I am navigating to a master details page with this code:-

await Navigation.PushAsync(new MasterPage_Jobseeker());

But it is showing the back button instead the hamburger menu.

What should I do now?

Thank you!

Try turning the back button off on the NavigationPage.

var masterPage = new MasterPage_Jobseeker();
NavigationPage.SetHasBackButton(masterPage, false);
await Navigation.PushAsync(masterPage);

Although, I think if you're navigating to a MasterDetailPage you probably should be replacing the entire application main page with it to control the rest of your navigation from your MasterDetailPage.

Application.Current.MainPage = new MasterPage_Jobseeker();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM