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

Contains arguments relevant to all drag-and-drop events (, , , and ).

Definition

Namespace:Telerik.Windows.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public sealed class DragEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsDragEventArgs

Properties

AllowedEffects

DragDropEffects

Gets a member of the System.Windows.DragDropEffects enumeration that specifies which operations are allowed by the originator of the drag event.

C#
public DragDropEffects AllowedEffects { get; }

Gets or sets the data that will be used for drag-and-drop operation.(Setting the data will override everything that has already been set).

C#
public object Data { get; }

Effects

DragDropEffects

Gets or sets the target drop-and-drop operation.

C#
public DragDropEffects Effects { get; set; }

Methods

Returns a drop point that is relative to a specified System.Windows.UIElement.

C#
public Point GetPosition(IInputElement relativeTo)
Parameters:relativeToIInputElement

A UIElement object for which to get a relative drop point.

Returns:

Point

A drop point that is relative to the element specified in relativeTo.

When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.

C#
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
Parameters:genericHandlerDelegate

The generic handler / delegate implementation to be invoked.

genericTargetobject

The target on which the provided handler should be invoked.