共用方式為


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

要為其建立範本的控制項類型。

適用於