Describe the bug
When we use the SmoothScrollIntoView feature in the ListView Extensions on a ListView like this
SmoothScrollIntoViewWithIndexAsync(index: DeployedPolicies.SelectedIndex, itemPlacement: ScrollItemPlacement.Center, disableAnimation: false, scrollIfVisible: true, additionalHorizontalOffset: 0, additionalVerticalOffset: 0);
On a ListView with over 20 columns and 100k rows, it centers the selected row both vertically and horizontally, which is problematic and undesired because the user needs to scroll back horizontally all the way to the left side again.
There needs to be 2 more separate options such as CenterVertically and CenterHorizontally.
The code responsible for it is located here:
https://github.com/CommunityToolkit/Windows/blob/e2eb2c7b5dcc55e0a0f1923a4f4ea45f49a4fb77/components/Extensions/src/ListViewBase/ListViewExtensions.SmoothScrollIntoView.cs#L149C16-L154C27
Steps to reproduce
SmoothScrollIntoViewWithIndexAsync(index: DeployedPolicies.SelectedIndex, itemPlacement: ScrollItemPlacement.Center, disableAnimation: false, scrollIfVisible: true, additionalHorizontalOffset: 0, additionalVerticalOffset: 0);
Expected behavior
Only center vertically.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
Windows 11 26120.3291
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
Preview
Visual Studio Build Number
Version 17.14.0 Preview 1.1
Device form factor
Desktop
Additional context
No response
Help us help you
Yes, but if others can assist.
Describe the bug
When we use the SmoothScrollIntoView feature in the ListView Extensions on a ListView like this
On a ListView with over 20 columns and 100k rows, it centers the selected row both vertically and horizontally, which is problematic and undesired because the user needs to scroll back horizontally all the way to the left side again.
There needs to be 2 more separate options such as
CenterVerticallyandCenterHorizontally.The code responsible for it is located here:
https://github.com/CommunityToolkit/Windows/blob/e2eb2c7b5dcc55e0a0f1923a4f4ea45f49a4fb77/components/Extensions/src/ListViewBase/ListViewExtensions.SmoothScrollIntoView.cs#L149C16-L154C27
Steps to reproduce
Expected behavior
Only center vertically.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
Windows 11 26120.3291
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
Preview
Visual Studio Build Number
Version 17.14.0 Preview 1.1
Device form factor
Desktop
Additional context
No response
Help us help you
Yes, but if others can assist.