ControlTemplate 构造函数

定义

重载

ControlTemplate()

仅限内部使用。

ControlTemplate(Func<Object>)
ControlTemplate(Type)

为指定的控件类型创建新的控件模板。

ControlTemplate()

仅限内部使用。

public:
 ControlTemplate();
public ControlTemplate ();
Public Sub New ()

适用于

ControlTemplate(Func<Object>)

public:
 ControlTemplate(Func<System::Object ^> ^ createTemplate);
public ControlTemplate (Func<object> createTemplate);
new Microsoft.Maui.Controls.ControlTemplate : Func<obj> -> Microsoft.Maui.Controls.ControlTemplate
Public Sub New (createTemplate As Func(Of Object))

参数

createTemplate
Func<Object>

适用于

ControlTemplate(Type)

为指定的控件类型创建新的控件模板。

public:
 ControlTemplate(Type ^ type);
public ControlTemplate (Type type);
new Microsoft.Maui.Controls.ControlTemplate : Type -> Microsoft.Maui.Controls.ControlTemplate
Public Sub New (type As Type)

参数

type
Type

要为其创建模板的控件类型。

适用于