New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Namespace:Telerik.Windows.Controls.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class DragDropOptions

Inheritance: objectDragDropOptions

Constructors

C#
public DragDropOptions()

Properties

ArrowCue

ContentControl

Gets or sets the arrow that will appear during dragging.

C#
public ContentControl ArrowCue { get; set; }
Remarks:

The SourceCue can only be changed during the DragQuery stage.

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

C#
public VisualCueBehavior ArrowCueDisplayBehavior { get; set; }
Remarks:

This option is only applied in WPF native mode.

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

C#
public Cursor CurrentCursor { get; set; }

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

C#
public Point CurrentDragPoint { get; }

Destination

FrameworkElement

Gets the element that has registered the AllowDrop.

C#
public FrameworkElement Destination { get; set; }

Gets or sets the element that will be dragged visually.

C#
public object DragCue { get; set; }
Remarks:

The SourceCue can only be changed during the DragQuery stage.

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

C#
public VisualCueBehavior DragCueDisplayBehavior { get; set; }
Remarks:

This option is only applied in WPF native mode.

DropDataObject

DataObject

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

C#
public DataObject DropDataObject { get; set; }
Remarks:

This option is only applied in WPF native mode.

Effects

DragDropEffects?

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

C#
public DragDropEffects? Effects { get; set; }
Remarks:

This option is only applied in WPF native mode.

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

C#
public Point MouseClickPoint { get; }

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

C#
public IList<UIElement> ParticipatingVisualRoots { get; }
Remarks:

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

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

C#
public object Payload { get; set; }
Remarks:

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

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

C#
public Point RelativeDragPoint { get; }

Source

FrameworkElement

Gets the source that has registered with AllowDrag.

C#
public FrameworkElement Source { get; }

Gets the current status of the drag and drop operation.

C#
public DragStatus Status { get; }