ListView.tapBehavior property

Applies to Windows and Windows Phone

Gets or sets how the ListView reacts when the user taps or clicks an item.

Syntax


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


var tapBehavior = listView.tapBehavior;
listView.tapBehavior = tapBehavior;

Property value

Type: TapBehavior

One of the values defined by the TapBehavior enumeration. The default value is invokeOnly. Do not set the TapBehavior property to "directSelect" when the SelectionMode is set to "none".

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
XAML ListView and GridView customizing interactivity sample (Windows)
TapBehavior

 

 

Show:
© 2014 Microsoft