When you handle the SelectionChanged
event, you can save the SelectedItem
(which I assume you already got to define a new page) for the page property. Then, in the OnNavigatedTo
event for the page, if this element is not equal to zero, you can use the ScrollTo
method. Something like this (where lls
is your longlistselector):
private object previousItem = null; private void lls_SelectionChanged(object sender, SelectionChangedEventArgs e) { object previousItem = lls.SelectedItem;
source share