Best way to Close Shell Navigation

Jassim Al Rahma 1,616 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

Developer technologies | .NET | .NET MAUI
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    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

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.