Windows apps
Collapse the table of content
Expand the table of content
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.

DataTemplate Constructor (Object)

Initializes a new instance of the DataTemplate class, setting the DataType property to the specified value.

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

public DataTemplate(
	Object dataType
)

Parameters

dataType
Type: System.Object
The initial value of the DataType property.

ExceptionCondition
ArgumentException

dataType is not of type Type.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2017 Microsoft