如何获得Grid对象的绝对行高? [英] How can I get the absolute Row height of the Grid object?

查看:247
本文介绍了如何获得Grid对象的绝对行高?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取Grid对象的绝对Row Height?

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   <---- ?
}

推荐答案

这将为您提供RowDefinitionActualHeight:

 grid.RowDefinitions[0].ActualHeight

这篇关于如何获得Grid对象的绝对行高?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆