Class ItemsGenerator
Generates the ListViewItem instances in the SfListView control.
Inherited Members
Namespace: Syncfusion.Maui.ListView
Assembly: Syncfusion.Maui.ListView.dll
Syntax
public class ItemsGenerator
Constructors
ItemsGenerator(SfListView)
Initializes a new instance of the ItemsGenerator class.
Declaration
public ItemsGenerator(SfListView listView)
Parameters
| Type | Name | Description |
|---|---|---|
| SfListView | listView | The SfListView instance. |
Methods
OnCreateListViewItem(int, ItemType, object?)
Helper method to create the ListViewItem based on the ItemType.
Declaration
protected virtual ListViewItem OnCreateListViewItem(int itemIndex, ItemType type, object? data = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | itemIndex | Indicates the item index of ListViewItem. |
| ItemType | type | Indicates the item type of ListViewItem. |
| object | data | Indicates the item data of ListViewItem. |
Returns
| Type | Description |
|---|---|
| ListViewItem | Returns the instance of ListViewItem based on ItemType. |