Class TreeGridLoadMoreView
Represents a customized Microsoft.Maui.Controls.View that loads new data items at runtime in SfTreeGrid.
Implements
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridLoadMoreView : SfView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, IDisposable
Constructors
TreeGridLoadMoreView()
Initializes a new instance of the TreeGridLoadMoreView class.
Declaration
public TreeGridLoadMoreView()
Properties
LoadMoreCommand
Gets or sets the command that will be executed when a user taps the button in the load more view to load new data items in SfTreeGrid.
Declaration
public ICommand? LoadMoreCommand { get; set; }
Property Value
| Type |
|---|
| ICommand |
Methods
ArrangeContent(Rect)
Arranges the children of the load more view.
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | bounds | The bounds to arrange the children within. |
Returns
| Type | Description |
|---|---|
| Size | The arranged size. |
Overrides
Dispose()
Performs final clean up before the load more view is released from memory.
Declaration
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the load more view and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | If true, releases both managed and unmanaged resources; otherwise releases only unmanaged resources. |
InitLoadMoreView()
Method to initialize the required properties of the load more view.
Declaration
protected virtual void InitLoadMoreView()
Remarks
Override this method in a derived class to initialize a custom load more view.
MeasureContent(double, double)
Measures the size required for the content of the load more view.
Declaration
protected override Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
| Type | Name | Description |
|---|---|---|
| double | widthConstraint | The maximum width constraint. |
| double | heightConstraint | The maximum height constraint. |
Returns
| Type | Description |
|---|---|
| Size | The measured size. |
Overrides
OnDraw(ICanvas, RectF)
Draws the border lines for the load more view based on the load more position.
Declaration
protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
Parameters
| Type | Name | Description |
|---|---|---|
| ICanvas | canvas | The canvas used to draw. |
| RectF | dirtyRect | The rectangle to be drawn. |
Overrides
SetLoadMoreViewStyle(TreeGridStyle?)
Sets the style to the load more view from the TreeGridStyle of the SfTreeGrid.
Declaration
protected virtual void SetLoadMoreViewStyle(TreeGridStyle? style)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridStyle | style | The TreeGridStyle. |
Remarks
Override this method in a derived class to apply custom styling to the load more view.