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

The event args used for various drag and drop related events.

Definition

Namespace:Telerik.Windows.Controls.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class DragDropEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsDragDropEventArgs

Derived Classes: DragDropQueryEventArgs

Constructors

Initializes a new instance of the DragDropEventArgs class.

C#
public DragDropEventArgs(RoutedEvent routedEvent, object source, DragDropOptions options)
Parameters:routedEventRoutedEvent

The routed event identifier for this instance of the RoutedEventArgs class.

sourceobject

An alternate source that will be reported when the event is handled. This pre-populates the Source property.

optionsDragDropOptions

The drag event options.

Properties

Gets the drag drop information about this drag drop event.

C#
public DragDropOptions Options { get; }

Methods

Returns the top-most element of the given type at the DragPoint coordinates.

C#
public T GetElement<T>(Point dragPoint) where T : FrameworkElement
Parameters:dragPointPointReturns:

T

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.