Skip to content

Changing TabbedPage.CurrentPage from modal page no longer fires OnNavigatedTo on PopModalAsync #35756

Description

@josh-kieser

Description

OnNavigatedTo does not fire after PopModalAsync back to TabbedPage if we've updated the TabbedPage from a modal page.

We did not test but this may also happen if your root page was NavigationPage with 2 pages on the stack, push modal, push 2 pages on the stack, pop the root stack back to first page and then pop modal.

This didn't happen in 10.0.60 and is now occuring in 10.0.70. We believe this PR may be the cause of this issue:

#23902

Steps to Reproduce

  1. Clone repro project
  2. Launch project. Number on Main Page is the number of times OnNavigatedTo has fired. (Debugger.Break() has been added to observe whenever it has been fired also)
  3. Change Tab page to Main Page 2
  4. Open Modal
  5. Click "Change Current Tab Page". This changes the TabbedPage back to MainPage. - OnNavigatedTo fires
  6. Click "Close Page". OnNavigatedTo fires.
  7. Number bound on MainPage should now be 3.
  8. Update Microsoft.Maui.Controls to 10.0.70
  9. Repeat steps 1 - 6. OnNavigatedTo no longer fires when clicking "Close Page" and the number on MainPage is now only 2.

Expected Outcome: OnNavigatedTo should fire 3 times instead of 2
Actual Outcome: OnNavigatedTo fires twice, not firing when popping modal back to this page.

Link to public reproduction project repository

https://github.com/josh-kieser/maui-issue-TabbedPageOnNavigatedTo

Version with bug

10.0.70

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

10.0.60

Affected platforms

iOS, Android, I was not able test on other platforms

Affected platform versions

Tested on iOS 26.3 & Android 16

Did you find any workaround?

No current work around but unable to update.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions