Class TreeGridImageCellRenderer
Represents a cell renderer that displays Microsoft.Maui.Controls.ImageSource in a TreeGridCell.
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridImageCellRenderer : TreeGridCellRenderer<SfTreeGridImage, View>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridImageCellRenderer()
Initializes a new instance of the TreeGridImageCellRenderer class.
Declaration
public TreeGridImageCellRenderer()
Methods
OnCreateDisplayUIView()
Creates the view for the display UI.
Declaration
protected override SfTreeGridImage OnCreateDisplayUIView()
Returns
| Type | Description |
|---|---|
| SfTreeGridImage | The image view used to display the cell content. |
Overrides
OnInitializeDisplayView(TreeGridDataColumnBase, SfTreeGridImage?)
Initializes settings of the display view.
Declaration
protected override void OnInitializeDisplayView(TreeGridDataColumnBase dataColumn, SfTreeGridImage? view)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridDataColumnBase | dataColumn | The data column containing the details of the column. |
| SfTreeGridImage | view | The image view to be initialized. |
Overrides
OnUnloadViews(TreeGridDataColumnBase)
Called after a cell is scrolled out of view to unload the display view and recycle it.
Declaration
protected override void OnUnloadViews(TreeGridDataColumnBase dataColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridDataColumnBase | dataColumn | The data column containing the details of the column. |
Overrides
OnUpdateCellValue(TreeGridDataColumnBase)
Updates the cell value of the associated column.
Declaration
protected override void OnUpdateCellValue(TreeGridDataColumnBase dataColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridDataColumnBase | dataColumn | The data column containing the details of the column. |