Skip to main content
ListView.scrollPosition property

Applies to Windows and Windows Phone

Gets or sets the distance, in pixels, of the start of the viewable area within the viewport.

Syntax


<div 
    data-win-control="WinJS.UI.ListView" 
    data-win-options="{ scrollPosition : value}" >
</div>

var scrollPosition = listView.scrollPosition;
listView.scrollPosition = scrollPosition;

Property value

Type: Number

A value greater than or equal to 0 that specifies the distance, in pixels, of the start of the viewable area within the viewport.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

ListView