Class NumericButton
A customized Xamarin.Forms.View that reacts to touch events.
Inheritance
Implements
Namespace: Syncfusion.SfDataGrid.XForms.DataPager
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class NumericButton : PanelElement, IDisposable
Constructors
NumericButton()
Initializes a new instance of the NumericButton class.
Declaration
public NumericButton()
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.
HighlightingBackgroundColorProperty
Identifies the HighlightingBackgroundColor Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty HighlightingBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindableProperty is read-only.
IsCurrentPageProperty
Identifies the IsCurrentPage Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty IsCurrentPageProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindableProperty is read-only.
PageIndexProperty
Identifies the PageIndex Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty PageIndexProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindableProperty is read-only.
Properties
Clip
Gets or sets the clip value of the numeric button.
Declaration
public Rectangle Clip { get; set; }
Property Value
| Type | Description |
|---|---|
| Xamarin.Forms.Rectangle | The clip value of the numeric button. |
DataPager
Gets the reference of the SfDataPager.
Declaration
public SfDataPager DataPager { get; }
Property Value
| Type | Description |
|---|---|
| SfDataPager | The reference of the SfDataPager. |
HighlightingBackgroundColor
Gets or sets the highlighting background color used to highlight numeric button when selected.
Declaration
public Color HighlightingBackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The highlighting background color used to highlight numeric button when selected. |
IsButtonEnabled
Gets or sets a value indicating whether to enable/disable the NumericButton.
Declaration
public bool IsButtonEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | True, if the button is enabled, otherwise false. The default value is true. |
IsCurrentPage
Gets or sets a value indicating whether the page is current page or not.
Declaration
public bool IsCurrentPage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The boolean value denoting whether the page is current page or not. |
NavigationButtons
Gets or sets the navigation buttons, which are used to navigate through pages.
Declaration
public NavigationButtons NavigationButtons { get; set; }
Property Value
| Type | Description |
|---|---|
| NavigationButtons | The navigation buttons, which are used to navigate through pages. |
PageIndex
Gets or sets the current page index of the SfDataPager.
Declaration
public int PageIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The current page index 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)
Positions and sizes the Content of the NumericButton.
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. |
SetAsCurrentPage()
Sets the current page based on selection and whether the selected element is ellipsis or numeric button.
Declaration
public void SetAsCurrentPage()
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 | The Content of the NumericButton. |
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 | The Content of the NumericButton. |
Returns
| Type | Description |
|---|---|
| System.Boolean | A boolean value do decide whether to invalidate when removing a child. |