xamarin/Xamarin.Forms

[Bug] ListView Scrolled event doesn't reset ScrollY when clearing ItemsSource

Ouverte

#8 305 ouverte le 30 oct. 2019

 (2 commentaires) (2 réactions) (0 personne assignée)C# (1 926 forks)batch import
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:

  1. Scroll down the list view and take note of the ScrollY value InShot_20191030_213157753

  2. Click on the Clear button to clear the ItemsSource

  3. Click on the Add button to add items to the ItemsSource

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

Reproduction Link

App3.zip

Guide contributeur