共用方式為


WinJS.UI.VirtualizedDataSource constructor

Initializes the VirtualizedDataSource base class of a custom data source.

Syntax

var virtualizedDataSource = new WinJS.UI.VirtualizedDataSource(listDataAdapter, options);

Parameters

  • listDataAdapter
    Type: IListDataAdapter**

    The object that supplies data to the VirtualizedDataSource.

  • options
    Type: Object

    An object that can contain properties that specify additional options for the VirtualizedDataSource. It supports these properties:

    • cacheSize
      A number that specifies the minimum number of unrequested items to retain, in case they are requested.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

VirtualizedDataSource