共用方式為


MultiPage<T>.Children Property

Definition

Gets an IList<Page> of child elements of the MultiPage.

public System.Collections.Generic.IList<T> Children { get; }
member this.Children : System.Collections.Generic.IList<'T (requires 'T :> Xamarin.Forms.Page)>

Property Value

System.Collections.Generic.IList<T>

A IList<Page>. The default is an empty list.

Implements

Remarks

The Children collection of a MultiPage<T> contains all the children added through the public add/remove interface. Internal children will not be exposed through this collection.

The following shows the creation of a TabbedPage, which descends from MultiPage<T>.

Page pageOne = CreatePageOne ();
Page pageTwo = CreatePageTwo ();

var tabbedPage = new TabbedPage {
Title = "My App",
Children = {
  pageOne,
  pageTwo
}
};

Applies to