ListViewBase.ItemClick Event

Definition

Occurs when an item in the list view receives an interaction, and the IsItemClickEnabled property is true.

public:
 virtual event ItemClickEventHandler ^ ItemClick;
// Register
event_token ItemClick(ItemClickEventHandler const& handler) const;

// Revoke with event_token
void ItemClick(event_token const* cookie) const;

// Revoke with event_revoker
ListViewBase::ItemClick_revoker ItemClick(auto_revoke_t, ItemClickEventHandler const& handler) const;
public event ItemClickEventHandler ItemClick;
function onItemClick(eventArgs) { /* Your code */ }
listViewBase.addEventListener("itemclick", onItemClick);
listViewBase.removeEventListener("itemclick", onItemClick);
- or -
listViewBase.onitemclick = onItemClick;
Public Custom Event ItemClick As ItemClickEventHandler 
<listViewBase ItemClick="eventhandler" />

Event Type

Remarks

If the list view is one of the views in a SemanticZoom, selection entails additional behavior that might change between the views. This behavior is built in to the ListViewBase class, not the SemanticZoom class.

Applies to

See also