Best way to Close Shell Navigation

Jassim Al Rahma 1,516 Reputation points
2022-08-18T17:00:23.257+00:00

Hi,

What is the best way to close the Shell Navigation Page and Modal? is it only:

Shell.Current.GoToAsync("..");  

or other are other ways?

Thanks,
Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,837 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 34,841 Reputation points Microsoft Vendor
    2022-08-19T06:40:10.707+00:00

    Hello,

    The answer is yes.

    Closing Shell Navigation Modal Page is to pop up current page in fact, the best way is using Shell.Current.GoToAsync(".."); to do it.

    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