Occurs when the drag-drop operation is in progress and the pointer is within the designer bounds.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
The event is raised when the user drags the pointer over of the designer.
The following describes how and when events related to drag-and-drop operations are raised.
Changes in the pointer position, keyboard state, and mouse button state are tracked.
If the user moves out of the designer bounds, the OnDragLeave event is raised.
If the mouse enters another designer, the OnDragEnter for that designer is raised.
If the mouse moves but stays within the same designer, the event is raised.
If there is a change in the keyboard or mouse button state, the OnQueryContinueDrag event is raised and determines whether to continue the drag, to drop the data, or to cancel the operation based on the value of the Action property of the event QueryContinueDragEventArgs.
If the value is DragAction.Continue, the event is raised to continue the operation and the OnGiveFeedback event is raised with the new effect so appropriate visual feedback can be set. For a list of valid drop effects, see the DragDropEffects enumeration.
The and OnGiveFeedback events are paired so that as the mouse moves across the drop target, the user is supplied with the most up to date feedback on the mouse position.
If the value is DragAction.Drop, the drop effect value is returned to the source, so that the source application can perform the appropriate operation on the source data; for example, cut the data if the operation was a move.
If the value is DragAction.Cancel, the OnDragLeave event is raised.
For more information about handling events, see Consuming Events.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.