Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

WinJS 3.0

Namespace

WinJS.UI

See also

ListView
XAML ListView and GridView customizing interactivity sample (Windows)
TapBehavior

 

 

Show: