menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ItemsGenerator - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ItemsGenerator

    Generates the ListViewItem instances in the SfListView control.

    Inheritance
    System.Object
    ItemsGenerator
    Namespace: Syncfusion.Maui.ListView
    Assembly: Syncfusion.Maui.ListView.dll
    Syntax
    public class ItemsGenerator : Object

    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(Int32, 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
    System.Int32 itemIndex

    Indicates the item index of ListViewItem.

    ItemType type

    Indicates the item type of ListViewItem.

    System.Object data

    Indicates the item data of ListViewItem.

    Returns
    Type Description
    ListViewItem

    Returns the instance of ListViewItem based on ItemType.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved