PropertyCellTypeEnum
PropertyCellType<1>PropertyCellTypeProperty cell type to display any type of enumeration
See Also: PropertyCellTypeEnum<T>
Properties
ItemBinding
Gets or sets the item binding to get/set the value of the cell from the model.
ItemTypeBinding
#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.
Value: The item type binding.
Methods
CanDisplay
#Determines whether this instance can display the specified itemType.
Parameters:
| itemType (object) | Item type. |
Returns:
true if this instance can display the specified itemType; otherwise, false.Overrides: PropertyCellType<T>.CanDisplay
OnConfigure
#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).
Parameters:
| args (CellEventArgs) | Cell arguments |
| control (Control) | Content control that was previously created with the OnCreate method. |
Overrides: PropertyCellType.OnConfigure
OnCreate
#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.
Parameters:
| args (CellEventArgs) | Cell arguments. |
Overrides: PropertyCellType.OnCreate
OnPaint
#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.
Parameters:
| args (CellPaintEventArgs) | Cell paint arguments. |
Overrides: PropertyCellType.OnPaint