Ejemplo n.º 1
0
        private void BuildColumnWidths()
        {
            if (!table.Has <TableGrid>())
            {
                return;
            }

            var tableGrid = table.GetOrCreate <TableGrid>();

            var grids = tableGrid.Descendants <GridColumn>().ToArray();

            numberOfColumns = grids.Count();
            columnWidths    = new string[numberOfColumns];

            for (int i = 0; i < numberOfColumns; i++)
            {
                columnWidths[i] = grids[i].Width;
            }
        }