Share via


VirtualizingLayoutContext.RecycleElementCore(UIElement) Method

Definition

When implemented in a derived class, clears the specified UIElement and allows it to be either re-used or released.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

protected:
 virtual void RecycleElementCore(UIElement ^ element) = RecycleElementCore;
void RecycleElementCore(UIElement const& element);
protected virtual void RecycleElementCore(UIElement element);
Protected Overridable Sub RecycleElementCore (element As UIElement)

Parameters

element
UIElement

The element to clear.

Remarks

This method provides the behavior when RecycleElement is called.

The base implementation throws a NotImplementedException (winrt::hresult_not_implemented).

Applies to