Share via


DataTemplateKey Class

Definition

Represents the resource key for the DataTemplate class.

/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 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(Microsoft.UI.Xaml.WinUIContract), 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

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