Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Prism.Maui demo go back to root does not work on ViewD (tabbed page) #3295

Open
mathewgrabau opened this issue Dec 16, 2024 · 0 comments

Comments

@mathewgrabau
Copy link

Description

TabbedPage navigation does not seem to work as expected. It fails to go back to the root page/whatever page opened it.

Steps to Reproduce

  1. Clone this repository and open the Prism.Maui demo application
  2. Run (I used Android Emulator)
  3. Head to the TabbedPage, go to ViewD.
  4. Tap the "Go Back to Root"
  5. Observe failure/app not going anywhere and logged message

Platform with bug

WPF

Affected platforms

Android, I was not able test on other platforms

Did you find any workaround?

No, I did not. I'm planning on avoiding using the TabbedPage as I tested in my own app that the navigation stack seems to be replaced when using it. I observed this using the IPageAccessor injected in my TabbedPage view model.

Relevant log output

[DOTNET] ViewD - Can Navigate
[EGL_emulation] app_time_stats: avg=174.52ms min=2.92ms max=4067.36ms count=24
[DOTNET] Navigation: GoBack
[DOTNET] Result: Failed
[DOTNET] GoBackAsync can only be called when the calling Page has been navigated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant