简体   繁体   English

导航到Xamarin表单中的Master details页面

[英]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. 尝试关闭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. 虽然,我认为如果要导航到MasterDetailPage ,则可能应该用它替换整个应用程序主页,以控制MasterDetailPage中的其余导航。

Application.Current.MainPage = new MasterPage_Jobseeker();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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