Ejemplo n.º 1
0
        public void PrintControl(int count)
        {
            var ctl = new TableLayout
            {
                Rows =
                {
                    new TableRow(new Label {
                        Text = "Hello"
                    }),
                    new TextBox            {
                        Text = "Some Text"
                    },
                }
            };

            for (int i = 0; i < count; i++)
            {
                ctl.Rows.Add(new Label {
                    Text = "Row " + i
                });
            }

            ctl.Rows.Add(new TableRow {
                ScaleHeight = true
            });
            ctl.Rows.Add(new Label {
                Text = "Bottom"
            });

            ctl.Print();
        }