ControlTemplate Constructors

Definition

Overloads

Name Description
ControlTemplate()

Creates a new empty ControlTemplate.

ControlTemplate(Func<Object>)

Creates a new ControlTemplate with the specified content factory.

ControlTemplate(Type)

Creates a new ControlTemplate with the specified type.

ControlTemplate()

Source:
ControlTemplate.cs
Source:
ControlTemplate.cs
Source:
ControlTemplate.cs
Source:
ControlTemplate.cs

Creates a new empty ControlTemplate.

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

Applies to

ControlTemplate(Func<Object>)

Source:
ControlTemplate.cs
Source:
ControlTemplate.cs
Source:
ControlTemplate.cs
Source:
ControlTemplate.cs

Creates a new ControlTemplate with the specified content factory.

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

Parameters

createTemplate
Func<Object>

A factory method that creates the template content.

Applies to

ControlTemplate(Type)

Source:
ControlTemplate.cs
Source:
ControlTemplate.cs
Source:
ControlTemplate.cs
Source:
ControlTemplate.cs

Creates a new ControlTemplate with the specified 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)

Parameters

type
Type

The type to use as the template content.

Applies to