You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
When you have multiple pages in a modal stack and you navigate back, the OnAppearing() callback of the previous page that you return to will only be called for the most inner level.
E.g.: You have 3 modal pages: 1, 2 and 3. You start with page 1, then you navigate to 2 and from 2 to 3 (modally) => your stack will be 1/2/3;
Now, navigating back from 3 to 2 will call 2.OnAppearing(), but navigating back from 2 to 1 will not call1.OnAppearing() wich breaks a lot of things!
This is because when you navigate to the next modal leve, UAP Platform.cs line 348 overwrites any _modalBackgroundPage even if there is already one!
Steps to Reproduce
Create a sample that has a navigation page, pushes a nother navigation page as modal and then a 2nd one
Navigating back one step to the 1st modal navigation page still triggers its "OnAppearing" callback
However, navigating back to the root does not trigger "OnAppearing" anymore
Expected Behavior
Whenever you navigate back to the previous page, its "OnAppearing" callback should be called
Actual Behavior
It works if you only have one level of nesting. However, as soon as you have 2 modal pages, the outer ones "OnAppearing" is not called anymore