This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] When navigating back to a previous page (modal stack), OnAppearing() is not called #13527
Comments
gentledepp
added a commit
to Opti-Q/Xamarin.Forms
that referenced
this issue
Jan 25, 2021
…again by not storing the previous page in a variable, but managing all previous pages in a Stack<Page>
gentledepp
added a commit
to Opti-Q/Xamarin.Forms
that referenced
this issue
Jan 25, 2021
…again by not storing the previous page in a variable, but managing all previous pages in a Stack<Page>
2 tasks
gentledepp
changed the title
[Bug] OnAppearing on 1st level NavigationPage not called with nested modal navigation pages
[Bug] When navigating back to a previous page (modal stack), OnAppearing() is not called
Jan 25, 2021
gentledepp
added a commit
to Opti-Q/Xamarin.Forms
that referenced
this issue
Jan 25, 2021
…again by not storing the previous page in a variable, but managing all previous pages in a Stack<Page>
rmarinho
added
a/page
p/UWP
e/3 🕒
3
and removed
s/unverified
New report that has yet to be verified
labels
Jan 26, 2021
thanks for reporting this. i have just came to create this issue. |
bruzkovsky
pushed a commit
to Opti-Q/Xamarin.Forms
that referenced
this issue
May 28, 2021
…again by not storing the previous page in a variable, but managing all previous pages in a Stack<Page>
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Oh even better, it seems a PR is already opened for this by @gentledepp thank you so much for that! Will check that out shortly and see if I can merge it. |
jfversluis
pushed a commit
that referenced
this issue
Feb 8, 2022
…y not storing the previous page in a variable, but managing all previous pages in a Stack<Page> (#13528)
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
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
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
Basic Information
Version with issue: 4.8.x and 5.0.0
Last known good version: Anyhing before commit d103974 which broke everything (issue that was resoled: Modal Page with transparent background #8551)
Platform Target Frameworks:
Platform.cs
Android Support Library / AndroidX Version:
Affected Devices: all UWP devices
@jfversluis this issue occurs because of your fix for tranparent background of modals
The text was updated successfully, but these errors were encountered: