Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 445

Answer by Liyun Zhang - MSFT for MAUI navigate the Flyout Items from codebehind

$
0
0

In your case, all of the three pages are root page. So you can call the following code to change the root page of the Navigation stack.

[RelayCommand]public void GoToPageTwo(){    //this opens a new instance of PageTwo    //and has a "Back" arrow on the top left    Shell.Current.GoToAsync("//PageTwo");}[RelayCommand]public void GoToPageThree(){    Shell.Current.GoToAsync("//PageThree");}

In addition, the Shell.Current.GoToAsync("///PageThree"); is also work. For more information, you can check the official document about Relative routes.


Viewing all articles
Browse latest Browse all 445

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>