title: Xamarin Button Image not working (NullReferenceException)
body: <p>I'm trying to do an image button on my Xamarin Forms application (shared project configuration).</p>
  
  <p>My XAML is like this :</p>
  
  <pre><code>&lt;Button x:Name="btn_params" Image="app_params.png" Grid.Row="2" Grid.Column="0" Command="{Binding OpenParamsCommand}" HorizontalOptions="StartAndExpand"&gt;&lt;/Button&gt;
  </code></pre>
  
  <p>Because I used shared project configuration, it seems like I cannot have my image within my shared project, so I moved it in the appropriate folder. I'm currently only testing on Android.</p>
  
  <p>I put it in Resources/Drawable on my Android</p>
  
  <p><a href="https://i.stack.imgur.com/WLIud.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WLIud.png" alt="enter image description here"></a></p>
  
  <p>This image is marked as compile as AndroidResource, just like Xamarin says in its documentation</p>
  
  <p>When I open this page, I have an NullReferenceException. I know this is this image, because if I remove the Image param, no errors are throwns...</p>
  
  <p><a href="https://i.stack.imgur.com/dNy8s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dNy8s.png" alt="enter image description here"></a></p>
  
  <p>Any idea of what happens because I have no debug infos other than this exception.</p>