@@ -17,7 +17,7 @@ namespace Microsoft.Toolkit.Uwp.UI
17
17
public static class SmoothScrollIntoView
18
18
{
19
19
/// <summary>
20
- /// Smooth scrolling the list to bring the specified index into view
20
+ /// Smooth scrolling the list to bring the specified index into view
21
21
/// </summary>
22
22
/// <param name="listViewBase">List to scroll</param>
23
23
/// <param name="index">The intex to bring into view</param>
@@ -31,7 +31,7 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
31
31
{
32
32
if ( index > ( listViewBase . Items . Count - 1 ) )
33
33
{
34
- index = ( listViewBase . Items . Count - 1 ) ;
34
+ index = listViewBase . Items . Count - 1 ;
35
35
}
36
36
37
37
index = ( index < 0 ) ? ( index + listViewBase . Items . Count ) : index ;
@@ -51,17 +51,17 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
51
51
52
52
var tcs = new TaskCompletionSource < object > ( ) ;
53
53
54
- void viewChanged ( object _ , ScrollViewerViewChangedEventArgs __ ) => tcs . TrySetResult ( result : null ) ;
54
+ void ViewChanged ( object obj , ScrollViewerViewChangedEventArgs args ) => tcs . TrySetResult ( result : null ) ;
55
55
56
56
try
57
57
{
58
- scrollViewer . ViewChanged += viewChanged ;
58
+ scrollViewer . ViewChanged += ViewChanged ;
59
59
listViewBase . ScrollIntoView ( listViewBase . Items [ index ] , ScrollIntoViewAlignment . Leading ) ;
60
60
await tcs . Task ;
61
61
}
62
62
finally
63
63
{
64
- scrollViewer . ViewChanged -= viewChanged ;
64
+ scrollViewer . ViewChanged -= ViewChanged ;
65
65
}
66
66
67
67
selectorItem = ( SelectorItem ) listViewBase . ContainerFromIndex ( index ) ;
@@ -74,17 +74,17 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
74
74
{
75
75
var tcs = new TaskCompletionSource < object > ( ) ;
76
76
77
- void viewChanged ( object _ , ScrollViewerViewChangedEventArgs __ ) => tcs . TrySetResult ( result : null ) ;
77
+ void ViewChanged ( object obj , ScrollViewerViewChangedEventArgs args ) => tcs . TrySetResult ( result : null ) ;
78
78
79
79
try
80
80
{
81
- scrollViewer . ViewChanged += viewChanged ;
81
+ scrollViewer . ViewChanged += ViewChanged ;
82
82
scrollViewer . ChangeView ( previousXOffset , previousYOffset , zoomFactor : null , disableAnimation : true ) ;
83
83
await tcs . Task ;
84
84
}
85
85
finally
86
86
{
87
- scrollViewer . ViewChanged -= viewChanged ;
87
+ scrollViewer . ViewChanged -= ViewChanged ;
88
88
}
89
89
}
90
90
@@ -180,7 +180,7 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
180
180
}
181
181
182
182
/// <summary>
183
- /// Smooth scrolling the list to bring the specified data item into view
183
+ /// Smooth scrolling the list to bring the specified data item into view
184
184
/// </summary>
185
185
/// <param name="listViewBase">List to scroll</param>
186
186
/// <param name="item">The data item to bring into view</param>
0 commit comments