FuncTemplate<TParam, TControl> Class
Creates a control from a Func(T, TResult).
Definition
Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public class FuncTemplate<TParam, TControl> : ITemplate<TParam, TControl>
where TControl : Control
Public Class FuncTemplate(Of TParam, TControl As Control)
Implements ITemplate(Of TParam, TControl)
type FuncTemplate<'TParam, 'TControl when 'TControl : Control> =
class
interface ITemplate<'TParam, 'TControl>
end
| Inheritance | Object → FuncTemplate(TParam, TControl) |
| Derived | Avalonia.Controls.Templates.FuncControlTemplate Avalonia.Controls.Templates.FuncDataTemplate |
| Implements | ITemplate(TParam, TControl) |
Type Parameters
- The type of the parameter.
- The type of control.
Constructors
| FuncTemplate(TParam, TControl)(Func(TParam, INameScope, TControl)) | Initializes a new instance of the FuncTemplate(TParam, TControl) class. |
Methods
| Build(TParam) | Creates the control. |
| BuildWithNameScope(TParam) | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode() | Serves as the default hash function. (Inherited from Object) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() | Returns a string that represents the current object. (Inherited from Object) |