xamarin/Xamarin.Forms
[Bug] ListView Scrolled event doesn't reset ScrollY when clearing ItemsSource
Ouverte
#8 305 ouverte le 30 oct. 2019
a/listviewe/2 :clock2:good first issuehackathonhelp wantedin-progressinactivep/Androidt/bug :bug:up-for-grabs
Métriques du dépôt
- Stars
- (5 644 étoiles)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
Description
Not sure if this is a bug or what, but when you clear the listview's ItemsSource, the Scrolled event's coordinate doesn't reset to 0
Steps to Reproduce
Referring to the enclosed project:
-
Scroll down the list view and take note of the
ScrollYvalue
-
Click on the
Clearbutton to clear theItemsSource -
Click on the
Addbutton to add items to theItemsSource
Expected Behavior
The ScrollY should be reset to 0 when ItemsSource is cleared
Actual Behavior
The ScrollY resume from the previous value
Basic Information
- Version with issue:
- IDE: Visual Studio 2019 Community 16.3.4
- Platform Target Frameworks:
- Android: 10.0.3.0
- Nuget Packages: Xamarin Form 4.3.0.947036