Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.19 KB

listviewbase_isitemclickenabled.md

File metadata and controls

34 lines (22 loc) · 1.19 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.ListViewBase.IsItemClickEnabled
winrt property

Windows.UI.Xaml.Controls.ListViewBase.IsItemClickEnabled

-description

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

-xaml-syntax

<listViewBase IsItemClickEnabled="bool" />

-property-value

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.

-examples

-see-also

SelectionMode, ItemClick