开发者

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

     <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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜