/// <summary> /// Initializes a new instance of the <see cref="T:Eto.Forms.StackLayout"/> class with the specified items. /// </summary> /// <param name="items">Initial items to add to the StackLayout.</param> public StackLayout(params StackLayoutItem[] items) { this.items = new StackLayoutItemCollection { Parent = this }; foreach (var item in items) { this.items.Add(item); } }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.StackLayout"/> class. /// </summary> public StackLayout() { items = new StackLayoutItemCollection { Parent = this }; }