ListViewPersistenceHelper.SetRelativeScrollPositionAsync 方法

定义

开始异步操作以设置 ListView 的相对滚动位置。

public:
 static IAsyncAction ^ SetRelativeScrollPositionAsync(ListViewBase ^ listViewBase, Platform::String ^ relativeScrollPosition, ListViewKeyToItemHandler ^ keyToItemHandler);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SetRelativeScrollPositionAsync(ListViewBase listViewBase, string relativeScrollPosition, ListViewKeyToItemHandler keyToItemHandler);
function setRelativeScrollPositionAsync(listViewBase, relativeScrollPosition, keyToItemHandler)
Public Shared Function SetRelativeScrollPositionAsync (listViewBase As ListViewBase, relativeScrollPosition As String, keyToItemHandler As ListViewKeyToItemHandler) As IAsyncAction

参数

listViewBase
ListViewBase

ListView。

relativeScrollPosition
String

Platform::String

ListView 的相对滚动位置。

keyToItemHandler
ListViewKeyToItemHandler

在给定键的情况下处理 ListView 项的检索的方法。

返回

异步操作。

属性

适用于