Class GridCellImageCellRenderer
Render images using this cell renderer. Image should be supplied as a BitmapImage instance to the GridStyleInfo.CellValue.
var imageStyle = this.grid.Model[1, 1];
imageStyle.CellType = "ImageCell";
imageStyle.CellValue = new BitmapImage(new
Uri("pack://application:,,,/SampleImage.png"));
Inheritance
System.Object
GridCellImageCellRenderer
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellImageCellRenderer : GridCellRendererBase, IGridCellRenderer, ICellRenderer, IDisposable, IHitTestSelectCells, IStyleChanged
Constructors
GridCellImageCellRenderer()
Initializes a new GridCellImageCellRenderer.
Declaration
public GridCellImageCellRenderer()
Methods
OnActivated()
Declaration
protected override void OnActivated()
Overrides
OnDeactivated()
Declaration
protected override void OnDeactivated()
Overrides
OnRender(DrawingContext, RenderCellArgs, GridRenderStyleInfo)
Declaration
protected override void OnRender(DrawingContext dc, RenderCellArgs rca, GridRenderStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | |
RenderCellArgs | rca | |
GridRenderStyleInfo | style |
Overrides
Syncfusion.Windows.Controls.Cells.CellRendererBase<Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo>.OnRender(System.Windows.Media.DrawingContext, Syncfusion.Windows.Controls.Cells.RenderCellArgs, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
Implements
System.IDisposable