开发者

How can I get the actual grid row height of a grid with RowDefinition Height *

开发者 https://www.devze.com 2023-03-21 23:16 出处:网络
<Grid x:Name=\"SidebarGrid\" LayoutUpdated=\"gridlayoutupdated\"> <Grid.RowDefinitions> <RowDefinition Height=\"250\" />
     <Grid x:Name="SidebarGrid" LayoutUpdated="gridlayoutupdated">
            <Grid.RowDefinitions>
                <RowDefinition Height="250" />
                <RowDefinition Height="*"/>
 开发者_StackOverflow中文版               <RowDefinition Height="*" />
            </Grid.RowDefinitions>

The Row sizes to content, but after the content is set, I would like to get the height.


You can use RowDefinition.ActualHeight (but note that it is not data-bindable).

0

精彩评论

暂无评论...
验证码 换一张
取 消