IElementFactory.GetElement(ElementFactoryGetArgs) IElementFactory.GetElement(ElementFactoryGetArgs) IElementFactory.GetElement(ElementFactoryGetArgs) IElementFactory.GetElement(ElementFactoryGetArgs) Method

Definition

Gets an UIElement object.

public : UIElement GetElement(ElementFactoryGetArgs args)
UIElement GetElement(ElementFactoryGetArgs args) const;
public UIElement GetElement(ElementFactoryGetArgs args)
Public Function GetElement(args As ElementFactoryGetArgs) As UIElement

Parameters

Returns

Remarks

When you call GetElement, the UIElement object that is returned can be added to the visual tree of another UIElement. GetElement is not required to create a new instance each time it is invoked. The UIElement being returned may be an existing instance that has been prepared for re-use.

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

See also

  • 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) * M:Windows.UI.Xaml.Controls.DataTemplateSelector.RecycleElement(Windows.UI.Xaml.ElementFactoryRecycleArgs)