共用方式為


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) 

事件類型

備註

備妥的專案可能是新建立的,或是重複使用的現有專案。

適用於