title: Databind Class property with grid Height
body: <p>I have the following class:</p>
  
  <pre><code>public class Height
  {
      public GridLength GridHeight = new GridLength(200);
  }
  </code></pre>
  
  <p>I want to bind this field to the 1st Rows Height from a grid:</p>
  
  <pre><code>    &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="{Binding Path=GridHeight, Mode=OneWay}"&gt;&lt;/RowDefinition&gt;
          &lt;RowDefinition&gt;&lt;/RowDefinition&gt;
      &lt;/Grid.RowDefinitions&gt;
  </code></pre>
  
  <p>I have also declared the DataContext:</p>
  
  <pre><code>    public MainWindow()
      {
          DataContext = new Height();
      }
  </code></pre>
  
  <p>However there is no interaction at all. I cant see what´s wrong.
  Very grateful if someone could explain how to databind a class property to a rows Height property.</p>