Xamarin Forms - Getting Rid of Back Button In Nav Bar

后端 未结 4 819
借酒劲吻你
借酒劲吻你 2020-12-14 15:43

Lets say the first page in the app is the login page and then it takes me to do the main menu screen, is there a way to get rid of the back button in the main menu navigatio

4条回答
  •  误落风尘
    2020-12-14 16:10

    You can avoid having the Back button if you replace the Navigation.PushAsync(page) to Navigation.PushModalAsync(page) in your login page's code. Post some code if this somehow doesn't apply

    This has to do with how navigation works in the underlying OS (at least in iOS that's the case) - there is a Navigation Controller which serves for pages to transition between each other and have a trace of previous screen so the user can go back.

提交回复
热议问题