ListViewPersistenceHelper class
TOC
Collapse the table of content
Expand the table of content

ListViewPersistenceHelper class

Represents a helper class to save and retrieve the relative scroll position of the ListView.

Inheritance

Object
  ListViewPersistenceHelper

Syntax


public sealed class ListViewPersistenceHelper

Members

The ListViewPersistenceHelper class has these types of members:

Methods

The ListViewPersistenceHelper class has these methods. It also inherits methods from the Object class.

MethodDescription
GetRelativeScrollPosition Retrieves the relative scroll position of the ListView.
SetRelativeScrollPositionAsync Begins an asynchronous action to set the relative scroll position of the ListView.

 

Remarks

If the ItemsStackPanel.ItemsUpdatingScrollMode property is set to KeepItemsInView, ListViewPersistenceHelper attempts to restore the scroll position using the key of the first visible item. If ItemsUpdatingScrollMode is KeepLastItemInView, it attempts to restore the scroll position using the key of the last visible item.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version]
[WebHostHidden()]

See also

Object

 

 

Show:
© 2016 Microsoft