MultiPage<T>.Children 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
IList<T>

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

Implements

Remarks

The Xamarin.Forms.Multipage`1.Children collection of a Xamarin.Forms.Multipage`1 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 Xamarin.Forms.Multipage`1.


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

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

Applies to