title: Xamarin Forms - Load image in a Button
body: <p>I looked extensively online but I couldn't find anything really specific to help me out in this trouble I am having.</p>
  
  <p>I am trying to make a custom renderer for a Button component, in Xamarin forms. Why am I not using the XLabs ImageButton component? Because it's not compatible with Android 4.0.3, which is my current Android target version.</p>
  
  <p>I also tried writing on my own some code that is that much worthless that I am quite shy to post, unless you really require me to :)</p>
  
  <p>I am in need of this code because, without it, images just fail to load in buttons while trying to use them in any button like this:</p>
  
  <pre><code>&lt;Button Image="someImage.png"/&gt;
  </code></pre>
  
  <p>I tried following a tutorial, here:</p>
  
  <p><a href="http://blog.falafel.com/learning-xamarin-custom-renderers-in-xamarin-forms/" rel="nofollow">http://blog.falafel.com/learning-xamarin-custom-renderers-in-xamarin-forms/</a></p>
  
  <p>But I failed adapting it to my needs.</p>