DataTemplateKey class

Applies to Windows and Windows Phone

Represents the resource key for the DataTemplate class.

Inheritance

Object
  DataTemplateKey

Syntax


public class DataTemplateKey

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The DataTemplateKey class has these types of members:

Constructors

The DataTemplateKey class has these constructors.

ConstructorDescription
DataTemplateKey() Initializes a new instance of the DataTemplateKey class.
DataTemplateKey(Object) Initializes a new instance of the DataTemplateKey class with the specified type.

 

Methods

The DataTemplateKey class inherits methods from the Object class.

Properties

The DataTemplateKey class has these properties.

PropertyAccess typeDescription

DataType

Read/writeGets or sets the type for which the template is designed.

 

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.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

DataTemplate
Data binding overview

 

 

Show:
© 2014 Microsoft