Dela via


DataTemplateKey Class

Definition

Represents the resource key for the DataTemplate class.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
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)]
public class DataTemplateKey
Public Class DataTemplateKey
Inheritance
Object IInspectable DataTemplateKey
Attributes

Windows 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