menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ListViewItem - API Reference

    Show / Hide Table of Contents

    Class ListViewItem

    Represents the item of data in the SfListView control.

    Inheritance
    System.Object
    SfView
    SfContentView
    ListViewItem
    ListViewFooterItem
    ListViewGroupHeaderItem
    ListViewHeaderItem
    ListViewLoadMoreItem
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfContentView.ContentProperty
    SfContentView.OnContentChanged(Object, Object)
    SfContentView.Content
    SfView.MeasureContent(Double, Double)
    SfView.ArrangeContent(Rect)
    SfView.OnBindingContextChanged()
    SfView.MeasureOverride(Double, Double)
    SfView.ArrangeOverride(Rect)
    SfView.OnMeasure(Double, Double)
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.Children
    SfView.ClipToBounds
    SfView.Padding
    SfView.IDrawableLayout.DrawingOrder
    Namespace: Syncfusion.Maui.ListView
    Assembly: Syncfusion.Maui.ListView.dll
    Syntax
    public class ListViewItem : SfContentView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, IVisualTreeElement, ITouchListener, ITapGestureListener, IDoubleTapGestureListener, ILongPressGestureListener, IGestureListener

    Constructors

    ListViewItem()

    Initializes a new instance of the ListViewItem class.

    Declaration
    public ListViewItem()

    ListViewItem(ItemType)

    Initializes a new instance of the ListViewItem class based on ItemType.

    Declaration
    public ListViewItem(ItemType itemType)
    Parameters
    Type Name Description
    ItemType itemType

    Indicates the type of the item.

    Properties

    IsSelected

    Gets or sets a value indicating whether an item is selected or not.

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    OnChildAdded(Element)

    Raises when child added.

    Declaration
    protected override void OnChildAdded(Element child)
    Parameters
    Type Name Description
    Microsoft.Maui.Controls.Element child

    Represents the child view which is added.

    OnChildRemoved(Element, Int32)

    Raises when child removed.

    Declaration
    protected override void OnChildRemoved(Element child, int oldLogicalIndex)
    Parameters
    Type Name Description
    Microsoft.Maui.Controls.Element child

    Represents the child view which is removed.

    System.Int32 oldLogicalIndex

    Represents the oldLogicalIndex

    OnDraw(ICanvas, RectF)

    Draw method.

    Declaration
    protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.ICanvas canvas

    The Canvas.

    Microsoft.Maui.Graphics.RectF dirtyRect

    The rectangle.

    Overrides
    SfView.OnDraw(ICanvas, RectF)

    OnHandlerChanged()

    Raised when handler gets changed.

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    SfView.OnHandlerChanged()

    OnItemAppearing()

    Customizes the behavior when overridden if the ListViewItem comes into the view.

    Declaration
    protected virtual void OnItemAppearing()

    OnPropertyChanged(String)

    Invokes when property is updated at runtime.

    Declaration
    protected override void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName

    Property name.

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved