Programmatically return

In my application, the user goes from page A to page B.

Is there a way to programmatically simulate a click on the back button? I have a button on page B, and when the user clicks it, I want to go to page A. I donโ€™t want to use the NavigationService and go to page A, I want to go back to page A, as if the user had pressed the equipment return button. Is there any way to do this?

+4
source share
1 answer

Although you say you don't want to use it, the NavigationService.GoBack method is the way to go:

 if (this.NavigationService.CanGoBack) { this.NavigationService.GoBack(); } 
+22
source

All Articles