using Eto.Forms; using Eto.Drawing; public class MyApp : Application { public MyApp() { // Create form and add DynamicLayout control MainForm = new Form(); var layout = new DynamicLayout(); MainForm.Content = layout; // Create group and add buttons layout.BeginGroup("My Group"); layout.AddRow( new Button { Text = "Button 1" }, new Button { Text = "Button 2" }, new Button { Text = "Button 3" }); layout.EndGroup(); } }
using Eto.Forms; using Eto.Drawing; public class MyApp : Application { public MyApp() { // Create form and add VerticalStackLayout control var form = new Form(); var layout = new VerticalStackLayout(); form.Content = layout; // Create group and add text boxes layout.BeginGroup("My Group"); layout.AddRow( new Label { Text = "Text Box 1" }, new TextBox()); layout.AddRow( new Label { Text = "Text Box 2" }, new TextBox()); layout.EndGroup(); } }Package Library: The DynamicLayout BeginGroup method is part of the Eto.Forms namespace, which is included in the Eto library.