This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 41600 - ListView.ScrollTo does not behave as per documentation on UWP
Summary: ListView.ScrollTo does not behave as per documentation on UWP
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: 2.2.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-08 15:06 UTC by John Hardman
Modified: 2017-02-17 10:50 UTC (History)
5 users (show)

See Also:
Tags: Xamarin.Forms UWP ListView ScrollTo Exception ac Windows
Is this bug a regression?: ---
Last known good build:


Attachments

Description John Hardman 2016-06-08 15:06:22 UTC
In the Xamarin.Forms documentation at https://developer.xamarin.com/api/member/Xamarin.Forms.ListView.ScrollTo/p/System.Object/Xamarin.Forms.ScrollToPosition/System.Boolean/

it says:

Exceptions
TYPE	REASON
ArgumentException	position contains an invalid value for ScrollToPosition.

Whilst this exception is thrown on Android, it is not thrown on UWP, giving the impression that things are working even though there is an issue in the application code. The UWP implementation should throw the exception as per the documentation.

This is using Xamarin.Forms 2.2.0.45

To reproduce, just pass a duff value for the first argument in
public Void ScrollTo (Object item, ScrollToPosition position, Boolean animated)
Comment 1 E.Z. Hart 2016-07-08 22:03:57 UTC
Confirmed still occurring in 2.3.0.107.
Comment 2 Rui Marinho 2017-02-17 10:50:51 UTC
Should be fixed in 2.3.5-pre1

Note You need to log in before you can comment on or make changes to this bug.