Class
RadDragAndDropManager

A manager class that enables drag drop operations between objects.

Definition

Namespace:Telerik.Windows.Controls.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[Obsolete("Obsoleted due to the replacement with DragDropManager", false)]
public static class RadDragAndDropManager

Inheritance: objectRadDragAndDropManager

Fields

AllowDragProperty

Identifies the AllowDrag attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowDragProperty

Field Value

DependencyProperty

AllowDropProperty

Identifies the AllowDrop attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowDropProperty

Field Value

DependencyProperty

AutoDragProperty

Identifies the AutoDrag attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty AutoDragProperty

Field Value

DependencyProperty

DragArrowAdjustingEvent

Identifies the DragArrowAdjusting event.

Declaration

cs-api-definition
public static readonly RoutedEvent DragArrowAdjustingEvent

Field Value

RoutedEvent

DragInfoEvent

Identifies the DragInfo event.

Declaration

cs-api-definition
public static readonly RoutedEvent DragInfoEvent

Field Value

RoutedEvent

DragQueryEvent

Identifies the DragQuery event.

Declaration

cs-api-definition
public static readonly RoutedEvent DragQueryEvent

Field Value

RoutedEvent

DropInfoEvent

Identifies the DropInfo event.

Declaration

cs-api-definition
public static readonly RoutedEvent DropInfoEvent

Field Value

RoutedEvent

DropQueryEvent

Identifies the DragQuery event.

Declaration

cs-api-definition
public static readonly RoutedEvent DropQueryEvent

Field Value

RoutedEvent

Properties

ArrowVisibilityMinimumThreshold

Gets or sets the minimum length of the arrow that needs to be reached before it is shown.

Declaration

cs-api-definition
public static double ArrowVisibilityMinimumThreshold { get; set; }

Property Value

double

AutoBringIntoView

Gets or sets a value indicating whether the ScrollViews should automatically scroll to bring content into view.

Declaration

cs-api-definition
public static bool AutoBringIntoView { get; set; }

Property Value

bool

DragCueOffset

Get or sets the relative horizontal and vertical offset of the drag cue. These values could be negative.

Declaration

cs-api-definition
public static Point DragCueOffset { get; set; }

Property Value

Point

DragStartThreshold

Gets or sets the distance in pixels that the user needs to drag an object before a real drag operation starts. This prevents incidental drag on mouse press.

Declaration

cs-api-definition
public static double DragStartThreshold { get; set; }

Property Value

double

EnableNativeDrag

Enables RadDragAndDropManager to use the native drag/drop system capabilities.

Declaration

cs-api-definition
public static bool EnableNativeDrag { get; set; }

Property Value

bool

ExecutionMode

Gets or sets the execution mode of the drag operations.

Declaration

cs-api-definition
public static DragExecutionMode ExecutionMode { get; set; }

Property Value

DragExecutionMode

The execution mode.

IsDragging

Gets a value indicating whether there is a dragging in process.

Declaration

cs-api-definition
public static bool IsDragging { get; }

Property Value

bool

Options

Gets the status of the current drag and drop process.

Declaration

cs-api-definition
public static DragDropOptions Options { get; }

Property Value

DragDropOptions

Methods

AddDragArrowAdjustingHandler(DependencyObject, EventHandler<DragArrowAdjustingEventArgs>)

Adds a handler to for the DragArrowAdjusting routed event.

Declaration

cs-api-definition
public static void AddDragArrowAdjustingHandler(DependencyObject target, EventHandler<DragArrowAdjustingEventArgs> handler)

Parameters

target

DependencyObject

The element to add handler to.

handler

EventHandler<DragArrowAdjustingEventArgs>

The handler for the event.

AddDragInfoHandler(DependencyObject, EventHandler<DragDropEventArgs>)

Adds a handler to for the DragInfo routed event.

Declaration

cs-api-definition
public static void AddDragInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)

Parameters

target

DependencyObject

The element to add handler to.

handler

EventHandler<DragDropEventArgs>

The handler for the event.

AddDragQueryHandler(DependencyObject, EventHandler<DragDropQueryEventArgs>)

Adds a handler to for the DragQuery routed event.

Declaration

cs-api-definition
public static void AddDragQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)

Parameters

target

DependencyObject

The element to add handler to.

handler

EventHandler<DragDropQueryEventArgs>

The handler for the event.

AddDropInfoHandler(DependencyObject, EventHandler<DragDropEventArgs>)

Adds a handler to for the DropInfo routed event.

Declaration

cs-api-definition
public static void AddDropInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)

Parameters

target

DependencyObject

The element to add handler to.

handler

EventHandler<DragDropEventArgs>

The handler for the event.

AddDropQueryHandler(DependencyObject, EventHandler<DragDropQueryEventArgs>)

Adds a handler to for the DropQuery routed event.

Declaration

cs-api-definition
public static void AddDropQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)

Parameters

target

DependencyObject

The element to add handler to.

handler

EventHandler<DragDropQueryEventArgs>

The handler for the event.

CancelDrag()

Cancels the current drag operation.

Declaration

cs-api-definition
public static void CancelDrag()

GenerateArrowCue()

Generates an arrow content control that can be used in as an arrow cue in the drag/drop operation.

Declaration

cs-api-definition
public static ContentControl GenerateArrowCue()

Returns

ContentControl

A new drag arrow cue element.

GenerateVisualCue()

Creates a drag/drop visual cue based on the default settings of the Drag/Drop manager.

Declaration

cs-api-definition
public static DragVisualCue GenerateVisualCue()

Returns

DragVisualCue

GenerateVisualCue(FrameworkElement)

Creates a drag/drop visual cue based on the default settings of the Drag/Drop manager.

Declaration

cs-api-definition
public static DragVisualCue GenerateVisualCue(FrameworkElement source)

Parameters

source

FrameworkElement

If provided, the properties of the visual cue will be set to match this element.

Returns

DragVisualCue

A new instance of the DragVisualCue class.

GetAllowDrag(DependencyObject)

Gets the AllowDrag attached property.

Declaration

cs-api-definition
public static bool GetAllowDrag(DependencyObject obj)

Parameters

obj

DependencyObject

The object to get the property for.

Returns

bool

GetAllowDrop(DependencyObject)

Gets the AllowDrop attached property.

Declaration

cs-api-definition
public static bool GetAllowDrop(DependencyObject obj)

Parameters

obj

DependencyObject

The object to get the property for.

Returns

bool

GetAutoDrag(DependencyObject)

Gets the AutoDrag attached property.

Declaration

cs-api-definition
public static bool GetAutoDrag(DependencyObject obj)

Parameters

obj

DependencyObject

The object to set the property to.

Returns

bool

Initialize()

Initialize the RadDragAndDropManager infrastructure.

Declaration

cs-api-definition
public static void Initialize()

RemoveDragArrowAdjustingHandler(DependencyObject, EventHandler<DragArrowAdjustingEventArgs>)

Removes a handler for the DragArrowAdjusting routed event.

Declaration

cs-api-definition
public static void RemoveDragArrowAdjustingHandler(DependencyObject target, EventHandler<DragArrowAdjustingEventArgs> handler)

Parameters

target

DependencyObject

The element to remove the handler from.

handler

EventHandler<DragArrowAdjustingEventArgs>

The handler for the event.

RemoveDragInfoHandler(DependencyObject, EventHandler<DragDropEventArgs>)

Removes a handler for the DragInfo routed event.

Declaration

cs-api-definition
public static void RemoveDragInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)

Parameters

target

DependencyObject

The element to remove the handler from.

handler

EventHandler<DragDropEventArgs>

The handler for the event.

RemoveDragQueryHandler(DependencyObject, EventHandler<DragDropQueryEventArgs>)

Removes a handler for the DragQuery routed event.

Declaration

cs-api-definition
public static void RemoveDragQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)

Parameters

target

DependencyObject

The element to remove the handler from.

handler

EventHandler<DragDropQueryEventArgs>

The handler for the event.

RemoveDropInfoHandler(DependencyObject, EventHandler<DragDropEventArgs>)

Removes a handler for the DropInfo routed event.

Declaration

cs-api-definition
public static void RemoveDropInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)

Parameters

target

DependencyObject

The element to remove the handler from.

handler

EventHandler<DragDropEventArgs>

The handler for the event.

RemoveDropQueryHandler(DependencyObject, EventHandler<DragDropQueryEventArgs>)

Removes a handler for the DropQuery routed event.

Declaration

cs-api-definition
public static void RemoveDropQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)

Parameters

target

DependencyObject

The element to remove the handler from.

handler

EventHandler<DragDropQueryEventArgs>

The handler for the event.

SetAllowDrag(DependencyObject, bool)

Sets the AllowDrag attached property.

Declaration

cs-api-definition
public static void SetAllowDrag(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

The object to set the property to.

value

bool

The value of the property.

SetAllowDrop(DependencyObject, bool)

Sets the AllowDrop attached property.

Declaration

cs-api-definition
public static void SetAllowDrop(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

The object to set the property to.

value

bool

The value of the property.

SetAutoDrag(DependencyObject, bool)

Sets the AutoDrag attached property.

Declaration

cs-api-definition
public static void SetAutoDrag(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

The object to set the property to.

value

bool

The value of the property.

StartDrag(FrameworkElement, object, object)

Starts a drag operation. The DragSource parameter cannot be null.

Declaration

cs-api-definition
public static void StartDrag(FrameworkElement dragSource, object payload, object dragCue)

Parameters

dragSource

FrameworkElement

The element that is a source of the DragDrop.

payload

object

The payload of the DragDrop. Can be null.

dragCue

object

The drag cue of the DragDrop. Can be null.