Hi! I have a simple ListView:
<ListView x:Name="list" ItemsSource="{Binding Items}">
<ListView.ItemTemplate>
<DataTemplate>
<ImageCell
Text="{Binding FileName}"
ImageSource="{Binding Photo}">
</ImageCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Now, I have 5 items in listview. I open it, press back button, open again and get out of memory exception. What am I doing wrong?
I use this code to show photos data :
ImageSource.FromStream(() => new MemoryStream(imgData)
, imgData is byte[]. Thank you!