title: How do I center text in a Horizontal StackLayout?
body: <p>I have this StackLayout that I used to create a Navigation Bar in XAML. This Horizontal StackLayout contains a button and label. The problem is that the text is not exactly centered and I cant seem to get it perfectly in the middle. Can someone please help me center this text in this StackLayout? I'm using Xamarin by the way. </p>
  
  <pre><code>&lt;!-- Nav Bar--&gt;
  &lt;StackLayout Orientation="Horizontal" HeightRequest="45" BackgroundColor="{StaticResource Teal}"&gt;
    &lt;StackLayout.Padding&gt;
      &lt;OnPlatform x:TypeArguments="Thickness"
                  iOS="10,0,0,0"
                  Android="0,0,0,0"
                  WinPhone="0,0,0,0" /&gt;
    &lt;/StackLayout.Padding&gt;
    &lt;Button x:Name="btnBack" HorizontalOptions="Start" TextColor="White" BackgroundColor="Transparent"
            Command="{Binding BackCommand}" IsVisible="{Binding CanGoBack}" /&gt;
    &lt;Label HorizontalOptions="CenterAndExpand" VerticalOptions="Center" TextColor="White" FontSize="24" Text="{Binding TitleBarText}" LineBreakMode="TailTruncation" /&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p>As you can see the App Title is not centered...</p>