Summary
Creates or recycles a control to display the specified data.
- Namespace
- Avalonia
.Controls .Templates - Containing Type
- I
Recycling Data Template
Syntax
IControl Build(object data, IControl? existing)
Remarks
The caller should ensure that any control passed to existing
originated from the same data template.
Parameters
Name | Type | Description |
---|---|---|
data | object | The data to display. |
existing | IControl? | An optional control to recycle. |
Return Value
Type | Description |
---|---|
IControl | The existing control if supplied and applicable to data, otherwise a new control. |