Remarks: This is useful when displaying a cell with data of a particular type. It will be used for any row that returns a type with PropertyCell.TypeBinding that is compatible with the specified T type.
TType of data that this cell type can show

Properties

Identifier

#
public override string Identifier { get; }
Gets the identifier of this type.
Remarks: This is used to cache the cell content so it can be reused for performance reasons. You must ensure that all your cell types have unique identifiers, otherwise the incorrect content control will be used in the grid.
The identifier for this type.

ItemBinding

#
public IndirectBinding<T> ItemBinding { get; set; }
Gets or sets the item binding to get/set the value of the cell from the model.

Methods

CanDisplay

#
public override bool CanDisplay(object itemType)
Determines whether this instance can display the specified itemType.
itemType (object)Item type.
true if this instance can display the specified itemType; otherwise, false.

OnConfigure

public virtual void OnConfigure(CellEventArgs args, Control control)
Configures the content control for the given cell information.
inherited fromPropertyCellType
Remarks: When the DataContext changes on a cell, this will be called to configure the cell. You are only required to override this when you are not using MVVM data binding with your controls created by PropertyCellType.OnCreate(CellEventArgs).
args (CellEventArgs)Cell arguments
control (Control)Content control that was previously created with the OnCreate method.

OnCreate

public abstract Control OnCreate(CellEventArgs args)
Creates the content control for the cell.
inherited fromPropertyCellType
Remarks: The control returned may be reused for other cells, so it is ideal to use MVVM data binding using BindDataContext() methods of your controls. This should return the same control for each row, otherwise the incorrect control may be shown on certain cells.
args (CellEventArgs)Cell arguments.

OnPaint

public abstract void OnPaint(CellPaintEventArgs args)
Paints the cell when CustomCell.SupportsControlView is false.
inherited fromPropertyCellType
Remarks: For platforms like GTK and WinForms which don't support using a custom control per cell, this will be called to paint the content of the cell when it is not in edit mode.
args (CellPaintEventArgs)Cell paint arguments.