-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Completed 🔥bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behavior
Description
Describe the bug
Currently SmoothScrollIntoViewWithIndexAsync
is not truly asynchronous but it will return a Task
.
Lines 29 to 30 in 8ecc496
/// <returns>Note: Even though this return <see cref="Task"/>, it will not wait until the scrolling completes</returns> | |
public static async Task SmoothScrollIntoViewWithIndexAsync(this ListViewBase listViewBase, int index, ScrollItemPlacement itemPlacement = ScrollItemPlacement.Default, bool disableAnimation = false, bool scrollIfVisible = true, int additionalHorizontalOffset = 0, int additionalVerticalOffset = 0) |
- Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
Steps to Reproduce
- Use
SmoothScrollIntoViewWithIndexAsync
with animation ON, you will see it won't wait until the animation completes
Expected behavior
SmoothScrollIntoView method should be truly asynchronous. It should wait until the animation completes
Environment
NuGet Package(s): Not Released / Master Branch
Package Version(s): Not Released / Master Branch
Windows 10 Build Number:
- [x] Fall Creators Update (16299)
- [x] April 2018 Update (17134)
- [x] October 2018 Update (17763)
- [x] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [x] Insider Build (build number: )
App min and target version:
- [x] Fall Creators Update (16299)
- [x] April 2018 Update (17134)
- [x] October 2018 Update (17763)
- [x] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [x] Insider Build (xxxxx)
Device form factor:
- [ ] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [ ] 2017 (version: )
- [ ] 2019 (version: )
- [ ] 2019 Preview (version: )
PR #4129
Metadata
Metadata
Assignees
Labels
Completed 🔥bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behavior