Dec 4, 2013 at 11:16 PM
Edited Dec 4, 2013 at 11:31 PM
I'm on a wp8 app using a LongListSelector. The datatemplate of the items in the LLS uses the SuperImage with a PlaceHolderImage.
Now my scenario:
LoadData(), but this get's called several times to load data in chunks, with each chunk I'm adding the items to an Sorted Observable collection ( with Deployment.Current.Dispatcher.BeginInvoke ).
SortedObservable code here:
But because of the fact that the items are sorted, I need to reposition the LLS to top after the collection has changed! This is done through extending the LLS.
http://developer.nokia.com/Community/Wiki/Fixing_the_LongListSelector ( only the CollectionChanged event handler )
With all this in place, the last time the LLS is put on top, I'm getting empty images! Instead of the PlaceHolderImages.
When you then scroll through the list to the bottom and back up again, the placeholder images are all of a sudden visible.
Any thoughts? I can only send the complete project if needed, bit to much code to make a repo :(
Another observation, when I position the list to the top and do a normal refresh, while the items are being loaded you'll see the placeholderimage AND the real image ( cached after first load ) together! When all items are loaded the placeholder images are
collapsed! But to many are collapsed... and the correct ones reappear after scrolling!
I've uploaded a video with demo, take not of the item called "Lunches Culturels"