ListView ScrollTo position always remains at the start even when set to Center or End #26857
Labels
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
The ListView.ScrollTo method fails to correctly scroll the selected item to the center or end of the ListView on the Windows platform.
Notes: On Android and iOS, the behavior works as expected.
Output
Windows.mp4
Steps to Reproduce
Sample
ListViewSample.zip
Expected Outcome
When a new item is selected in the ListView, the ScrollTo method should scroll the SelectedItem to the specified ScrollToPosition.
Actual Outcome
The scroll position always remains at the start and fails to align the SelectedItem to the center or end of the list on Windows.
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?
Adding a small delay (await Task.Delay(50);) before calling ScrollTo mitigates the issue occasionally but does not consistently work on Windows. The workaround works reliably on other platforms like Android and iOS.
Relevant log output
The text was updated successfully, but these errors were encountered: