Partager via


DataTemplate Constructor (Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub New ( _
    dataType As Object _
)
public DataTemplate(
    Object dataType
)

Parameters

Exceptions

Exception Condition
ArgumentException

dataType is not of type Type.

Version Information

Silverlight

Supported in: 5

Platforms

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