Class
DragDropOptions

An object that holds information about the current drag/drop operation.

Definition

Namespace:Telerik.Windows.Controls.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class DragDropOptions

Inheritance: objectDragDropOptions

Constructors

DragDropOptions()

Declaration

cs-api-definition
public DragDropOptions()

Properties

ArrowCue

Gets or sets the arrow that will appear during dragging.

Declaration

cs-api-definition
public ContentControl ArrowCue { get; set; }

Property Value

ContentControl

Remarks

The SourceCue can only be changed during the DragQuery stage.

ArrowCueDisplayBehavior

Controls Arrow Cue host position in relation to the other windows.This option is only applied in WPF native mode.

Declaration

cs-api-definition
public VisualCueBehavior ArrowCueDisplayBehavior { get; set; }

Property Value

VisualCueBehavior

Remarks

This option is only applied in WPF native mode.

CurrentCursor

Gets or sets the current mouse cursor while performing drag operation.

Declaration

cs-api-definition
public Cursor CurrentCursor { get; set; }

Property Value

Cursor

CurrentDragPoint

Gets the point where the mouse is relative to the root canvas.

Declaration

cs-api-definition
public Point CurrentDragPoint { get; }

Property Value

Point

Destination

Gets the element that has registered the AllowDrop.

Declaration

cs-api-definition
public FrameworkElement Destination { get; set; }

Property Value

FrameworkElement

DragCue

Gets or sets the element that will be dragged visually.

Declaration

cs-api-definition
public object DragCue { get; set; }

Property Value

object

Remarks

The SourceCue can only be changed during the DragQuery stage.

DragCueDisplayBehavior

Controls Drag Cue host position in relation to the other windows.

Declaration

cs-api-definition
public VisualCueBehavior DragCueDisplayBehavior { get; set; }

Property Value

VisualCueBehavior

Remarks

This option is only applied in WPF native mode.

DropDataObject

Gets or sets the object that will be passed on native Drag Drop operations.

Declaration

cs-api-definition
public DataObject DropDataObject { get; set; }

Property Value

DataObject

Remarks

This option is only applied in WPF native mode.

Effects

Gets or sets the DragDrop effects during native Drag Drop operations.

Declaration

cs-api-definition
public DragDropEffects? Effects { get; set; }

Property Value

DragDropEffects?

Remarks

This option is only applied in WPF native mode.

MouseClickPoint

Gets the point where the mouse was first pressed relative to the root canvas.

Declaration

cs-api-definition
public Point MouseClickPoint { get; }

Property Value

Point

ParticipatingVisualRoots

Gets a collection with the visual roots what will participate in the drag/drop operation but are not descendants of the application root visual.

Declaration

cs-api-definition
public IList<UIElement> ParticipatingVisualRoots { get; }

Property Value

IList<UIElement>

Remarks

All popups that should participate in the drag/drop should be added in this collection.

Payload

Gets or sets the data object that is transferred in the drag/drop operation.

Declaration

cs-api-definition
public object Payload { get; set; }

Property Value

object

Remarks

The Payload can only be set during the DragQuery stage of DragQuery.

RelativeDragPoint

Gets the point where the mouse is relative to the destination element.

Declaration

cs-api-definition
public Point RelativeDragPoint { get; }

Property Value

Point

Source

Gets the source that has registered with AllowDrag.

Declaration

cs-api-definition
public FrameworkElement Source { get; }

Property Value

FrameworkElement

Status

Gets the current status of the drag and drop operation.

Declaration

cs-api-definition
public DragStatus Status { get; }

Property Value

DragStatus