App.Current.PageDisappearing is not raised when a page is popped from the navigation stack. #14092
Labels
area-navigation
NavigationPage
platform/android 🤖
platform/iOS 🍎
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
App.Current.PageDisappearing is not raised when a page is popped from the navigation stack.
Steps to Reproduce
Current_PageDisappearing
andCurrent_PageAppearing
event handlers.MainPage
disappears andContentPage
appears.Link to public reproduction project repository
https://github.com/Keflon/MauiPopNavigationBug
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, I was not able test on other platforms
Affected platform versions
All current / latest.
Did you find any workaround?
Subscribe to the following events:
Do something like this:
The PageAppearing and PageDisappearing events are correctly raised.
The above is not tested, however it is a subset of working
CurrentApplication_DescendantAdded
andCurrentApplication_DescendantRemoved
implementations found here: https://github.com/Keflon/Maui.MvvmZero/blob/eada8a7059fadc248de13456b3be627373384bd8/Maui.MvvmZero/Implementation/PageServiceZero.csRelevant log output
The text was updated successfully, but these errors were encountered: