Share via


ListView.tapBehavior property

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 WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView

XAML ListView and GridView customizing interactivity sample (Windows)

TapBehavior