Expand Minimize

ListViewBase.IsItemClickEnabled property

Applies to Windows and Windows Phone

Gets or sets a value that indicates whether items in the view fire an ItemClick event in response to interaction.

Syntax


Public Property IsItemClickEnabled As Boolean


<listViewBase IsItemClickEnabled="bool" />

Property value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

true if interaction fires an ItemClick event; otherwise, false. The default is false.

Remarks

By default, a user can select items in the view by tapping or clicking on them. You can change this behavior to make the user interaction fire a click event instead of triggering item selection.

If you set the IsItemClickEnabled property to true, you must set the SelectionMode property to ListViewSelectionMode.None. Handle the ItemClick event to respond to the user interaction.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ListViewBase
SelectionMode
ItemClick

 

 

Show:
© 2014 Microsoft