Hello, your help please.
I have a problem with the Navigation of Xamarin Forms. In my application I use Navigation for navigate from my ViewModels. I created my navigation stack using Navigation.PushModalAsync (new PageA (), false);
My problem comes in the following case, where I created the following navigation PageA -> PageB -> PageC -> PageD -> PageE. In the PageE I do Navigation.ModalStack.Count for Navigation.PopModalAsync (false); when the for is finished I verify that the stack of the
Navigation is empty and in effect is empty with count = 0. Then I execute the following line of code: Navigation.PushModalAsync (new PageB (), false); With what I would expect it to go to page B, however, it loads page D.
I do not understand why it shows me page D when I had removed all the pages from the stack and I am putting on the stack the page B.
Excuse my English.e
Thank you very much for the help