ListViewExtensions.SmoothScrollIntoViewWithIndexAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Smooth scrolling the list to bring the specified index into view
public static System.Threading.Tasks.Task SmoothScrollIntoViewWithIndexAsync (this Windows.UI.Xaml.Controls.ListViewBase listViewBase, int index, Microsoft.Toolkit.Uwp.UI.ScrollItemPlacement itemPlacement = Microsoft.Toolkit.Uwp.UI.ScrollItemPlacement.Default, bool disableAnimation = false, bool scrollIfVisible = true, int additionalHorizontalOffset = 0, int additionalVerticalOffset = 0);
static member SmoothScrollIntoViewWithIndexAsync : Windows.UI.Xaml.Controls.ListViewBase * int * Microsoft.Toolkit.Uwp.UI.ScrollItemPlacement * bool * bool * int * int -> System.Threading.Tasks.Task
<Extension()>
Public Function SmoothScrollIntoViewWithIndexAsync (listViewBase As ListViewBase, index As Integer, Optional itemPlacement As ScrollItemPlacement = Microsoft.Toolkit.Uwp.UI.ScrollItemPlacement.Default, Optional disableAnimation As Boolean = false, Optional scrollIfVisible As Boolean = true, Optional additionalHorizontalOffset As Integer = 0, Optional additionalVerticalOffset As Integer = 0) As Task
Parameters
- listViewBase
- Windows.UI.Xaml.Controls.ListViewBase
List to scroll
- index
- Int32
The index to bring into view. Index can be negative.
- itemPlacement
- ScrollItemPlacement
Set the item placement after scrolling
- disableAnimation
- Boolean
Set true to disable animation
- scrollIfVisible
- Boolean
Set false to disable scrolling when the corresponding item is in view
- additionalHorizontalOffset
- Int32
Adds additional horizontal offset
- additionalVerticalOffset
- Int32
Adds additional vertical offset
Returns
Returns Task that completes after scrolling