title: How to embed Images in Xamarin Forms Grid Layout
body: <p>I am trying t create a xamarin.forms grid layout, and embed an image into it. The only docs I can find about image embedding is <a href="http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/images/#Local_Images" rel="nofollow">here</a>, on the Xamarin Site. </p>
  
  <pre><code>var beachImage = new Image { Aspect = Aspect.AspectFit };
  beachImage.Source = ImageSource.FromFile("waterfront.jpg");
  </code></pre>
  
  <p>However, this seems to require setting up the image as a variable and having it in a stack layout. </p>
  
  <p>I however, am trying to customise the <a href="http://developer.xamarin.com/api/type/Xamarin.Forms.Grid/" rel="nofollow">following</a> model grid layout, which when I add the code to create a variable and then define it's image source, is throwing up errors. </p>
  
  <p>In XAML, it is pretty simple:    </p>
  
  <pre><code>&lt;Image Source="logo.jpg"/&gt;
  </code></pre>
  
  <p>I would like to know if there is an equivalent for this in Xamarin.Forms compatible C#. </p>
  
  <p>Thanks</p>