How can I get the absolute Row height of the Grid object?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 02:48:24

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!