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

Display an image stored locally

$
0
0

Hello,
I am trying to display an image stored locally under a PCL library and using Xamarin.Forms with in MyPage.xaml:

< Image x:Name="MyImage" / >

And code:

InitializeComponent();
MyImage.Source = ImageSource.FromUri(new Uri("file:///C:/Users/Administrateur/Pictures/img1.jpg"));

But without success (nothing is display).
Can someone know what is wrong? Thanks.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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