8
     <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.

patrick
  • 16,091
  • 29
  • 100
  • 164

1 Answers1

8

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

Glenn Slayden
  • 17,543
  • 3
  • 114
  • 108
scwagner
  • 3,975
  • 21
  • 16
  • Have an example? I've tried binding `` with no luck – C. Tewalt Feb 14 '16 at 08:43
  • 1
    What I did was have the rowDefinition like this `` and set the binding with `` – C. Tewalt Feb 15 '16 at 22:25
  • 2
    Actually, since ActualHeight on row definition isn't a dependency property, I scrapped it and just settled for making a SizeChanged event handler in the xaml code behind. I want to figure out the best MVVM way to do it though. – C. Tewalt Feb 15 '16 at 22:29