问题
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?
回答1:
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
.
来源:https://stackoverflow.com/questions/48969241/xamarin-forms-what-is-the-difference-content-page-and-content-view