DataTemplateKey Constructors

Definition

Initializes a new instance of the DataTemplateKey class.

Overloads

DataTemplateKey()

Initializes a new instance of the DataTemplateKey class.

DataTemplateKey(Object)

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

DataTemplateKey()

Initializes a new instance of the DataTemplateKey class.

public DataTemplateKey ();

Remarks

When constructed without a data type, you must specify DataType as a property.

Applies to

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DataTemplateKey(Object)

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

public DataTemplateKey (object dataType);

Parameters

dataType
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).

Applies to

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9