Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DataTemplateSelector.GetElement(ElementFactoryGetArgs) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?