WinJS.UI.ILayout interface

This topic has not yet been rated - Rate this topic

Represents a layout for the ListView.

Members

The ILayout interface has these types of members:

Methods

The ILayout interface has these methods.

MethodDescription
calculateFirstVisible

Returns the index of the first item visible at the specified point.

calculateLastVisible

Returns the index of the last item visible at the specified point.

endLayout

Called by the ListView at the end of a layout pass.

getItemPosition

Returns the position and size of the specified item.

getKeyboardNavigatedItem

Returns the index of the item to which the user navigated.

getScrollBarRange

Calculates the number of pixels needed to render all the items in the ListView.

hitTest

Returns the data source index of the item that's rendered at the specified location.

itemsAdded

Called when items are added to the itemDataSource.

itemsMoved

Called when items are moved in the itemDataSource.

itemsRemoved

Called when items are removed from the itemDataSource.

layoutHeader

Positions the specified header.

layoutItem

Positions the specified item.

prepareHeader

Called when a header is created by a renderer.

prepareItem

Called when an item is created by a renderer.

releaseItem

Called when an item is being released.

reset

Resets layout information.

setSite

Sets the layout site for the layout.

startLayout

Begins a layout pass.

 

Properties

The ILayout interface has these properties.

PropertyDescription

horizontal

Gets a value that indicates whether items are laid out horizontally.

 

Remarks

Implement this interface if you want to create a custom layout for the ListView control instead of the ListLayout or GridLayout.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.