I created app with Xamarin Forms for ANdroid. I use Master Detail Page. It is my code:
public Master ()
{
Master = new MenuPage ();
root = new Root ();
var navigation = new NavigationPage (root);
Detail = navigation;
this.IsPresented = false;
}
It is my navigation(I need a history navigation):
await navigation.PushAsync (new MyPage());
I am get back button in Android (when go new page). I'v tried to hide the back button using it
NavigationPage.SetHasBackButton (this, false);
but the menu icon is not visible anyways. But the menu is accessible by swiping from the left edge, so the menu is there, but I need the icon.
How can I achieve this?
So you don't want a back button and want the menu item to be constantly visible? You just need to replace your detail page with your new page
Detail = new NavigationPage(new MyPage());
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.