MultiPage<T>.Children Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
}
};