IXRVirtualizingStackPanel::AddCleanUpVirtualizedItemEventHandler (Compact 2013)
3/28/2014
This method adds an event handler to the CleanUpVirtualizedItem event, which occurs when an item is re-virtualized.
Syntax
virtual HRESULT STDMETHODCALLTYPE AddCleanUpVirtualizedItemEventHandler (
__in IXRDelegate<XRCleanUpVirtualizedItemEventArgs>* pDelegate
) = 0;
Parameters
- pDelegate
[in] Pointer to an IXRDelegate<ArgType, [SenderType]> object to attach to the CleanUpVirtualizedItem event.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The CleanUpVirtualizedItem event occurs when an item in this items control is re-virtualized. Virtualization refers to a technique by which a subset of UI elements are generated from a larger number of data items based on which items are visible on the screen. When an item is re-virtualized, it is calculated in preparation for being displayed on the screen.
The CreateDelegate function provides an efficient way to create the IXRDelegate<ArgType, [SenderType]> object.
You can attach multiple delegates to the same event.
To remove a delegate from the CleanUpVirtualizedItem event, call IXRVirtualizingStackPanel::RemoveCleanUpVirtualizedItemEventHandler.
.NET Framework Equivalent
System.Windows.Controls.VirtualizingStackPanel.CleanUpVirtualizedItemEvent
Requirements
Header |
XamlRuntime.h, |
sysgen |
SYSGEN_XAML_RUNTIME |