Share via


ListViewBase.ChoosingItemContainer Event

Definition

Occurs when an item container is to be chosen for a data item.

// Register
event_token ChoosingItemContainer(TypedEventHandler<ListViewBase, ChoosingItemContainerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ListViewBase::ChoosingItemContainer_revoker ChoosingItemContainer(auto_revoke_t, TypedEventHandler<ListViewBase, ChoosingItemContainerEventArgs const&> const& handler) const;
public event TypedEventHandler<ListViewBase,ChoosingItemContainerEventArgs> ChoosingItemContainer;
function onChoosingItemContainer(eventArgs) { /* Your code */ }
listViewBase.addEventListener("choosingitemcontainer", onChoosingItemContainer);
listViewBase.removeEventListener("choosingitemcontainer", onChoosingItemContainer);
- or -
listViewBase.onchoosingitemcontainer = onChoosingItemContainer;
Public Custom Event ChoosingItemContainer As TypedEventHandler(Of ListViewBase, ChoosingItemContainerEventArgs) 

Event Type

Remarks

This event is raised only if the list or grid's ItemsPanel is an ItemsStackPanel or ItemsWrapGrid. If you replace the ItemsPanel with another panel, the event is not raised.

Applies to