DataTemplate Constructor (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the DataTemplate class with the specified DataType property.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public DataTemplate(
	object dataType
)

Parameters

dataType
Type: System.Object

If the template is intended for object data, this is the Type name of the data object.

To refer to the Type name of the class, use the x:Type Markup Extension. If the template is intended for XML data, this is the string that represents the tag name of the data.

.NET Framework
Available since 3.0
Silverlight
Available since 5.0
Return to top
Show: