Partilhar via


ILayout.getScrollBarRange method

This API is no longer supported. Starting with the Windows Library for JavaScript 2.0 Preview, use the ILayout2 interface. Calculates the number of pixels needed to render all the items in the ListView.

Syntax

iLayout.getScrollBarRange().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: Promise**

A Promise that returns an object that has these properties:

  • beginScrollPosition: The first pixel of the scroll bar range, usually 0.
  • endScrollPosition: The last pixel in the scroll bar range, usually the size of the ListView control's win-surface element.

Remarks

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ILayout