DragDrop.QueryContinueDrag DragDrop.QueryContinueDrag DragDrop.QueryContinueDrag Attached Event

定义

在进行拖放操作时不断出现,并启用放置源以结束拖放操作(取决于键/按钮状态)。Occurs continuously while a drag-and-drop operation is in progress, and enables the drop source to end the drag-and-drop operation depending on the key/button states.

see AddQueryContinueDragHandler, and RemoveQueryContinueDragHandler
see AddQueryContinueDragHandler, and RemoveQueryContinueDragHandler
see AddQueryContinueDragHandler, and RemoveQueryContinueDragHandler

注解

对拖动源进行拖动时,持续引发 QueryContinueDrag 事件。The QueryContinueDrag event is raised continuously while the drag source is being dragged. 你可以根据 ESC、SHIFT、CTRL 和 ALT 键以及鼠标按钮的状态处理此事件,以确定结束拖放操作的操作。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. 此事件的默认处理程序在按下 ESC 键后取消拖放操作,并且在释放鼠标按钮后放置数据。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. 否则,不会返回 @no__t 0 方法,应用程序将停止响应。Otherwise, the DoDragDrop method will not return and your application will stop responding. 如果处理此事件,则必须将其标记为已处理,以防止默认行为重写处理程序。If you handle this event, you must mark it as handled to prevent the default behavior from overriding your handler.

路由事件信息Routed Event Information

标识符字段Identifier Field QueryContinueDragEvent
路由策略Routing Strategy 冒泡Bubbling
委托Delegate QueryContinueDragEventHandler

对应的隧道事件为 PreviewQueryContinueDragThe corresponding tunneling event is PreviewQueryContinueDrag.

适用于

另请参阅