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);
Public Function GetElement (args As ElementFactoryGetArgs) As UIElement

Parameters

Returns

UIElement

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

Remarks

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

Applies to