Table of Contents

Class DragListener

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

Represents a class that handles events of the control that the user can drag.

public class DragListener
Inheritance
DragListener

Constructors

DragListener(IInputElement)

Initializes a new instance of the DragListener class with specified parameter.

Properties

CurrentPoint

Gets the current position of the dragged element.

Delta

Gets a displacement between the current and start positions.

DeltaDelta

Gets a displacement between the drag destination position and the current position.

IsActive

Gets a value indicating whether the drag operation is in an active state.

IsCanceled

Gets a value indicating whether the drag operation is canceled.

IsDown

Gets a value indicating whether left mouse pointer is pressed.

StartPoint

Gets the starting position of the dragged element.

Target

Gets an element that is a target of the drag operations.

Transform

Gets or sets transformations can be used for the dragged element.

Methods

ExternalMouseMove(MouseEventArgs)

Forces the mouse move operation from the external source.

ExternalStart()

Forces starting the drag operation from the external source.

ExternalStop()

Forces stopping the drag operation from the external source.

Events

Changed

Occurs when the mouse pointer moves the element being dragged.

Completed

Occurs when the dragged operation is finished.

MouseDown

Occurs when left mouse button is pressed.

Started

Occurs when the dragged operation is started.