ElementFactoryGetArgs.Data Property

Definition

Gets or sets the data item for which an appropriate element tree should be realized when calling GetElement.

C#
public object Data { get; set; }

Property Value

Object

A reference to the data item for which a UIElement should be realized.

Remarks

The implementation on DataTemplate for GetElement does not use the Data value.

However, DataTemplateSelector's implementation does use the Data value as the item argument when it invokes the SelectTemplate method.

Applies to

Product Versions
WinRT Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also