How will you navigate from one page to another?

Technology CommunityCategory: XamarinHow will you navigate from one page to another?
VietMX Staff asked 4 years ago

On some button click event of First Page, we can call the following method, which will navigate to the second page:

await Navigation.PushAsync (new MySecondPageXaml (), true);

We have to use the “Navigation” property which is available under ContentPage class (XAML Page’s code behind). So this navigation can be written in the Page’s code behind file.