Bug 29734 - ScrollTo does not scroll in grouped list with only one item
Summary: ScrollTo does not scroll in grouped list with only one item
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-05-05 04:09 UTC by Robin Vercammen
Modified: 2016-04-13 18:16 UTC (History)
6 users (show)

Tags: all functional
Is this bug a regression?: ---
Last known good build:

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Robin Vercammen 2015-05-05 04:09:45 UTC
As seen in folowing function that the goal is to scroll to the first item of the first group:

void ListOne_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            if (_firstScrollTo && "ItemsSource".Equals(e.PropertyName))
            {
                if (ViewModel.ItemsSource != null && ViewModel.ItemsSource.Any())
                {
                    var firstGroup = ViewModel.ItemsSource.First();

                    if (firstGroup.Any())
                    {
                        var firstItem = firstGroup.First();
                        ListOne.ScrollTo(firstItem, ScrollToPosition.Start, true);
                        _firstScrollTo = false;
                    }
                }

            }
        }

this code only works when there are more than 1 item under the groups. Otherwise it finds the first item but ListOne.ScrollTo doesn't scroll.
Comment 1 Chris King 2015-05-20 18:12:11 UTC
We'd be happy to help you resolve this issue. Please help us by attaching a reduced reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue. If you'd do this for us we would very much appreciate it. If you are able to reproduce the issue without modifying the platform specific projects that would eliminate a number of possibilities and likely expedite a resolution. 

Warm regards,
Xamarin Forms Team
Comment 2 Samantha Houts [MSFT] 2016-04-13 18:16:10 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team