title: how to change the height of a grid row in wpf using storyboard
body: <p>I have a <code>Grid</code> with 2 rows:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="150"/&gt;
          &lt;RowDefinition /&gt;
          &lt;RowDefinition Height="Auto" x:Name="OtherContactsRow" /&gt;
      &lt;/Grid.RowDefinitions&gt;
      Something here
  &lt;/Grid&gt;
  </code></pre>
  
  <p>and 2 <code>Storyboard</code>s:</p>
  
  <pre><code>&lt;Storyboard x:Key="MaximizedStoryboard"&gt;
      &lt;DoubleAnimation From="20" To="150"  Duration="0:0:2"
                       Storyboard.TargetName="OtherContactsRow"
                       Storyboard.TargetProperty="Height" &gt;    
      &lt;/DoubleAnimation&gt;
  &lt;/Storyboard&gt;
  
  &lt;Storyboard x:Key="MinimizedStoryboard"&gt;
      &lt;DoubleAnimation From="150" To="20" Duration="0:0:2"
                       Storyboard.TargetName="OtherContactsRow"
                       Storyboard.TargetProperty="Height"&gt;
      &lt;/DoubleAnimation&gt;
  &lt;/Storyboard&gt;
  </code></pre>
  
  <p>When I try to modify the height of the row named <code>OtherContactsRow</code> I received the following error:</p>
  
  <p><code>'System.Windows.Media.Animation.DoubleAnimation' animation object cannot be used to animate property 'Height' because it is of incompatible type 'System.Windows.GridLength'.</code></p>
  
  <p>Any solutions? </p>