Summary
Creates a control from a
Func<T, TResult>
.
- Namespace
- Avalonia
.Controls .Templates - Interfaces
- Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type-.->Interface0["ITemplate<TParam, TControl>"]
Type["FuncTemplate<TParam, TControl>"]
class Type type-node
Derived0["FuncDataTemplate"]-->Type
click Derived0 "/api/Avalonia.Controls.Templates/FuncDataTemplate"
Derived1["FuncControlTemplate"]-->Type
click Derived1 "/api/Avalonia.Controls.Templates/FuncControlTemplate"
Syntax
public class FuncTemplate<TParam, TControl> : ITemplate<TParam, TControl> where TControl : IControl
Type Parameters
Name | Description |
---|---|
TParam | The type of the parameter. |
TControl | The type of control. |
Constructors
Name | Summary |
---|---|
FuncTemplate |
Initializes a new instance of the FuncTemplate<TParam, TControl> class.
|
Methods
Name | Value | Summary |
---|---|---|
Build |
TControl |
Creates the control.
|
BuildWithNameScope |