protected virtual float GetCellDesiredWidth(GridCellElement cell) { cell.Measure(new SizeF(float.PositiveInfinity, float.PositiveInfinity)); return(cell.DesiredSize.Width); }
protected virtual SizeF GetCellDesiredSize(GridCellElement cell) { cell.Measure(new SizeF((float)cell.ColumnInfo.Width, float.PositiveInfinity)); return(cell.DesiredSize); }