private Control.Layout.GridLayout CreateGrid(ControlBase parent) { Control.Layout.GridLayout grid = new Control.Layout.GridLayout(parent); grid.SetColumnWidths(0.2f, Control.Layout.GridLayout.AutoSize, 140.0f, 0.8f); grid.SetRowHeights(0.2f, Control.Layout.GridLayout.AutoSize, 140.0f, 0.8f); CreateControl(grid, "C: 20%, R: 20%"); CreateControl(grid, "C: Auto R: 20%"); CreateControl(grid, "C: 140, R: 20%"); CreateControl(grid, "C: 80%, R: 20%"); CreateControl(grid, "C: 20%, R: Auto"); CreateControl(grid, "C: Auto R: Auto"); CreateControl(grid, "C: 140, R: Auto"); CreateControl(grid, "C: 80%, R: Auto"); CreateControl(grid, "C: 20%, R: 140"); CreateControl(grid, "C: Auto R: 140"); CreateControl(grid, "C: 140, R: 140"); CreateControl(grid, "C: 80%, R: 140"); CreateControl(grid, "C: 20%, R: 80%"); CreateControl(grid, "C: Auto R: 80%"); CreateControl(grid, "C: 140, R: 80%"); CreateControl(grid, "C: 80%, R: 80%"); return(grid); }
public XsdWriting(ControlBase parent) : base(parent) { Control.Layout.GridLayout layout = new Control.Layout.GridLayout(this); layout.VerticalAlignment = VerticalAlignment.Top; layout.VerticalAlignment = VerticalAlignment.Stretch; layout.SetColumnWidths(Control.Layout.GridLayout.Fill); layout.SetRowHeights(30.0f, Control.Layout.GridLayout.Fill); Control.Button button1 = new Control.Button(layout); button1.Text = "Write Xsd File "; button1.Clicked += WriteXsd; button1.Width = 100; button1.HorizontalAlignment = HorizontalAlignment.Left; xsdContent = new Control.MultilineTextBox(layout); }