Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

byte[] image into System.Windows.Controls.Image

$
0
0

I am working on a Xamarin.Forms Portable solution.
The app UI is completely different for each platform so the portable project contains the logical code and the others uses the native UI such as axml, xaml etc.

I am facing a problem in Windows Phone project:
The portable solution returns a byte[] image. On Windows Phone project, I am not able to convert it to System.Windows.Controls.Image.

I have tried

ImageSource.FromStream(() => new MemoryStream(bytes))

but System.Windows.Media.ImageSource does not contain a definition for FromStream.

Any idea?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>