Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获得对象的Row Height绝对值Grid?
Row
Height
Grid
如果返回值在 Stars 中?
GridLength l=grid.RowDefinitions[0].Height; if (l.IsStar==true) { //i need to convert from stars to absolute units <---- ? }
这将为您ActualHeight提供RowDefinition:
ActualHeight
RowDefinition
grid.RowDefinitions[0].ActualHeight