While navigating from one page to another, the previous page is pushed to the back stack to allow the user to go back. However, in some scenarios, it could be necessary to programmatically read the back stack in order to know what the previously visited pages are. What is more, you can manually modify the back stack, for instance, to go back two pages instead of one. In this recipe, you will learn how to do it.
As an example, you will analyze the scenario presented in the following image:
On the dashboard (
MainPage), the user clicks on the Update data button. It navigates the user to
UpdatePage with the progress bar informing ...