Show / Hide Table of Contents

Class MoveEventArgs<T>

Event arguments for item move operations in a SelectableCollectionViewModel. Contains the original and target indices of the moved item.

Inheritance
object
EventArgs
MoveEventArgs<T>
Inherited Members
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

MoveEventArgs(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 Source

DraggedIndex

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
| Edit this page View Source

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
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com