xamarin forms what is the difference content page and content view

落花浮王杯 提交于 2020-06-22 13:24:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!