MultiPage<T>.Children MultiPage<T>.Children Property


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


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



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