Share via


ControlTemplate Class

Definition

Defines the appearance of the templated control.

public ref class ControlTemplate : Microsoft::Maui::Controls::ElementTemplate
public class ControlTemplate : Microsoft.Maui.Controls.ElementTemplate
type ControlTemplate = class
    inherit ElementTemplate
Public Class ControlTemplate
Inherits ElementTemplate
Inheritance
ControlTemplate

Constructors

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.

Properties

Name Description
LoadTemplate (Inherited from ElementTemplate)

Methods

Name Description
CreateContent()

Used by the XAML infrastructure to load data templates and set up the content of the resulting UI.

(Inherited from ElementTemplate)

Applies to