Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xamarin forms what is the difference content page and content view

What is the difference between:

  • content page
  • contentpage.content
  • content view ?

What I'm trying to do is to have some content that overlays the main content when an item is being tapped. I was thinking I could have all the content on in the same XMAL file and just make it visible or not depending on the button state. Or would it be better to split them into separate files?

like image 644
Ben Volz Avatar asked Feb 25 '18 01:02

Ben Volz


People also ask

What is content page in Xamarin forms?

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 . A FlyoutPage manages two panes of information. Set the Flyout property to a page generally showing a list or menu.

What are the different kinds of pages present in the Xamarin forms?

We have five types: ContentPage, NavigationPage, TabbedPage, CarouselPage and MasterDetailPage.

What are views in Xamarin forms?

Views to indicate activityProgressBar uses an animation to show that the application is progressing through a lengthy activity. Set the Progress property to values between 0 and 1 to indicate the progress. If the activity's progress is not known, use an ActivityIndicator instead.


1 Answers

A ContentPage is a Page that is intended to fill the display. A ContentView is a View that can be contained within a Page or within another View. Both have a Content property that contains child content - either a single View, or more commonly a Layout containing multiple Views.

like image 194
Jason Avatar answered Sep 20 '22 14:09

Jason