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

ImageCell won't display picture.

$
0
0

Hi,

I have a page with a listview on it, after clicking a button a user can select a picture and I want to display this picture in an ImageCell but it won't show it.

Using PCL storage I copy the file to the Local user accessible filesystem and create a model from it with a Path property that is the Path property of the PCL StorageFile. Mind you this is fully qualified filename. ( C:\etc\etc\etc\ )

DataTemplate:

<DataTemplate x:Key="PictureTemplate">
               <ImageCell Text="{Binding Path}" ImageSource="{Binding Path, Converter={StaticResource stringToFileImageSourceConverter}}"/>
</DataTemplate>

I even tried using a Converter and I can see it being called with the right arguments. For testing I've set the ImageCell's text to the property and this shows correctly.

I've mounted my Windows Phone emulator VHD to see if the files are there, and they are.

Am I missing something obvious?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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