共用方式為


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 ,則不會引發事件。

適用於