In my WP8 app I'm trying to implement a functionality that will allow me to save LongMultiListSelector
's scroll position and scroll it to that position at a later time (after tombstoning for example). It proved to be quite a quest and despite some progress I still have questions.
As I understand it now I'll need the following things for this to work:
Obviously an ability to scroll to a specified item which I now have. (
LongMultiListSelector
, despite being an extension ofLongListSelector
, does not haveScrollTo
method, althoughLongListSelector
can be found inLongMultiListSelector
's visual tree and that is what I've done).1.1. Ability To scroll to a specified item with animation and this one I haven't solved yet. It is not that important but having it would be nice. After some searching I've found out that once
LongListSelector
hadAnimateTo
method but currently it has it not.Ability to find out what items of
LongListSelector
are currently visible on screen so I can save index of one of these visible items and then scroll to it. This one I also have not solved yet and it is very important.After some searching I've found this question: WP7 Toolkit Update Removed GetItemsInView() from the LongListSelector. Is says that in former times
LongListSelector
had aGetItemsInView
function, at a later times it hadLink
andUnlink
events especially for this purpose. CurrentlyLongListSelector
has neither of these options.So the main question is what should I do now to find visible items in
LongListSelector
?