DataTemplateKey DataTemplateKey DataTemplateKey DataTemplateKey Class


Represents the resource key for the DataTemplate class.

public : class DataTemplateKey
struct winrt::Windows::UI::Xaml::DataTemplateKey
public class DataTemplateKey
Public Class DataTemplateKey

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() DataTemplateKey()

Initializes a new instance of the DataTemplateKey class.

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

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


DataType DataType DataType DataType

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

See also