{"action":"closed","issue":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/117","labels_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/117/comments","events_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/117/events","html_url":"https://github.com/molinch/FFImageLoading/issues/117","id":125464569,"number":117,"title":"Xamarin.Forms - ListViewCachingStrategy.RecycleElement issue","user":{"login":"daniel-luberda","id":13569983,"avatar_url":"https://avatars.githubusercontent.com/u/13569983?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-luberda","html_url":"https://github.com/daniel-luberda","followers_url":"https://api.github.com/users/daniel-luberda/followers","following_url":"https://api.github.com/users/daniel-luberda/following{/other_user}","gists_url":"https://api.github.com/users/daniel-luberda/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-luberda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-luberda/subscriptions","organizations_url":"https://api.github.com/users/daniel-luberda/orgs","repos_url":"https://api.github.com/users/daniel-luberda/repos","events_url":"https://api.github.com/users/daniel-luberda/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-luberda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/molinch/FFImageLoading/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/molinch/FFImageLoading/labels/Xamarin.Forms","name":"Xamarin.Forms","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-07T19:09:47Z","updated_at":"2016-01-26T12:29:17Z","closed_at":"2016-01-26T12:29:17Z","body":"**Problem:**\r\n\r\nIf we use Bindings for setting `Source` property in a ViewCells which are used in a ListViews with ListViewCachingStrategy.RecycleElement enabled - images get loaded into CachedImage not correctly (they are mixed).\r\n\r\n**It's because:**\r\n> Note: When devolopers specify ListViewCachingStrategy.RecycleElement, OnElementChanged events are not raised when cells are recycled. Instead, the cell is retained and its property values change when the binding context is updated to that of an available cell, OnElementPropertyChanged events are raised. Application developers should remember to listen for the correct events, and should note that their renderers will need to be updated if the default behavior changes to ListViewCachingStrategy.RecycleElement in a future release.\r\n\r\n**To avoid it:**\r\n\r\n#### Instead using bindings for setting Source property - please use ViewCell's OnBindingContextChanged override to update it avoiding loading images to wrong views.\r\n\r\nAny ideas how can we overcome that? Or should we leave it as is as maybe it's intended behavior when using this kind of ListViewCachingStrategy? "}}