Remarks: Use this information to determine where the user is dragging to, and also to change where the drag indicator will be shown by modifying the Item and ChildIndex properties.
Constructors
GridViewDragInfo
#Initializes a new instance of the GridDragInfo class.
Parameters:
| control (GridView) | The parent widget that this info belongs to |
| item (object) | Item user is dragging to. |
| index (int) | Index where the item should be inserted, or -1 if dragging ontop of item. |
| position (GridDragPosition) | The position of the cursor relative to the item under the cursor. |
Properties
Index
#Gets or sets the insertion index where the user is dragging to as a child of Item, or -1 if dragging ontop of the Item.
Remarks: This is useful if the user is dragging inbetween existing items, or the beginning or end of a child list. Only some platforms may support this property, otherwise it will always return -1.
Value: The insertion index where the user is dragging to, otherwise -1.
InsertIndex
#Gets the insertion index of drop operation, or -1 if not an insert (dragging over)
Value: The index to insert the item.
IsChanged
#Gets a value indicating whether this GridDragInfo is changed.
Position
#Gets the position of the ChildIndex relative to the item under the mouse cursor.
Remarks: When dragging between items, this will tell you if the ChildIndex specified is after or before the item under the mouse cursor. This allows you to adjust the Item and ChildIndex.
Value: The position.