Class GridCellImageRenderer
Represents the class that maintains the rendering of GridImageColumn.
Inheritance
System.Object
GridCellImageRenderer
Inherited Members
GridCellRendererBase.RaiseCurrentCellValidatingEvent(SfDataGrid, GridColumn, Object, Object, Object)
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridCellImageRenderer : GridVirtualizingCellRenderer<Image, Image>, IGridCellRenderer, IDisposable
Examples
this.sfDataGrid.CellRenderers.Remove("Image");
this.sfDataGrid.CellRenderers.Add("Image", new GridCellImageRendererExt());
public class GridCellImageRendererExt : GridCellImageRenderer
{
public override void OnInitializeEditElement(DataColumnBase dataColumn, Image uiElement, object dataContext)
{
base.OnInitializeEditElement(dataColumn, uiElement, dataContext);
uiElement.Stretch = Stretch.UniformToFill;
}
}
Constructors
GridCellImageRenderer()
Initializes a new instance of the GridCellImageRenderer class.
Declaration
public GridCellImageRenderer()
Methods
OnInitializeEditElement(DataColumnBase, Image, Object)
Method which is used to initialize the renderer element bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, Image uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
Windows.UI.Xaml.Controls.Image | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.Image, Windows.UI.Xaml.Controls.Image>.OnInitializeEditElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, Windows.UI.Xaml.Controls.Image, System.Object)
Implements
System.IDisposable