Class MoveEventArgs<T>
Event arguments for item move operations in a SelectableCollectionViewModel. Contains the original and target indices of the moved item.
Inherited Members
Namespace: Benday.Presentation
Assembly: Benday.Presentation.dll
Syntax
public class MoveEventArgs<T> : EventArgs
Type Parameters
| Name | Description |
|---|---|
| T | The type of items in the collection. |
Constructors
| Edit this page View SourceMoveEventArgs(int, int)
Initializes a new instance of the MoveEventArgs class.
Declaration
public MoveEventArgs(int draggedIndex, int targetIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | draggedIndex | The original index of the item, or -1 for removal. |
| int | targetIndex | The target index of the item, or -1 for removal. |
Properties
| Edit this page View SourceDraggedIndex
Gets the original index of the item before the move, or -1 if the item was removed.
Declaration
public int DraggedIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
TargetIndex
Gets the target index where the item was moved to, or -1 if the item was removed.
Declaration
public int TargetIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |