Class ListViewItem
Represents the item of data in the SfListView control.
Inheritance
System.Object
ListViewItem
Implements
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
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()
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 |
---|
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
OnHandlerChanged()
Raised when handler gets changed.
Declaration
protected override void OnHandlerChanged()
Overrides
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
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