Exemplo n.º 1
0
 public GridRow(IEnumerable<IGridRenderable> renderables, Padding pad = null)
 {
     Renderables = renderables.ToList();
     Pad = pad ?? new Padding(0, 0);
     Width = Renderables.Aggregate(0, (x, y) => y.Width);
     Height = Renderables.OrderBy(x => x.Height).First().Height;
 }
Exemplo n.º 2
0
 public GridColumn(IEnumerable<IGridRenderable> renderables, Padding pad = null)
 {
     Renderables = renderables.ToList();
     Pad = pad ?? new Padding(0, 0);
     Width = Renderables.OrderByDescending(x => x.Width).First().Width;
     Height = Renderables.Aggregate(0, (x, y) => y.Height);
 }