ListViewPersistenceHelper.SetRelativeScrollPositionAsync 方法

定义

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

public:
 static IAsyncAction ^ SetRelativeScrollPositionAsync(ListViewBase ^ listViewBase, Platform::String ^ relativeScrollPosition, ListViewKeyToItemHandler ^ keyToItemHandler);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SetRelativeScrollPositionAsync(ListViewBase const& listViewBase, winrt::hstring const& relativeScrollPosition, ListViewKeyToItemHandler const& 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

winrt::hstring

ListView 的相对滚动位置。

keyToItemHandler
ListViewKeyToItemHandler

将处理对给定键的 ListView 项的检索的方法。

返回

异步操作。

属性

适用于