Share via


IElementFactory.GetElement(ElementFactoryGetArgs) 方法

定義

取得 UIElement 物件。

UIElement GetElement(ElementFactoryGetArgs const& args);
public UIElement GetElement(ElementFactoryGetArgs args);
function getElement(args)
Public Function GetElement (args As ElementFactoryGetArgs) As UIElement

參數

傳回

UIElement物件。

備註

當您呼叫 GetElement 時,傳回的 UIElement 物件可以新增至另一個 UIElement的視覺化樹狀結構。 每次叫用 GetElement 時,都不需要建立新的實例。 所傳回 的 UIElement 可能是已備妥以供重複使用的現有實例。

如需詳細資訊,請參閱 DataTemplate.GetElement 方法的備註。

適用於

另請參閱