<Grid x:Name="SidebarGrid" LayoutUpdated="gridlayoutupdated">
<Grid.RowDefinitions>
<RowDefinition Height="250" />
<RowDefinition Height="*"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
行大小适合内容,但设置内容后,我想获取高度。
您可以使用行定义.实际高度 https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.rowdefinition.actualheight(但请注意,它不可数据绑定)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)