From the course: Xamarin.Forms Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Navigate between pages

Navigate between pages - Xamarin Tutorial

From the course: Xamarin.Forms Essential Training

Start my 1-month free trial

Navigate between pages

[Instructor] - Now that we've got a couple of pages we can look at navigating between those pages so we go into the App.xaml.cs here remember we had our main page set to this new MainPage we've got to change that slightly to add a new NavigationPage that wraps the MainPage so we're still going to start on the main page but it's going to be wrapped in this navigation page provided by Xamarin forms and that's going to give us the functionality of navigation forward and back through a navigation stack, so we'll save that come to the MainPage.xaml file I want to replace this label, so we'll get rid of that I'm going to put a button in here and for the text we'll say View Product Details and then for the Clicked we'll add a click event here say Handle Clicked and we'll complete that and I'll save it, we'll go to the code behind and add that Handle Clicked event handler so do a public void Handle Clicked and we'll take an object as…

Contents