PropertyCellType
ReferencesBase type for a PropertyCell to display cell contents for a particular type.
Properties
Identifier
#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.
Value: The identifier for this type.
Methods
CanDisplay
#Determines whether this instance can be used to display the specified
itemType.Parameters:
| itemType (object) | Item type that is retrieved using PropertyCell.TypeBinding. |
Returns:
true if this instance can display the specified itemType; otherwise, false.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. |
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. |
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. |