title: How to expand StackLayout inside Grid in Xamarin Forms?
body: <p>I have Xamarin Forms app. My page bottom should look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/rtJYB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rtJYB.png" alt="enter image description here"></a></p>
  
  <p>Currently it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/gAKXI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gAKXI.png" alt="enter image description here"></a></p>
  
  <p>Problem is that StackLayout doesn't expand to fill space. Here is my xaml:</p>
  
  <pre><code>&lt;StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand" VerticalOptions="End" Spacing="0" &gt;
    &lt;Grid ColumnSpacing="0" RowSpacing="0" HorizontalOptions="FillAndExpand"&gt;
      &lt;Grid.ColumnDefinitions&gt;
        &lt;ColumnDefinition Width="*" /&gt;
        &lt;ColumnDefinition Width="*"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Grid.RowDefinitions&gt;
        &lt;RowDefinition Height="40" /&gt;
      &lt;/Grid.RowDefinitions&gt;
  
      &lt;StackLayout HorizontalOptions="CenterAndExpand" Grid.Column="0" Grid.Row="1" BackgroundColor="Blue" &gt;
        &lt;Label Text="First" TextColor="#FFFFFF" HorizontalOptions="CenterAndExpand" /&gt;
      &lt;/StackLayout&gt;
      &lt;StackLayout HorizontalOptions="CenterAndExpand" Grid.Column="1" Grid.Row="1" BackgroundColor="Red" &gt;
        &lt;Label Text="Second" TextColor="#FFFFFF" HorizontalOptions="CenterAndExpand" /&gt;
      &lt;/StackLayout&gt;
  
    &lt;/Grid&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p>How can I expand StackLayout inside Grid? I would like that blue and red backgrounds touch in the middle.</p>