Windows app
摺疊目錄
展開目錄
EN
本內容沒有您的語言版本,但有英文版本。

WinJS.UI.TapBehavior enumeration

Applies to Windows and Windows Phone

Specifies how items in a ListView respond to the tap interaction.

Syntax


var WinJS.UI.TapBehavior = {
  directSelect : "directSelect", 
  toggleSelect : "toggleSelect", 
  invokeOnly : "invokeOnly", 
  none : "none"
}

Members

The TapBehavior enumeration has these members.

MemberValueDescription
directSelect"directSelect"

The item is selected and invoked.

toggleSelect"toggleSelect"

The item is selected if was not already selected, and its deselected if it was already selected.

invokeOnly"invokeOnly"

The item is invoked but not selected.

none"none"

Nothing happens.

Remarks

Do not set a ListView control's TapBehavior property to "directSelect" when its SelectionMode is set to "none".

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView.TapBehavior
Quickstart: Adding a ListView

 

 

顯示:
© 2016 Microsoft