title: Why is my Label not Visible inside Frame in Xamarin Forms?
body: <p>I'm trying to create simple black border for a label in Xamarin forms.  It seems anything inside a frame is not visible. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;Frame BorderColor="Black"   
         CornerRadius="0"&gt;
      &lt;Label x:Name="txtText"
             Text="Here"
                 TextColor="Black"
                 BackgroundColor="White"
                 HorizontalOptions="FillAndExpand"
                 VerticalOptions="FillAndExpand"
                 HorizontalTextAlignment="Center" /&gt;
  &lt;/Frame&gt;
  </code></pre>
  
  <p>I can set the background property in my frame to anything and that works OK, I even tried setting it to transparent with no success.</p>
  
  <p>This is what I see with the code above.</p>
  
  <p><a href="https://i.stack.imgur.com/L1plq.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/L1plq.jpg" alt="enter image description here"></a></p>
  
  <p>I'm using Visual Studio 2017 and Android if that helps.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've found a solution, but it seems hacky.  I've put it all inside a StackLayout, set the request height of the frame to 100 and set the padding to 1.  </p>
  
  <p>Here is the updated code:</p>
  
  <pre><code>&lt;StackLayout&gt;
      &lt;Frame BorderColor="{DynamicResource PrimaryColour}"   
             CornerRadius="0"
             Padding="1"
             HeightRequest="100"&gt;
          &lt;Label x:Name="txtText"
                 Text="Here"
                 TextColor="{DynamicResource PrimaryColour}"
                 BackgroundColor="{DynamicResource SecondaryColour}"
                 HorizontalTextAlignment="Center"
                 VerticalTextAlignment="Center"/&gt;
      &lt;/Frame&gt;
  &lt;/StackLayout&gt;
  </code></pre>