问题
How can I get the absolute Row
Height
of the Grid
object?
If the return value in the Stars?
GridLength l=grid.RowDefinitions[0].Height;
if (l.IsStar==true)
{
//i need to convert from stars to absolute units <---- ?
}
回答1:
This will give you the ActualHeight
of RowDefinition
:
grid.RowDefinitions[0].ActualHeight
来源:https://stackoverflow.com/questions/19546912/how-can-i-get-the-absolute-row-height-of-the-grid-object