DataTemplateKey DataTemplateKey DataTemplateKey Class


Represents the resource key for the DataTemplate class.

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


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.


DataTemplateKey() DataTemplateKey() DataTemplateKey()

Initializes a new instance of the DataTemplateKey class.

public : DataTemplateKey()
public DataTemplateKey()
Public Sub New()
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)
Platform::Object Object Object

The type for which this template is designed.


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
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.

See Also