ICellOptions Interface
Definition
Defines common options that control the behavior of cells in a Avalonia.Controls.Models.TreeDataGrid.
public interface ICellOptions
Remarks
The Avalonia.Controls.Models.TreeDataGrid.ICellOptions interface serves as a base for various cell option interfaces in the TreeDataGrid component. It provides the most fundamental editing behavior options that apply across different cell types.
Specific cell types extend this interface with additional options relevant to their particular functionality, such as Avalonia.Controls.Models.TreeDataGrid.ITextCellOptions for text formatting options or Avalonia.Controls.Models.TreeDataGrid.ITemplateCellOptions for template-specific options.
Column implementations typically provide these options through their respective options classes (e.g., Avalonia.Controls.Models.TreeDataGrid.TextColumnOptions<T>, Avalonia.Controls.Models.TreeDataGrid.CheckBoxColumnOptions<T>, etc.).
Properties
| Name | Description |
|---|---|
| BeginEditGestures | Gets the gesture(s) that will cause the cell to enter edit mode. |
BeginEditGestures Property
Gets the gesture(s) that will cause the cell to enter edit mode.
public Avalonia.Controls.Models.TreeDataGrid.BeginEditGestures BeginEditGestures { get; set; }
Remarks
This property determines which user interactions will trigger the cell to enter edit mode.
The default value is Avalonia.Controls.Models.TreeDataGrid.BeginEditGestures.Default, which includes F2 key press and double-tap gestures. Other options include single tap, or requiring the cell to be selected first.
To prevent a cell from entering edit mode through user interaction, use Avalonia.Controls.Models.TreeDataGrid.BeginEditGestures.None. The cell can still be programmatically put into edit mode.