DataTemplateKey Class

Definition

Represents the resource key for the DataTemplate class.

class DataTemplateKey
[Windows.Foundation.Metadata.Composable(typeof(Windows.UI.Xaml.IDataTemplateKeyFactory), Windows.Foundation.Metadata.CompositionType.Public, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
public class DataTemplateKey
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
[Windows.Foundation.Metadata.Composable(typeof(Windows.UI.Xaml.IDataTemplateKeyFactory), Windows.Foundation.Metadata.CompositionType.Public, 65536, "Windows.Foundation.UniversalApiContract")]
public class DataTemplateKey
Public Class DataTemplateKey
Inheritance
DataTemplateKey
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

Initializes a new instance of the DataTemplateKey class.

DataTemplateKey(Object)

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

Properties

DataType

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

Applies to

See also