Skip to content

ListView ScrollTo position always remains at the start even when set to Center or End without animation #26945

Open
@Shalini-Ashokan

Description

@Shalini-Ashokan

Description

The ListView.ScrollTo method fails to correctly scroll the selected item to the center or end of the ListView on the Windows platform. Instead, the scroll position always remains at the start and does not align the SelectedItem with the center or end of the list when using without animation.

Issue is related to 26857

ListviewWithoutAnimation.mp4

Steps to Reproduce

  1. Run the attached sample project on Windows.
  2. Select any item from the ListView.
  3. Alternatively, use the "Up" and "Down" buttons to change the SelectedItem in the ListView.
  4. Observe that the scroll position always remains at the start, regardless of the ScrollToPosition set.

Sample
ListViewSample 2.zip

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.22621.0

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions