DataTemplateSelector.RecycleElement(ElementFactoryRecycleArgs) DataTemplateSelector.RecycleElement(ElementFactoryRecycleArgs) DataTemplateSelector.RecycleElement(ElementFactoryRecycleArgs) DataTemplateSelector.RecycleElement(ElementFactoryRecycleArgs) Method

Definition

Recycles a UIElement object that was created using GetElement.

public : void RecycleElement(ElementFactoryRecycleArgs args)
void RecycleElement(ElementFactoryRecycleArgs args) const;
public void RecycleElement(ElementFactoryRecycleArgs args)
Public Sub RecycleElement(args As ElementFactoryRecycleArgs)

Parameters

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Remarks

For more info, see the remarks for the DataTemplate.RecycleElement method.

See also

  • T:Windows.UI.Xaml.IElementFactory * DataTemplate * M:Windows.UI.Xaml.DataTemplate.GetElement(Windows.UI.Xaml.ElementFactoryGetArgs) * M:Windows.UI.Xaml.DataTemplate.RecycleElement(Windows.UI.Xaml.ElementFactoryRecycleArgs) * DataTemplateSelector * M:Windows.UI.Xaml.Controls.DataTemplateSelector.GetElement(Windows.UI.Xaml.ElementFactoryGetArgs) * RecycleElement