After clicking on the button of the first page, we call the following method through which we can navigate from one page to another page.
await Navigation.PushAsync(new MySecondPageXaml(), true);?
We have to use the "Navigation" page property which is available under the ContentPage class. This code is written in the coding page of the MainPage.XAML file.