DataTemplateSelector.GetElement(ElementFactoryGetArgs) Method

Definition

Creates or retrieves an existing instance of the UIElement object declared in the DataTemplate returned by SelectTemplate.

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

Parameters

Returns

An instance of the root UIElement declared in the selected DataTemplate or, null if the root of the selected DataTemplate is not a UIElement.

Implements

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

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

Applies to

See also