ItemsRepeater can't scroll manually using ChangeView when used in ScrollViewer #1610
Labels
area-ItemsRepeater
area-Scrolling
bug
Something isn't working
needs-author-feedback
Asked author to supply more information.
team-Controls
Issue for the Controls team
Describe the bug
Hi, I'm using
ItemsRepeater
, and surrounded in aScrollViewer
. I have disabledScrollViewer
'sHorizontalScrollMode
andVerticalScrollMode
. And I want to useChangeView
method to scroll.But it doesn't works.
However,
ScrollToHorizontalOffset
/ScrollToVerticalOffset
works.Steps to reproduce the bug
Steps to reproduce the behavior:
Then use this code to scroll.
sss.ChangeView(sss.ActualWidth, null, null);
This code does't not work.But
sss.ScrollToHorizontalOffset(sss.ActualWidth);
works.Expected behavior
ItemsRepeater can scroll left/right using
ChangeView
method.Screenshots
Version Info
OS: 18362.418
And a weird thing is, I actually saw this bug on 18362. But last night I upgrade my pc to 1909(18363.476),
ChangeView
method works.NuGet package version:
Microsoft.UI.Xaml: 2.2.190917002
Additional context
In 18362(1903) or lower,
ScrollToHorizontalOffset
/ScrollToVerticalOffset
works.In 18363(1909),
ChangeView
andScrollToHorizontalOffset
/ScrollToVerticalOffset
works.So for a better compatible,
ScrollToHorizontalOffset
/ScrollToVerticalOffset
is the best choice, although this api is out of date.The text was updated successfully, but these errors were encountered: