IElementFactory インターフェイス

定義

UIElement オブジェクトの作成とリサイクルをサポートします。

public interface class IElementFactory
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1979365959, 11506, 21678, 145, 230, 5, 129, 85, 111, 221, 170)]
struct IElementFactory
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(1979365959, 11506, 21678, 145, 230, 5, 129, 85, 111, 221, 170)]
public interface IElementFactory
Public Interface IElementFactory
派生
属性

注釈

このインターフェイスの具体的な実装は次の 2 つあります。

  1. DataTemplate、および
  2. DataTemplateSelector

GetElement メソッドは、UIElement の有効なインスタンスを取得するために使用されます。 RecycleElement メソッドは、要素をリサイクルするために使用されます。

メソッド

GetElement(ElementFactoryGetArgs)

UIElement オブジェクトを取得します。

RecycleElement(ElementFactoryRecycleArgs)

GetElement を使用して以前に取得した UIElement をリサイクルします

適用対象

こちらもご覧ください