ListViewBase.ChoosingItemContainer 事件

定义

当要为数据项选择项容器时发生。

// 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) 

事件类型

注解

仅当列表或网格的 ItemsPanelItemsStackPanelItemsWrapGrid 时,才会引发此事件。 如果将 ItemsPanel 替换为另一个面板,则不会引发 事件。

适用于