Esempio n. 1
0
        public GridRow(int columnCount = 1, Action <ColumnSizeBuilder> sizes = null)
        {
            _columns = new List <ColumnPartView>();
            for (int i = 0; i < columnCount; i++)
            {
                _columns.Add(new ColumnPartView());
            }

            if (sizes != null)
            {
                var sizeBuilder = new ColumnSizeBuilder(columnCount);
                sizes(sizeBuilder);
                sizeBuilder.UpdateColumns(_columns);
            }
        }
Esempio n. 2
0
 public void UpdateColumns(ColumnSizeBuilder builder)
 {
     builder.UpdateColumns(_columns);
 }