alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ItemDraggingEventArgs

    The ItemDragging event provides information related to item drag and drop operations.

    Inheritance
    object
    EventArgs
    CancelEventArgs
    ItemDraggingEventArgs
    Inherited Members
    CancelEventArgs.Cancel
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.ListView
    Assembly: Syncfusion.Maui.ListView.dll
    Syntax
    public class ItemDraggingEventArgs : CancelEventArgs

    Constructors

    ItemDraggingEventArgs()

    Declaration
    public ItemDraggingEventArgs()

    Properties

    Action

    Gets the item drag options for drag-and-drop operations.

    Declaration
    public DragAction Action { get; }
    Property Value
    Type
    DragAction

    Bounds

    Gets the bounds of the drag ListViewItem when performing drag-and-drop operations.

    Declaration
    public Rect? Bounds { get; }
    Property Value
    Type Description
    Rect

    The bounds of dragging ListViewItem.

    DataItem

    Gets the underlying data object of the ListViewItem that is currently being dragged from the bound data source.

    Declaration
    public object? DataItem { get; }
    Property Value
    Type Description
    object

    The underlying data object of the ListViewItem being dragging from the bound data source.

    Handled

    Gets or sets a value indicating whether to handle the dragging item or not. This applies only to dragging DragAction.

    Declaration
    public bool Handled { get; set; }
    Property Value
    Type Description
    bool

    If true, the dragging will not be happened else dragging the item.

    NewIndex

    Gets the index of the ListViewItem in the DataSource.DisplayItems collection of the SfListView that is currently being dragged. This index corresponds to the same index when the DragAction is set to Start.

    Declaration
    public int NewIndex { get; }
    Property Value
    Type Description
    int

    The item index of the dragging ListViewItem where dragging ended.

    OldIndex

    Gets the index of the ListViewItem in the DataSource.DisplayItems collection of the SfListView where the item drag operation started.

    Declaration
    public int OldIndex { get; }
    Property Value
    Type Description
    int

    The item index of the dragging ListViewItem where dragging started.

    Position

    Gets the touch position within the drag item when performing drag-and-drop operations, relative to the actual screen.

    Declaration
    public Point? Position { get; }
    Property Value
    Type
    Point
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved