var layout = new DynamicLayout(); var label = new Label { Text = "Name:" }; var textBox = new TextBox(); // Add a new row with a label and a textbox layout.AddRow(label, textBox);
var layout = new DynamicLayout(); var checkBox1 = new CheckBox { Text = "Option 1" }; var checkBox2 = new CheckBox { Text = "Option 2" }; // Add a new row with two checkboxes using layout options var options = new DynamicLayout.Options { Padding = new Padding(5) }; layout.AddRow(checkBox1, checkBox2, options);In this example, we create a new DynamicLayout and add two CheckBoxes to a new row, using layout options to specify padding between the controls. The DynamicLayout package library is part of the Eto.Forms framework, a cross-platform GUI toolkit for .NET.