using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
var sl = new StackLayout{
Children = {
new Label{ Text="l1" },
new Label{ Text="l2" }
}
};
foreach(var l in sl.Children){
Console.WriteLine(l);
public class StackLayout{
public IList<object> Children{get;}
= new List<object>();
public class Label{
public string Text{get;set;}
public override string ToString(){
return Text;