top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the different kinds of Pages in Xamarin.Forms?

+2 votes
524 views
What are the different kinds of Pages in Xamarin.Forms?
posted Oct 10, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Xamarin.Forms Pages represent cross-platform mobile application screens.

All the page types that are described below derive from the Xamarin.Forms Page class. These visual elements occupy all or most of the screen. A Page object represents a ViewController in iOS and a Page in the Universal Windows Platform. On Android, each page takes up the screen like an Activity, but Xamarin.Forms pages are not Activity objects.

Pages

Xamarin.Forms supports the following page types:

1.ContentPage
ContentPage is the simplest and most common type of page. Set the Content property to a single View object, which is most often a Layout such as StackLayout, Grid, or ScrollView.

2.MasterDetailPage
A MasterDetailPage manages two panes of information. Set the Master property to a page generally showing a list or menu. Set the Detail property to a page showing a selected item from the master page. The IsPresented property governs whether the master or detail page is visible.

3.NavigationPage
The NavigationPage manages navigation among other pages using a stack-based architecture. When using page navigation in your application, an instance of the home page should be passed to the constructor of a NavigationPage object.

4.TabbedPage
TabbedPage derives from the abstract MultiPage class and allows navigation among child pages using tabs. Set the Children property to a collection of pages, or set the ItemsSource property to a collection of data objects and the ItemTemplate property to a DataTemplate describing how each object is to be visually represented.

5.CarouselPage
CarouselPage derives from the abstract MultiPage class and allows navigation among child pages through finger swiping. Set the Children property to a collection of ContentPage objects, or set the ItemsSource property to a collection of data objects and the ItemTemplate property to a DataTemplate describing how each object is to be visually represented.

6.TemplatedPage
TemplatedPage displays full-screen content with a control template, and is the base class for ContentPage.

@ifour Techno lab Pvt. Ltd.

answer Mar 20, 2019 by Rushabh Verma R.
...