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

Listview Image > An unhandled exception occured.

$
0
0

A listview with DataTemplate:

<ListView.ItemTemplate>



<Grid.ColumnDefinitions>




</Grid.ColumnDefinitions>

        </DataTemplate>
      </ListView.ItemTemplate>

pictures are in the album Andriod / IOS its storage path in Sqlite are binding property from a Imagesource ImageSource.FromFile. The first one navigationto to ContentPage OK but when navigationto or navogationfrom An unhandled exception occured.

foreach (var item in players)
{
if (!string.IsNullOrEmpty(item.PathImage))
{
item.imageSource = ImageSource.FromFile(item.PathImage);
}
else
{
item.imageSource = ImageSource.FromFile("Images/logoUser.jpg");
}

                    }

Help please, I want to make a list of the images I have in the device


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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