Class Header
Represents a class that holds the numeric buttons in the header region in a SfDataPager.
Inheritance
Implements
Namespace: Syncfusion.SfDataGrid.XForms.DataPager
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class Header : Layout<View>, IDisposable
Constructors
Header(SfDataPager)
Initializes a new instance of the Header class.
Declaration
public Header(SfDataPager pager)
Parameters
| Type | Name | Description |
|---|---|---|
| SfDataPager | pager | The reference of the SfDataPager. |
Properties
Visibility
Gets or sets a value indicating whether to enable/disable the visibility of the NumericButton in the header region.
Declaration
public bool Visibility { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The boolean value indicating whether to enable/disable the visibility of the NumericButton in the header region. |
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 children of the Footer.
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. |
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.
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 Header. |
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 Header. |
Returns
| Type | Description |
|---|---|
| System.Boolean | A boolean value do decide whether to invalidate when removing a child. |