共用方式為


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

傳回

異步動作。

屬性

適用於