menu

MAUI

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

    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.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfContentView.Content
    SfContentView.ContentProperty
    SfContentView.OnContentChanged(Object, Object)
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureContent(Double, Double)
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    SfView.Padding
    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, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITouchListener, ITapGestureListener, IRightTapGestureListener, IDoubleTapGestureListener, ILongPressGestureListener, IGestureListener, INotifyMeasureInvalidated

    Constructors

    ListViewItem()

    Initializes a new instance of the ListViewItem class.

    Declaration
    public ListViewItem()

    Properties

    IsSelected

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

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

    Methods

    ChangeVisualState()

    This method overrides ChangeVisualState to update the visual state of the item.

    Declaration
    protected override void ChangeVisualState()

    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.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    OSZAR »
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved
    OSZAR »