menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VirtualizingCellsControl - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class VirtualizingCellsControl

    Represents a record row in a SfDataGrid control.

    Inheritance
    System.Object
    VirtualizingCellsControl
    CaptionSummaryRowControl
    GroupSummaryRowControl
    HeaderCellControl
    StackedHeaderCellControl
    TableSummaryRowControl
    UnboundRowControl
    Implements
    System.IDisposable
    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class VirtualizingCellsControl : Layout<View>, IDisposable
    Remarks

    A VirtualizingCellsControl represents a single data item in a bound data source. Each row contains one cell per column in the SfDataGrid, and each cell displays a single value in the bound data item.

    Constructors

    VirtualizingCellsControl()

    Initializes a new instance of the VirtualizingCellsControl class.

    Declaration
    public VirtualizingCellsControl()

    Fields

    ClipProperty

    Identifies the Clip Xamarin.Forms.BindableProperty.

    Declaration
    public static readonly BindableProperty ClipProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty
    Remarks

    This Xamarin.Forms.BindableProperty is read-only.

    Properties

    Clip

    Gets or sets the clip value of the VirtualizingCellsControl.

    Declaration
    public Rectangle Clip { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Rectangle

    The clip value of the VirtualizingCellsControl.

    ClipRect

    Gets or sets the clip value of the record row.

    Declaration
    public Rectangle ClipRect { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Rectangle

    The clip value of the record row.

    DataGrid

    Gets the reference of the SfDataGrid control.

    Declaration
    public SfDataGrid DataGrid { get; }
    Property Value
    Type Description
    SfDataGrid

    The reference of the SfDataGrid control.

    IsSwipeCancelled

    Gets or sets a value indicating whether to cancel swipe or not.

    Declaration
    public virtual bool IsSwipeCancelled { get; set; }
    Property Value
    Type Description
    System.Boolean

    True if the swipe is canceled, otherwise false.

    SwipeDirection

    Gets or sets the direction of the swiping in the row.

    Declaration
    public SwipeDirection SwipeDirection { get; set; }
    Property Value
    Type Description
    SwipeDirection

    The SwipeDirection in the row.

    SwipeOffset

    Gets or sets the current offset of the row.

    Declaration
    public double SwipeOffset { get; set; }
    Property Value
    Type Description
    System.Double

    The current offset of the row.

    Visibility

    Gets or sets a value indicating whether the visibility of the record row.

    Declaration
    public bool Visibility { get; set; }
    Property Value
    Type Description
    System.Boolean

    A boolean value that indicates the visibility of the record row.

    Methods

    Dispose()

    Perform final clean up before it is released from memory.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Releases the unmanaged resources used by the Component and optionally releases the managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    if true - release both managed and unmanaged resources; if false - release only unmanaged resources.

    LayoutChildren(Double, Double, Double, Double)

    Positions and sizes the children of the VirtualizingCellsControl.

    Declaration
    protected override void LayoutChildren(double x, double y, double width, double height)
    Parameters
    Type Name Description
    System.Double x

    A value that represents the x coordinate of the child.

    System.Double y

    A value that represents the y coordinate of the child.

    System.Double width

    A value that represents the width of the child.

    System.Double height

    A value that represents the height of the child.

    OnMeasure(Double, Double)

    This method is called during the measure pass of a layout cycle to get the desired size of an element.

    Declaration
    protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint

    The available width for the element to use.

    System.Double heightConstraint

    The available height for the element to use.

    Returns
    Type Description
    Xamarin.Forms.SizeRequest

    A Xamarin.Forms.SizeRequest which contains the desired size of the element.

    OnParentSet()

    This method is implemented in order to add behavior when the element is added to a parent.

    Declaration
    protected override void OnParentSet()

    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 children of VirtualizingCellsControl.

    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 children of VirtualizingCellsControl.

    Returns
    Type Description
    System.Boolean

    A boolean value do decide whether to invalidate when removing a child.

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved