This topic has not yet been rated - Rate this topic

DataTemplateKey Constructor (Object)

Initializes a new instance of the DataTemplateKey class with the specified type.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
public DataTemplateKey(
	Object dataType
)
You cannot use constructors in XAML.

Parameters

dataType
Type: System.Object

The type for which this template is designed. This is either a Type (to indicate that the DataTemplate is used to display items of the given type), or a string (to indicate that the DataTemplate is used to display XmlNode elements with the given tag name).

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, 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.