Class GridUnBoundRowCellRenderer<D, E>
GridVirtualizingUnBoundRowCellRenderer is an abstract base class for UnBoundRow cell renderers
that need live UIElement visuals displayed in a cell. You can derive from
this class and provide the type of the UIElement you want to show inside cells
as type parameter. The class provides strong typed virtual methods for
initializing content of the cell and arranging the cell visuals. See
The idea behind this class is to provide a place where we can add general code that should be shared for all cell renderers in the tree derived from GridVirtualizingCellRendererBase. While this class does at the moment not add meaningful functionality to GridVirtualizingCellRendererBase we created this extra layer of inheritance to make it easy to share code for the GridVirtualizingCellRendererBase base class between grid and common assemblies and keep grid control specific code out of the base class. It is currently not possible with C# to the base class as template type parameter.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public abstract class GridUnBoundRowCellRenderer<D, E> : GridVirtualizingCellRenderer<D, E>, IGridCellRenderer, IDisposable where D : FrameworkElement, new()
where E : FrameworkElement, new()
Type Parameters
Name | Description |
---|---|
D | |
E |
Constructors
GridUnBoundRowCellRenderer()
Declaration
protected GridUnBoundRowCellRenderer()
Methods
BeginEdit(RowColumnIndex, FrameworkElement, GridColumn, Object)
Called when the UnBoundRow cell gets start edited.
Declaration
public override bool BeginEdit(RowColumnIndex cellRowColumnIndex, FrameworkElement cellElement, GridColumn column, object record)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | Current cell Row and Column index |
System.Windows.FrameworkElement | cellElement | Current UnBoudnRowCell |
GridColumn | column | Current column of the row |
System.Object | record | DataContext of the row |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
CanUpdateBinding(GridColumn)
Declaration
public override bool CanUpdateBinding(GridColumn column)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
CanValidate()
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EndEdit(DataColumnBase, Object, Boolean)
Called when the UnBoundRow cell gets end edited.
Declaration
public override bool EndEdit(DataColumnBase dc, object record, bool canResetBinding = false)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dc | DataColumnBase Which holds GridColumn, RowColumnIndex and GridCell |
System.Object | record | DataContext of the row |
System.Boolean | canResetBinding | Reset Binding the CurrentCell |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
InitializeCellStyle(DataColumnBase, Object)
Declaration
protected override void InitializeCellStyle(DataColumnBase dataColumn, object record)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | |
System.Object | record |
Overrides
OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)
Initialize the binding for GridUnBoundRowCell by Columns's CellTemplate and CellTemplateSelector.
Declaration
public override void OnInitializeTemplateElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the dataColumn which contain GridColumn, RowColumnIndex |
System.Windows.Controls.ContentControl | uiElement | Specifies the display control to initialize binding |
System.Object | dataContext | Specifies the data context of the particular row |
Overrides
OnPrepareUIElements()
Creates the GridUnBounRowCell.
Declaration
protected override FrameworkElement OnPrepareUIElements()
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement |
Overrides
OnPrepareUIElements(DataColumnBase, Object, Boolean)
Called from
Declaration
protected override FrameworkElement OnPrepareUIElements(DataColumnBase dataColumn, object record, bool isInEdit)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn Which holds GridColumn, RowColumnIndex and GridCell |
System.Object | record | record of the row |
System.Boolean | isInEdit |
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement |
Overrides
OnRenderContent(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, Object)
Declaration
protected override void OnRenderContent(DrawingContext dc, Rect cellRect, Geometry clipGeometry, DataColumnBase dataColumnBase, GridCell gridCell, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | |
System.Windows.Rect | cellRect | |
System.Windows.Media.Geometry | clipGeometry | |
DataColumnBase | dataColumnBase | |
GridCell | gridCell | |
System.Object | dataContext |
Overrides
OnUpdateBindingInfo(DataColumnBase, Object, Boolean)
The method which updates the binding while reuse the UnBoundRow Cell's UIElement.
Declaration
protected override void OnUpdateBindingInfo(DataColumnBase dataColumn, object record, bool isInEdit)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn Which holds GridColumn, RowColumnIndex and GridCell |
System.Object | record | DataContext of the Row |
System.Boolean | isInEdit |
Overrides
OnUpdateTemplateBinding(DataColumnBase, ContentControl, Object)
Updates the content for the GridUnBoundRowCell.
Declaration
public override void OnUpdateTemplateBinding(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | |
System.Windows.Controls.ContentControl | uiElement | |
System.Object | dataContext |
Overrides
UpdateToolTip(DataColumnBase)
Update Tool Tip which show tool tip when mouse enter on GridUnBoundRowCell.
Declaration
public override void UpdateToolTip(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Which hold GridUnBoundRowCell, GridColumn and Cell's row Column index |