Xamarin XAML Language Tutorial basic page contentpage occupied area

Source: Internet
Author: User

Xamarin XAML Language Tutorial basic page contentpage occupied area

Basic pages and basic views are the most common when developing applications. This chapter covers basic page CONTENTPAG, basic view Contentview, control template ControlTemplate, template page templatedpage, and template view Templatedview.

Basic Page Contentpage

In Xamarin.Forms, each app's interface is a page. There are many kinds of pages. Among them, the most common, most basic page is the Contentpage page, also known as the content page. When a developer creates a project, the default is to have a contentpage page. This section will take you to content on content pages, including the footprint of content pages, additions to content pages, derivation relationships, and properties.

Note: The default Contentpage page is actually a subclass of Contentpage derivation.

1. Occupied area

Contentpage pages occupy the area of the screen in different platforms. In Android, the page does not occupy the status bar at the top of the screen, and if there is a button at the bottom of the Android screen it will not occupy, except that it is all occupied, as shown in 14.1. The entire screen is occupied in iOS, including the top status bar, shown in 14.2. In Windows Phone, the page does not occupy the status bar at the top of the screen, except that it is all occupied, as shown in 14.3.

Figure 14.1 Android Run effect Diagram 14.2 iOS run effect Diagram 14.3 Windows phone run effect

Note: In figure 14.1~14.3, in order to make the Contentpage page more image, we set the cyan background for the Contentpage page.

Xamarin XAML Language Tutorial basic page contentpage occupied area

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.