title: Xamarin.Forms bind Height of Grid to Width of Button
body: <p>I try to build the following UI Element with <code>Xamarin.Forms</code>. I was able to build this with <code>UWP</code> by binding the <code>Height</code> property of the <code>TopGrid</code> to the <code>ActualWidth</code> property of <code>Button1</code>. However this is not working in Xamarin.Forms, because there is no <code>ActualWidth</code> property. I already tried binding the <code>Height</code> of <code>TopGrid</code> to <code>WidthRequest</code>, but without success.</p>
  
  <p><a href="https://i.stack.imgur.com/ydQjI.png" rel="nofollow"><img src="https://i.stack.imgur.com/ydQjI.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="Auto" /&gt;
          &lt;RowDefinition Height="*" /&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid x:Name="TopGrid" Grid.Row="0" BindingContext="{x:Reference Name=Button1}"  Height="{Binding Path=WidthRequest}"&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="*" /&gt;
              &lt;ColumnDefinition Width="*" /&gt;
              &lt;ColumnDefinition Width="*" /&gt;
              &lt;ColumnDefinition Width="*" /&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;Button x:Name="Button1" Grid.Column="0" Text="1" /&gt;
          &lt;Button x:Name="Button2" Grid.Column="1" Text="2" /&gt;
          &lt;Button x:Name="Button3" Grid.Column="2" Text="3" /&gt;
          &lt;Button x:Name="Button4" Grid.Column="3" Text="4" /&gt;
      &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Does anybody have experience with <code>Xamarin.Forms</code> and can help me with this problem?</p>