Windows Dev Center

EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

ListView.swipeBehavior property

Applies to Windows only

[ListView.swipeBehavior property is no longer available for use as of Windows Library for JavaScript (WinJS) 4.0 Preview. Instead, we recommend you follow design guidance on selection scenarios.]

Gets or sets how the ListView reacts to the swipe gesture. The swipe gesture can select the swiped items or can have no effect on the current selection.

Syntax


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


var swipeBehavior = listView.swipeBehavior;
listView.swipeBehavior = swipeBehavior;

Property value

Type: WinJS.UI.SwipeBehavior

One of the values defined by the SwipeBehavior enumeration.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

End of client support

Windows 8.1

End of phone support

None supported

End of server support

Windows Server 2012 R2

Namespace

WinJS.UI

Library

Ui.js

See also

ListView
HTML ListView customizing interactivity sample (Windows)
How to change the selection mode (HTML)

 

 

Mostra:
© 2015 Microsoft