Click or drag to resize

CustomCellOnCreateCell Method

Creates an instance of the control for a cell.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
protected virtual Control OnCreateCell(
	CellEventArgs args
)

Parameters

args
Type: Eto.FormsCellEventArgs
Arguments when creating the cell to get the row, item and state.

Return Value

Type: Control
The control to display in the cell.
Remarks
This is called multiple times usually for the number of visible and/or cached cells that are displayed. Note that you need to handle OnConfigureCell(CellEventArgs, Control) to set up the cell for a particular row of data as the control may be reused when scrolling the view. If you intend on creating a different type of cell control based on the item, you should also override GetIdentifier
See Also