Version

DragEnter Event

Occurs when mouse pointer enter into UIElement marked as drop target while drag-and-drop is in progress. This event is cancelable.
Syntax
'Declaration
 
Public Event DragEnter As EventHandler(Of DragDropCancelEventArgs)
public event EventHandler<DragDropCancelEventArgs> DragEnter
Event Data

The event handler receives an argument of type DragDropCancelEventArgs containing data related to this event. The following DragDropCancelEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Gets or sets a value indicating whether drag-and-drop operation should be canceled.
CopyCursorTemplate (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the data template that will be used as cursor when coping operation is performed during dragging.
CustomMouseHolder (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the System.Windows.UIElement suggested by consumer of the event as the element which has to capture the mouse during the drag-drop.
Data (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the instance of the object that represents the dragged data.
DragSource (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets the UIElement that initiates drag operation.
DragTemplate (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the data template that will be applied to dragged element representation.
DropNotAllowedCursorTemplate (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the data template that will be used as cursor when drag operation is performed but drop dragged item is not over appropriate target.
DropTarget (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets the instance of the object marked as drop target.
MoveCursorTemplate (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the data template that will be used as cursor when item is draged over appropriate drop target.
OperationType (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets or sets the type of intended action during drag-and-drop operation. Setting this property will enforce the applying of related cursor.
OriginalDragSource (Inherited from Infragistics.DragDrop.DragDropEventArgs)Gets the original reporting source as determined by pure hit testing.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also