Udostępnij za pośrednictwem


ListViewPersistenceHelper.SetRelativeScrollPositionAsync Method

Definition

Begins an asynchronous action to set the relative scroll position of the 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

Parameters

listViewBase
ListViewBase

The ListView.

relativeScrollPosition
String

Platform::String

winrt::hstring

The relative scroll position of the ListView.

keyToItemHandler
ListViewKeyToItemHandler

The method that will handle the retrieval of the ListView item given the key.

Returns

An asynchronous action.

Attributes

Applies to