Occurs when there is a change in the keyboard or mouse button states during a drag-and-drop operation, and enables the drop source to cancel the drag-and-drop operation depending on the key/button states.
public event EventHandler<ContinueRecordDragEventArgs> ContinueRecordDrag
Public Event ContinueRecordDrag As EventHandler(Of ContinueRecordDragEventArgs)
The ContinueRecordDrag event's data class is ContinueRecordDragEventArgs. The following properties provide information specific to this event:
|Action||Gets or sets the status of a drag-and-drop operation.|
|Data||Gets or sets a data object that contains data associated with the DataViewBase.ContinueRecordDrag event.|
|EscapePressed||Gets whether the user pressed the ESC key.|
|Handled||Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.|
|KeyStates||Gets a flag enumeration indicating the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.|
|OriginalSource||Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.|
|RoutedEvent||Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.|
|Source||Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.|
The ContinueRecordDrag event is raised continuously while the drag source is being dragged. You can handle this event to determine what action ends the drag-and-drop operation based on the state of the ESC, SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.
The default handler for this event cancels the drag-and-drop operation if the ESC key is pressed, and drops the data if the mouse button is released. If you handle this event to change the default behavior, be sure to provide an equivalent mechanism in your handler to end the drag-and-drop operation. Otherwise, the DragDrop.DoDragDrop method will not return and your application will stop responding.