Xamarin.Forms.Core
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.TemplatedPage
Xamarin.Forms.ContentProperty("Content")
A that displays a single view.
This is a Page displaying a single View, often a container like a or .
The example below is taken from he App.cs file that is contained in the default "Hello, Forms!" app. It uses a to display a label, which is a typical, though basic, use of the class.
The FormsGallery sample, which can be found on the Sample Applications page, has a ContentPageDemoPage.cs file. This file contains a longer and more complicated example.
XAML for Xamarin.Forms supports the following property for the class:
Property
Value
-
Content
A list of objects that represent the visual content of the . This tag can be omitted, and the contents listed directly.
A ContentPage tag can be the root element of a XAML document.
Constructor
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Initializes a new ContentPage instance.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.View
Gets or sets the view that contains the content of the Page.
A subclass, or .
Field
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the property.
To be added.
Method
2.0.0.0
System.Void
Method that is called when the binding context changes.
To be added.