Pages

The Page class is a visual element that occupies part or all of a screen and contains a single child. A Xamarin.Forms.Page represents an Activity in Android, a View Controller in iOS, or a Page in Windows Phone.

Pages

ContentPage

These page are created when a user clicks on our menu items.

They display a single view that often contains a StackLayout or ScrollView, which we will analyze shortly.

To define a content page, we need to use the following line of code:

using Xamarin.Forms; 

Then inherit from ContentPage:

public class MonkeyContractsPage : ContentPage { public MonkeyContractsPage (){} } public class MonkeyLeadsPage : ContentPage { public MonkeyLeadsPage ...

Get Xamarin 4 By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.