Shell child screen navigability MAUI

Kevin Anchapaxi 80 Reputation points
2025-02-17T22:53:28.6133333+00:00

¿What is the best way to navigate between a stack of screens whose root is a Shell type screen?

¿It is recommended to use ContentPage.Navigation.PushAsync() in applications that implement Shell?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,935 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,581 Reputation points Microsoft Vendor
    2025-02-18T01:38:17.82+00:00

    Hello,

    According to the navigation document of Maui Shell, the most recommended way to navigate in the sub-pages of Shell is to register a route and use the GotoAsync method to achieve navigation.

    For specific operations, you can refer to the following document for details.

    Navigation is performed by invoking the GoToAsync method, from the Shell class. When navigation is about to be performed, the Navigating event is fired, and the Navigated event is fired when navigation completes.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.