menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ItemDraggingEventArgs - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ItemDraggingEventArgs

    Provides item drag and drop related information for the ItemDragging event.

    Inheritance
    System.Object
    ItemDraggingEventArgs
    Namespace: Syncfusion.ListView.XForms
    Assembly: Syncfusion.SfListView.XForms.dll
    Syntax
    public class ItemDraggingEventArgs : CancelEventArgs

    Constructors

    ItemDraggingEventArgs()

    Declaration
    public ItemDraggingEventArgs()

    Properties

    Action

    Gets the item drag options when performing drag-and-drop operations.

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

    Bounds

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

    Declaration
    public Rectangle Bounds { get; }
    Property Value
    Type Description
    Xamarin.Forms.Rectangle

    The bounds of dragging ListViewItem.

    Handled

    Gets or sets a value indicating whether to handle the dragging item or not. It is applicable only for dragging DragAction.

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

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

    ItemData

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

    Declaration
    public object ItemData { get; }
    Property Value
    Type Description
    System.Object

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

    NewIndex

    Gets the index of the ListViewItem in DataSource.DisplayItems of SfListView being dragged. Denotes the same index for DragAction is Start.

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

    The item index of the dragging ListViewItem where dragging ended.

    OldIndex

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

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

    The item index of the dragging ListViewItem where dragging started.

    Position

    Gets the touch position in the drag item when performing drag-and-drop operations. Denotes from the actual screen.

    Declaration
    public Point Position { get; }
    Property Value
    Type
    Xamarin.Forms.Point
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved