Data​Template​Key Data​Template​Key Data​Template​Key Class

Definition

Represents the resource key for the DataTemplate class.

public : class DataTemplateKey : IDataTemplateKeypublic class DataTemplateKey : IDataTemplateKeyPublic Class DataTemplateKey Implements IDataTemplateKey
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

DataTemplateKey represents an underlying type for a resource key (x:Key attribute of a DataTemplate ) that is used for resource lookup internally instead of a string. It exists mainly for infrastructure, you don't use this type directly in any common XAML data binding scenario.

Constructors

DataTemplateKey() DataTemplateKey() DataTemplateKey()

Initializes a new instance of the DataTemplateKey class.

public : DataTemplateKey()public DataTemplateKey()Public Sub New()
Attributes
See Also

DataTemplateKey(Object) DataTemplateKey(Object) DataTemplateKey(Object)

Initializes a new instance of the DataTemplateKey class with the specified type.

public : DataTemplateKey(PlatForm::Object dataType)public DataTemplateKey(Object dataType)Public Sub New(dataType As Object)
Parameters
dataType
PlatForm::Object Object Object

The type for which this template is designed.

Attributes

Properties

DataType DataType DataType

Gets or sets the type for which the template is designed.

public : PlatForm::Object DataType { get; set; }public object DataType { get; set; }Public ReadWrite Property DataType As object
Value
PlatForm::Object object object

The type of object that the template is used to display, or a string that specifies the XML tag name for the XML data that the template is used to display.

Attributes

See Also