How do I create a navigation page in .NET MAUI?

Create a content page named DetailsPage in the .NET MAUI project.Change the following line the in App.xaml.cs file: To Add the Button control in the MainPage.xaml for navigation to the DetailsPage when clicking the button. XAML Add the Button_Clicked method in the Main.xaml.cs file. C#