Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

wpf

     <Grid x:Name="SidebarGrid" LayoutUpdated="gridlayoutupdated">
            <Grid.RowDefinitions>
                <RowDefinition Height="250" />
                <RowDefinition Height="*"/>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

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

like image 419
patrick Avatar asked Jul 20 '11 16:07

patrick


1 Answers

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

like image 153
scwagner Avatar answered Oct 05 '22 10:10

scwagner