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 e
I use this and it works
var imageA = new Image(); imageA.Source=(FileImageSource)ImageSource.FromFile(allergeneLocation)};
or
var imageA = new Image() { BackgroundColor = Color.Teal, Source = (FileImageSource)ImageSource.FromFile(allergeneLocation)}, };