private void addRectangle(object sender, EventArgs e) { var element = new LayoutRectangle { Size = new SizeF(200, 100), IsFixedSize = true }; LayoutControl.AddToLayout(element); }