Compartir a través de


DataTemplateKey.DataType Property

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

Gets or sets the type for which the template is intended.

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

Syntax

'Declaration
Public Property DataType As Object
public Object DataType { get; set; }

Property Value

Type: System.Object
The type of object to which the template is applied.

Exceptions

Exception Condition
ArgumentException

When setting this property, the specified value 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.