Bug 48682 - ScrollViewer will reset the scroll position when navigate to exists page or back to the last page
Summary: ScrollViewer will reset the scroll position when navigate to exists page or b...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
Depends on:
Reported: 2016-12-02 06:26 UTC by Mike
Modified: 2018-03-20 18:40 UTC (History)
4 users (show)

Tags: uwp, listview, scrollview, ac, fr
Is this bug a regression?: ---
Last known good build:

Sample project (124.59 KB, application/zip)
2016-12-02 06:26 UTC, Mike

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 48682 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mike 2016-12-02 06:26:35 UTC
Created attachment 18746 [details]
Sample project

Before I'm using ListView, every time I navigate to the exists page or back to the last page It would reset the ListView scroll position, I thought it's a ListView problem, But currently I find out If I put a ScrollViewer and Put a StackLayout in it, also put a lot of viewcontent, and navigate to other page and go back, the ScrollViewer will reset again.

I think that's a kind of source of the performance problem I guess, because every time I switch between exist pages, it will take a few seconds, let user fells just like the App freeze or no response.

Like I mention it it: https://bugzilla.xamarin.com/show_bug.cgi?id=46856

Now I think maybe the page will reset something, a very simple example is the ScrollViewer. Also I found there are some memory leak probmels, Looks like ListView not the only one has memory leak problem.
Comment 1 Mike 2016-12-07 17:50:11 UTC
Only when use Tabbed page, the ScrollViewer will not reset, see detail:

Comment 2 Samantha Houts [MSFT] 2017-03-16 01:00:35 UTC
Comment 3 Samantha Houts [MSFT] 2018-03-20 18:40:00 UTC
Pull request was closed. Will be revisited.