IElementFactory IElementFactory IElementFactory IElementFactory Interface

Definition

Supports the creation and recycling of UIElement objects.

public : interface IElementFactory
struct winrt::Windows::UI::Xaml::IElementFactory
public interface IElementFactory
Public Interface IElementFactory
Attributes

Windows 10 requirements

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

Remarks

Two concrete implementations of this interface are:

  1. DataTemplate, and
  2. DataTemplateSelector

The GetElement method is used to retrieve a valid instance of a UIElement. The RecycleElement method is used to recycle elements.

Methods

GetElement(ElementFactoryGetArgs) GetElement(ElementFactoryGetArgs) GetElement(ElementFactoryGetArgs) GetElement(ElementFactoryGetArgs)

Gets an UIElement object.

RecycleElement(ElementFactoryRecycleArgs) RecycleElement(ElementFactoryRecycleArgs) RecycleElement(ElementFactoryRecycleArgs) RecycleElement(ElementFactoryRecycleArgs)

Recycles a UIElement that was previously retrieved using GetElement.

See also

  • T:Windows.UI.Xaml.DataTemplate * T:Windows.UI.Xaml.Controls.DataTemplateSelector