DataTemplateKey Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
public DataTemplateKey ();
Public Sub New ()
Remarks
When constructed without a data type, you must specify DataType
as a property.
Applies to
DataTemplateKey(Object)
Initializes a new instance of the DataTemplateKey class with the specified type.
public:
DataTemplateKey(System::Object ^ dataType);
public DataTemplateKey (object dataType);
new System.Windows.DataTemplateKey : obj -> System.Windows.DataTemplateKey
Public Sub New (dataType As Object)
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
Comentaris
https://aka.ms/ContentUserFeedback.
Properament: al llarg del 2024 eliminarem gradualment GitHub Issues com a mecanisme de retroalimentació del contingut i el substituirem per un nou sistema de retroalimentació. Per obtenir més informació, consulteu:Envieu i consulteu els comentaris de