【问题标题】:How can I get the absolute Row height of the Grid object?如何获得 Grid 对象的绝对行高?
【发布时间】:2013-11-02 00:54:19
【问题描述】:

我怎样才能得到Grid对象的绝对RowHeight

如果返回值在星星?

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

【问题讨论】:

    标签: wpf grid height row


    【解决方案1】:

    这将为您提供RowDefinitionActualHeight

     grid.RowDefinitions[0].ActualHeight
    

    【讨论】:

      猜你喜欢
      • 2019-05-27
      • 2011-07-30
      • 2013-03-15
      • 1970-01-01
      • 2011-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多