ItemsRepeater.ElementClearing Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs each time an element is cleared and made available to be re-used.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
// 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;
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.