0
votes

I want to use template 10 to develop my app, but I dont know how can I hide the back button once I pass from one page to another, like for example passing from a login page to my main page. With template 10 it always show the back button, I know how to prevent from going back, but still I can see the damn back button on the shell, I dont wish to see it. How could I hide it?

1
You can do something like SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Hidden; refer this for more about back event, docs.microsoft.com/en-us/windows/uwp/layout/… - Anil
Yeah I've done that, but it pollutes my code-behind, I wish to maintain everything within the viewmodel, with Template 10. - Enrique A. Pinelo Novelo

1 Answers

1
votes

ClearHistory is located on the HamburgerButtonInfo as a DP and if that isn't enough you can thru the NavigationService call ClearHistory as well which looks like public void ClearHistory() => FrameFacade.BackStack.Clear(); in the source so you know what it actually calls...