Skip to main content

FuncTemplate<TControl> Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Creates a control from a Func<T>.

public class FuncTemplate<TControl>

Inheritance: object -> FuncTemplate<TControl>

Implements: ITemplate<>, ITemplate

Constructors​

NameDescription
FuncTemplate<TControl>No summary available.

FuncTemplate<TControl> Constructor​

public FuncTemplate<TControl>(Func<TControl> func)

Parameters​

func Func<TControl>

Methods​

NameDescription
BuildCreates the control.

Build Method​

Creates the control.

public TControl Build()

Returns​

TControl

The created control.