在代码中创建数据模板
Avalonia also supports creating data templates in code with the FuncDataTemplate<T>
class.
At its simplest you can create a data template by passing a lambda which accepts an instance to the FuncDataTemplate<T>
constructor:
Is equivalent to:
Samples
最后更新于