DataTemplate 建構函式
定義
初始化 DataTemplate 類別的新執行個體。Initializes a new instance of the DataTemplate class.
多載
DataTemplate() |
初始化 DataTemplate 類別的新執行個體。Initializes a new instance of the DataTemplate class. |
DataTemplate(Object) |
使用指定的 DataTemplate 屬性,初始化 DataType 類別的新執行個體。Initializes a new instance of the DataTemplate class with the specified DataType property. |
DataTemplate()
初始化 DataTemplate 類別的新執行個體。Initializes a new instance of the DataTemplate class.
public:
DataTemplate();
public DataTemplate ();
Public Sub New ()
適用於
DataTemplate(Object)
使用指定的 DataTemplate 屬性,初始化 DataType 類別的新執行個體。Initializes a new instance of the DataTemplate class with the specified DataType property.
public:
DataTemplate(System::Object ^ dataType);
public DataTemplate (object dataType);
new System.Windows.DataTemplate : obj -> System.Windows.DataTemplate
Public Sub New (dataType As Object)
參數
- dataType
- Object
如果樣板是要用於物件資料,則這是資料物件的型別名稱。If the template is intended for object data, this is the Type name of the data object.
備註
若要參考類別的類型名稱,請使用 X:Type 標記延伸。To refer to the Type name of the class, use the x:Type Markup Extension. 如果範本適用于 XMLXML 資料,這就是代表資料標記名稱的字串。If the template is intended for XMLXML data, this is the string that represents the tag name of the data.