title: Xamarin forms: setting up a background image
body: <p>I want to setup a background image for a page. Right now I am using</p>
  
  <pre><code>&lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
          xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
          x:Class="M.LaunchPage"
          Title ="M" BackgroundImage="Mars.jpg"&gt;
      &lt;ContentPage.Content&gt; 
        &lt;StackLayout Padding="10,0,10,10" &gt; 
          &lt;Button VerticalOptions="CenterAndExpand" Text="Sign Up" TextColor="White" Clicked="OnSignUp" BackgroundColor="Maroon" /&gt;  
          &lt;StackLayout Padding="10,0,10,10" Orientation="Horizontal" VerticalOptions="EndAndExpand" /&gt;
        &lt;/StackLayout&gt; 
      &lt;/ContentPage.Content&gt;
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p>This works well but the image is being filled multiple times to fit the screen. Cn anyone suggest better code so that I can fit the image on the page perfectly?</p>
  
  <p>Thanks.</p>