Share via


ItemsRepeater.ElementClearing Event

Definition

Occurs each time an element is cleared and made available to be re-used.

// Register
event_token ElementClearing(TypedEventHandler<ItemsRepeater, ItemsRepeaterElementClearingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ItemsRepeater::ElementClearing_revoker ElementClearing(auto_revoke_t, TypedEventHandler<ItemsRepeater, ItemsRepeaterElementClearingEventArgs const&> const& handler) const;
public event TypedEventHandler<ItemsRepeater,ItemsRepeaterElementClearingEventArgs> ElementClearing;
function onElementClearing(eventArgs) { /* Your code */ }
itemsRepeater.addEventListener("elementclearing", onElementClearing);
itemsRepeater.removeEventListener("elementclearing", onElementClearing);
- or -
itemsRepeater.onelementclearing = onElementClearing;
Public Custom Event ElementClearing As TypedEventHandler(Of ItemsRepeater, ItemsRepeaterElementClearingEventArgs) 

Event Type

Remarks

This event is raised immediately each time an element is cleared, such as when it falls outside the range of realized items. Elements are cleared when they become available for re-use.

Applies to