I am making an application where I populate a ListView with ImageCell's and in my ViewModel I have a property called PosterUrl, this is bound to the ImageCell's ImageSourceProperty
like:
_movieListView.ItemTemplate.SetBinding(ImageCell.ImageSourceProperty, new Binding("PosterUrl"));
Now if I scroll the ListView in my app, at some point it will crash and throw the following exception:
06-19 09:08:57.852 I/MonoDroid( 1880): UNHANDLED EXCEPTION: System.InvalidOperationException: Only a single Cancel() call is supported at a time.
06-19 09:08:57.852 I/MonoDroid( 1880): at Xamarin.Forms.ImageSource.Cancel () <IL 0x00021, 0x000b3>
06-19 09:08:57.852 I/MonoDroid( 1880): at Xamarin.Forms.ImageCell.<.ctor>b__6 (object,System.EventArgs) <IL 0x0000f, 0x00066>
06-19 09:08:57.852 I/MonoDroid( 1880): at Xamarin.Forms.Cell.SendDisappearing () <IL 0x00017, 0x0006a>
06-19 09:08:57.852 I/MonoDroid( 1880): at Xamarin.Forms.Platform.Android.CellRenderer.GetCell (Xamarin.Forms.Cell,Android.Views.View,Android.Views.ViewGroup,Android.Content.Context) <IL 0x00051, 0x001d7>
06-19 09:08:57.852 I/MonoDroid( 1880): at Xamarin.Forms.Platform.Android.CellFactory.GetCell (Xamarin.Forms.Cell,Android.Views.View,Android.Views.ViewGroup,Android.Content.Context,Xamarin.Forms.View) <IL 0x00028, 0x000e3>
06-19 09:08:57.852 I/MonoDroid( 1880): at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (int,Android.Views.View,Android.Views.ViewGroup) <IL 0x000a7, 0x00357>
06-19 09:08:57.852 I/MonoDroid( 1880): at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (intptr,intptr,int,intptr,intptr) [0x0001a] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/b5dc5ce9/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Widget.BaseAdapter.cs:460
06-19 09:08:57.852 I/MonoDroid( 1880): at (wrapper dynamic-method) object.2cc72b4b-0916-4d3b-9896-3ab250142865 (intptr,intptr,int,intptr,intptr) <IL 0x00023, 0x00037>
How am I supposed to handle that?