Class CellElement
Serves as base class for different types of Cells.
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class CellElement : BorderView, IVisibility, IDisposable
Constructors
CellElement()
Initializes a new instance of the CellElement class.
Declaration
public CellElement()
Fields
NeedToInvalidateProperty
Identifies the NeedToInvalidate Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty NeedToInvalidateProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindablePropertyis read-only.
Properties
NeedToInvalidate
Gets or sets a value indicating whether to invalidate the CellElement or not.
Declaration
public bool NeedToInvalidate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if the CellElement has to be invalidated, otherwise false. The default is false. |
Remarks
When the need to invalidate is set as true, layout pass will be called for the cell element.
Methods
OnBindingContextChanged()
Invoked whenever the binding context of the CellElement changes.
Declaration
protected override void OnBindingContextChanged()
ShouldInvalidateOnChildAdded(View)
Method to decide whether to call Xamarin.Forms.VisualElement.InvalidateMeasure when adding a child.
Declaration
protected override bool ShouldInvalidateOnChildAdded(View child)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.View | child | The Content of the CellElement. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean value do decide whether to invalidate when adding a child. |
ShouldInvalidateOnChildRemoved(View)
Method to decide whether to call Xamarin.Forms.VisualElement.InvalidateMeasure when removing a child.
Declaration
protected override bool ShouldInvalidateOnChildRemoved(View child)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.View | child | The Content of the CellElement. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean value do decide whether to invalidate when removing a child. |