ItemsRepeater.ElementPrepared 事件

定义

每次准备使用元素时发生。

// Register
event_token ElementPrepared(TypedEventHandler<ItemsRepeater, ItemsRepeaterElementPreparedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ItemsRepeater::ElementPrepared_revoker ElementPrepared(auto_revoke_t, TypedEventHandler<ItemsRepeater, ItemsRepeaterElementPreparedEventArgs const&> const& handler) const;
public event TypedEventHandler<ItemsRepeater,ItemsRepeaterElementPreparedEventArgs> ElementPrepared;
function onElementPrepared(eventArgs) { /* Your code */ }
itemsRepeater.addEventListener("elementprepared", onElementPrepared);
itemsRepeater.removeEventListener("elementprepared", onElementPrepared);
- or -
itemsRepeater.onelementprepared = onElementPrepared;
Public Custom Event ElementPrepared As TypedEventHandler(Of ItemsRepeater, ItemsRepeaterElementPreparedEventArgs) 

事件类型

注解

准备好的元素可能是新创建的,也可以是正在重用的现有元素。

适用于