FuncTemplate<TControl> Class

Summary

Creates a control from a Func<TResult>.
Namespace
Avalonia.Controls.Templates
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["ITemplate<TControl>"] Type-.->Interface1["ITemplate"] click Interface1 "/api/Avalonia.Styling/ITemplate" Type["FuncTemplate<TControl>"] class Type type-node

Syntax

public class FuncTemplate<TControl> : ITemplate<TControl>, ITemplate where TControl : IControl

Type Parameters

Name Description
TControl The type of control.

Constructors

Name Summary
FuncTemplate(Func<TControl>) Initializes a new instance of the FuncTemplate<TControl> class.

Methods

Name Value Summary
Build() TControl
Creates the control.