Skip to content

Commit 60fc7c5

Browse files
Vijay-NirmalRosuavio
authored andcommitted
Fixes for Pipeline build failed
1 parent af4d202 commit 60fc7c5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewExtensions/ListViewExtensionsPage.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -49,7 +49,7 @@ public void OnXamlRendered(FrameworkElement control)
4949

5050
private void Load()
5151
{
52-
SampleController.Current.RegisterNewCommand("Start Smooth Scroll", (_, __) =>
52+
SampleController.Current.RegisterNewCommand("Start Smooth Scroll", (sender, args) =>
5353
{
5454
var index = int.Parse(indexInput.Text);
5555
var itemPlacement = (ItemPlacement)Enum.Parse(typeof(ItemPlacement), itemPlacementInput.Text);
@@ -66,7 +66,7 @@ private void Load()
6666
}
6767
}
6868

69-
public ObservableCollection<string> GetOddEvenSource(int count)
69+
private ObservableCollection<string> GetOddEvenSource(int count)
7070
{
7171
var oddEvenSource = new ObservableCollection<string>();
7272

Microsoft.Toolkit.Uwp.UI/Extensions/ListViewBase/SmoothScrollIntoView.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.Toolkit.Uwp.UI
1717
public static class SmoothScrollIntoView
1818
{
1919
/// <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
2121
/// </summary>
2222
/// <param name="listViewBase">List to scroll</param>
2323
/// <param name="index">The intex to bring into view</param>
@@ -31,7 +31,7 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
3131
{
3232
if (index > (listViewBase.Items.Count - 1))
3333
{
34-
index = (listViewBase.Items.Count - 1);
34+
index = listViewBase.Items.Count - 1;
3535
}
3636

3737
index = (index < 0) ? (index + listViewBase.Items.Count) : index;
@@ -51,17 +51,17 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
5151

5252
var tcs = new TaskCompletionSource<object>();
5353

54-
void viewChanged(object _, ScrollViewerViewChangedEventArgs __) => tcs.TrySetResult(result: null);
54+
void ViewChanged(object obj, ScrollViewerViewChangedEventArgs args) => tcs.TrySetResult(result: null);
5555

5656
try
5757
{
58-
scrollViewer.ViewChanged += viewChanged;
58+
scrollViewer.ViewChanged += ViewChanged;
5959
listViewBase.ScrollIntoView(listViewBase.Items[index], ScrollIntoViewAlignment.Leading);
6060
await tcs.Task;
6161
}
6262
finally
6363
{
64-
scrollViewer.ViewChanged -= viewChanged;
64+
scrollViewer.ViewChanged -= ViewChanged;
6565
}
6666

6767
selectorItem = (SelectorItem)listViewBase.ContainerFromIndex(index);
@@ -74,17 +74,17 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
7474
{
7575
var tcs = new TaskCompletionSource<object>();
7676

77-
void viewChanged(object _, ScrollViewerViewChangedEventArgs __) => tcs.TrySetResult(result: null);
77+
void ViewChanged(object obj, ScrollViewerViewChangedEventArgs args) => tcs.TrySetResult(result: null);
7878

7979
try
8080
{
81-
scrollViewer.ViewChanged += viewChanged;
81+
scrollViewer.ViewChanged += ViewChanged;
8282
scrollViewer.ChangeView(previousXOffset, previousYOffset, zoomFactor: null, disableAnimation: true);
8383
await tcs.Task;
8484
}
8585
finally
8686
{
87-
scrollViewer.ViewChanged -= viewChanged;
87+
scrollViewer.ViewChanged -= ViewChanged;
8888
}
8989
}
9090

@@ -180,7 +180,7 @@ public static async Task SmoothScrollIntoViewWithIndex(this ListViewBase listVie
180180
}
181181

182182
/// <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
184184
/// </summary>
185185
/// <param name="listViewBase">List to scroll</param>
186186
/// <param name="item">The data item to bring into view</param>

0 commit comments

Comments
 (0)