Property cell type to display any type of enumeration

Properties

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>

ItemTypeBinding

#
public IndirectBinding<Type> ItemTypeBinding { get; set; }
Gets or sets the item binding to get/set the type of the numeric value
Remarks: Use this to specify what enum type should be used to create the EnumDropDown. Otherwise, the type of the current value will be used. This is only needed when the value can be null.
The item type binding.

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 override void OnConfigure(CellEventArgs args, Control control)
Configures the content control for the given cell information.
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 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.