PropertyCellTypeNumber<T>

PropertyCellType<1>PropertyCellType
Property cell type to edit int values.
T

Properties

Identifier

public override string Identifier { get; }
Gets the identifier of this type.
inherited fromPropertyCellType<T>
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.
inherited fromPropertyCellType<T>

Methods

CanDisplay

public override bool CanDisplay(object itemType)
Determines whether this instance can display the specified itemType.
inherited fromPropertyCellType<T>
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 override Control OnCreate(CellEventArgs args)
Creates the content control for the cell.
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 override void OnPaint(CellPaintEventArgs args)
Paints the cell when CustomCell.SupportsControlView is false.
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.