GenerateElement Method
Gets a read-only TextBlock element that is bound to the column's Binding property value.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)
- C#
- VB
- F#
protected override Control GenerateElement(
DataGridCell cell,
Object dataItem
)
Protected Overrides Function GenerateElement (
cell As DataGridCell,
dataItem As Object
) As Control
abstract GenerateElement :
cell : DataGridCell *
dataItem : Object -> Control
override GenerateElement :
cell : DataGridCell *
dataItem : Object -> Control
Parameters
- DataGridCell
- The cell that will contain the generated element.
- Object
- The data item represented by the row that contains the intended cell.
Return Value
Control
A new, read-only TextBlock element that is bound to the column's Binding property value.