Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

DataTemplate.DataTemplateKey Property

Updated: July 2008

Gets the default key of the DataTemplate.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
public Object DataTemplateKey { get; }
You cannot set this property in XAML.

Property Value

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

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5 SP1, 3.0 SP2

Date

History

Reason

July 2008

Added topic for new member.

SP1 feature change.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.