PropertyCellTypeBoolean
PropertyCellType<1>PropertyCellTypeProperty cell type to edit boolean values using a check box and a True/False label.
Properties
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.
Overrides: PropertyCellType.Identifier
ItemBinding
Gets or sets the item binding to get/set the value of the cell from the model.
ItemThreeStateBinding
#Gets or sets a binding to indicate that the check box should allow three state (null).
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.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 PropertyCellType.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. |
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