Class
DragEventArgs

Contains arguments relevant to all drag-and-drop events. (Telerik.UI.Xaml.Controls.DragDrop.DragDropManager.DragEnter, Telerik.UI.Xaml.Controls.DragDrop.DragDropManager.DragLeave, Telerik.UI.Xaml.Controls.DragDrop.DragDropManager.DragOver, and Telerik.UI.Xaml.Controls.DragDrop.DragDropManager.Drop).

Definition

Namespace:Telerik.UI.Xaml.Controls.DragDrop

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public sealed class DragEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsDragEventArgs

Inherited Members RadRoutedEventArgs.RoutedEventRadRoutedEventArgs.SourceRadRoutedEventArgs.HandledRadRoutedEventArgs.OriginalSource

Properties

AllowedEffects

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

Declaration

cs-api-definition
public DragDropEffects AllowedEffects { get; }

Property Value

DragDropEffects

Data

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).

Declaration

cs-api-definition
public object Data { get; }

Property Value

object

Effects

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

Declaration

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

Property Value

DragDropEffects

Methods

GetPosition(UIElement)

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

Declaration

cs-api-definition
public Point GetPosition(UIElement relativeTo)

Parameters

relativeTo

UIElement

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.

InvokeEventHandler(Delegate, object)

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.

Declaration

cs-api-definition
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)

Parameters

genericHandler

Delegate

The generic handler / delegate implementation to be invoked.

genericTarget

object

The target on which the provided handler should be invoked.

Overrides RadRoutedEventArgs.InvokeEventHandler(Delegate, object)