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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.