示例#1
0
 /// <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);
     }
 }
示例#2
0
文件: StackLayout.cs 项目: zzlvff/Eto
		/// <summary>
		/// Initializes a new instance of the <see cref="Eto.Forms.StackLayout"/> class.
		/// </summary>
		public StackLayout()
		{
			items = new StackLayoutItemCollection { Parent = this };
		}