0

如何获得对象的Row Height绝对值Grid

如果返回值在 Stars 中?

GridLength l=grid.RowDefinitions[0].Height;
if (l.IsStar==true)
{
  //i need to convert from stars to absolute units   <---- ?
}
4

1 回答 1

1

这将为您ActualHeight提供RowDefinition

 grid.RowDefinitions[0].ActualHeight
于 2013-10-23T16:18:22.287 回答