Skip to main content
.NET Framework Class Library
DataTemplate..::.DataTemplateKey Property

Gets the default key of the DataTemplate.

Namespace: System.Windows
Assembly: PresentationFramework (in PresentationFramework.dll)
Syntax
Public ReadOnly Property DataTemplateKey As Object
	Get
public Object DataTemplateKey { get; }
public:
property Object^ DataTemplateKey {
	Object^ get ();
}
member DataTemplateKey : Object

Property Value

Type: System..::.Object
The default key of the DataTemplate.
Remarks

If you do not set the x:Key Directive on a DataTemplate that is in a ResourceDictionary, the DataTemplateKey is used as the key.

Version Information

.NET Framework

Supported in: 4, 3.5 SP1, 3.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.