예제 #1
0
 protected virtual float GetCellDesiredWidth(GridCellElement cell)
 {
     cell.Measure(new SizeF(float.PositiveInfinity, float.PositiveInfinity));
     return(cell.DesiredSize.Width);
 }
예제 #2
0
 protected virtual SizeF GetCellDesiredSize(GridCellElement cell)
 {
     cell.Measure(new SizeF((float)cell.ColumnInfo.Width, float.PositiveInfinity));
     return(cell.DesiredSize);
 }