Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
147 lines (145 sloc) 7.07 KB
<Type Name="ContentPage" FullName="Xamarin.Forms.ContentPage">
<TypeSignature Language="C#" Value="public class ContentPage : Xamarin.Forms.TemplatedPage" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ContentPage extends Xamarin.Forms.TemplatedPage" />
<TypeSignature Language="DocId" Value="T:Xamarin.Forms.ContentPage" />
<TypeSignature Language="F#" Value="type ContentPage = class&#xA; inherit TemplatedPage" />
<AssemblyInfo>
<AssemblyName>Xamarin.Forms.Core</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Xamarin.Forms.TemplatedPage</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>Xamarin.Forms.ContentProperty("Content")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>A <see cref="T:Xamarin.Forms.Page" /> that displays a single view.</summary>
<remarks>
<para>This is a Page displaying a single View, often a container like a <see cref="T:Xamarin.Forms.StackLayout" /> or <see cref="T:Xamarin.Forms.ScrollView" />.</para>
<example>
<para>The example below is taken from he App.cs file that is contained in the default "Hello, Forms!" app. It uses a <see cref="T:Xamarin.Forms.ContentPage" /> to display a label, which is a typical, though basic, use of the <see cref="T:Xamarin.Forms.ContentPage" /> class.</para>
<code lang="csharp lang-csharp"><![CDATA[
using System;
using Xamarin.Forms;
namespace ContentPageExample
{
public class App
{
public static Page GetMainPage ()
{
return new ContentPage {
Content = new Label {
Text = "Hello, Forms!",
VerticalOptions = LayoutOptions.CenterAndExpand,
HorizontalOptions = LayoutOptions.CenterAndExpand,
},
};
}
}
}
]]></code>
<para>The FormsGallery sample, which can be found on the <format type="text/html"><a href="https://developer.xamarin.com/samples/tag/Xamarin.Forms/" target="_blank">Sample Applications</a></format> page, has a ContentPageDemoPage.cs file. This file contains a longer and more complicated example.</para>
</example>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ContentPage ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Xamarin.Forms.ContentPage.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.Forms.Core</AssemblyName>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new ContentPage instance.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Content">
<MemberSignature Language="C#" Value="public Xamarin.Forms.View Content { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Xamarin.Forms.View Content" />
<MemberSignature Language="DocId" Value="P:Xamarin.Forms.ContentPage.Content" />
<MemberSignature Language="F#" Value="member this.Content : Xamarin.Forms.View with get, set" Usage="Xamarin.Forms.ContentPage.Content" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.Forms.Core</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Xamarin.Forms.View</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the view that contains the content of the Page.</summary>
<value>A <see cref="T:Xamarin.Forms.View" /> subclass, or <see langword="null" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ContentProperty">
<MemberSignature Language="C#" Value="public static readonly Xamarin.Forms.BindableProperty ContentProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class Xamarin.Forms.BindableProperty ContentProperty" />
<MemberSignature Language="DocId" Value="F:Xamarin.Forms.ContentPage.ContentProperty" />
<MemberSignature Language="F#" Value=" staticval mutable ContentProperty : Xamarin.Forms.BindableProperty" Usage="Xamarin.Forms.ContentPage.ContentProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.Forms.Core</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Xamarin.Forms.BindableProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Backing store for the <see cref="P:Xamarin.Forms.ContentPage.Content" /> property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnBindingContextChanged">
<MemberSignature Language="C#" Value="protected override void OnBindingContextChanged ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnBindingContextChanged() cil managed" />
<MemberSignature Language="DocId" Value="M:Xamarin.Forms.ContentPage.OnBindingContextChanged" />
<MemberSignature Language="F#" Value="override this.OnBindingContextChanged : unit -&gt; unit" Usage="contentPage.OnBindingContextChanged " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.Forms.Core</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Method that is called when the binding context changes.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.