title: How to set ImageSource as Xamarin.Forms.Button?
body: <p>I am trying add a background image using the image property in button. The issue I'm facing is that i can't set StreamImageSource as button background. I encountered the error given below if I try to do so.</p>
  
  <p><strong>The Code I use to set Image:</strong>  </p>
  
  <pre><code>            ImageSource iconsource =ImageSource.FromStream(() =&gt; new MemoryStream(ImgASBytes));
              Button Icon = new Button ();
              Icon.Image = iconsource ;
  </code></pre>
  
  <p><strong>The Error I encounter:</strong> </p>
  
  <p>Error CS0266: Cannot implicitly convert type 'Xamarin.Forms.ImageSource' to 'Xamarin.Forms.FileImageSource'. An explicit conversion exists (are you missing a cast?)</p>