共用方式為


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 專案的擷取。

傳回

非同步動作。

屬性

適用於