menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NumericButtonPanel - API Reference

    Show / Hide Table of Contents

    Class NumericButtonPanel

    Represents a container that holds the NumericButton views in a SfDataPager.

    Inheritance
    System.Object
    NumericButtonPanel
    Implements
    System.IDisposable
    Namespace: Syncfusion.SfDataGrid.XForms.DataPager
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class NumericButtonPanel : Layout<View>, IDisposable

    Constructors

    NumericButtonPanel(SfDataPager)

    Initializes a new instance of the NumericButtonPanel class.

    Declaration
    public NumericButtonPanel(SfDataPager pager)
    Parameters
    Type Name Description
    SfDataPager pager

    The reference of the SfDataPager.

    Properties

    CanHorizontallyScroll

    Gets or sets a value indicating whether the NumericButtonPanel can be scrolled horizontally or not.

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

    A boolean value indicating whether the NumericButtonPanel can be scrolled horizontally or not.

    CanVerticallyScroll

    Gets or sets a value indicating whether the NumericButtonPanel can be scrolled vertically or not.

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

    A boolean value indicating whether the NumericButtonPanel can be scrolled vertically or not.

    DataPager

    Gets the reference of the SfDataPager control.

    Declaration
    public SfDataPager DataPager { get; }
    Property Value
    Type Description
    SfDataPager

    The reference of the SfDataPager control.

    HorizontalOffset

    Gets the horizontal offset of the SfDataPager.

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

    The horizontal offset of the SfDataPager.

    VerticalOffset

    Gets the vertical offset of the SfDataPager.

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

    The vertical offset of the SfDataPager.

    Methods

    Dispose()

    Releases the resources used by the component.

    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)

    Layouts Children of the NumericButtonPanel.

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

    XPosition of the NumericButtonPanel.

    System.Double y

    YPosition of the NumericButtonPanel.

    System.Double width

    Width of the NumericButtonPanel.

    System.Double height

    Height of the NumericButtonPanel.

    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.

    Remarks

    The results of this method will be (-1, -1) if the element has not yet been realized with a platform specific backing control. Overriding this method does not require a call to the base class so long as a valid SizeRequest is returned.

    OnSizeAllocated(Double, Double)

    This method is called when the size of the element is set during a layout cycle. This method is called directly before the Xamarin.Forms.VisualElement.SizeChanged event is emitted.

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

    The new width of the element.

    System.Double height

    The new height of the element.

    ShouldInvalidateOnChildAdded(View)

    Method to decide whether to call Xamarin.Forms.VisualElement.InvalidateMeasure or not.

    Declaration
    protected override bool ShouldInvalidateOnChildAdded(View child)
    Parameters
    Type Name Description
    Xamarin.Forms.View child

    A child added to the NumericButtonPanel.

    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 or not.

    Declaration
    protected override bool ShouldInvalidateOnChildRemoved(View child)
    Parameters
    Type Name Description
    Xamarin.Forms.View child

    A child removed from the NumericButtonPanel.

    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 - 2023 Syncfusion Inc. All Rights Reserved